/* =========================================================
   مالکان | کارگزاری پروژه‌های نهضت ملی قزوین
   Shared Stylesheet — Brand Variables & Components
   ========================================================= */

:root {
  --brand-gold: #C9A227;
  --brand-gold-hover: #D4AF37;
  --brand-gold-pressed: #9C7A1C;
  --brand-charcoal: #1A1B1E;
  --brand-charcoal-light: #2B2E33;
  --brand-bg: #F8F7F4;
  --brand-text: #1A1B1E;
  --brand-text-light: #F8F7F4;
  --brand-text-muted: #EDE6D6;
  --brand-success: #4CAF50;
  --brand-border: rgba(201, 162, 39, 0.35);
  --brand-border-strong: rgba(201, 162, 39, 0.55);
  --font-fa: "IRANSans", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-fa);
  background-color: var(--brand-bg);
  color: var(--brand-text);
}

a { text-decoration: none; }

::selection { background: var(--brand-gold); color: var(--brand-charcoal); }

/* ---------- Utility ---------- */
.text-gold { color: var(--brand-gold) !important; }
.bg-charcoal { background-color: var(--brand-charcoal) !important; }
.bg-charcoal-light { background-color: var(--brand-charcoal-light) !important; }
.bg-brand { background-color: var(--brand-bg) !important; }
.border-gold { border-color: var(--brand-border) !important; }
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
.divider-gold {
  height: 1px;
  width: 70px;
  background: var(--brand-gold);
  margin: 0.75rem auto;
}
.divider-gold.start { margin-inline: 0; }

.section-title {
  font-weight: 800;
  color: var(--brand-charcoal);
}
.section-subtitle {
  color: #6b6b6b;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-charcoal);
  font-weight: 700;
  transition: all .2s ease-in-out;
}
.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
  color: var(--brand-charcoal);
}
.btn-gold:active {
  background-color: var(--brand-gold-pressed) !important;
  border-color: var(--brand-gold-pressed) !important;
}
.btn-outline-gold {
  border: 1.5px solid var(--brand-gold);
  color: var(--brand-gold);
  font-weight: 600;
  background: transparent;
}
.btn-outline-gold:hover {
  background-color: var(--brand-gold);
  color: var(--brand-charcoal);
}

/* ---------- Navbar ---------- */
.navbar-brand-maalekan {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-gold) !important;
  letter-spacing: 1px;
}
.navbar-brand-maalekan small {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  color: var(--brand-text-muted);
  letter-spacing: 0;
}
.site-navbar {
  background-color: var(--brand-charcoal) !important;
  border-bottom: 1px solid var(--brand-border);
}
.site-navbar .nav-link {
  color: var(--brand-text-light) !important;
  font-weight: 500;
  position: relative;
  margin: 0 .35rem;
}
.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--brand-gold);
  transition: width .25s ease;
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
  width: 100%;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--brand-gold) !important;
}
.navbar-toggler { border-color: var(--brand-border); }
.navbar-toggler-icon {
  filter: invert(70%) sepia(60%) saturate(500%) hue-rotate(0deg);
}
.btn-login-nav {
  background: var(--brand-gold);
  color: var(--brand-charcoal) !important;
  font-weight: 700;
  padding: .45rem 1.25rem;
  border-radius: .5rem;
}
.btn-login-nav:hover { background: var(--brand-gold-hover); }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  background: var(--brand-charcoal-light);
  border-bottom: 1px solid var(--brand-border);
}
.breadcrumb-bar .breadcrumb { margin-bottom: 0; }
.breadcrumb-bar .breadcrumb-item, .breadcrumb-bar .breadcrumb-item a {
  color: var(--brand-text-muted);
}
.breadcrumb-bar .breadcrumb-item.active { color: var(--brand-gold); }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  color: var(--brand-gold);
  content: "\\";
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(26,27,30,.55), rgba(26,27,30,.85)), url("../images/hero-construction.jpg") center/cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,162,39,.18), transparent 55%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 3; }
.hero-badge {
  border: 1px solid var(--brand-border-strong);
  color: var(--brand-gold);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  display: inline-block;
  background: rgba(201,162,39,.08);
}
.hero h1 {
  color: var(--brand-text-light);
  font-weight: 800;
  line-height: 1.5;
}
.hero p.lead { color: var(--brand-text-muted); }
.hero-cta {
  padding: .9rem 2.2rem;
  font-size: 1.05rem;
  border-radius: .75rem;
  box-shadow: 0 8px 25px rgba(201,162,39,.35);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,39,.45); }

