
.font-display { font-family: 'Fraunces', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', 'SFMono-Regular', monospace; }
a { text-decoration: none; }
::selection { background: #F3E9D3; color: #0A1730; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 2px solid #B8924B;
  outline-offset: 2px;
}

/* ==========================================================================
   DEMO site header + footer
   (Placeholder only â€” replace with your real Taxless.in header/footer markup.
    The important, reusable piece is the "User Menu" component below.)
   ========================================================================== */

.site-header {
  background: linear-gradient(165deg, #10213B 0%, #0A1730 100%);
  border-bottom: 1px solid #E4E7EC;
  height: 68px;
  display: flex;
  align-items: center;
}

.site-header .container-xl { display: flex; align-items: center; justify-content: center; width: 100%; }

.site-brand { display: flex; align-items: center; gap: 10px; }

.site-brand .seal {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid #B8924B;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.site-brand .seal::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(184,146,75,0.35); border-radius: 50%;
}
.site-brand .seal span {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 14px; color: #9C7A3C;
}
.site-brand .site-name {
  font-family: 'Fraunces', serif; color: #10213B; font-size: 17px; font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a.site-link {
  color: #5A6578;
  font-size: 13.5px;
  font-weight: 500;
}
.site-nav a.site-link:hover { color: #10213B; }
.site-nav a.site-link.active { color: #9C7A3C; }

.site-footer {
  background: linear-gradient(165deg, #10213B 0%, #0A1730 100%);
  border-top: 1px solid #E4E7EC;
  color: #8792A6;
  font-size: 12.5px;
  padding: 26px 0;
  margin-top: 48px;
}
.site-footer a { color: #5A6578; }
.site-footer a:hover { color: #9C7A3C; }

/* ==========================================================================
   USER MENU component
   The reusable piece: drop this markup into your existing header's nav area.
   Shows avatar + name, opens a dropdown with My Requests / Change Password / Logout.
   ========================================================================== */

.user-menu { position: relative; }

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #F5F6F8;
  border: 1px solid #E4E7EC;
  border-radius: 30px;
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.user-menu-toggle:hover,
.user-menu-toggle[aria-expanded="true"] {
  background: #FAF5E9;
  border-color: #C9A662;
}

.user-menu-toggle .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #10213B;
  border: 1px solid #C9A662;
  color: #C9A662;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.user-menu-toggle .u-name {
  color: #16213A;
  font-size: 13.5px;
  font-weight: 600;
}

.user-menu-toggle .chevron {
  color: #8792A6;
  font-size: 10px;
  transition: transform 0.15s ease;
}

.user-menu-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 33, 59, 0.14);
  padding: 8px;
  z-index: 1050;
  display: none;
}

.user-menu-panel.show { display: block; }

.user-menu-panel .panel-head {
  padding: 12px 12px 12px;
  border-bottom: 1px solid #ECEEF2;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu-panel .panel-head .avatar-lg {
  width: 38px; height: 38px; border-radius: 50%;
  background: #FAF5E9;
  border: 1px solid #C9A662;
  color: #9C7A3C;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
}

.user-menu-panel .panel-head .p-name {
  font-size: 13.5px; font-weight: 600; color: #16213A;
}
.user-menu-panel .panel-head .p-sub {
  font-size: 11.5px; color: #8792A6;
}

.user-menu-panel .panel-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #364058;
  transition: background 0.12s ease, color 0.12s ease;
}

.user-menu-panel .panel-link i { width: 17px; text-align: center; color: #8792A6; font-size: 15px; }

.user-menu-panel .panel-link:hover {
  background: #FAF5E9;
  color: #16213A;
}
.user-menu-panel .panel-link:hover i { color: #9C7A3C; }

.user-menu-panel .panel-link.active {
  background: #FAF5E9;
  color: #16213A;
}
.user-menu-panel .panel-link.active i { color: #9C7A3C; }

.user-menu-panel .panel-divider {
  height: 1px;
  background: #ECEEF2;
  margin: 6px 4px;
}

.user-menu-panel .panel-link.logout { color: #B23A2A; }
.user-menu-panel .panel-link.logout i { color: #B23A2A; }
.user-menu-panel .panel-link.logout:hover { background: #FAEAE7; }

.user-menu-badge {
  background: #B8924B;
  color: #0A1730;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: auto;
}

/* ==========================================================================
   Portal page shell (content that sits between your header and footer)
   ========================================================================== */

.portal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 8px;
  min-height: 500px;
}

.portal-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.portal-pagehead .breadcrumb-eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8792A6;
  font-weight: 600;
  margin-bottom: 3px;
}
.portal-pagehead .breadcrumb-eyebrow a { color: #8792A6; }
.portal-pagehead .breadcrumb-eyebrow a:hover { color: #9C7A3C; }

.portal-pagehead .page-title {
  font-family: 'Fraunces', serif;
  font-size: 23px;
  font-weight: 600;
  color: #16213A;
}

/* Horizontal portal sub-nav (replaces sidebar) */
.portal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #E4E7EC;
  margin-bottom: 24px;
  overflow-x: auto;
}

.portal-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #8792A6;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.portal-tabs a i { font-size: 15px; }

.portal-tabs a:hover { color: #364058; }

.portal-tabs a.active {
  color: #10213B;
  border-bottom-color: #B8924B;
}

.portal-tabs a .nav-badge {
  background: #B8924B;
  color: #0A1730;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

/* ==========================================================================
   Cards / KPI
   ========================================================================== */

.card-premium {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 33, 59, 0.04), 0 1px 12px rgba(16, 33, 59, 0.05);
}

.card-premium .card-header-plain {
  padding: 10px 22px;
  border-bottom: 1px solid #ECEEF2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-plain .h-title {
  font-family: 'Fraunces', serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #16213A;
}

.card-header-plain .h-sub {
  font-size: 12.5px;
  color: #8792A6;
  margin-top: 2px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 33, 59, 0.04), 0 1px 12px rgba(16, 33, 59, 0.05);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.kpi-card .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}

.kpi-card .kpi-value {
  font-family: 'Fraunces', serif;
  font-size: 27px;
  font-weight: 600;
  color: #16213A;
  line-height: 1;
}

.kpi-card .kpi-label {
  font-size: 12.5px;
  color: #8792A6;
  margin-top: 6px;
  font-weight: 500;
}

.kpi-card .kpi-trend {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
}

.icon-gold { background: #FAF5E9; color: #9C7A3C; }
.icon-success { background: #E7F4EE; color: #1F8A5F; }
.icon-warning { background: #FBF0DF; color: #B4711A; }
.icon-info { background: #E9F1F8; color: #2B5F8A; }

/* ==========================================================================
   Ledger table (requests list)
   ========================================================================== */

.table-ledger { width: 100%; border-collapse: separate; border-spacing: 0; }

.table-ledger thead th {
  font-size: 10.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #8792A6;
  font-weight: 700;
  padding: 12px 22px;
  border-bottom: 1px solid #E4E7EC;
  white-space: nowrap;
}

.table-ledger tbody td {
  padding: 15px 22px;
  border-bottom: 1px solid #ECEEF2;
  vertical-align: middle;
  color: #364058;
}

.table-ledger tbody tr:last-child td { border-bottom: none; }
.table-ledger tbody tr { transition: background 0.12s ease; }
.table-ledger tbody tr:hover { background: #FBFBFC; }

.ref-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #16213A;
  font-weight: 600;
}

.req-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #FAF5E9;
  color: #9C7A3C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  margin-right: 12px;
}

.req-title { font-weight: 600; color: #16213A; font-size: 13.5px; }
.req-sub { font-size: 12px; color: #8792A6; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.stamp .dot { width: 6px; height: 6px; border-radius: 50%; }

.stamp-approved { background: #E7F4EE; color: #1F8A5F; border-color: rgba(31,138,95,0.18); }
.stamp-approved .dot { background: #1F8A5F; }

.stamp-review { color: #2e2e2d; border-color: rgba(180,113,26,0.2); }
.stamp-pending { background: #E9F1F8; color: #2B5F8A; border-color: rgba(43,95,138,0.18); }
.stamp-pending .dot { background: #2B5F8A; }

.stamp-rejected { background: #FAEAE7; color: #B23A2A; border-color: rgba(178,58,42,0.18); }
.stamp-rejected .dot { background: #B23A2A; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gold {
  background: linear-gradient(180deg, #C9A662, #9C7A3C);
  border: 1px solid #9C7A3C;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(156,122,60,0.3);
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn-gold:hover { filter: brightness(1.06); color: #fff; }
.btn-gold:active { transform: translateY(1px); }

.btn-outline-ink {
  background: transparent;
  border: 1px solid #E4E7EC;
  color: #364058;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 7px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-outline-ink:hover { border-color: #172B4D; background: #F5F6F8; color: #16213A; }

.btn-ghost-sm {
  background: transparent;
  border: none;
  color: #8792A6;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 7px;
}
.btn-ghost-sm:hover { background: #F5F6F8; color: #364058; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-label-premium {
  font-size: 12.5px;
  font-weight: 600;
  color: #364058;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.form-control-premium {
  border: 1px solid #E4E7EC;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 14px;
  color: #16213A;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control-premium:focus { border-color: #B8924B; box-shadow: 0 0 0 3px #FAF5E9; outline: none; }

.form-hint { font-size: 12px; color: #8792A6; margin-top: 6px; }

.input-group-premium { position: relative; }
.input-group-premium .toggle-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #8792A6; cursor: pointer; background: none; border: none; font-size: 15px;
}

.strength-bar { display: flex; gap: 5px; margin-top: 10px; }
.strength-bar .seg { height: 4px; flex: 1; border-radius: 3px; background: #E4E7EC; transition: background 0.2s ease; }

/* ==========================================================================
   Timeline (request details)
   ========================================================================== */

.rt-timeline { position: relative; padding-left: 6px; }

.rt-timeline .rt-item {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 1.5px solid #E4E7EC;
  margin-left: 12px;
}
.rt-timeline .rt-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.rt-timeline .rt-dot {
  position: absolute; left: -12.5px; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #E4E7EC;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #8792A6;
}

.rt-timeline .rt-item.is-done .rt-dot { border-color: #1F8A5F; color: #1F8A5F; background: #E7F4EE; }
.rt-timeline .rt-item.is-current .rt-dot { border-color: #B8924B; color: #9C7A3C; background: #FAF5E9; }

.rt-item .rt-title { font-weight: 600; font-size: 13.5px; color: #16213A; }
.rt-item .rt-meta { font-size: 12px; color: #8792A6; margin-top: 2px; }
.rt-item .rt-note {
  font-size: 13px; color: #5A6578; margin-top: 6px;
  background: #F5F6F8; border: 1px solid #ECEEF2; border-radius: 8px; padding: 10px 13px;
}

.meta-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #ECEEF2; font-size: 13.5px; }
.meta-row:last-child { border-bottom: none; }
.meta-row .meta-label { color: #8792A6; }
.meta-row .meta-value { color: #16213A; font-weight: 600; }

.doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ECEEF2;
  border-radius: 7px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.doc-row:hover { border-color: #C9A662; }

.doc-row .doc-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #FAEAE7; color: #B23A2A;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

.doc-row .doc-name { font-size: 13px; font-weight: 600; color: #16213A; }
.doc-row .doc-meta { font-size: 11.5px; color: #8792A6; }

/* ==========================================================================
   Misc
   ========================================================================== */

.divider-label {
  display: flex; align-items: center; gap: 12px;
  color: #8792A6; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 600; margin: 4px 0 18px;
}
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: #E4E7EC; }

.pagination-premium .page-link { border: 1px solid #E4E7EC; color: #5A6578; font-size: 13px; margin: 0 3px; border-radius: 7px; }
.pagination-premium .page-item.active .page-link { background: #10213B; border-color: #10213B; color: #fff; }

.filter-pill { border: 1px solid #E4E7EC; background: #FFFFFF; border-radius: 20px; padding: 7px 15px; font-size: 12.5px; font-weight: 600; color: #5A6578; }
.filter-pill.active { background: #10213B; border-color: #10213B; color: #fff; }

.progress-premium { height: 6px; border-radius: 4px; background: #ECEEF2; overflow: hidden; }
.progress-premium .bar { height: 100%; background: linear-gradient(90deg, #C9A662, #9C7A3C); border-radius: 4px; }

@media (max-width: 767.98px) {
  .site-nav .site-link { display: none; }
  .portal-shell { padding: 20px 14px 8px; }
  .user-menu-toggle .u-name { display: none; }
}

/* ==========================================================================
   Login / Auth
   ========================================================================== */

.auth-wrap {
  min-height: calc(100vh - 68px - 90px);
  display: flex;
  align-items: stretch;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(16, 33, 59, 0.04), 0 1px 12px rgba(16, 33, 59, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 40px;
}

.auth-panel-brand {
  background: linear-gradient(165deg, #10213B 0%, #0A1730 100%);
  color: #fff;
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-panel-brand::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(201,166,98,0.14);
  right: -140px;
  bottom: -140px;
}
.auth-panel-brand::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(201,166,98,0.14);
  right: -80px;
  bottom: -80px;
}

.auth-brand-seal {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #C9A662;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 26px;
}
.auth-brand-seal::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(201,166,98,0.45); border-radius: 50%;
}
.auth-brand-seal span {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: #C9A662;
}

.auth-panel-brand h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.28;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.auth-panel-brand .lede {
  color: rgba(244,245,247,0.65);
  font-size: 14px;
  margin-top: 12px;
  max-width: 340px;
  position: relative;
  z-index: 1;
}

.auth-features {
  position: relative;
  z-index: 1;
  margin-top: 34px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.auth-feature:first-child { border-top: none; }

.auth-feature .af-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(201,166,98,0.12);
  border: 1px solid rgba(201,166,98,0.3);
  color: #C9A662;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.auth-feature .af-title { color: #fff; font-size: 13.5px; font-weight: 600; }
.auth-feature .af-sub { color: rgba(244,245,247,0.5); font-size: 12px; margin-top: 1px; }

.auth-panel-form {
  background: #FFFFFF;
  padding: 46px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-head { margin-bottom: 28px; }

.auth-form-head .eyebrow {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9C7A3C;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-form-head h1 {
  font-family: 'Fraunces', serif;
  font-size: 25px;
  font-weight: 600;
  color: #16213A;
}

.auth-form-head p {
  color: #8792A6;
  font-size: 13.5px;
  margin-top: 4px;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.auth-remember .form-check-input {
  border-color: #E4E7EC;
}
.auth-remember .form-check-input:checked {
  background-color: #B8924B;
  border-color: #9C7A3C;
}
.auth-remember label {
  font-size: 13px;
  color: #5A6578;
}
.auth-remember a {
  font-size: 13px;
  color: #9C7A3C;
  font-weight: 600;
}
.auth-remember a:hover { text-decoration: underline; }

.auth-signup-line {
  text-align: center;
  font-size: 13.5px;
  color: #5A6578;
  margin-top: 22px;
}
.auth-signup-line a { color: #9C7A3C; font-weight: 600; }
.auth-signup-line a:hover { text-decoration: underline; }

.auth-secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 11.5px;
  color: #8792A6;
  margin-top: 24px;
}
.auth-secure-note i { color: #1F8A5F; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; margin-top: 0; margin-bottom: 0; border-radius: 0; box-shadow: none; }
  .auth-panel-brand { display: none; }
  .auth-panel-form { padding: 40px 22px; }
}