/* Construction animation layer */
.hero-cranes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.crane-svg {
  position: absolute;
  bottom: 0;
  opacity: .55;
  animation: crane-sway 6s ease-in-out infinite;
  transform-origin: bottom center;
}
.crane-svg.c1 { right: 4%; width: 130px; animation-duration: 7s; }
.crane-svg.c2 { right: 22%; width: 90px; bottom: 4%; animation-duration: 9s; animation-delay: .5s; }
.crane-svg.c3 { left: 6%; width: 110px; animation-duration: 8s; animation-delay: 1s; }
@keyframes crane-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.5deg); }
}
.hero-particles span {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  background: var(--brand-gold);
  border-radius: 50%;
  opacity: .7;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(-90vh) translateX(20px); opacity: 0; }
}
.hero-scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--brand-text-muted);
  font-size: .8rem;
  text-align: center;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Cards ---------- */
.card-news {
  border: 1px solid var(--brand-border);
  border-radius: .85rem;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(26,27,30,.12);
}
.card-news .card-img-wrap { position: relative; overflow: hidden; height: 190px; }
.card-news .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.card-news:hover .card-img-wrap img { transform: scale(1.08); }
.card-news .badge-cat {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand-gold);
  color: var(--brand-charcoal);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 50px;
}
.card-news .card-date {
  font-size: .78rem;
  color: #8a8a8a;
}
.card-news .card-title a {
  color: var(--brand-charcoal);
  font-weight: 700;
}
.card-news .card-title a:hover { color: var(--brand-gold); }
.read-more-link {
  color: var(--brand-gold-pressed);
  font-weight: 700;
  font-size: .9rem;
}
.read-more-link:hover { color: var(--brand-gold); }

.card-guide {
  border: 1px solid var(--brand-border);
  border-radius: .85rem;
  background: var(--brand-charcoal-light);
  color: var(--brand-text-light);
  height: 100%;
  padding: 1.75rem 1.4rem;
  transition: transform .2s ease;
}
.card-guide:hover { transform: translateY(-5px); }
.card-guide .guide-icon {
  width: 55px; height: 55px;
  border-radius: 50%;
  background: rgba(201,162,39,.15);
  color: var(--brand-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card-guide h5 { font-weight: 700; }
.card-guide p { color: var(--brand-text-muted); font-size: .9rem; }
.card-guide a { color: var(--brand-gold); font-weight: 600; font-size: .87rem; }

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--brand-border);
  margin-bottom: .75rem;
  border-radius: .65rem !important;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--brand-charcoal);
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--brand-charcoal);
  color: var(--brand-gold);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--brand-border); }
.faq-accordion .accordion-body { background: #fffef9; color: #333; }

/* ---------- Sections misc ---------- */
.about-image-frame {
  position: relative;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  overflow: hidden;
}
.about-image-frame img { width: 100%; display: block; }

.stat-box {
  text-align: center;
  padding: 1.25rem .5rem;
  border-inline-start: 1px solid var(--brand-border);
}
.stat-box:first-child { border-inline-start: none; }
.stat-box .num { font-size: 1.9rem; font-weight: 800; color: var(--brand-gold); }
.stat-box .lbl { font-size: .85rem; color: #6b6b6b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-charcoal);
  color: var(--brand-text-muted);
  border-top: 3px solid var(--brand-gold);
}
.site-footer h6 {
  color: var(--brand-gold);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: var(--brand-text-muted);
  font-size: .9rem;
  display: inline-block;
  margin-bottom: .55rem;
  transition: color .2s;
}
.site-footer a:hover { color: var(--brand-gold); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(201,162,39,.2);
  font-size: .82rem;
  color: #9b9b9b;
}
.social-icons a {
  width: 38px; height: 38px;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: .5rem;
  color: var(--brand-gold) !important;
  margin-bottom: 0;
}
.social-icons a:hover { background: var(--brand-gold); color: var(--brand-charcoal) !important; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border: 1px solid #ddd;
  padding: .65rem .9rem;
  border-radius: .6rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,39,.18);
}
.form-label { font-weight: 600; font-size: .9rem; }
.info-card {
  background: var(--brand-charcoal-light);
  color: var(--brand-text-light);
  border-radius: 1rem;
  padding: 1.75rem;
}
.info-card .info-item { display: flex; gap: .75rem; margin-bottom: 1.1rem; align-items: flex-start; }
.info-card .info-item i {
  width: 42px; height: 42px;
  min-width: 42px;
  background: rgba(201,162,39,.15);
  color: var(--brand-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.map-placeholder {
  height: 240px;
  border-radius: .85rem;
  border: 1px dashed var(--brand-border-strong);
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f5f5f5 10px, #f5f5f5 20px);
  display: flex; align-items: center; justify-content: center;
  color: #888;
  overflow: hidden;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--brand-charcoal);
  border-color: var(--brand-border);
}
.pagination .page-item.active .page-link {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-charcoal);
}
.pagination .page-link:hover { color: var(--brand-gold-pressed); }

/* ---------- News filter bar ---------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: .85rem;
  padding: 1.1rem 1.25rem;
}

/* ---------- Single news ---------- */
.article-body p { line-height: 2.1; color: #2b2b2b; margin-bottom: 1.25rem; }
.article-meta { font-size: .85rem; color: #777; }
.share-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--brand-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-charcoal);
  margin-inline-end: .5rem;
}
.share-icons a:hover { background: var(--brand-gold); color: var(--brand-charcoal); border-color: var(--brand-gold); }

/* ---------- Login / OTP Page ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-charcoal) 0%, var(--brand-charcoal-light) 100%);
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.auth-card .auth-head {
  background: var(--brand-charcoal);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--brand-gold);
}
.auth-logo {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-gold);
}
.auth-logo small { display: block; font-size: .7rem; color: var(--brand-text-muted); font-weight: 400; margin-top: .25rem; }
.auth-progress {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.auth-progress .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(201,162,39,.25);
  transition: all .3s;
}
.auth-progress .dot.active { background: var(--brand-gold); width: 26px; border-radius: 6px; }
.auth-progress .dot.done { background: var(--brand-gold-pressed); }
.auth-body { padding: 2rem 1.75rem; }
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.otp-boxes { display: flex; gap: .5rem; justify-content: center; direction: ltr; }
.otp-boxes input {
  width: 46px; height: 54px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1.5px solid #ddd;
  border-radius: .6rem;
}
.otp-boxes input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 .18rem rgba(201,162,39,.2);
  outline: none;
}
.shake { animation: shake .45s; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.otp-timer { font-weight: 700; color: var(--brand-gold-pressed); }
.resend-link.disabled { color: #aaa; pointer-events: none; }
.resend-link { color: var(--brand-gold-pressed); font-weight: 600; cursor: pointer; }

.success-check {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(76,175,80,.12);
  color: var(--brand-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1rem;
  animation: pop .4s ease;
}
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.spinner-btn { display: none; }
.is-loading .spinner-btn { display: inline-block; }
.is-loading .btn-label { display: none; }

.masked-mobile { direction: ltr; display: inline-block; font-weight: 700; color: var(--brand-charcoal); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767.98px) {
  .hero { min-height: 92vh; text-align: center; }
  .stat-box { border-inline-start: none; border-top: 1px solid var(--brand-border); padding-top: 1rem; }
  .stat-box:first-child { border-top: none; }
  .otp-boxes input { width: 40px; height: 48px; font-size: 1.2rem; }
}


/* =========================================================
   Dashboard / Applicant Panel Pages
   ========================================================= */
.page-hero {
    position: relative;
    padding: 3.4rem 0 3rem;
    background: linear-gradient(135deg, var(--brand-charcoal) 0%, var(--brand-charcoal-light) 70%, #363a40 100%);
    border-bottom: 1px solid var(--brand-border);
    overflow: hidden;
}
.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(201,162,39,.08);
    filter: blur(4px);
}
.page-hero::before {
    width: 280px;
    height: 280px;
    top: -90px;
    left: -70px;
}
.page-hero::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    right: -40px;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--brand-border-strong);
    background: rgba(201,162,39,.08);
    color: var(--brand-gold);
    font-size: .85rem;
    font-weight: 700;
}
.page-hero h1 {
    color: var(--brand-text-light);
    font-weight: 800;
    margin: 1rem 0 .75rem;
    line-height: 1.5;
}
.page-hero p {
    color: rgba(248,247,244,.78);
    margin-bottom: 0;
    line-height: 2;
}
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-start;
}
.dashboard-shell {
    padding: 2rem 0 4rem;
}
.metric-card,
.panel-card,
.quick-link-card,
.workflow-card,
.ticket-card,
.form-section-card,
.doc-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(26,27,30,.05);
}
.metric-card {
    padding: 1.2rem;
    height: 100%;
}
.metric-card .metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
}
.metric-card .metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,.12);
    color: var(--brand-gold-pressed);
    font-size: 1.35rem;
}
.metric-card .metric-label {
    color: #7a7a7a;
    font-size: .88rem;
    margin-bottom: .35rem;
}
.metric-card .metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-charcoal);
    line-height: 1.2;
}
.metric-card .metric-meta {
    font-size: .85rem;
    color: #666;
}
.panel-card {
    padding: 1.4rem;
    height: 100%;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.panel-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand-charcoal);
}
.panel-subtitle {
    color: #7c7c7c;
    font-size: .88rem;
    margin: .35rem 0 0;
}
.quick-link-card,
.workflow-card,
.ticket-card,
.doc-card {
    height: 100%;
    padding: 1.25rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-link-card:hover,
.workflow-card:hover,
.ticket-card:hover,
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(26,27,30,.08);
    border-color: var(--brand-border-strong);
}
.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,.12);
    color: var(--brand-gold-pressed);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.quick-link-card h5,
.workflow-card h6,
.ticket-card h6,
.doc-card h6,
.form-section-card h5 {
    font-weight: 800;
    color: var(--brand-charcoal);
}
.quick-link-card p,
.workflow-card p,
.ticket-card p,
.doc-card p,
.form-section-card p,
.notice-list p,
.timeline-text {
    color: #6f6f6f;
    font-size: .9rem;
    line-height: 1.9;
}
.link-arrow,
.inline-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--brand-gold-pressed);
    font-weight: 700;
    font-size: .9rem;
}
.link-arrow:hover,
.inline-link:hover {
    color: var(--brand-gold);
}
.badge-soft-gold,
.badge-soft-success,
.badge-soft-info,
.badge-soft-danger,
.badge-soft-warning,
.badge-soft-secondary {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border-radius: 999px;
    padding: .38rem .7rem;
    font-size: .76rem;
    font-weight: 700;
}
.badge-soft-gold {
    background: rgba(201,162,39,.14);
    color: var(--brand-gold-pressed);
}
.badge-soft-success {
    background: rgba(76,175,80,.12);
    color: #2f7d32;
}
.badge-soft-info {
    background: rgba(13,110,253,.10);
    color: #0b5ed7;
}
.badge-soft-danger {
    background: rgba(220,53,69,.10);
    color: #b02a37;
}
.badge-soft-warning {
    background: rgba(255,193,7,.18);
    color: #9a6b00;
}
.badge-soft-secondary {
    background: rgba(108,117,125,.12);
    color: #586069;
}
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.data-item {
    background: #fffef9;
    border: 1px solid rgba(201,162,39,.2);
    border-radius: .85rem;
    padding: 1rem;
}
.data-label {
    display: block;
    font-size: .82rem;
    color: #7d7d7d;
    margin-bottom: .45rem;
}
.data-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-charcoal);
}
.app-tabs {
    border-bottom: 1px solid var(--brand-border);
    gap: .5rem;
}
.app-tabs .nav-link {
    border: 0;
    border-radius: .9rem .9rem 0 0;
    color: #666;
    font-weight: 700;
    padding: .9rem 1rem;
}
.app-tabs .nav-link.active,
.app-tabs .nav-link:hover {
    background: rgba(201,162,39,.10);
    color: var(--brand-gold-pressed);
}
.table-brand {
    margin-bottom: 0;
    border-color: rgba(201,162,39,.18);
}
.table-brand thead th {
    background: var(--brand-charcoal);
    color: var(--brand-text-light);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    border-color: rgba(255,255,255,.08);
}
.table-brand tbody td {
    vertical-align: middle;
    font-size: .92rem;
}
.table-brand tbody tr:hover {
    background: #fffdf8;
}
.notice-list .notice-item {
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(201,162,39,.25);
}
.notice-list .notice-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.notice-list .notice-item:first-child {
    padding-top: 0;
}
.profile-summary {
    padding: 1.4rem;
    border-radius: 1rem;
    background: linear-gradient(140deg, var(--brand-charcoal), var(--brand-charcoal-light));
    color: var(--brand-text-light);
    border: 1px solid rgba(201,162,39,.22);
    box-shadow: 0 16px 36px rgba(26,27,30,.16);
}
.profile-summary .avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,.14);
    color: var(--brand-gold);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}
.profile-summary h5,
.profile-summary h6 {
    color: var(--brand-text-light);
    font-weight: 800;
}
.progress-brand {
    height: .7rem;
    background: rgba(255,255,255,.08);
}
.progress-brand .progress-bar {
    background: linear-gradient(90deg, var(--brand-gold-pressed), var(--brand-gold));
}
.workflow-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .9rem 0 1.1rem;
}
.ticket-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    color: #767676;
    font-size: .86rem;
}
.ticket-meta i,
.meta-row i {
    color: var(--brand-gold-pressed);
}
.timeline {
    position: relative;
    padding-right: 1.2rem;
}
.timeline::before {
    content: "";
    position: absolute;
    top: .35rem;
    bottom: .35rem;
    right: .3rem;
    width: 2px;
    background: rgba(201,162,39,.24);
}
.timeline-item {
    position: relative;
    padding: 0 1rem 1.4rem 0;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: "";
    position: absolute;
    top: .3rem;
    right: -.05rem;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 0 4px rgba(201,162,39,.12);
}
.timeline-title {
    font-weight: 800;
    color: var(--brand-charcoal);
    margin-bottom: .25rem;
}
.timeline-date {
    font-size: .82rem;
    color: #8b8b8b;
    margin-bottom: .3rem;
}
.doc-card .doc-icon {
    width: 48px;
    height: 48px;
    border-radius: .9rem;
    background: rgba(13,110,253,.08);
    color: #0b5ed7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: .9rem;
}
.form-section-card {
    padding: 1.5rem;
    height: 100%;
}
.form-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.input-group-text {
    border-radius: .6rem;
    border-color: #ddd;
    background: #fffef9;
}
.form-check-input:checked {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}
.form-check-input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 .2rem rgba(201,162,39,.18);
}
.form-switch .form-check-input {
    width: 2.7rem;
}
.form-range::-webkit-slider-thumb {
    background: var(--brand-gold);
}
.form-range::-moz-range-thumb {
    background: var(--brand-gold);
    border: 0;
}
.upload-box {
    border: 1.5px dashed rgba(201,162,39,.55);
    background: #fffef9;
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
}
.upload-box i {
    font-size: 1.6rem;
    color: var(--brand-gold-pressed);
    display: block;
    margin-bottom: .6rem;
}
.helper-list {
    margin: 0;
    padding-right: 1rem;
    color: #6b6b6b;
    line-height: 2;
    font-size: .92rem;
}
.sticky-aside {
    position: sticky;
    top: 92px;
}
.empty-state {
    border: 1px dashed rgba(201,162,39,.4);
    border-radius: 1rem;
    padding: 1.4rem;
    background: #fffefb;
    text-align: center;
}
.empty-state i {
    font-size: 1.7rem;
    color: var(--brand-gold-pressed);
    margin-bottom: .6rem;
}
.summary-strip {
    background: rgba(201,162,39,.09);
    border: 1px solid rgba(201,162,39,.22);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
}
.summary-strip .item-label {
    display: block;
    color: #7d7d7d;
    font-size: .8rem;
}
.summary-strip .item-value {
    display: block;
    margin-top: .15rem;
    color: var(--brand-charcoal);
    font-weight: 800;
}
@media (max-width: 991.98px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    .sticky-aside {
        position: static;
    }
}
@media (max-width: 767.98px) {
    .page-hero {
        padding: 2.5rem 0;
    }
    .page-actions {
        justify-content: stretch;
    }
    .page-actions .btn {
        width: 100%;
    }
    .panel-head,
    .form-section-head {
        align-items: flex-start;
    }
}
