/* =========================================================
   Chinnar Business Advisors — Global Styles
   Design language inspired by calculatemytax.pk
   ========================================================= */
/* Fonts (Inter + Poppins) are loaded with <link> tags in each page <head> (faster than @import). */

:root {
  /* Brand: mustard gold · charcoal grey · white (from the Chinnar logo) */
  --gold: #FAAB35;          /* logo leaf gold — fills, buttons, accents on dark */
  --gold-light: #FFC864;    /* highlights on charcoal */
  --mustard: #D99A1E;       /* icons / borders / bars on white */
  --gold-text: #94650C;     /* readable gold text on white (AA) */
  --gold-tint: #FEF7E8;     /* soft gold background */
  --charcoal: #2E3236;
  --charcoal-2: #464B51;
  --charcoal-dark: #1F2225;
  --primary: var(--charcoal);
  --primary-light: var(--mustard);
  --primary-dark: var(--charcoal-dark);
  --accent: var(--gold);
  --accent-light: var(--gold-light);
  --on-gold: #1F2225;       /* text on gold backgrounds */
  --background: #F7F7F5;
  --card-bg: #FFFFFF;
  --text: #2A2D31;
  --text-strong: #1C1E21;
  --text-muted: #6E7176;
  --border: #E6E5E2;
  --radius: 16px;
  --shadow: 0 4px 14px rgba(0, 0, 0, .06);
  --shadow-lg: 0 14px 34px rgba(31, 34, 37, .12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--charcoal); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.25; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: #17191B;
  color: #9B9D9F;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #CDCDC9; }
.topbar a:hover { color: var(--accent-light); }
.topbar-items { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  transition: background .3s ease;
}
.navbar.scrolled { background: rgba(31, 34, 37, .95); backdrop-filter: blur(10px); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(217, 154, 30, .35);
}
.brand-logo { height: 46px; width: auto; display: block; }
footer .brand-logo { height: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; }
.brand-text small { font-size: .7rem; letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent-light); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #E6E5E2; font-weight: 500; font-size: .95rem;
  padding: .55rem .95rem; border-radius: 8px; position: relative; transition: .2s;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-links a:hover { color: var(--gold-light); background: rgba(250, 171, 53, .1); }
.nav-links a.active { color: var(--accent-light); background: rgba(250, 171, 53, .1); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--accent-light);
}
.nav-cta { margin-left: .6rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; border-radius: 8px; padding: 6px 9px; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; font-family: var(--font); cursor: pointer;
  transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: .5rem 1rem; font-size: .85rem; border-radius: 8px; }
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: var(--gold); color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(250, 171, 53, .35); }
.btn-accent { background: var(--gold); color: var(--on-gold); }
.btn-accent:hover { background: #F09A1A; color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(250, 171, 53, .35); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-outline { border-color: var(--mustard); color: var(--gold-text); background: transparent; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #17191B 0%, #2E3236 58%, #3F444A 100%);
  border-bottom: 4px solid var(--gold);
  color: #fff; padding: 90px 0 110px;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5;
}
.hero::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(250, 171, 53, .45), transparent 70%); top: -120px; right: -100px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, rgba(250, 171, 53, .28), transparent 70%); bottom: -160px; left: -80px; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(250, 171, 53, .15); border: 1px solid rgba(255, 200, 100, .4);
  color: var(--accent-light); padding: .4rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 1.3rem;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 4px rgba(255, 200, 100, .25); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 100, .5); } 50% { box-shadow: 0 0 0 7px rgba(255, 200, 100, 0); } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 1.1rem; }
.hero h1 .hl { background: linear-gradient(90deg, #FAAB35, #FFD27A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.13rem; color: #CDCDC9; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 560px; }
.hero-stat { border-left: 2px solid rgba(255, 200, 100, .5); padding-left: .85rem; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; }
.hero-stat span { font-size: .8rem; color: #9B9D9F; }

/* Hero card mock */
.hero-card {
  background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 20px;
  padding: 1.6rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative;
}
.hero-card h4 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.hero-card .sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.check-row { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .6rem; font-size: .9rem; font-weight: 500; }
.check-row .ok { width: 26px; height: 26px; border-radius: 50%; background: #FCEBC4; color: #B97E0E; display: grid; place-items: center; }
.check-row .pending { background: #FEF3C7; color: #D97706; }
.check-row .tag { margin-left: auto; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #FCEBC4; color: #8C5E08; }
.check-row .tag.wait { background: #FEF3C7; color: #B45309; }
.progress-wrap { margin-top: 1rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.progress { height: 8px; border-radius: 99px; background: #E6E5E2; overflow: hidden; }
.progress span { display: block; height: 100%; width: 82%; border-radius: 99px; background: linear-gradient(90deg, var(--mustard), var(--gold-light)); }
.float-chip {
  position: absolute; background: #fff; border-radius: 14px; padding: .7rem 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25); display: flex; align-items: center; gap: .65rem;
  font-size: .82rem; font-weight: 600; color: var(--text-strong); animation: floaty 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--text-muted); font-size: .72rem; }
.float-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.chip-1 { top: -22px; right: -18px; }
.chip-1 .ic { background: linear-gradient(135deg, #FFC864, #E39A22); color: var(--on-gold); }
.chip-2 { bottom: -48px; left: -26px; animation-delay: 1.5s; }
.chip-2 .ic { background: linear-gradient(135deg, #464B51, #1F2225); color: var(--gold); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.trust-strip p { margin: 0; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.trust-logos { display: flex; gap: 2.2rem; flex-wrap: wrap; align-items: center; }
.trust-logos span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #6C7075; font-size: .95rem; letter-spacing: .3px; }
.trust-logos span .icon { color: var(--primary-light); }

/* ---------- Sections ---------- */
section.block { padding: 90px 0; }
section.block.alt { background: #fff; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.2rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-text); background: rgba(250, 171, 53, .14); padding: .35rem .9rem; border-radius: 999px; margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: .25s ease; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0, 0, 0, .10); border-color: #F3DCA8; }
.service-card .svc-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, #464B51, var(--charcoal-dark)); color: var(--gold);
  box-shadow: 0 8px 18px rgba(31, 34, 37, .25);
}
.service-card:nth-child(3n+2) .svc-icon { color: var(--on-gold); background: linear-gradient(135deg, #FFC864, #E39A22); box-shadow: 0 8px 18px rgba(250, 171, 53, .3); }
.service-card:nth-child(3n) .svc-icon { color: var(--charcoal); background: #fff; border: 2px solid var(--gold); box-shadow: 0 8px 18px rgba(250, 171, 53, .2); }
.service-card h3 { font-size: 1.15rem; font-weight: 600; }
.service-card p { color: var(--text-muted); font-size: .93rem; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.service-card li { font-size: .87rem; color: #3B3F44; display: flex; align-items: center; gap: .5rem; padding: .18rem 0; }
.service-card li .icon { color: var(--mustard); }
.link-arrow { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--gold-text); }
.link-arrow:hover { gap: .6rem; }
.link-arrow .icon { transition: .2s; }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; align-items: start; }
.calc-card { padding: 2rem; }
.calc-card:hover { transform: none; }
.calc-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.calc-card h3 .icon { color: var(--primary-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .87rem; margin-bottom: .4rem; color: #3B3F44; }
.form-control {
  width: 100%; padding: .78rem 1rem; border: 2px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: var(--font); background: #fff; color: var(--text); transition: .2s;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(217, 154, 30, .12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.toggle-group { display: grid; grid-template-columns: 1fr 1fr; background: #F1F1EF; border-radius: 10px; padding: 4px; }
.toggle-group button {
  border: 0; background: transparent; padding: .6rem; border-radius: 8px; font-weight: 600; font-family: var(--font);
  color: var(--text-muted); cursor: pointer; transition: .2s; font-size: .9rem;
}
.toggle-group button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.result-box {
  margin-top: 1.4rem; border-radius: 14px; overflow: hidden; border: 1px solid #FAEBCB;
}
.result-box .rb-head { background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; padding: .9rem 1.2rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.result-box .rb-head span { font-size: .8rem; opacity: .85; font-weight: 500; }
.result-row { display: flex; justify-content: space-between; padding: .7rem 1.2rem; border-bottom: 1px solid #FEF7E8; font-size: .93rem; }
.result-row:nth-child(even) { background: #F7F7F5; }
.result-row strong { color: var(--text-strong); }
.result-row.total { background: #FFF6E3 !important; }
.result-row.total strong { color: #8C5E08; font-size: 1.05rem; }
.slab-card h4 { font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; }
.slab-list { list-style: none; padding: 0; margin: 0; }
.slab-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; padding: .62rem 0; border-bottom: 1px dashed var(--border); }
.slab-list li:last-child { border-bottom: 0; }
.slab-list li b { color: var(--primary); white-space: nowrap; }
.note { font-size: .78rem; color: var(--text-muted); background: #F7F7F5; border-left: 3px solid var(--gold); padding: .6rem .8rem; border-radius: 6px; margin-top: 1rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.why-visual {
  background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); border-radius: 24px; padding: 2.4rem; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.why-visual::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); top: -80px; right: -80px; }
.why-visual h3 { color: #fff; font-size: 1.5rem; }
.why-visual p { color: #DCDCD8; }
.why-visual { border-top: 4px solid var(--gold); }
.why-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.why-kpi { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 1.1rem; }
.why-kpi strong { font-family: var(--font-head); font-size: 1.8rem; display: block; color: var(--gold); }
.why-kpi span { font-size: .82rem; color: #CDCDC9; }
.feature-list { display: grid; gap: 1.1rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border-radius: 14px; transition: .2s; }
.feature:hover { background: #fff; box-shadow: var(--shadow); }
.feature .f-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(250, 171, 53, .12); color: #B97E0E; font-size: 1.3rem; flex-shrink: 0; }
.feature h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.step { text-align: center; padding: 1.8rem 1.3rem; }
.step .num {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--primary);
  background: #FEF7E8; border: 2px dashed #F0C674;
}
.step h4 { font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Blog cards (shared with blog page) ---------- */
.blog-card { background: #fff; padding: 1.4rem; border-radius: 14px; box-shadow: var(--shadow); transition: .25s ease; border: 1px solid var(--border); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0, 0, 0, .10); }
.blog-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-strong); margin-top: .3rem; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--gold-text); }
.blog-meta { font-size: .83rem; color: var(--text-muted); margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.blog-meta .icon { color: var(--primary-light); }
.blog-snippet { color: #3B3F44; font-size: .93rem; flex: 1; }
.thumb {
  position: relative; border-radius: 10px; margin-bottom: 1rem; aspect-ratio: 16 / 8; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.1rem; color: #fff;
}
.thumb::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 16px 16px; }
.thumb .thumb-ic { position: absolute; right: 1rem; top: 1rem; width: 70px; height: 70px; opacity: .25; }
.thumb .thumb-title { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; max-width: 78%; text-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.thumb .thumb-tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.t-blue { background: linear-gradient(135deg, #1F2225, #464B51); }
.t-green { background: linear-gradient(135deg, #8C5E08, #E39A22); }
.t-purple { background: linear-gradient(135deg, #3B3F44, #6C7075); }
.t-amber { background: linear-gradient(135deg, #B97E0E, #FAAB35); }
.t-slate { background: linear-gradient(135deg, #1F2225, #4D5257); }
.t-rose { background: linear-gradient(135deg, #2E3236, #8C5E08); }
.t-teal { background: linear-gradient(135deg, #17191B, #2E3236 55%, #B97E0E); }

/* ---------- Testimonials ---------- */
.testi { padding: 1.8rem; }
.stars { color: var(--gold); display: flex; gap: 2px; margin-bottom: .8rem; }
.testi blockquote { margin: 0 0 1.2rem; color: #3B3F44; font-size: .96rem; font-style: italic; }
.testi-user { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); }
.testi-user strong { display: block; font-size: .95rem; color: var(--text-strong); }
.testi-user span { font-size: .8rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .8rem; overflow: hidden; transition: .2s; }
.faq-item.open { border-color: #F0C674; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--text-strong);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .icon { transition: transform .25s; color: var(--primary-light); width: 20px; height: 20px; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; border-radius: 22px;
  padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg); border-left: 6px solid var(--gold);
}
.cta-band::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(250, 171, 53, .25); filter: blur(30px); right: -60px; top: -120px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.cta-band p { color: #DCDCD8; margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.6rem; }
.contact-info { background: var(--primary-dark); color: #CDCDC9; border-radius: var(--radius); padding: 2.2rem; position: relative; overflow: hidden; }
.contact-info::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 171, 53, .30), transparent 70%); bottom: -80px; right: -80px; }
.contact-info h3 { color: #fff; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.3rem; position: relative; z-index: 1; }
.ci-item .ci-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(250, 171, 53, .15); color: var(--gold); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.ci-item strong { color: #fff; display: block; font-size: .95rem; }
.ci-item span, .ci-item a { font-size: .9rem; color: #CDCDC9; }
.form-success { display: none; background: #FFF6E3; border: 1px solid #F6D58E; color: #8C5E08; padding: .9rem 1rem; border-radius: 10px; margin-top: 1rem; font-size: .92rem; font-weight: 500; }

/* ---------- Page hero (blog etc.) ---------- */
.page-wrap { padding: 2.2rem 0 4rem; }
.page-hero {
  background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; padding: 2.8rem;
  border-radius: 16px; text-align: center; margin-bottom: 2.5rem; position: relative; overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 0%, rgba(250, 171, 53, .30), transparent 45%), radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: auto, 20px 20px; }
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .4rem; }
.page-hero p { color: #DCDCD8; margin: 0; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: var(--gold-light); margin-bottom: .8rem; display: flex; gap: .4rem; justify-content: center; align-items: center; }
.breadcrumb a { color: #fff; }

.blog-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.blog-list { display: grid; gap: 1.5rem; }
.blog-list .blog-card .thumb { aspect-ratio: 16 / 5.2; }
.blog-list .blog-card h3 { font-size: 1.3rem; }
.featured-badge { display: inline-flex; align-items: center; gap: .3rem; background: #FEF3C7; color: #B45309; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.sidebar { position: sticky; top: 92px; }
.sidebar-box { background: #fff; padding: 1.4rem; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 1.5rem; border: 1px solid var(--border); }
.sidebar-box h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.sidebar-box h5 .icon { color: var(--primary-light); }
.input-group { display: flex; }
.input-group .form-control { border-radius: 10px 0 0 10px; border-right: 0; }
.input-group .btn { border-radius: 0 10px 10px 0; padding: 0 1rem; }
.category-link {
  display: inline-block; padding: 5px 12px; background: #e6e5e2; color: #3B3F44; border-radius: 999px;
  font-size: .8rem; margin: 0 4px 8px 0; transition: .2s; cursor: pointer; border: 0; font-family: var(--font); font-weight: 500;
}
.category-link:hover, .category-link.active { background: var(--gold); color: var(--on-gold); }
.popular-item { display: flex; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: 0; }
.popular-item .pi-num { width: 34px; height: 34px; border-radius: 10px; background: #FEF7E8; color: var(--primary-light); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; }
.popular-item a { color: var(--text-strong); font-weight: 600; font-size: .88rem; line-height: 1.35; }
.popular-item a:hover { color: var(--gold-text); }
.popular-item small { display: block; color: var(--text-muted); font-size: .75rem; }
.side-cta { background: linear-gradient(135deg, #1F2225, #2E3236); color: #CDCDC9; border: 0; }
.side-cta h5 { color: #fff; }
.side-cta p { font-size: .9rem; }
.newsletter .form-control { margin-bottom: .7rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: 14px; border: 1px dashed #CDCDC9; color: var(--text-muted); display: none; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.pagination button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 600; cursor: pointer; color: var(--text); font-family: var(--font); }
.pagination button.active, .pagination button:hover { background: var(--gold); color: var(--on-gold); border-color: var(--primary-light); }

/* ---------- Article ---------- */
.article { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 2.2rem; }
.article .thumb { aspect-ratio: 16 / 6; }
.article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article h2 { font-size: 1.4rem; margin-top: 2rem; padding-bottom: .5rem; border-bottom: 2px solid #FEF7E8; }
.article h3 { font-size: 1.12rem; margin-top: 1.5rem; }
.article p, .article li { color: #3B3F44; font-size: 1rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .4rem; }
.article table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem; overflow: hidden; border-radius: 10px; }
.article th { background: var(--primary); color: #fff; text-align: left; padding: .75rem; font-weight: 600; }
.article td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); }
.article tr:nth-child(even) td { background: #F7F7F5; }
.callout { background: #FEF7E8; border-left: 4px solid var(--primary-light); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.3rem 0; color: #2E3236; font-size: .95rem; }
.callout.green { background: #FFF6E3; border-color: var(--accent); color: #7A5208; }
.author-box { display: flex; gap: 1rem; align-items: center; background: #F7F7F5; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; margin-top: 2rem; }
.share-row { display: flex; gap: .5rem; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; font-size: .9rem; color: var(--text-muted); }
.share-row a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #F1F1EF; color: var(--text); }
.share-row a:hover { background: var(--gold); color: var(--on-gold); }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
footer { background: var(--primary-dark); color: #CDCDC9; padding: 4rem 0 0; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-column h5 { color: #fff; font-size: 1.05rem; position: relative; padding-bottom: .7rem; margin-bottom: 1.2rem; }
.footer-column h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer-column p { font-size: .9rem; color: #9B9D9F; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #CDCDC9; font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; transition: .2s; }
.footer-links a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-links a .icon { width: 12px; height: 12px; color: var(--accent); }
.socials { display: flex; gap: .55rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: #CDCDC9; transition: .2s; }
.socials a:hover { background: var(--gold); color: var(--on-gold); transform: translateY(-3px); }
.footer-contact li { display: flex; gap: .7rem; font-size: .9rem; margin-bottom: .85rem; align-items: flex-start; }
.footer-contact .icon { color: var(--accent-light); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding: 1.3rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #9B9D9F; }
.footer-bottom a { color: #CDCDC9; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- WhatsApp float & back to top ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999; display: flex; align-items: center; gap: .55rem;
  background: #25D366; color: #fff; padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: .25s;
}
.wa-float:hover { transform: translateY(-3px); color: #fff; }
.wa-float svg { width: 22px; height: 22px; }
.to-top {
  position: fixed; right: 26px; bottom: 86px; z-index: 998; width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .25s; box-shadow: var(--shadow-lg);
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }


/* =========================================================
   Calculators dropdown
   ========================================================= */
.dropdown { position: relative; }
.dropdown-toggle .dd-caret { width: 14px; height: 14px; transition: transform .25s; }
.dropdown:hover .dd-caret, .dropdown.open .dd-caret, .dropdown:focus-within .dd-caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 290px;
  background: #fff; border-radius: 16px; padding: .55rem;
  box-shadow: 0 24px 50px rgba(31, 34, 37, .22), 0 0 0 1px rgba(31, 34, 37, .05);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: all .22s ease; z-index: 1100;
}
.dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.dropdown-menu::after {
  content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: #fff;
  transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-links .dropdown-menu a.dropdown-item {
  display: flex; align-items: center; gap: 1rem; padding: .78rem 1rem; border-radius: 10px;
  color: #2A2D31; font-weight: 500; font-size: 1.02rem; background: transparent; position: relative; z-index: 1;
}
.nav-links .dropdown-menu a.dropdown-item::after { display: none; }
.dropdown-item .dd-ic { width: 21px; height: 21px; color: #2E3236; transition: transform .2s; }
.nav-links .dropdown-menu a.dropdown-item:hover { background: #FEF7E8; color: #2E3236; }
.nav-links .dropdown-menu a.dropdown-item:hover .dd-ic { transform: scale(1.12); color: var(--primary-light); }
.nav-links .dropdown-menu a.dropdown-item.current { background: #FEF7E8; color: #2E3236; font-weight: 600; }
.nav-links .dropdown-menu a.dropdown-all {
  display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .35rem; padding: .7rem;
  border-top: 1px solid #E6E5E2; border-radius: 0 0 10px 10px; font-size: .88rem; font-weight: 600; color: var(--gold-text); background: transparent;
}
.nav-links .dropdown-menu a.dropdown-all:hover { background: #F7F7F5; }

/* =========================================================
   Calculator pages
   ========================================================= */
.calc-hero .calc-hero-ic {
  width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); font-size: 1.9rem; color: #fff;
}
.hero-badges { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; background: rgba(255, 255, 255, .14); padding: .35rem .85rem; border-radius: 999px; color: #fff; }
.calc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.calc-card-head h3 { margin: 0; }
.btn-ghost { background: #F1F1EF; color: var(--text); }
.btn-ghost:hover { background: #E4E4E1; }
.input-wrap { position: relative; }
.input-wrap.has-prefix .form-control { padding-left: 3rem; }
.input-prefix {
  position: absolute; left: 1px; top: 1px; bottom: 1px; width: 2.6rem; display: grid; place-items: center;
  font-size: .85rem; font-weight: 600; color: var(--text-muted); border-right: 1px solid var(--border); border-radius: 9px 0 0 9px; background: #F7F7F5; margin: 1px;
}
.hint { display: block; font-size: .76rem; color: var(--text-muted); margin-top: .3rem; }
.form-section { border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.1rem .2rem; margin-bottom: 1rem; background: #FFFDF9; }
.fs-title { font-weight: 700; font-size: .92rem; color: var(--primary); display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-family: var(--font-head); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .1rem 0 1rem; }
.chips button { border: 1px solid #FAEBCB; background: #FEF7E8; color: var(--primary); font-weight: 600; font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; cursor: pointer; font-family: var(--font); transition: .2s; }
.chips button:hover { background: var(--gold); color: var(--on-gold); border-color: var(--primary-light); }
.check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #3B3F44; margin: .2rem 0 1.2rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary-light); }
.rb-big { padding: 1.2rem; text-align: center; background: linear-gradient(180deg, #FEF7E8, #fff); border-bottom: 1px solid #FAEBCB; }
.rb-big small { display: block; font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.rb-big strong { font-family: var(--font-head); font-size: 2rem; color: var(--primary); }
.result-row.highlight { background: #FFFBEB !important; }
.result-row.highlight strong { color: #B45309; }
.callout { display: block; }
.callout .icon { margin-right: .3rem; }
.callout.amber { background: #FFFBEB; border-color: var(--gold); color: #92400E; }
.split-wrap { margin-top: 1.2rem; }
.split-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #E6E5E2; }
.split-bar span { display: block; height: 100%; transition: width .5s ease; }
.sb-net { background: linear-gradient(90deg, #FFC864, #FAAB35); }
.sb-tax { background: linear-gradient(90deg, #6C7075, #2E3236); }
.split-legend { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); margin-top: .5rem; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }
.breakdown-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 1.6rem 0 .6rem; }
.breakdown-title .icon { color: var(--primary-light); }
.calc-table { width: 100%; border-collapse: collapse; font-size: .86rem; border-radius: 10px; overflow: hidden; }
.calc-table th { background: var(--primary); color: #fff; text-align: left; padding: .65rem .75rem; font-weight: 600; }
.calc-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.calc-table tr:nth-child(even) td { background: #F7F7F5; }
.calc-table tr.muted td { color: #A0A2A5; }
.calc-table tr.total-row td { background: #FFF6E3 !important; font-weight: 700; color: #8C5E08; }
.content-card { margin-top: 1.5rem; padding: 2rem; }
.content-card:hover { transform: none; }
.content-card h2 { font-size: 1.35rem; }
.how-steps { display: grid; gap: .8rem; }
.how-step { display: flex; gap: .9rem; align-items: flex-start; }
.how-step span { width: 32px; height: 32px; border-radius: 10px; background: #FEF7E8; color: var(--primary-light); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; font-family: var(--font-head); }
.how-step p { margin: .25rem 0 0; color: #3B3F44; }
.content-card .faq { max-width: none; }
.disclaimer { font-size: .8rem; color: var(--text-muted); margin: 1.4rem 0 0; display: flex; gap: .5rem; align-items: flex-start; }
.disclaimer .icon { margin-top: 3px; color: var(--gold); }
.formula { background: #1F2225; color: #F6D58E; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; padding: .8rem; border-radius: 10px; margin-bottom: .8rem; text-align: center; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { display: flex; gap: .5rem; font-size: .88rem; padding: .25rem 0; }
.tick-list .icon { color: var(--accent); margin-top: 4px; }
.mini-calc { display: flex; align-items: center; gap: .75rem; padding: .62rem .7rem; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .92rem; transition: .2s; }
.mini-calc > .icon:first-child { color: var(--primary); width: 18px; height: 18px; }
.mini-calc .mc-arrow { margin-left: auto; width: 14px; height: 14px; color: #CDCDC9; transition: .2s; }
.mini-calc:hover { background: #FEF7E8; color: var(--primary); }
.mini-calc:hover .mc-arrow { color: var(--primary-light); transform: translateX(3px); }

.chips-link { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #FAEBCB; background: #fff; color: var(--primary); font-weight: 600; font-size: .82rem; padding: .4rem .9rem; border-radius: 999px; transition: .2s; }
.chips-link:hover { background: var(--gold); color: var(--on-gold); border-color: var(--primary-light); }
/* Hub */
.hub-grid { margin-bottom: 1rem; }
.hub-card { display: flex; flex-direction: column; color: var(--text); }
.hub-card h3 { font-size: 1.1rem; margin-top: .2rem; }
.hub-card p { color: var(--text-muted); font-size: .9rem; flex: 1; }
.hub-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.hub-cta { background: linear-gradient(135deg, #1F2225, #2E3236); border: 0; }
.hub-cta h3 { color: #fff; }
.hub-cta p { color: #CDCDC9; }
.hub-cta .btn { align-self: flex-start; }

@media (max-width: 960px) {
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0;
    background: rgba(255, 255, 255, .04); box-shadow: none; margin: .2rem 0 .4rem; padding: .3rem;
  }
  .dropdown-menu::after, .dropdown-menu::before { display: none; }
  .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { transform: none; }
  .dropdown.open .dropdown-menu { display: block; transform: none; }
  .dropdown:not(.open):hover .dropdown-menu { display: none; }
  .nav-links .dropdown-menu a.dropdown-item { color: #E6E5E2; font-size: .95rem; padding: .65rem .9rem; }
  .dropdown-item .dd-ic { color: var(--accent-light); }
  .nav-links .dropdown-menu a.dropdown-item:hover, .nav-links .dropdown-menu a.dropdown-item.current { background: rgba(217, 154, 30, .12); color: #fff; }
  .nav-links .dropdown-menu a.dropdown-all { border-top-color: rgba(255, 255, 255, .08); color: var(--accent-light); }
  .nav-links .dropdown-menu a.dropdown-all:hover { background: rgba(255, 255, 255, .04); }
  .dropdown-toggle { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .rb-big strong { font-size: 1.6rem; }
  .content-card { padding: 1.3rem; }
  .calc-card-head .print-btn { display: none; }
}
@media print {
  .topbar, .navbar, footer, .wa-float, .to-top, .sidebar, .content-card, .calc-go, .print-btn, .chips { display: none !important; }
  .blog-layout { grid-template-columns: 1fr; }
  .page-hero { background: #2E3236 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
}


/* =========================================================
   Generator pages
   ========================================================= */
.gen-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 1.6rem; align-items: start; }
.gen-form-card { padding: 1.6rem; }
.gen-form-card:hover, .feature-mini:hover { transform: none; }
.gen-preview-col { position: sticky; top: 90px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.preview-bar > span { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-family: var(--font-head); color: var(--text-strong); }
.preview-bar small { font-family: var(--font); font-weight: 600; font-size: .7rem; background: #ECECE9; color: #3B3F44; padding: 2px 8px; border-radius: 999px; }
.paper-stage { position: relative; overflow: hidden; border-radius: 10px; background: #E4E4E1; box-shadow: inset 0 0 0 1px #CDCDC9; }
.preview-tip { font-size: .8rem; color: var(--text-muted); margin: .7rem 0 0; display: flex; gap: .4rem; align-items: center; }
.gen-bottom { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; margin-top: 2rem; align-items: start; }
.gen-form .form-section { background: #fff; }
.repeater { display: grid; gap: .55rem; margin-bottom: .7rem; }
.rep-row { display: grid; gap: .5rem; align-items: start; padding: .6rem; border: 1px dashed #CDCDC9; border-radius: 12px; background: #F7F7F5; }
.rep-row .form-control { padding: .6rem .75rem; font-size: .88rem; }
.rep-row .rep-area { grid-column: 1 / -2; grid-row: 2; min-height: 0; }
.rep-del { width: 38px; height: 40px; border: 0; border-radius: 9px; background: #FEE2E2; color: #DC2626; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.rep-del:hover { background: #DC2626; color: #fff; }
.rep-add { margin-bottom: 1rem; }
.upload-box { display: flex; align-items: center; gap: .5rem; }
.upload-preview { width: 52px; height: 52px; border-radius: 10px; border: 2px dashed #CDCDC9; display: grid; place-items: center; color: #9B9D9F; overflow: hidden; background: #fff; flex-shrink: 0; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.swatches { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #CDCDC9; cursor: pointer; transition: .15s; }
.swatch.active, .swatch:hover { box-shadow: 0 0 0 2px var(--text-strong); transform: scale(1.08); }
.color-input { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.gen-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.feature-mini { display: flex; gap: .8rem; align-items: center; padding: 1.1rem; }
.feature-mini > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #FEF7E8; color: var(--primary-light); }
.feature-mini b { display: block; color: var(--text-strong); font-size: .95rem; }
.feature-mini span { font-size: .82rem; color: var(--text-muted); }

/* =========================================================
   A4 document (preview + print)
   ========================================================= */
.doc-paper {
  --doc-accent: #2E3236;
  width: 794px; min-height: 1123px; background: #fff; padding: 48px 52px; transform-origin: top left;
  color: #2A2D31; font-family: var(--font); font-size: 12.5px; line-height: 1.55; box-shadow: 0 10px 30px rgba(31, 34, 37, .15);
  position: absolute; top: 0; left: 0;
}
.doc-paper h1, .doc-paper h2, .doc-paper h3, .doc-paper h4 { color: #1C1E21; margin: 0; }
.doc-paper p { margin: 0 0 .6em; }
.doc-paper .r { text-align: right; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 3px solid var(--doc-accent); }
.dh-left { display: flex; gap: 14px; align-items: center; }
.dh-left h2 { font-size: 19px; color: var(--doc-accent); font-family: var(--font-head); }
.dh-left p { font-size: 11.5px; color: #4F5358; margin: 3px 0 0; }
.doc-logo { max-width: 74px; max-height: 64px; object-fit: contain; }
.dh-right { text-align: right; }
.doc-title { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 1.5px; color: var(--doc-accent); line-height: 1.1; }
.doc-sub { font-weight: 600; color: #4F5358; margin-top: 4px; font-size: 13px; }
.meta { margin-top: 8px; margin-left: auto; border-collapse: collapse; font-size: 11.5px; }
.meta td { padding: 2px 0 2px 14px; }
.meta td:first-child { color: #6E7176; }
.meta td:last-child { font-weight: 600; text-align: right; }
.info-grid { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 12px; }
.info-grid th, .info-grid td { border: 1px solid #E6E5E2; padding: 7px 10px; text-align: left; }
.info-grid th { background: #F7F7F5; color: #4F5358; font-weight: 600; width: 19%; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 12px; }
.doc-table th { background: var(--doc-accent); color: #fff; padding: 8px 10px; text-align: left; font-weight: 600; }
.doc-table th.r { text-align: right; }
.doc-table td { padding: 7px 10px; border-bottom: 1px solid #E6E5E2; }
.doc-table tbody tr:nth-child(even) td { background: #FAFAF8; }
.doc-table tfoot td { font-weight: 700; background: #F1F1EF; border-top: 2px solid var(--doc-accent); }
.doc-table .empty { text-align: center; color: #A0A2A5; padding: 20px; }
.slip-table td:nth-child(2) { border-right: 2px solid #E6E5E2; }
.net-box { display: flex; align-items: center; gap: 20px; border: 2px solid var(--doc-accent); border-radius: 10px; padding: 12px 16px; margin: 6px 0 40px; }
.net-box small { display: block; font-size: 10.5px; letter-spacing: 1.5px; font-weight: 700; color: #6E7176; }
.net-box strong { font-size: 22px; font-family: var(--font-head); color: var(--doc-accent); white-space: nowrap; }
.net-box p { margin: 0; font-style: italic; color: #3B3F44; border-left: 1px solid #E6E5E2; padding-left: 18px; }
.sig-row { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; }
.sig-row.single { justify-content: flex-end; }
.sig-row.single .sig:first-child:nth-last-child(2) { margin-right: auto; }
.sig-row.two .sig { flex: 0 0 40%; }
.sig { flex: 1; max-width: 220px; text-align: center; font-size: 11.5px; }
.sig-line { border-top: 1px solid #3B3F44; margin-bottom: 6px; height: 0; }
.sig b { display: block; color: #1C1E21; }
.sig span { color: #6E7176; font-size: 10.5px; }
.doc-foot { margin-top: 36px; padding-top: 10px; border-top: 1px solid #E6E5E2; text-align: center; font-size: 10.5px; color: #A0A2A5; }
.bill-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.bill-to small, .amount-due small, .words small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #6E7176; margin-bottom: 4px; }
.bill-to b { font-size: 14px; }
.bill-to p { margin: 2px 0 0; color: #4F5358; font-size: 11.5px; }
.amount-due { background: color-mix(in srgb, var(--doc-accent) 8%, white); border-radius: 10px; padding: 12px 18px; text-align: right; align-self: flex-start; }
.amount-due strong { font-family: var(--font-head); font-size: 20px; color: var(--doc-accent); }
.totals-wrap { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.words p { font-style: italic; color: #3B3F44; max-width: 330px; }
.totals { border-collapse: collapse; min-width: 260px; font-size: 12.5px; }
.totals td { padding: 6px 10px; }
.totals td:last-child { text-align: right; font-weight: 600; }
.totals tr.grand td { background: var(--doc-accent); color: #fff; font-weight: 700; font-size: 14px; }
.notes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.notes-row h4 { font-size: 12px; color: var(--doc-accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.notes-row p, .notes-row ol { font-size: 11.5px; color: #4F5358; }
.notes-row ol { padding-left: 16px; margin: 0; }
.center-head { justify-content: center; }
.center-head .dh-left { flex-direction: column; text-align: center; gap: 8px; }
.cert-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 14px; }
.cert-title { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--doc-accent); letter-spacing: .5px; margin-bottom: 18px; text-decoration: underline; text-underline-offset: 5px; }
.cert-title small { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; color: #6E7176; text-decoration: none; margin-top: 6px; }
.cert-body { font-size: 13px; text-align: justify; line-height: 1.8; margin: 4px 0 16px !important; }
.cert-summary { display: flex; gap: 14px; margin-bottom: 10px; }
.cert-summary div { flex: 1; border: 1px solid #E6E5E2; border-left: 4px solid var(--doc-accent); border-radius: 8px; padding: 10px 14px; }
.cert-summary small { display: block; color: #6E7176; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.cert-summary b { font-size: 16px; font-family: var(--font-head); }
.cert-sig { align-items: flex-end; }
.stamp { width: 100px; height: 100px; border: 2px dashed #CDCDC9; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 10px; color: #A0A2A5; }

.doc-cert .doc-table td { padding: 4px 10px; }
.doc-cert .info-grid th, .doc-cert .info-grid td { padding: 5px 10px; }
.doc-cert .cert-body { line-height: 1.7; margin-bottom: 12px !important; }
.doc-cert .cert-title { margin-bottom: 12px; }
.sig-row, .net-box, .cert-summary, .totals-wrap { break-inside: avoid; }
.doc-cert .doc-head { margin-bottom: 14px; padding-bottom: 14px; }
.doc-cert .sig-row { margin-top: 18px; }
.doc-cert .doc-foot { margin-top: 18px; }
.doc-cert .stamp { width: 86px; height: 86px; }
/* Agreement */
.agr { font-family: Georgia, 'Times New Roman', serif; font-size: 13px; line-height: 1.75; text-align: justify; }
.agr-stamp { border: 1px dashed #CDCDC9; color: #A0A2A5; text-align: center; font-family: var(--font); font-size: 11px; padding: 26px; margin-bottom: 22px; border-radius: 6px; }
.agr-title { text-align: center; font-size: 19px !important; letter-spacing: 2px; color: var(--doc-accent) !important; text-decoration: underline; text-underline-offset: 6px; margin-bottom: 18px !important; font-family: Georgia, serif; }
.agr-c { text-align: center; margin: 10px 0 !important; }
.agr-clauses { padding-left: 22px; margin: 0 0 16px; }
.agr-clauses li { margin-bottom: 7px; padding-left: 4px; }
.agr-wit { text-align: center; margin-top: 34px !important; font-size: 13px; letter-spacing: 2px; color: var(--doc-accent) !important; }
.agr .sig-row { margin-top: 56px; }
.agr .sig { font-family: var(--font); }

/* CV */
.doc-cv { padding: 0; }
.cv { min-height: 1123px; }
.cv .icon { width: 12px; height: 12px; vertical-align: -1px; }
.cv h1 { font-family: var(--font-head); font-size: 30px; line-height: 1.1; letter-spacing: -.3px; }
.cv-title { color: var(--doc-accent); font-weight: 600; font-size: 14px; margin: 4px 0 14px; }
.cv-sec { margin-bottom: 18px; }
.cv-sec h3 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--doc-accent); padding-bottom: 5px; margin-bottom: 10px !important; border-bottom: 2px solid color-mix(in srgb, var(--doc-accent) 20%, white); }
.cv-item { margin-bottom: 12px; }
.cv-item-head { display: flex; justify-content: space-between; gap: 10px; }
.cv-item-head b { font-size: 13.5px; color: #1C1E21; }
.cv-item-head span { color: #6E7176; font-size: 11.5px; white-space: nowrap; font-weight: 600; }
.cv-org { color: #4F5358; font-style: italic; font-size: 12px; }
.cv-item ul { margin: 5px 0 0; padding-left: 16px; }
.cv-item li { margin-bottom: 2px; }
.cv-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; }
.cv-initials { display: grid; place-items: center; font-family: var(--font-head); font-size: 38px; font-weight: 700; background: rgba(255, 255, 255, .15); color: #fff; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--doc-accent) 10%, white); color: var(--doc-accent); font-weight: 600; }
.cv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv-modern { display: grid; grid-template-columns: 250px 1fr; }
.cv-side { background: var(--doc-accent); color: #E6E5E2; padding: 40px 26px; }
.cv-side .cv-photo { margin: 0 auto 26px; border: 4px solid rgba(255, 255, 255, .25); }
.cv-side-sec { margin-bottom: 22px; }
.cv-side-sec h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 6px; margin-bottom: 10px !important; }
.cv-side-sec p { font-size: 11.5px; display: flex; gap: 7px; align-items: flex-start; word-break: break-word; }
.cv-side-sec p .icon { margin-top: 3px; flex-shrink: 0; }
.cv-side .cv-chip { background: rgba(255, 255, 255, .15); color: #fff; }
.cv-main { padding: 44px 38px; }
.cv-classic { padding: 50px 56px; }
.cv-classic header { text-align: center; border-bottom: 3px double var(--doc-accent); padding-bottom: 14px; margin-bottom: 20px; }
.cv-classic header .cv-photo { width: 96px; height: 96px; margin: 0 auto 10px; }
.cv-classic h1 { font-family: Georgia, serif; letter-spacing: 1px; }
.cv-classic .cv-title { margin-bottom: 8px; }
.cv-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: #4F5358; }
.cv-classic .cv-sec h3 { font-family: Georgia, serif; border-bottom-width: 1px; }
.cv-minimal { padding: 54px 60px; }
.cv-minimal header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cv-minimal header .cv-photo { width: 92px; height: 92px; border-radius: 16px; }
.cv-minimal h1 { font-size: 36px; font-weight: 800; }
.cv-minimal .cv-contact { justify-content: flex-start; padding: 10px 0; margin-bottom: 22px; border-top: 1px solid #E6E5E2; border-bottom: 1px solid #E6E5E2; }
.cv-minimal .cv-sec h3 { border: 0; padding: 0; color: #1C1E21; }
.cv-minimal .cv-sec h3::before { content: ''; display: inline-block; width: 18px; height: 3px; background: var(--doc-accent); vertical-align: middle; margin-right: 8px; border-radius: 2px; }

@media (max-width: 1180px) and (min-width: 961px) {
  .nav-links a { padding: .5rem .6rem; font-size: .9rem; }
  .nav-cta .btn { padding: .5rem .8rem; }
}
@media (max-width: 1080px) {
  .gen-layout, .gen-bottom { grid-template-columns: 1fr; }
  .gen-preview-col { position: static; }
  .gen-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gen-features { grid-template-columns: 1fr; }
  .gen-form-card { padding: 1.1rem; }
  .rep-row { grid-template-columns: 1fr 38px !important; }
  .rep-row > .form-control:not(.rep-area) { grid-column: 1; }
  .rep-row .rep-del { grid-column: 2; grid-row: 1; }
  .rep-row .rep-area { grid-row: auto; grid-column: 1 / -1; }
  .preview-bar { flex-wrap: wrap; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  body:has(.gen-layout) { background: #fff; }
  .gen-form-card, .preview-bar, .preview-tip, .gen-bottom, .page-hero { display: none !important; }
  .page-wrap:has(.gen-layout) { padding: 0; }
  .container:has(.gen-layout) { max-width: none; padding: 0; }
  .gen-layout { display: block; }
  .paper-stage { height: auto !important; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  .doc-paper { position: static; transform: none !important; width: auto; min-height: 0; padding: 0; box-shadow: none; }
  .doc-paper, .doc-paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv { min-height: 0; }
  .cv-modern { min-height: 270mm; }
  .doc-cv .cv-modern { min-height: 276mm; }
  .doc-cv .cv-classic, .doc-cv .cv-minimal { padding: 14mm 16mm; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--primary-dark);
    flex-direction: column; align-items: stretch; padding: 1rem 20px 1.4rem; gap: .2rem;
    border-top: 1px solid rgba(255, 255, 255, .08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .hero .container, .why-grid, .calc-wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 90px; }
  .hero-visual { max-width: 480px; margin: 1rem auto 0; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .footer-content, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .topbar .hide-sm { display: none; }
  .cta-band { padding: 2rem; }
  .article { padding: 1.3rem; }
  .page-hero { padding: 2rem 1.2rem; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
  .float-chip { display: none; }
}

/* ===================== Tax Card Calculator 2026-27 ===================== */
.tc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-top: 2rem; }
.tc-aside { position: sticky; top: 90px; }
.tc-nav-box { padding: 1rem; margin-bottom: 0; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.tc-search-wrap { margin-bottom: .6rem; }
.tc-search-wrap .form-control { padding: .6rem .8rem; font-size: .85rem; }
.tc-nav { overflow-y: auto; margin-right: -.5rem; padding-right: .4rem; }
.tc-nav::-webkit-scrollbar { width: 6px; }
.tc-nav::-webkit-scrollbar-thumb { background: #CDCDC9; border-radius: 6px; }
.tc-group + .tc-group { margin-top: .7rem; }
.tc-group-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: .4rem .55rem; }
.tc-link { display: flex; gap: .6rem; align-items: center; padding: .48rem .55rem; border-radius: 9px; color: var(--text); text-decoration: none; transition: background .15s, color .15s; }
.tc-link .icon { width: 17px; height: 17px; flex: none; color: var(--primary-light); }
.tc-link span { display: flex; flex-direction: column; min-width: 0; }
.tc-link b { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.tc-link small { font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-link:hover { background: #FEF7E8; }
.tc-link.active { background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; }
.tc-link.active .icon, .tc-link.active small { color: rgba(255, 255, 255, .85); }
.tc-mobile-select { display: none; }

.tc-card { padding: 1.6rem; margin-bottom: 1.5rem; }
.tc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.tc-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.tc-head h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.tc-head-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; flex: none; }
.tc-head-ic .icon { width: 24px; height: 24px; }
.sec-badge { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--primary); background: #FEF7E8; border: 1px solid #F3DCA8; padding: .2rem .65rem; border-radius: 999px; }
.tc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.tc-fields .form-group { min-width: 0; }
.tc-card .result-box { margin-top: .4rem; }

.tc-rates-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tc-rates-head h3 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.tc-rates-head h3 .icon { color: var(--primary-light); }
.chg-legend { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.chg-legend i { width: 12px; height: 12px; border-radius: 3px; background: #FEE2E2; border: 1.5px solid #DC2626; display: inline-block; }
.tc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tc-table th { background: var(--primary); color: #fff; text-align: left; padding: .6rem .75rem; font-weight: 600; white-space: nowrap; }
.tc-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tc-table tr:nth-child(even) td { background: #F7F7F5; }
.tc-table td.chg, .calc-table td.chg { color: #DC2626; font-weight: 700; background: #FEF2F2 !important; }
.tc-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--text-muted); margin: .7rem 0 0; }
.tc-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--primary-light); }
.tc-sec-title { font-size: 1rem; margin: 1.5rem 0 .6rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tc-sec-title a { color: var(--text-strong); text-decoration: none; }
.tc-sec-title a:hover { color: var(--gold-text); }
.tc-group-head { font-size: 1.2rem; margin: 2.2rem 0 .3rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary-light); color: var(--primary); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }

@media (max-width: 1080px) {
  .tc-layout { grid-template-columns: minmax(0, 1fr); }
  .tc-aside { display: none; }
  .tc-mobile-select { display: block; }
  .tc-mobile-select select { font-weight: 600; }
}
@media (max-width: 600px) {
  .tc-fields { grid-template-columns: minmax(0, 1fr); }
  .tc-card { padding: 1.1rem; }
  .tc-head .tc-pdf, .tc-head .tc-card-pdf { width: 100%; justify-content: center; }
  .tc-head h2 { font-size: 1.15rem; }
}
.tc-card .result-row { gap: 1rem; }
.tc-card .result-row > span { flex: none; max-width: 48%; }
.tc-card .result-row > strong { text-align: right; }
@media (max-width: 600px) {
  .tc-download-card { white-space: normal; line-height: 1.35; max-width: 100%; text-align: center; }
}

/* ---------- Tax calculator: calculatemytax.pk-style results & info ---------- */
.btn-outline-primary { border: 1.5px solid var(--mustard); color: var(--gold-text); background: #fff; }
.btn-outline-primary:hover { background: var(--gold); color: var(--on-gold); }
.tc-head h2 .tc-yr { color: var(--gold-text); }
.tax-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .4rem; padding: .85rem 1rem; border: 0; border-radius: 10px; background: var(--gold); color: var(--on-gold); font: 600 1rem var(--font); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.tax-btn:hover { background: #C48612; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 154, 30, .3); }
.tax-btn .icon { width: 18px; height: 18px; }
#tcOut { margin-top: 1.5rem; animation: tcFade .35s ease; }
@keyframes tcFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tc-summary { background: #FFF9EC; border: 1px solid #F3CF83; border-radius: 14px; padding: 1.4rem 1.5rem; }
.tc-summary h4 { font-size: 1.3rem; margin: 0; color: var(--text-strong); }
.tc-summary h5 { font-size: 1.12rem; font-weight: 500; margin: 0 0 .7rem; color: var(--text-strong); font-family: var(--font-head); }
.tc-summary hr { border: 0; border-top: 1px solid #F7DFA8; margin: 1rem 0; }
.tc-big { display: flex; flex-direction: column; background: #fff; border: 1px solid #F7DFA8; border-radius: 12px; padding: .8rem 1.1rem; margin-bottom: 1rem; }
.tc-big small { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tc-big strong { font: 700 1.7rem var(--font-head); color: var(--primary); }
.tc-line { margin: 0 0 .75rem; font-size: .97rem; color: var(--text); line-height: 1.5; }
.tc-line b { color: var(--text-strong); font-weight: 700; }
.tc-line.hl span { background: #FEF3C7; color: #92400E; font-weight: 700; padding: .05rem .45rem; border-radius: 6px; }
.tc-line.tot span { color: #8C5E08; font-weight: 700; }
.tc-tips { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed #F3CF83; }
.tc-tips p { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .45rem; font-size: .88rem; color: #5E4510; }
.tc-tips .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #D99A1E; }

.tc-chart { margin-top: 1.2rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 1.2rem; text-align: center; }
.tc-chart h6 { font-size: .98rem; font-weight: 700; margin: 0 0 .9rem; color: var(--text-strong); }
.tc-pie { width: 190px; height: 190px; display: block; margin: 0 auto; }
.tc-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .9rem; font-size: .84rem; color: var(--text-muted); }
.tc-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.tc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tc-legend b { color: var(--text-strong); }
.tc-legend em { font-style: normal; font-size: .76rem; background: #F1F1EF; padding: .05rem .4rem; border-radius: 6px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.tc-actions .tc-pdf { border: 1.5px solid #9B9D9F; color: #4D5257; background: #fff; }
.tc-actions .tc-pdf:hover { background: #4D5257; color: #fff; border-color: #4D5257; }

.tc-quick { padding: 1.3rem 1.6rem; }
.tc-quick h6 { display: flex; align-items: center; gap: .45rem; font-size: .98rem; font-weight: 700; margin: 0 0 .6rem; }
.tc-quick h6 .icon { color: var(--primary-light); width: 18px; height: 18px; }
.tc-quick ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; color: var(--text); }
.tc-quick li { margin-bottom: .3rem; }

.tc-info { margin-top: 2.5rem; }
.tc-guide { padding: 2rem 2.2rem; margin-bottom: 1.6rem; }
.tc-guide h2 { font-size: 1.7rem; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.tc-guide h3 { font-size: 1.35rem; margin: 0 0 .7rem; }
.tc-guide h4 { font-size: 1.05rem; margin: 1rem 0 .3rem; color: var(--primary); }
.tc-guide p, .tc-guide li { color: var(--text); font-size: .96rem; line-height: 1.7; }
.tc-guide ul { padding-left: 1.3rem; margin: .4rem 0 1rem; }
.tc-guide hr { border: 0; border-top: 1px solid var(--border); margin: 1.6rem 0; }
.tc-guide .chg-legend { margin-bottom: .7rem; display: flex; }
.tc-guide .tc-goto { margin-top: .6rem; }
.tc-info-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.tc-info-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 1.3rem; transition: transform .2s, box-shadow .2s; }
.tc-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tc-info-card h4 { font-size: 1rem; margin: 0 0 .55rem; display: flex; gap: .45rem; align-items: flex-start; }
.tc-info-card h4 .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary-light); }
.tc-info-card p { margin: 0; font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.tc-faq { padding: 2rem 2.2rem; }
.tc-faq h3 { font-size: 1.35rem; margin: 0 0 1rem; }
.tc-faq-item { padding: .95rem 0; border-bottom: 1px solid var(--border); }
.tc-faq-item:last-child { border-bottom: 0; }
.tc-faq-item h5 { font-size: 1rem; color: #2E3236; margin: 0 0 .3rem; }
.tc-faq-item p { margin: 0; font-size: .93rem; color: var(--text); line-height: 1.6; }

.tc-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(31, 34, 37, .55); display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(3px); }
.tc-modal[hidden] { display: none; }
.tc-modal-box { background: #fff; border-radius: 16px; width: min(860px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); animation: tcFade .25s ease; }
.tc-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--border); }
.tc-modal-head h3 { font-size: 1.1rem; margin: 0; }
.tc-modal-x { border: 0; background: #F1F1EF; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; }
.tc-modal-x:hover { background: #E4E4E1; }
.tc-modal-body { padding: 1.2rem 1.3rem; overflow: auto; }
.tc-modal-body .chg-legend { margin-bottom: .8rem; display: flex; }

@media (max-width: 1080px) { .tc-info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tc-info-cards { grid-template-columns: minmax(0, 1fr); }
  .tc-guide, .tc-faq { padding: 1.3rem; }
  .tc-guide h2 { font-size: 1.3rem; }
  .tc-guide h3, .tc-faq h3 { font-size: 1.15rem; }
  .tc-summary { padding: 1.1rem; }
  .tc-head .tc-rates-btn { width: 100%; justify-content: center; }
  .tc-actions > * { flex: 1 1 100%; justify-content: center; }
}

/* ===================== Punjab Sales Tax (PRA) page ===================== */
.pra-crumb { justify-content: flex-start; color: var(--text-muted); margin-bottom: .9rem; }
.pra-crumb a { color: var(--gold-text); }
.pra-crumb span { color: var(--text-muted); }
.pra-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; border-radius: 16px; padding: 1.8rem 2rem; box-shadow: 0 14px 34px rgba(46, 50, 54, .25); border-bottom: 4px solid var(--gold); margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.pra-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.pra-hero h1 { font-size: 2rem; margin: 0 0 .35rem; color: #fff; }
.pra-hero p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.pra-hero-ic { width: 64px; height: 64px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; position: relative; z-index: 1; }
.pra-hero-ic .icon { width: 32px; height: 32px; }
.pra-card { padding: 1.8rem 2rem; margin-bottom: 1.6rem; }
.pra-card-title { font-size: 1.35rem; margin: 0 0 1.3rem; }
.pra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.3rem; }
.pra-grid .form-group { min-width: 0; }
.pra-grid [hidden] { display: none !important; }
.pra-lg { font-size: 1.02rem; padding-top: .8rem; padding-bottom: .8rem; }
select.pra-lg { text-overflow: ellipsis; }
.form-control.is-invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.pra-btn { padding: .8rem 1.6rem; font-size: 1.02rem; margin-top: .2rem; }
#praOut { margin-top: 1.6rem; animation: tcFade .35s ease; }
.pra-result { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.pra-result.no-chart { grid-template-columns: minmax(0, 1fr); }
.pra-box { background: #F1F1EF; border-left: 5px solid var(--primary-light); border-radius: 12px; padding: 1.3rem 1.5rem; }
.pra-box h4 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .9rem; color: var(--text-strong); }
.pra-box hr { border: 0; border-top: 1px solid #CDCDC9; margin: .9rem 0; }
.pra-box .tc-line:last-child { margin-bottom: 0; }
.pra-chart { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 1.2rem; text-align: center; }
.pra-chart .tc-pie { width: 170px; height: 170px; }
.pra-legend { flex-direction: column; align-items: center; gap: .35rem; }
.pra-info-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.pra-info-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--border); padding: 1.3rem 1.4rem; }
.pra-info-card h4 { font-size: 1.05rem; margin: 0 0 .7rem; }
.pra-info-card ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--text); }
.pra-info-card li { margin-bottom: .3rem; }
.pra-info-card p { margin: 0; font-size: .9rem; color: var(--text); line-height: 1.6; }
.pra-guide ol { padding-left: 1.3rem; }
.pra-guide a:not(.btn) { color: var(--gold-text); font-weight: 600; }
.pra-rates { padding: 1.6rem 2rem; margin-top: 1.6rem; }
.pra-rates h3 { font-size: 1.3rem; margin: 0 0 1rem; }
.pra-page .tc-faq { margin-top: 0; }
@media (max-width: 1080px) { .pra-info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pra-grid, .pra-result { grid-template-columns: minmax(0, 1fr); }
  .pra-hero { padding: 1.4rem; }
  .pra-hero h1 { font-size: 1.45rem; }
  .pra-hero-ic { display: none; }
  .pra-card, .pra-rates { padding: 1.3rem; }
  .pra-btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) { .pra-info-cards { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .pra-page .pra-info-cards, .pra-page .pra-guide, .pra-page .tc-faq, .pra-page .pra-rates, .pra-page .tc-actions, .pra-crumb { display: none !important; }
}
.tc-actions .pra-pdf { border: 1.5px solid #9B9D9F; color: #4D5257; background: #fff; }
.tc-actions .pra-pdf:hover, .tc-actions .pra-pdf:focus-visible { background: #4D5257; color: #fff; border-color: #4D5257; }

/* ===================== Freelancer Tax page ===================== */
.fr-hero { justify-content: center; text-align: center; padding: 2.2rem 2rem; }
.fr-hero h1 { font-size: 2.1rem; }
.fr-hero p { font-size: 1.1rem; }
.fr-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 1.6rem; }
.fr-aside { position: sticky; top: 90px; display: grid; gap: 1.1rem; }
.fr-quick ul { padding-left: 1.1rem; }
.fr-cta { background: linear-gradient(135deg, #FFF6E3, #FAFAF8); border-color: #F6D58E; }
.fr-cta h4 { display: flex; align-items: center; gap: .45rem; }
.fr-cta h4 .icon { color: var(--accent); width: 18px; height: 18px; }
.fr-cta .btn { margin-top: .9rem; }
.fr-card { margin-bottom: 0; }
.fr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.fr-card [hidden] { display: none !important; }
.fr-hint { display: block; margin-top: .35rem; font-size: .78rem; color: var(--text-muted); }
.fr-btn { background: var(--gold); color: var(--on-gold); }
.fr-btn:hover { background: #F09A1A; color: var(--on-gold); }
#frOut { margin-top: 1.5rem; animation: tcFade .35s ease; }
.fr-summary { background: #FEF7E8; border-left: 5px solid var(--primary-light); border-radius: 12px; padding: 1.3rem 1.5rem; }
.fr-summary h4 { font-size: 1.2rem; margin: 0 0 .9rem; color: var(--text-strong); }
.fr-summary hr { border: 0; border-top: 1px solid #F3DCA8; margin: .9rem 0; }
.fr-summary .tc-line:last-child { margin-bottom: 0; }
.fr-tip { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; }
.fr-tip .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.fr-tip.good { background: #FFF6E3; color: #7A5208; border: 1px solid #F6D58E; }
.fr-tip.warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.fr-tip a { color: inherit; font-weight: 700; }
.fr-chart { max-width: 420px; margin: 1.2rem auto 0; }
.fr-complete { padding: 2rem 2.2rem; margin-top: 1.6rem; border-left: 6px solid var(--primary-light); }
.fr-complete h2 { font-size: 1.55rem; color: var(--primary); margin: 0 0 .7rem; }
.fr-complete h3 { font-size: 1.12rem; margin: 1.6rem 0 .6rem; }
.fr-complete p, .fr-complete li { font-size: .95rem; color: var(--text); line-height: 1.7; }
.fr-complete ul { padding-left: 1.3rem; margin: .3rem 0; }
.fr-complete ul.fr-emoji { list-style: none; padding-left: .2rem; }
.fr-callout { background: #FEF7E8; border-left: 4px solid var(--primary-light); border-radius: 10px; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .95rem; }
@media (max-width: 1080px) {
  .fr-layout { grid-template-columns: minmax(0, 1fr); }
  .fr-aside { position: static; grid-template-columns: 1fr 1fr; order: 2; }
}
@media (max-width: 760px) {
  .fr-hero { padding: 1.5rem 1.2rem; }
  .fr-hero h1 { font-size: 1.5rem; }
  .fr-grid, .fr-aside { grid-template-columns: minmax(0, 1fr); }
  .fr-complete { padding: 1.3rem; }
  .fr-complete h2 { font-size: 1.25rem; }
}
@media print {
  .fr-page .fr-aside, .fr-page .pra-info-cards, .fr-page .pra-guide, .fr-page .tc-faq, .fr-page .fr-complete, .fr-page .tc-actions, .fr-page .pra-crumb { display: none !important; }
  .fr-page .fr-layout { grid-template-columns: 1fr; }
}
.nowrap { white-space: nowrap; }

/* ===================== GST / Sales Tax page ===================== */
.gst-hero { padding: 2rem 2.2rem; }
.gst-hero h1 { font-size: 2rem; margin-bottom: .4rem; }
.gst-hero p { max-width: 760px; opacity: .95; }
.gst-hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: relative; z-index: 1; }
.gst-hero-chips span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: .3rem .75rem; border-radius: 999px; font-size: .84rem; white-space: nowrap; }
.gst-hero-chips b { color: #F6D58E; }
.gst-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; margin-bottom: 1.6rem; }
.gst-card { margin-bottom: 0; }
.gst-card [hidden] { display: none !important; }
.gst-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.gst-tab { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: #F7F7F5; color: var(--text); font: 600 .95rem var(--font); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }
.gst-tab .icon { width: 22px; height: 22px; flex: none; color: var(--primary-light); }
.gst-tab small { display: block; font-weight: 500; font-size: .74rem; color: var(--text-muted); }
.gst-tab:hover { border-color: #F0C674; }
.gst-tab.active { background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(46, 50, 54, .25); }
.gst-tab.active .icon, .gst-tab.active small { color: #FAEBCB; }
.gst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.gst-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gst-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gst-search { margin-bottom: .5rem; background: #F7F7F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .8rem center / 17px; padding-left: 2.4rem; }
.gst-count { font-weight: 500; color: var(--text-muted); font-size: .78rem; margin-left: .3rem; }
.gst-badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.gst-badge { font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; background: #FEF7E8; color: var(--primary); border: 1px solid #F3DCA8; }
.gst-badge.muted { background: #F1F1EF; color: #4D5257; border-color: #E4E4E1; }
.gst-badge.warn { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.gst-badge.good { background: #FFF6E3; color: #7A5208; border-color: #F6D58E; }
.gst-seg { display: grid; grid-template-columns: 1fr 1fr; background: #F1F1EF; border-radius: 10px; padding: 4px; gap: 4px; }
.gst-seg button { border: 0; background: transparent; padding: .6rem .5rem; border-radius: 8px; font: 600 .86rem var(--font); color: var(--text-muted); cursor: pointer; }
.gst-seg button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(31, 34, 37, .08); }
.gst-check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text); margin: -.2rem 0 1rem; cursor: pointer; }
.gst-check input { width: 17px; height: 17px; accent-color: var(--primary-light); }
.gst-rates { background: #F7F7F5; border: 1px dashed #CDCDC9; border-radius: 12px; padding: 1rem 1rem .2rem; margin-bottom: 1.1rem; }
.gst-rates-head { font-size: .84rem; color: var(--text-muted); margin-bottom: .7rem; }
.gst-rates-head b { color: var(--text-strong); margin-right: .35rem; }
.gst-rates label small { font-weight: 600; color: var(--gold-text); font-size: .7rem; text-transform: uppercase; }
.gst-prov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.gst-prov button { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: .6rem .4rem; cursor: pointer; font-family: var(--font); color: var(--text); transition: all .2s; }
.gst-prov button b { display: block; font-size: .98rem; }
.gst-prov button small { display: block; font-size: .7rem; color: var(--text-muted); line-height: 1.3; margin-top: .1rem; }
.gst-prov button:hover { border-color: #F0C674; }
.gst-prov button.on { border-color: var(--primary-light); background: #FEF7E8; box-shadow: 0 0 0 3px rgba(217, 154, 30, .15); }
.gst-prov button.on b { color: var(--primary); }
#gstOut { margin-top: 1.5rem; animation: tcFade .35s ease; }
.gst-summary .tc-line { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; font-size: .93rem; }
.gst-summary .tc-line span { text-align: right; }
.gst-summary .tc-line.tot { font-size: 1.05rem; }
.gst-chart { max-width: 520px; }
.gst-aside { position: sticky; top: 90px; display: grid; gap: 1.1rem; }
.gst-aside ul { padding-left: 1.1rem; }
.gst-new { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border-color: #FDE68A; }
.gst-new h4 { display: flex; align-items: center; gap: .45rem; color: #92400E; }
.gst-new h4 .icon { width: 18px; height: 18px; color: #D97706; }
.gst-newtag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .04em; background: #DC2626; color: #fff; padding: .05rem .38rem; border-radius: 5px; vertical-align: middle; }
.gst-explorer { padding: 1.8rem 2rem; margin: 1.6rem 0; }
.gst-exp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1rem; }
.gst-exp-head h2 { font-size: 1.5rem; margin: 0 0 .4rem; }
.gst-exp-head p { color: var(--text-muted); font-size: .92rem; margin: 0; max-width: 720px; }
.gst-exp-head .gst-search { max-width: 300px; margin: 0; flex: none; }
.gst-xtabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.gst-xtabs button { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: .42rem .9rem; font: 600 .84rem var(--font); color: var(--text); cursor: pointer; }
.gst-xtabs button i { font-style: normal; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 0 .4rem; margin-left: .2rem; font-size: .74rem; }
.gst-xtabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.gst-xtabs button.on i { background: rgba(255, 255, 255, .25); color: #fff; }
.gst-xwrap { max-height: 560px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.gst-xtable th { position: sticky; top: 0; z-index: 1; }
.gst-xtable td:first-child { white-space: nowrap; font-weight: 600; color: var(--primary); }
.gst-hd { display: inline-block; margin: 0 .9rem .25rem 0; font-size: .82rem; }
.gst-hd em { font-style: normal; color: var(--text-muted); font-size: .76rem; }
.gst-exp { background: #F1F1EF; color: #6C7075; font-size: .74rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; }
.gst-empty { text-align: center; color: var(--text-muted); padding: 1.6rem !important; }
.gst-xnote { font-size: .82rem; color: var(--text-muted); margin: .8rem 0 0; }
@media (max-width: 1080px) {
  .gst-layout { grid-template-columns: minmax(0, 1fr); }
  .gst-aside { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gst-aside { grid-template-columns: minmax(0, 1fr); }
  .gst-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gst-prov { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gst-exp-head { flex-direction: column; align-items: stretch; }
  .gst-exp-head .gst-search { max-width: none; }
}
@media (max-width: 760px) {
  .gst-hero { padding: 1.4rem 1.2rem; }
  .gst-hero h1 { font-size: 1.45rem; }
  .gst-grid, .gst-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .gst-tab { flex-direction: column; text-align: center; gap: .3rem; padding: .7rem .4rem; font-size: .86rem; }
  .gst-tab small { display: none; }
  .gst-explorer { padding: 1.3rem; }
  .gst-summary .tc-line { flex-direction: column; gap: .1rem; }
  .gst-summary .tc-line span { text-align: left; }
}
@media (max-width: 480px) { .gst-prov { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gst-grid-4 { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .gst-page .gst-aside, .gst-page .pra-info-cards, .gst-page .pra-guide, .gst-page .tc-faq, .gst-page .gst-explorer, .gst-page .tc-actions, .gst-page .pra-crumb, .gst-page .gst-tabs, .gst-page #gstForm { display: none !important; }
  .gst-page .gst-layout { grid-template-columns: 1fr; }
}

/* ===================== GST Sales Tax Invoice Generator ===================== */
.gi-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem .9rem; margin: 0 0 1.2rem; position: sticky; top: 78px; z-index: 30; }
.gi-toolbar:hover { transform: none; }
.gi-tb-group { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.gi-toolbar .btn .icon { width: 16px; height: 16px; }
.gi-count { background: var(--primary); color: #fff; border-radius: 999px; font-size: .7rem; padding: .05rem .45rem; margin-left: .15rem; }
.gi-more { position: relative; }
.gi-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 330px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 45px rgba(31, 34, 37, .18); padding: .4rem; z-index: 40; }
.gi-menu button, .gi-menu .gi-menu-file { display: flex; gap: .7rem; align-items: flex-start; width: 100%; padding: .6rem .7rem; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-family: var(--font); color: var(--text); }
.gi-menu button:hover, .gi-menu .gi-menu-file:hover { background: #F1F1EF; }
.gi-menu .icon { width: 18px; height: 18px; color: var(--primary-light); flex: none; margin-top: 2px; }
.gi-menu b { display: block; font-size: .88rem; color: var(--text-strong); }
.gi-menu small { display: block; font-size: .75rem; color: var(--text-muted); line-height: 1.35; }
.gi-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.gi-layout .gen-preview-col { top: 150px; }
.gi-form-card { padding: 1.1rem; }
.gi-sec { border: 1px solid var(--border); border-radius: 14px; margin-bottom: .8rem; background: #fff; overflow: hidden; }
.gi-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; font-family: var(--font-head); font-weight: 700; color: var(--text-strong); background: #F7F7F5; user-select: none; }
.gi-sec > summary::-webkit-details-marker { display: none; }
.gi-sec > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #9B9D9F; border-bottom: 2px solid #9B9D9F; transform: rotate(45deg); transition: transform .2s; flex: none; }
.gi-sec[open] > summary::after { transform: rotate(-135deg); }
.gi-sec > summary small { font-family: var(--font); font-weight: 500; font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; margin-left: auto; text-align: right; }
.gi-sec > summary small:empty { display: none; }
.gi-sec > summary small + ::after { margin-left: 0; }
.gi-num { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: #fff; display: grid; place-items: center; font-size: .78rem; flex: none; }
.gi-sec-body { padding: 1rem 1rem .3rem; }
.gi-sec-body [hidden] { display: none !important; }
.gi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
.gi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gi-grid .form-group { min-width: 0; }
.gi-form-card .form-control { padding: .62rem .8rem; font-size: .9rem; }
.gi-form-card textarea.form-control { min-height: 0; resize: vertical; }
.gi-opt { font-weight: 500; color: var(--text-muted); font-size: .74rem; }
.gi-hint { font-size: .8rem; color: var(--text-muted); margin: .45rem 0 0; line-height: 1.45; }
.gi-tg3 { grid-template-columns: repeat(3, 1fr) !important; }
.toggle-group button { font-family: var(--font); }
.gi-prov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.gi-prov button { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: .5rem .3rem; cursor: pointer; font-family: var(--font); color: var(--text); }
.gi-prov button b { display: block; font-size: .9rem; }
.gi-prov button small { display: block; font-size: .66rem; color: var(--text-muted); line-height: 1.25; }
.gi-prov button.on { border-color: var(--primary-light); background: #FEF7E8; box-shadow: 0 0 0 3px rgba(217, 154, 30, .15); }
.gi-note-box { background: #FFFBEB; border: 1px dashed #FCD34D; border-radius: 12px; padding: .8rem .8rem 0; margin-bottom: 1rem; }
.gi-items { display: grid; gap: .7rem; margin-bottom: .8rem; }
.gi-item { border: 1px solid #FAEBCB; border-left: 4px solid var(--primary-light); border-radius: 12px; padding: .7rem; background: #FFFDF9; display: grid; gap: .5rem; }
.gi-item-top { display: flex; gap: .45rem; align-items: center; }
.gi-item-top .form-control { flex: 1; min-width: 0; font-weight: 600; }
.gi-item-no { width: 26px; height: 26px; border-radius: 50%; background: #FAEBCB; color: var(--primary); font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.gi-ibtn { width: 36px; height: 38px; border: 0; border-radius: 9px; background: #FEF7E8; color: var(--primary); cursor: pointer; display: grid; place-items: center; flex: none; transition: .2s; }
.gi-ibtn .icon { width: 16px; height: 16px; }
.gi-ibtn:hover { background: var(--primary); color: #fff; }
.gi-ibtn.del { background: #FEE2E2; color: #DC2626; }
.gi-ibtn.del:hover { background: #DC2626; color: #fff; }
.gi-treat { font-size: .85rem !important; background-color: #fff; }
.gi-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .45rem; }
.gi-item-grid label { font-size: .72rem; font-weight: 600; color: var(--text-muted); display: grid; gap: .2rem; min-width: 0; }
.gi-item-grid label[hidden] { display: none; }
.gi-item-grid .form-control { padding: .5rem .6rem !important; font-size: .86rem !important; }
.gi-item-grid label[data-only] .form-control { border-color: #FCD34D; background: #FFFBEB; }
.gi-item-foot { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--text-muted); align-items: center; }
.gi-item-foot b { color: var(--text-strong); }
.gi-item-foot .gi-lt { margin-left: auto; color: var(--primary); }
.gi-item-foot .gi-lt b { color: var(--primary); }
.gi-tags { display: flex; flex-wrap: wrap; gap: .3rem; width: 100%; }
.gi-tag { font-size: .68rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: #F3F3F1; color: #3B3F44; }
.gi-tag.good { background: #FFF6E3; color: #7A5208; }
.gi-tag.warn { background: #FFFBEB; color: #92400E; }
.gi-item-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.gi-item-actions .gi-hint { margin: 0; flex: 1; min-width: 200px; }
.gi-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.gi-tpls button { border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: .5rem; cursor: pointer; font: 600 .8rem var(--font); color: var(--text); display: grid; gap: .35rem; justify-items: center; }
.gi-tpls button.on { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(217, 154, 30, .15); color: var(--primary); }
.gi-tp { width: 100%; height: 54px; border-radius: 6px; background: #F7F7F5; border: 1px solid #E4E4E1; position: relative; overflow: hidden; }
.gi-tp::before, .gi-tp::after { content: ''; position: absolute; left: 8%; right: 8%; }
.gi-tp-classic::before { top: 14px; height: 2px; background: var(--primary); }
.gi-tp-classic::after { top: 24px; height: 18px; background: repeating-linear-gradient(#CDCDC9 0 2px, transparent 2px 6px); }
.gi-tp-modern::before { top: 0; left: 0; right: 0; height: 16px; background: var(--primary); }
.gi-tp-modern::after { top: 24px; height: 18px; background: repeating-linear-gradient(#CDCDC9 0 2px, transparent 2px 6px); }
.gi-tp-boxed::before { top: 6px; bottom: 6px; border: 1.5px solid #4D5257; }
.gi-tp-boxed::after { top: 18px; height: 1.5px; background: #4D5257; }
.gi-checks { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.gi-compliance { margin-top: .4rem; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; background: #F7F7F5; }
.gi-chk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.gi-chk-head b { display: flex; align-items: center; gap: .4rem; font-family: var(--font-head); color: var(--text-strong); }
.gi-chk-head .icon { width: 18px; height: 18px; color: var(--accent); }
.gi-chk-head span { font-weight: 700; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; }
.gi-chk-head span.good { background: #FCEBC4; color: #7A5208; }
.gi-chk-head span.warn { background: #FEF3C7; color: #92400E; }
.gi-compliance ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.gi-compliance li { display: flex; gap: .5rem; font-size: .83rem; align-items: flex-start; }
.gi-compliance li i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; flex: none; margin-top: 1px; }
.gi-compliance li.ok i { background: #FCEBC4; color: #B97E0E; }
.gi-compliance li.no i { background: #FEF3C7; color: #D97706; }
.gi-compliance li.ok span { color: var(--text-muted); }
.gi-compliance li small { display: block; color: #B45309; font-size: .74rem; }
.gi-total-pill { font-size: .8rem; background: #FFF6E3; color: #7A5208; border: 1px solid #F6D58E; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.gi-total-pill b { color: #8C5E08; }
.gi-dialog { border: 0; border-radius: 18px; padding: 1.3rem; width: min(720px, 94vw); max-height: 86vh; box-shadow: 0 30px 70px rgba(31, 34, 37, .35); }
.gi-dialog::backdrop { background: rgba(31, 34, 37, .55); backdrop-filter: blur(2px); }
.gi-dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.gi-dlg-head h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.2rem; }
.gi-dlg-head h3 .icon { color: var(--primary-light); }
.gi-x { border: 0; background: #F1F1EF; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; color: #4D5257; display: grid; place-items: center; }
.gi-x:hover { background: #E4E4E1; }
.gi-hist-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--text-muted); margin: .7rem 0; align-items: center; }
.gi-hist-stats b { color: var(--text-strong); }
.gi-hist-stats small { font-size: .72rem; }
.gi-hist { display: grid; gap: .5rem; max-height: 55vh; overflow: auto; }
.gi-hrow { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: .65rem .8rem; }
.gi-hrow small { display: block; color: var(--text-muted); font-size: .78rem; }
.gi-dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .1rem .45rem; border-radius: 6px; background: #FEF7E8; color: var(--primary); margin-left: .3rem; }
.gi-dt.credit { background: #FEE2E2; color: #B91C1C; }
.gi-dt.debit { background: #FEF3C7; color: #92400E; }
.gi-dt.proforma { background: #F1F1EF; color: #4D5257; }
.gi-hamt { text-align: right; font-weight: 700; color: var(--text-strong); font-size: .9rem; white-space: nowrap; }
.gi-hbtns { display: flex; gap: .3rem; }
.gi-hbtns .icon { width: 15px; height: 15px; }
.gi-hdel { color: #DC2626 !important; }
.gi-empty { text-align: center; color: var(--text-muted); padding: 2rem 1rem; border: 1px dashed var(--border); border-radius: 12px; }
.gi-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: #1F2225; color: #fff; padding: .75rem 1.1rem; border-radius: 12px; font-size: .88rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: .3s; z-index: 1000; max-width: min(560px, 92vw); text-align: center; }
.gi-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gi-toast.ok { background: #7A5208; }
.gi-toast.err { background: #991B1B; }
.gi-req td:first-child { font-weight: 600; color: var(--text-strong); }

/* ----- invoice document ----- */
.gi-doc { padding: 40px 42px; font-size: 11.5px; line-height: 1.45; }
.gi-doc .r { text-align: right; } .gi-doc .c { text-align: center; }
.gi-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 3px solid var(--doc-accent); }
.gi-brand { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
.gi-logo { max-width: 86px; max-height: 70px; object-fit: contain; flex: none; }
.gi-brand h2 { font-size: 19px; color: var(--doc-accent); font-family: var(--font-head); line-height: 1.2; margin-bottom: 3px; }
.gi-brand p { margin: 0 0 2px; color: #4F5358; font-size: 10.8px; }
.gi-ids { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.gi-ids b { color: #1C1E21; }
.gi-titlebox { text-align: right; flex: none; }
.gi-title { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: 1px; color: var(--doc-accent); line-height: 1.1; }
.gi-sub { font-size: 9.6px; color: #6E7176; margin-top: 3px; }
.gi-meta { margin: 8px 0 0 auto; border-collapse: collapse; font-size: 10.8px; }
.gi-meta td { padding: 1.5px 0 1.5px 14px; }
.gi-meta td:first-child { color: #6E7176; }
.gi-meta td:last-child { font-weight: 700; color: #1C1E21; text-align: right; }
.gi-ref { background: #FEF3C7; color: #78350F; padding: 7px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 11px; }
.gi-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.gi-party { border: 1px solid #E6E5E2; border-radius: 8px; padding: 0 12px 9px; overflow: hidden; }
.gi-party h6 { margin: 0 -12px 8px; padding: 5px 12px; background: var(--gi-tint, #F3F3F1); color: var(--doc-accent); font-size: 9.6px; letter-spacing: 1px; text-transform: uppercase; }
.gi-pn { display: block; font-size: 12.5px; color: #1C1E21; margin-bottom: 2px; }
.gi-party p { margin: 0 0 4px; color: #4F5358; font-size: 10.8px; }
.gi-kv { display: flex; gap: 8px; font-size: 10.8px; }
.gi-kv span { color: #6E7176; min-width: 74px; }
.gi-kv b { color: #1C1E21; word-break: break-word; }
.gi-items-tbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 10.6px; }
.gi-items-tbl th { background: var(--doc-accent); color: #fff; padding: 7px 6px; font-weight: 600; font-size: 10px; text-align: left; }
.gi-items-tbl th.r { text-align: right; } .gi-items-tbl th.c { text-align: center; }
.gi-items-tbl td { padding: 6px; border-bottom: 1px solid #E6E5E2; vertical-align: top; }
.gi-items-tbl tbody tr:nth-child(even) td { background: #FAFAF8; }
.gi-items-tbl td b { color: #1C1E21; font-weight: 600; }
.gi-items-tbl td small { display: block; color: #6E7176; font-size: 9.4px; margin-top: 1px; }
.gi-items-tbl td small.gi-u { display: inline; }
.gi-items-tbl td.r, .gi-items-tbl td.c { white-space: nowrap; }
.gi-items-tbl tfoot td { font-weight: 700; background: #F1F1EF; border-top: 2px solid var(--doc-accent); color: #1C1E21; }
.gi-ph { color: #A0A2A5 !important; font-style: italic; font-weight: 400 !important; }
.gi-bottom { display: grid; grid-template-columns: 1fr 290px; gap: 18px; align-items: start; }
.gi-left { display: grid; gap: 10px; min-width: 0; }
.gi-words { background: #F7F7F5; border-left: 3px solid var(--doc-accent); padding: 7px 11px; border-radius: 0 6px 6px 0; }
.gi-words small { font-size: 8.8px; letter-spacing: 1px; font-weight: 700; color: #6E7176; text-transform: uppercase; }
.gi-words p { margin: 1px 0 0; font-style: italic; color: #2A2D31; }
.gi-sumtbl { width: 100%; border-collapse: collapse; font-size: 10.2px; }
.gi-sumtbl th { background: var(--gi-tint, #F3F3F1); color: var(--doc-accent); padding: 4px 7px; text-align: left; }
.gi-sumtbl th.r { text-align: right; }
.gi-sumtbl td { padding: 4px 7px; border-bottom: 1px solid #E6E5E2; }
.gi-box { border: 1px solid #E6E5E2; border-radius: 8px; padding: 7px 11px; }
.gi-box h6 { margin: 0 0 4px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--doc-accent); }
.gi-box p { margin: 0; color: #3B3F44; font-size: 10.4px; }
.gi-tot { width: 100%; border-collapse: collapse; font-size: 11px; }
.gi-tot td { padding: 4.5px 8px; border-bottom: 1px solid #F1F1EF; }
.gi-tot td:first-child { color: #4F5358; }
.gi-tot td:last-child { text-align: right; font-weight: 600; color: #1C1E21; white-space: nowrap; }
.gi-tot .gi-grand td { background: var(--doc-accent); color: #fff !important; font-size: 13px; font-weight: 800; padding: 8px; }
.gi-tot .gi-ded td { color: #B91C1C !important; }
.gi-tot .gi-net td { border: 2px solid var(--doc-accent); color: var(--doc-accent) !important; font-weight: 800; font-size: 12px; }
.gi-tot .gi-net td:first-child { border-right: 0; } .gi-tot .gi-net td:last-child { border-left: 0; }
.gi-whtnote { font-size: 9.4px; color: #6E7176; margin: 5px 0 0; }
.gi-signrow { display: flex; align-items: flex-end; gap: 22px; margin-top: 26px; }
.gi-qr { display: flex; gap: 8px; align-items: center; flex: none; }
.gi-qr svg { width: 92px; height: 92px; display: block; }
.gi-qr span { font-size: 9.4px; color: #4F5358; max-width: 120px; overflow-wrap: anywhere; }
.gi-qr span b { display: block; color: #1C1E21; word-break: normal; }
.gi-sig { flex: 1; text-align: center; position: relative; font-size: 10.6px; max-width: 230px; margin-left: auto; }
.gi-sig + .gi-sig { margin-left: 0; }
.gi-sigspace { height: 46px; display: flex; align-items: flex-end; justify-content: center; }
.gi-sigspace img { max-height: 46px; max-width: 160px; object-fit: contain; }
.gi-stamp { position: absolute; right: -6px; bottom: 18px; max-width: 96px; max-height: 80px; opacity: .85; transform: rotate(-8deg); }
.gi-sigline { border-top: 1px solid #3B3F44; margin: 3px 0 5px; }
.gi-sig b { display: block; color: #1C1E21; }
.gi-sig span { color: #6E7176; font-size: 9.6px; }
.gi-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #E6E5E2; text-align: center; font-size: 9.6px; color: #A0A2A5; }
/* modern */
.gi-t-modern .gi-head { margin: -40px -42px 16px; padding: 28px 42px 20px; background: var(--doc-accent); border-bottom: 0; }
.gi-t-modern .gi-head * { color: #fff !important; }
.gi-t-modern .gi-brand p, .gi-t-modern .gi-sub, .gi-t-modern .gi-meta td:first-child { opacity: .82; }
.gi-t-modern .gi-logo { background: #fff; border-radius: 8px; padding: 4px; }
.gi-t-modern .gi-party { border: 0; background: var(--gi-tint, #F3F3F1); }
.gi-t-modern .gi-party h6 { background: transparent; margin-bottom: 2px; }
.gi-t-modern .gi-items-tbl th:first-child { border-radius: 6px 0 0 0; } .gi-t-modern .gi-items-tbl th:last-child { border-radius: 0 6px 0 0; }
/* boxed (FBR style) */
.gi-t-boxed { font-family: Arial, Helvetica, sans-serif; }
.gi-t-boxed .gi-head { border: 1.5px solid #1C1E21; border-bottom-width: 1.5px; padding: 12px; margin-bottom: 0; border-radius: 0; }
.gi-t-boxed .gi-title { color: #1C1E21; }
.gi-t-boxed .gi-brand h2 { color: #1C1E21; }
.gi-t-boxed .gi-parties { gap: 0; border: 1.5px solid #1C1E21; border-top: 0; margin-bottom: 12px; }
.gi-t-boxed .gi-party { border: 0; border-radius: 0; }
.gi-t-boxed .gi-party + .gi-party { border-left: 1.5px solid #1C1E21; }
.gi-t-boxed .gi-party h6 { background: #F3F3F1; color: #1C1E21; border-bottom: 1px solid #1C1E21; }
.gi-t-boxed .gi-items-tbl th { background: #F3F3F1; color: #1C1E21; border: 1px solid #1C1E21; }
.gi-t-boxed .gi-items-tbl td { border: 1px solid #6E7176; }
.gi-t-boxed .gi-items-tbl tbody tr:nth-child(even) td { background: #fff; }
.gi-t-boxed .gi-items-tbl tfoot td { border: 1px solid #1C1E21; background: #F3F3F1; }
.gi-t-boxed .gi-tot td { border: 1px solid #6E7176; }
.gi-t-boxed .gi-tot .gi-grand td { background: #1C1E21; }
.gi-t-boxed .gi-box, .gi-t-boxed .gi-words { border: 1px solid #6E7176; border-radius: 0; }
.gi-t-boxed .gi-sumtbl th { background: #F3F3F1; color: #1C1E21; border: 1px solid #6E7176; }
.gi-t-boxed .gi-sumtbl td { border: 1px solid #6E7176; }
.gi-t-boxed .gi-ref { border-radius: 0; border: 1px solid #1C1E21; background: #fff; color: #1C1E21; }
@media (max-width: 1180px) {
  .gi-layout { grid-template-columns: minmax(0, 1fr); }
  .gi-layout .gen-preview-col { position: static; }
}
@media (max-width: 760px) {
  .gi-toolbar { position: static; }
  .gi-tb-group { width: 100%; }
  .gi-tb-group .btn { flex: 1; justify-content: center; }
  .gi-more { flex: 1; display: flex; } .gi-more > .btn { width: 100%; }
  .gi-menu { left: 0; right: auto; width: min(330px, 88vw); }
  .gi-grid, .gi-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .gi-prov { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gi-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gi-hrow { grid-template-columns: 1fr auto; }
  .gi-hbtns { grid-column: 1 / -1; }
  .gi-sec > summary small { display: none; }
  .gi-total-pill { font-size: .72rem; }
}
@media print {
  .gi-toolbar, .gi-dialog, .gi-toast, .gi-compliance { display: none !important; }
  .gi-doc { padding: 0; }
  .gi-t-modern .gi-head { margin: 0 0 16px; padding: 18px 20px; }
  .gi-items-tbl tr, .gi-bottom, .gi-signrow { break-inside: avoid; }
}

/* Mobile: blog thumbnails grow with their title so the tag never overlaps it */
@media (max-width: 600px) {
  .thumb, .blog-list .blog-card .thumb { aspect-ratio: auto; min-height: 150px; padding-top: 3.2rem; }
  .brand-logo { height: 40px; }
}

/* =========================================================
   Thermal receipts (80 mm / 58 mm), shared by both invoice generators
   ========================================================= */
.doc-paper.rc-paper {
  width: 80mm; min-height: 0; padding: 4mm 4mm 6mm; color: #000; background: #fff;
  font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.32; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 22px rgba(31, 34, 37, .18);
}
.doc-paper.rc-paper.rc-58 { width: 58mm; padding: 3.5mm 4.5mm 6mm; font-size: 9.4px; }
.rc-paper * { color: #000 !important; }
.rc-c { text-align: center; }
.rc-logo { display: block; max-height: 15mm; max-width: 62%; margin: 0 auto 1.6mm; object-fit: contain; filter: grayscale(1) contrast(1.15); }
.rc-58 .rc-logo { max-height: 12mm; }
.rc-name { font-size: 1.45em; font-weight: 800; line-height: 1.2; margin-bottom: .6mm; word-break: break-word; }
.rc-s { font-size: .86em; }
.rc-title { font-size: 1.3em; font-weight: 800; letter-spacing: .02em; }
.rc-gap { height: 1mm; }
.rc-hr { border-top: 1px dashed #000; margin: 1.5mm 0 1.6mm; }
.rc-hr.rc-bold { border-top: 1.6px solid #000; }
.rc-hr.rc-thin { margin-top: .6mm; }
.rc-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; }
.rc-kv span { min-width: 0; overflow-wrap: anywhere; }
.rc-kv b { text-align: right; white-space: nowrap; font-weight: 700; }
.rc-small { font-size: .86em; }
.rc-th { font-size: .86em; font-weight: 700; text-transform: uppercase; }
.rc-th span { font-weight: 700; }
.rc-item { margin-bottom: 1.5mm; }
.rc-d { font-weight: 700; overflow-wrap: anywhere; }
.rc-lt span, .rc-lt b { font-weight: 700; font-size: .9em; }
.rc-count { margin-bottom: .8mm; }
.rc-grand { font-size: 1.3em; font-weight: 800; }
.rc-grand span { font-weight: 800; }
.rc-net { font-size: 1.12em; font-weight: 800; margin-top: .8mm; }
.rc-net span { font-weight: 800; }
.rc-note { font-size: .86em; font-weight: 700; margin-top: 1mm; }
.rc-lbl { font-size: .82em; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.rc-mt { margin-top: 2mm; }
.rc-bn { font-weight: 800; font-size: 1.05em; }
.rc-words { font-style: italic; font-size: .86em; margin-top: 1.2mm; }
.rc-sum { width: 100%; border-collapse: collapse; font-size: .82em; margin-top: .6mm; }
.rc-sum th, .rc-sum td { padding: .25mm 0; text-align: left; }
.rc-sum th { border-bottom: 1px solid #000; }
.rc-sum .r { text-align: right; }
.rc-qr { display: flex; justify-content: center; }
.rc-qr svg { width: 30mm; height: 30mm; }
.rc-58 .rc-qr svg { width: 26mm; height: 26mm; }
.rc-thanks { font-weight: 800; }
.rc-cut { margin-top: 3mm; color: #9B9D9F !important; letter-spacing: 1px; font-size: .8em; }
.paper-stage.rc-stage { background: repeating-linear-gradient(45deg, #E4E4E1 0 10px, #DEDEDA 10px 20px); }

/* Print-format switch (A4 / 80 mm / 58 mm) */
.preview-bar { flex-wrap: wrap; row-gap: .5rem; }
.pf-seg { display: inline-flex; gap: 2px; background: #F1F1EF; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.pf-seg button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; border-radius: 7px; padding: .32rem .6rem; font: 600 .78rem var(--font); color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: .15s; }
.pf-seg button:hover { color: var(--charcoal); }
.pf-seg button.on { background: #fff; color: var(--charcoal); box-shadow: 0 1px 4px rgba(31, 34, 37, .14), inset 0 -2px 0 var(--gold); }
.pf-i { display: inline-block; border: 1.5px solid currentColor; border-radius: 1.5px; height: 14px; }
.pf-a4 { width: 11px; }
.pf-80 { width: 7px; border-bottom-style: dashed; }
.pf-58 { width: 5px; border-bottom-style: dashed; }

@media print {
  .doc-paper.rc-paper { width: 80mm !important; padding: 3mm 4mm 5mm !important; box-shadow: none !important; margin: 0 !important; }
  .doc-paper.rc-paper.rc-58 { width: 58mm !important; padding: 3mm 4.5mm 5mm !important; }
  .rc-cut { display: none; }
  body:has(.rc-paper) { background: #fff !important; }
  .paper-stage.rc-stage { background: none !important; padding: 0 !important; }
}
.gen-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn[hidden] { display: none !important; }

/* Social links: top bar + contact section */
.topbar-socials { display: inline-flex; gap: .15rem; align-items: center; }
.topbar-socials a { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #CDCDC9; transition: .2s; }
.topbar-socials a:hover { color: var(--on-gold); background: var(--gold); }
.topbar-socials .icon { width: 13px; height: 13px; }
.ci-social .socials { margin-top: .5rem; flex-wrap: wrap; }
.ci-social { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.socials { flex-wrap: wrap; }
@media (max-width: 1080px) { .hide-md { display: none !important; } }

/* ===== Blog: cover images, Urdu posts, tags, video embeds (Blog Manager) ===== */
.thumb.thumb-img { background-size: cover; background-position: center; }
.thumb.thumb-img::before { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 45%); background-size: auto; }
.blog-list .blog-card .thumb.thumb-img { aspect-ratio: 16 / 7; }
.article .thumb.thumb-img { aspect-ratio: 16 / 8; }
[dir="rtl"][lang="ur"], .urdu { font-family: 'CBA Nastaliq', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif; }
.article-body.urdu { line-height: 2.3; font-size: 1.08rem; }
.article-body.urdu h2, .article-body.urdu h3 { line-height: 1.9; }
.article-body.urdu ul, .article-body.urdu ol { padding-right: 1.4rem; padding-left: 0; }
.article-body.urdu .callout { border-left: 0; border-right: 4px solid var(--primary-light); }
h1[lang="ur"], h3[lang="ur"] { line-height: 1.8; }
.thumb-title[lang="ur"] { line-height: 1.9; }
.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 1.4rem 0 .2rem; color: var(--text-muted); font-size: .85rem; }
.post-tags .icon { width: 16px; height: 16px; }
.post-tags a { background: var(--gold-tint); color: var(--gold-text); border: 1px solid #F3DDB0; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.post-tags a:hover { background: var(--gold); color: var(--on-gold); }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; display: block; }
.article-body figure { margin: 1.4rem 0; }
.article-body figcaption { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: -.4rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4rem 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-body pre { background: #1F2225; color: #F5F5F2; padding: 1rem; border-radius: 10px; overflow-x: auto; font-size: .88rem; }
.article-body blockquote { border-left: 4px solid var(--gold); margin: 1.3rem 0; padding: .4rem 1.1rem; color: var(--text-muted); font-style: italic; background: #FAFAF8; border-radius: 0 8px 8px 0; }
.article [dir="rtl"] th, .article-body.urdu th { text-align: right; }
.thumb-title[lang="ur"] { margin-left: auto; text-align: right; }

/* ===== Corner "More" dropdown (Services, About, Blog, Contact) ===== */
.nav-links .more-toggle { border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; gap: .45rem; margin-left: .45rem; }
.nav-links .more-toggle:hover, .dropdown-more.open .more-toggle { border-color: var(--gold); }
.nav-links .more-toggle.active::after { display: none; }
.more-toggle .more-ic { width: 17px; height: 17px; }
.dropdown-more .dropdown-item span { display: flex; flex-direction: column; line-height: 1.25; }
.dropdown-more .dropdown-item small { font-size: .78rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.nav-links .dropdown-more .dropdown-all .icon:first-child { color: #25D366; }
@media (min-width: 961px) {
  .dropdown-more .dropdown-menu { left: auto; right: 0; min-width: 270px; transform: translate(0, 10px); }
  .dropdown-more:hover .dropdown-menu, .dropdown-more.open .dropdown-menu, .dropdown-more:focus-within .dropdown-menu { transform: translate(0, 0); }
  .dropdown-more .dropdown-menu::after { left: auto; right: 34px; transform: rotate(45deg); }
}
@media (max-width: 960px) {
  .nav-links .dropdown-more { order: 1; }
  .nav-links .nav-cta { order: 2; }
  .nav-links .more-toggle { margin-left: 0; border: 0; }
  .dropdown-more .dropdown-item small { color: #A3A6AA; }
}
@media (max-width: 960px) {
  .nav-links .more-toggle { justify-content: flex-start; }
  .nav-links .more-toggle .dd-caret { margin-left: auto; }
}

/* ===== Free Consultation page ===== */
.consult-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.consult-badges span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 500; }
.consult-badges .icon { color: var(--gold); }
.consult-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.consult-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 1.8rem; }
.consult-step { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); scroll-margin-top: 110px; }
.cs-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.cs-head h3 { margin: 0; font-size: 1.15rem; }
.cs-head p { margin: .15rem 0 0; color: var(--text-muted); font-size: .9rem; }
.cs-num { width: 34px; height: 34px; border-radius: 10px; background: var(--charcoal); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); flex-shrink: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.svc { position: relative; cursor: pointer; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc > span { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .95rem .85rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; transition: .15s; position: relative; }
.svc > span .icon { width: 24px; height: 24px; color: var(--mustard); margin-bottom: .35rem; }
.svc b { font-size: .9rem; color: var(--text-strong); line-height: 1.25; }
.svc small { font-size: .76rem; color: var(--text-muted); }
.svc:hover > span { border-color: #EBCB8B; background: #FFFDF8; }
.svc input:checked + span { border-color: var(--gold); background: var(--gold-tint); box-shadow: 0 0 0 3px rgba(250,171,53,.18); }
.svc input:checked + span::after { content: '✓'; position: absolute; top: .55rem; right: .6rem; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.svc input:focus-visible + span { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.seg-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg-chips label { cursor: pointer; margin: 0 !important; font-weight: 500 !important; }
.seg-chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg-chips span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1.5px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--text); background: #fff; transition: .15s; }
.seg-chips span .icon { color: var(--mustard); }
.seg-chips input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.seg-chips input:checked + span .icon { color: var(--gold); }
.seg-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-group label small { font-weight: 400; color: var(--text-muted); }
.form-control.is-bad { border-color: #DC2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important; }
.cs-err { display: none; color: #B42318; font-size: .82rem; margin: .35rem 0 0; }
.cs-err.show { display: block; }
.cs-note { display: none; font-size: .8rem; color: var(--gold-text); margin: .35rem 0 0; }
.cs-note.show { display: flex; gap: .3rem; align-items: center; }
.cs-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; cursor: pointer; }
.cs-consent input { width: 17px; height: 17px; accent-color: var(--mustard); margin-top: 2px; }
.consult-submit { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1rem; }
.cs-small { font-size: .82rem; color: var(--text-muted); text-align: center; margin: .8rem 0 0; }
.consult-done { text-align: center; padding: 2.4rem 1.8rem; scroll-margin-top: 110px; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; box-shadow: 0 0 0 10px var(--gold-tint); }
.consult-done h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.done-lead { color: var(--text-muted); max-width: 520px; margin: 0 auto 1.4rem; }
.done-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.done-summary { text-align: left; background: #FAFAF8; border: 1px dashed #DCDAD4; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.6rem auto 0; max-width: 560px; }
.done-summary h4 { font-size: .9rem; margin: 0 0 .5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.done-summary pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: .9rem; color: var(--text); line-height: 1.6; }
.done-edit { border: 0; background: none; cursor: pointer; margin-top: 1rem; font: inherit; font-weight: 600; }
.consult-side { position: sticky; top: 96px; }
.consult-side .sidebar-box { margin-bottom: 1.1rem; }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: .6rem 0 0; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 1rem 2.6rem; display: flex; flex-direction: column; font-size: .9rem; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); border: 1.5px solid var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.next-steps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1.5px; background: #EFD9AC; }
.next-steps li span { color: var(--text-muted); font-size: .85rem; }
.direct-row { display: flex; gap: .8rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid var(--border); color: var(--text); }
.direct-row:last-child { border-bottom: 0; }
.direct-row > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--gold-tint); color: var(--gold-text); flex-shrink: 0; }
.direct-row.wa > .icon { background: #E7F8EE; color: #128C4B; }
.direct-row span { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.3; }
.direct-row small { color: var(--text-muted); font-size: .8rem; }
a.direct-row:hover b { color: var(--gold-text); }
.ready-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; font-size: .88rem; }
.ready-list li { display: flex; gap: .5rem; align-items: flex-start; }
.ready-list .icon { color: var(--mustard); margin-top: 3px; }
.consult-faq { margin: 3rem 0 1rem; }
.consult-faq h2 { text-align: center; margin-bottom: 1.4rem; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .consult-layout { grid-template-columns: 1fr; } .consult-side { position: static; } }
@media (max-width: 640px) {
  .consult-card { padding: 1.2rem; }
  .svc > span { padding: .8rem .7rem; }
  .done-actions .btn { width: 100%; justify-content: center; }
}
.consult-hero .consult-badges { justify-content: center; }
.ci-map { display: inline-block; margin-top: .25rem; font-size: .85rem; font-weight: 600; color: var(--gold-text); }
.ci-map:hover { text-decoration: underline; }
.ci-item .ci-map { display: block; color: var(--gold); margin-top: .3rem; }
.ci-item .ci-map:hover { color: var(--gold-light); }

/* ===== SEO content blocks, services-tax page, footer keywords ===== */
.seo-block { margin-top: 1.6rem; }
.seo-block a:not(.btn), .sst-page .tc-guide a:not(.btn), .sst-note a { color: var(--gold-text); font-weight: 600; }
.seo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.seo-cols ul { padding-left: 1.1rem; margin-top: .4rem; }
.seo-cols li { margin-bottom: .45rem; }
.seo-faq { margin-top: 1.6rem; }
.sst-h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.sst-note { font-size: .86rem; color: var(--text-muted); margin: .9rem 0 0; }
.sst-cmp-title { font-size: 1.05rem; margin: 1.5rem 0 .7rem; }
.sst-cmp tr.sst-on td { background: var(--gold-tint); font-weight: 600; }
.sst-page .tc-guide h3[id] { scroll-margin-top: 110px; }
.footer-keywords { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .82rem; }
.footer-keywords span { color: #9B9D9F; font-weight: 600; margin-right: .2rem; }
.footer-keywords a { color: #CDCDC9; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: .28rem .75rem; transition: .2s; }
.footer-keywords a:hover { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.footer-keywords + .footer-bottom { margin-top: 1.4rem; }
.nf-wrap { text-align: center; padding: 3rem 1rem 4rem; }
.nf-code { font-family: Poppins, sans-serif; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--gold); line-height: 1; }
.nf-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }
@media (max-width: 760px) { .seo-cols { grid-template-columns: 1fr; } }
#sstOut { margin-top: 1.6rem; animation: tcFade .35s ease; }
.legal-page h2 { scroll-margin-top: 110px; }
.legal-page a:not(.btn) { color: var(--gold-text); font-weight: 600; }

/* =========================================================
   HOME PAGE (calculatemytax.pk-style layout, Chinnar theme)
   ========================================================= */
.hm-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #17191B 0%, #2E3236 55%, #3A3530 100%); color: #fff; padding: 72px 0 120px; }
.hm-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 171, 53, .30), transparent 70%); }
.hm-hero .container { position: relative; z-index: 2; }
.hm-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; z-index: 1; }
.hm-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.5px; margin: 1.1rem 0 1rem; max-width: 900px; }
.hm-hero h1 .hl { background: linear-gradient(90deg, #FAAB35, #FFD27A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { font-size: 1.12rem; color: #D5D6D8; max-width: 620px; margin: 0 0 1.8rem; line-height: 1.7; }
.hm-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hm-stats div { text-align: center; }
.hm-stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.hm-stats span { font-size: .82rem; color: #BFC1C4; }
.hm-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hm-actions .btn { padding: .85rem 1.4rem; }

.hm-popular { position: relative; z-index: 3; margin: -46px auto 0; background: #fff; border-radius: 14px; border-left: 5px solid var(--gold); box-shadow: 0 14px 36px rgba(31, 34, 37, .12); padding: 1.15rem 1.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 0; font-size: .95rem; }
.hm-popular span { color: var(--text-muted); margin-right: .9rem; }
.hm-popular a { color: var(--gold-text); font-weight: 600; padding: 0 .95rem; border-right: 1px solid var(--border); }
.hm-popular a:last-child { border-right: 0; }
.hm-popular a:hover { color: var(--charcoal); text-decoration: underline; }

.hm-anchor { position: relative; top: -100px; display: block; height: 0; }
.hm-tight { padding-top: 30px !important; padding-bottom: 30px !important; }
.hm-panel { background: #F1F1EE; border-radius: 22px; padding: 2.6rem 2rem; }
.hm-panel-top { background: #F1F1EE; border-top: 4px solid var(--gold); }
.hm-panel-line { background: #fff; border: 1px solid var(--border); }
.hm-head { margin-bottom: 2.2rem; }
.hm-head h2 { position: relative; padding-bottom: .7rem; }
.hm-head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--mustard)); }

.hm-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.hm-calc h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; margin-bottom: 1.2rem; }
.hm-calc h3 .icon { color: var(--gold-text); }
.hm-chips { margin-top: -.3rem; }
.hm-more { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.1rem; font-weight: 600; color: var(--gold-text); font-size: .92rem; }
.hm-more:hover { color: var(--charcoal); }
.hm-side { display: grid; gap: 1.4rem; }
.hm-year h4, .hm-side .slab-card h4 { display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; }
.hm-year h4 .icon, .hm-side .slab-card h4 .icon { color: var(--gold-text); }
.hm-year p { font-size: .9rem; color: var(--text-muted); margin: .3rem 0 .9rem; }
.hm-full { width: 100%; justify-content: center; margin-top: 1rem; }

.hm-pop { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow); transition: .25s; }
.hm-pop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.hm-pop-ic { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2)); color: var(--gold); }
.hm-pop-ic .icon { width: 26px; height: 26px; }
.hm-pop h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.hm-pop p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.1rem; min-height: 2.9em; }

.hm-cat { display: inline-block; font-size: 1.25rem; margin: 1.6rem 0 1rem; padding-bottom: .35rem; border-bottom: 3px solid var(--gold); }
.hm-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hm-tool { display: flex; align-items: center; gap: .95rem; background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 1rem 1.1rem; color: var(--text); transition: .22s; }
.hm-tool:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(31, 34, 37, .10); transform: translateY(-2px); }
.hm-tool-ic { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--mustard)); color: var(--on-gold); }
.hm-tool-ic .icon { width: 22px; height: 22px; }
.hm-tool-txt { flex: 1; min-width: 0; }
.hm-tool-txt h4 { font-size: .98rem; margin: 0 0 .15rem; color: var(--text-strong); }
.hm-tool-txt p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
.hm-tool-btn { flex: none; background: var(--charcoal); color: #fff; font-size: .78rem; font-weight: 600; padding: .45rem .8rem; border-radius: 8px; transition: .2s; }
.hm-tool:hover .hm-tool-btn { background: var(--gold); color: var(--on-gold); }

.hm-article { background: #fff; border-radius: 20px; border: 1px solid var(--border); border-top: 4px solid var(--gold); box-shadow: var(--shadow); padding: 2.4rem 2.6rem; }
.hm-article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }
.hm-article h3 { font-size: 1.25rem; margin: .4rem 0 .6rem; }
.hm-article p, .hm-article li { color: var(--text); line-height: 1.75; }
.hm-article ul { padding-left: 1.2rem; }
.hm-article hr { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0; }
.hm-article a:not(.btn) { color: var(--gold-text); font-weight: 600; }
.hm-disc { font-size: .88rem; color: var(--text-muted) !important; }

.hm-gen { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .25s; }
.hm-gen:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hm-gen-top { background: linear-gradient(135deg, var(--charcoal-dark), var(--charcoal-2) 70%, #6B5226); color: #fff; text-align: center; padding: 1.6rem 1rem 1.4rem; }
.hm-gen-top .icon { width: 34px; height: 34px; color: var(--gold); }
.hm-gen-top h3 { color: #fff; font-size: 1.15rem; margin: .6rem 0 .2rem; }
.hm-gen-top p { color: #CDCDC9; font-size: .85rem; margin: 0; }
.hm-gen-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.hm-gen-body > p { font-size: .92rem; color: var(--text); }
.hm-gen-body ul { list-style: none; padding: 0; margin: .2rem 0 1.2rem; }
.hm-gen-body li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-muted); margin-bottom: .45rem; }
.hm-gen-body li .icon { width: 16px; height: 16px; color: var(--gold-text); }
.hm-gen-btn { margin-top: auto; width: 100%; justify-content: center; }

.hm-cta { margin: 40px 0; background: linear-gradient(135deg, #17191B, #2E3236 60%, #4A3B22); color: #fff; text-align: center; padding: 64px 0; position: relative; overflow: hidden; }
.hm-cta::after { content: ''; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(250, 171, 53, .25), transparent 70%); }
.hm-cta .container { position: relative; z-index: 1; }
.hm-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.hm-cta p { color: #D5D6D8; max-width: 680px; margin: 0 auto 1.8rem; }
.hm-cta-note { margin-top: 1.4rem; font-size: .9rem; color: #BFC1C4; display: inline-flex; align-items: center; gap: .45rem; }
.hm-cta-note .icon { color: var(--gold); }

.hm-dir { background: #fff; border-top: 1px solid var(--border); padding: 44px 0 50px; }
.hm-dir h2 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.hm-dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.hm-dir h3 { font-size: 1rem; margin-bottom: .45rem; }
.hm-dir p { font-size: .88rem; color: var(--text-muted); line-height: 1.8; margin: 0; }
.hm-dir a { color: var(--text); }
.hm-dir a:hover { color: var(--gold-text); }
.hm-dir-areas { margin-top: 1.4rem !important; display: flex; gap: .45rem; align-items: flex-start; }
.hm-dir-areas .icon { flex: none; color: var(--gold-text); margin-top: .25rem; }

@media (max-width: 1080px) { .hm-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hm-calc-grid { grid-template-columns: 1fr; } .hm-dir-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .hm-hero { padding: 48px 0 100px; }
  .hm-stats { gap: 1.2rem; justify-content: space-between; }
  .hm-stats strong { font-size: 1.5rem; }
  .hm-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hm-popular { flex-direction: column; text-align: center; gap: .55rem; }
  .hm-popular span { margin: 0; }
  .hm-popular a { border-right: 0; }
  .hm-panel { padding: 1.8rem 1rem; border-radius: 16px; }
  .hm-tools { grid-template-columns: 1fr; }
  .hm-article { padding: 1.6rem 1.2rem; }
}
.hm-head { max-width: 920px; }
.hm-hero h1 { max-width: 1000px; }
@media (min-width: 1100px) { .hm-hero h1 { font-size: 3.15rem; } }
.hm-head h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }

/* ===== Office map (exact pin: Shalimar Traders, Hajira) ===== */
.map-card { margin-top: 2rem; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-frame { position: relative; height: 360px; background: linear-gradient(135deg, #EDECE8, #F7F6F2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; color: var(--text-muted); font-weight: 600; }
.map-fallback .icon { width: 38px; height: 38px; color: var(--gold-text); }
.map-fallback small { font-weight: 400; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; border-top: 3px solid var(--gold); }
.map-addr { display: flex; gap: .7rem; align-items: flex-start; }
.map-addr .icon { flex: none; width: 22px; height: 22px; color: var(--gold-text); margin-top: .15rem; }
.map-addr strong { display: block; color: var(--text-strong); }
.map-addr span { color: var(--text-muted); font-size: .93rem; }
.map-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.map-mini { height: 190px; border-radius: 12px; overflow: hidden; margin-top: .8rem; border: 1px solid var(--border); }
.map-mini .map-fallback .icon { width: 28px; height: 28px; }
footer .footer-contact a[href*="google.com/maps"] { color: inherit; }
@media (max-width: 680px) { .map-frame { height: 280px; } .map-btns .btn { flex: 1 1 100%; justify-content: center; } }

/* ===================== FBR Authority Letters ===================== */
.doc-authletter { font-family: "Times New Roman", Times, Georgia, serif; font-size: 14.5px; line-height: 1.6; color: #232528; }
.doc-authletter .al-head { margin-bottom: 26px; }
.doc-authletter .al-head h2 { font-size: 23px; line-height: 1.25; }
.doc-authletter .al-head p { font-family: var(--font); font-size: 11.5px; line-height: 1.55; }
.al-blank { height: 150px; }
.al-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.doc-paper .al-to { margin-bottom: 16px; }
.doc-paper .al-subj { margin-bottom: 16px; }
.al-subj u { text-underline-offset: 3px; }
.doc-paper .al-p { text-align: justify; margin-bottom: 10px; }
.al-ol { padding-left: 28px; margin: 0 0 12px; }
.al-ol li { margin-bottom: 4px; padding-left: 4px; text-align: justify; }
.al-label { font-weight: 700; margin: 18px 0 7px; }
.doc-table.al-table { font-size: 13.5px; table-layout: fixed; }
.al-table th, .al-table td { border: 1px solid #B9BBBE; padding: 6px 8px; }
.al-table td { height: 50px; vertical-align: middle; word-wrap: break-word; }
.al-table td:first-child, .al-table th:first-child { text-align: center; }
.al-table tbody tr:nth-child(even) td { background: none; }
.al-table tfoot td { height: auto; }
.al-sign { display: flex; flex-direction: column; width: 280px; margin-top: 20px; }
.al-lead { margin-bottom: 58px; }
.al-sign .sig-line { margin-bottom: 6px; }
.al-sign span { color: #4F5358; }
.al-spec { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; break-inside: avoid; }
.al-spec-box { display: flex; flex-direction: column; font-size: 13px; }
.al-box { width: 280px; height: 90px; border: 1px solid #9A9C9F; margin-bottom: 7px; }
.al-spec-box span { color: #55595E; }
.al-spec .stamp { width: 112px; height: 112px; font-family: var(--font); font-size: 11px; }
.al-powers { display: grid; gap: 8px; margin-bottom: 12px; }
.al-powers .check { margin: 0; align-items: flex-start; line-height: 1.45; font-size: .9rem; }
.al-powers .check input { margin-top: 3px; flex-shrink: 0; }
@media print {
  .al-blank { height: 36mm; }
  .al-table tr, .al-sign, .al-spec, .al-signrow, .al-block.al-keep { break-inside: avoid; }
  .al-close, .al-label { break-after: avoid; }
  .al-table tfoot { display: table-row-group; }
}
.al-signrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; break-inside: avoid; }
.al-signrow .al-sign { margin-top: 0; width: 250px; }
.al-signrow .al-box { width: 230px; height: 80px; }
.al-signrow .stamp { width: 96px; height: 96px; font-family: var(--font); font-size: 10.5px; flex-shrink: 0; }

/* ===================== Business Card & Letterhead ===================== */
.doc-paper.doc-bcard, .doc-paper.doc-letterhead { padding: 0; min-height: 0; background: transparent; box-shadow: none; }
.bc-screen { padding: 28px 40px 10px; background: #EEEDEA; border-radius: 10px; }
.bc-side { margin-bottom: 26px; }
.bc-lab { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #6E7176; margin-bottom: 9px; }
.bc-card svg { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 34px rgba(31, 34, 37, .2), 0 2px 6px rgba(31, 34, 37, .1); background: #fff; }
.bc-note { text-align: center; font-family: var(--font); font-size: 13px; color: #6E7176; margin: 0 0 18px !important; }
.bc-print { display: none; }
.lh-page { position: relative; width: 210mm; height: 297mm; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(31, 34, 37, .15); margin-bottom: 26px; }
.lh-page:last-child { margin-bottom: 0; }
.lh-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lh-body { position: absolute; font-size: 11pt; line-height: 1.5; color: #232528; padding-top: 4mm; }
.lh-b { margin-bottom: 3.2mm; }
.lh-meta { display: flex; justify-content: space-between; margin-bottom: 4.5mm; }
.lh-to { margin-bottom: 4.5mm; }
.lh-p { text-align: justify; }
.lh-subj u { text-underline-offset: 2px; }
.lh-gap { height: 13mm; }
@media print {
  .doc-bcard .bc-screen { display: none !important; }
  .doc-bcard .bc-print { display: block; }
  .bc-pg { width: 210mm; height: 296.5mm; overflow: hidden; break-after: page; }
  .bc-pg:last-child { break-after: auto; }
  .bc-pg svg { display: block; width: 210mm; height: 297mm; }
  .bc-pg.bc-pg-single svg { width: 100%; height: 100%; }
  .doc-letterhead .lh-page { box-shadow: none; margin: 0; height: 296.5mm; break-after: page; }
  .doc-letterhead .lh-page:last-child { break-after: auto; }
}

/* Tax certificate: Rule 42 withholding certificates (Task 24) */
.cert-rate-box { display: flex; gap: 8px; align-items: flex-start; background: var(--gold-tint); border: 1px solid #F3DDB0; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text); margin: 4px 0 12px; line-height: 1.5; }
.cert-rate-box:empty { display: none; }
.cert-rate-box .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--gold-text); }
.form-group select optgroup { font-weight: 700; color: #2E3236; }
.cert-copy { border: 1px solid var(--doc-accent); color: var(--doc-accent); border-radius: 4px; padding: 1px 10px; font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.cert-sec-badge { text-align: center; margin: -6px auto 14px; font-size: 12px; font-weight: 600; color: #2E3236; background: #F4F3F0; border: 1px solid #E6E5E2; border-radius: 999px; padding: 4px 14px; width: fit-content; max-width: 100%; }
.cert-dep-lead { margin: 2px 0 8px !important; }
.doc-cert .cert-table { margin-bottom: 12px; font-size: 11.5px; }
.doc-cert .cert-table td, .doc-cert .cert-table th { padding: 4px 8px; }
.cert-dep, .cert-pay { break-inside: avoid; }
@media print {
  .doc-cert .doc-head { margin-bottom: 8px; padding-bottom: 8px; }
  .doc-cert .cert-meta { margin-bottom: 8px; }
  .doc-cert .cert-title { margin-bottom: 8px; }
  .doc-cert .info-grid th, .doc-cert .info-grid td { padding: 3px 9px; }
  .doc-cert .cert-body { line-height: 1.55; margin-bottom: 8px !important; }
  .doc-cert .cert-table td, .doc-cert .cert-table th { padding: 3px 8px; }
  .doc-cert .cert-table { margin-bottom: 8px; }
  .doc-cert .cert-summary div { padding: 6px 12px; }
  .doc-cert .sig-row { margin-top: 8px; }
  .doc-cert .stamp { width: 70px; height: 70px; }
  .doc-cert .doc-foot { margin-top: 8px; }
}

/* "e.g." sample data: faded in the preview, never printed */
.doc-paper .ph-sample, .ph-demo { opacity: .42; }
.doc-paper tspan.ph-sample, .doc-paper text.ph-sample { opacity: 1; fill-opacity: .4; }
.sample-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-muted); background: var(--gold-tint); border: 1px solid #F3DDB0; border-radius: 10px; padding: 9px 12px; margin: 0 0 14px; }
.sample-note .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--gold-text); }
.ph-demo { font-weight: 600; color: var(--text); }
.gen-form .form-control::placeholder { color: #A9ACB1; opacity: 1; }
@media print { .doc-paper .ph-sample { opacity: 1; } }
.doc-paper tr.ph-row > td { opacity: .42; }
.doc-paper tr.ph-row .ph-sample { opacity: 1; }
/* grid children may shrink below their content width (fixes mobile overflow on post / rent pages) */
.blog-layout > * { min-width: 0; }
@media (max-width: 640px) { .article, .calc-card { padding: 1.3rem; } }
@media (max-width: 640px) { .article .thumb:not(.thumb-img) { aspect-ratio: auto; } .article .thumb.thumb-img { min-height: 0; } }

/* ===== Bill & invoice formats (Task 26) ===== */
/* download strip above the preview: Word / Excel / PDF */
.dl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .8rem; padding: .55rem .7rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.dl-bar > span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-right: auto; }
.dl-bar > span .icon { width: 15px; height: 15px; color: var(--gold-text); }
.dl-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .75rem .42rem .45rem; border-radius: 9px; border: 1px solid var(--border); background: #FAFAF8; font: 600 .84rem var(--font); color: var(--text); cursor: pointer; transition: all .18s; }
.dl-btn small { font-weight: 500; color: var(--text-muted); font-size: .74rem; }
.dl-btn:hover { border-color: var(--gold); background: var(--gold-tint); transform: translateY(-1px); }
.dl-ic { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px; font: 800 .66rem/1 var(--font); font-style: normal; color: #fff; }
.dl-w { background: #2B579A; } .dl-x { background: #1D6F42; } .dl-p { background: #C0392B; font-size: .56rem; }
@media print { .dl-bar { display: none !important; } }

/* repeater column headings */
.rep-head { display: grid; gap: .5rem; padding: 0 .6rem; margin-bottom: -.25rem; font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); }
.rep-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .rep-head { display: none; } }

/* A4 bill template */
.bm-boxes { display: grid; gap: 14px; margin-bottom: 18px; }
.bm-boxes.bm-n2 { grid-template-columns: 1fr 1fr; }
.bm-box { border: 1px solid #E6E5E2; border-left: 4px solid var(--doc-accent); border-radius: 8px; padding: 10px 14px; }
.bm-box small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #6E7176; margin-bottom: 2px; }
.bm-box b { font-size: 14px; color: #1C1E21; }
.bm-box table { border-collapse: collapse; font-size: 11.5px; margin-top: 3px; }
.bm-box td { padding: 1px 12px 1px 0; vertical-align: top; }
.bm-box td:first-child { color: #6E7176; white-space: nowrap; }
.totals tr.bm-after td { font-size: 11.5px; color: #4F5358; }
.totals tr.bm-bal td { font-weight: 700; border-top: 1px dashed #A0A2A5; border-bottom: 1px dashed #A0A2A5; }
.bm-save { font-style: normal !important; font-weight: 600; color: #1D6F42 !important; font-size: 11.5px; }
.bm-thanks { display: inline-block; font-size: 12.5px; color: var(--doc-accent); margin-bottom: 4px; }
.bm .doc-foot { color: #8A8D91; }

/* format guidelines block */
.format-guide { color: var(--text); line-height: 1.75; }
.format-guide h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.format-guide ul { padding-left: 1.2rem; margin: .3rem 0 .8rem; }
.format-guide li { margin-bottom: .25rem; }
.format-guide a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reviewed { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); background: #F7F7F5; border-radius: 999px; padding: .3rem .8rem; margin: .4rem 0 0; }
.reviewed .icon { width: 14px; height: 14px; color: #1D6F42; }

/* generators hub: bill formats */
.hub-section-head { text-align: center; max-width: 760px; margin: 3.2rem auto 1.6rem; }
.hub-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hub-section-head p { color: var(--text-muted); }
.hub-section-head .eyebrow { display: inline-flex; align-items: center; gap: .4rem; }
.hub-section-head .eyebrow .icon { width: 14px; height: 14px; }
.bill-fmts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .6rem; }
.bill-fmts span { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: #F1F1EF; color: #464B51; }
.bill-fmts span:first-child { background: var(--gold-tint); color: var(--gold-text); }

/* generators dropdown: two titled columns */
.dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .6rem; }
.dd-head { font-size: .7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); padding: .55rem 1rem .3rem; }
.dd-col + .dd-col { border-left: 1px solid #EFEEEB; padding-left: .6rem; }
@media (min-width: 961px) {
  .dropdown-wide .dropdown-menu { min-width: 600px; }
  .dropdown-wide .dropdown-menu a.dropdown-item { padding: .62rem .9rem; font-size: .97rem; }
}
@media (max-width: 960px) {
  .dd-cols { grid-template-columns: 1fr; }
  .dd-col + .dd-col { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: .3rem; }
  .dd-head { color: #A3A6AA; padding: .5rem .9rem .2rem; }
}
/* stacked repeater rows: first field (item name) on its own line, the rest below */
.rep-row.rep-stack > .form-control:first-child { grid-column: 1 / -2; grid-row: 1; }
.rep-row.rep-stack > .rep-del { grid-column: -2; grid-row: 1; }
.rep-head-stack { order: 0; }
@media (max-width: 640px) {
  .rep-row.rep-stack { position: relative; grid-template-columns: 1fr 1fr !important; }
  .rep-row.rep-stack > .form-control:not(:first-child) { grid-column: auto; }
  .rep-row.rep-stack > .form-control:first-child { grid-column: 1 / -1; width: auto; margin-right: 44px; }
  .rep-row.rep-stack > .rep-del { position: absolute; top: .6rem; right: .6rem; }
}

/* ===== Generators hub (generators.html): easykhata-style layout, gold / charcoal theme ===== */
.gx { padding: 0 0 4rem; }
.gx-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #3A3F45 0%, #2E3236 45%, #1F2225 100%);
  padding: 64px 0 120px; border-radius: 0 0 50% 50% / 0 0 110px 110px;
}
.gx-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gx-hero-in { position: relative; max-width: 880px; }
.gx-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: .4rem 0 .9rem; }
.gx-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 1rem; }
.gx-hero p { color: #D6D6D2; font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 680px; margin: 0 auto; line-height: 1.65; }
.gx-search {
  display: flex; align-items: center; gap: .6rem; max-width: 560px; margin: 1.8rem auto 0; padding: .35rem .45rem .35rem 1.1rem;
  background: #fff; border-radius: 999px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); cursor: text;
}
.gx-search .icon { width: 19px; height: 19px; color: var(--gold-text); flex: 0 0 19px; }
.gx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 1rem var(--font); color: var(--text); padding: .65rem 0; }
.gx-search:focus-within { box-shadow: 0 0 0 4px rgba(250, 171, 53, .45), 0 14px 40px rgba(0, 0, 0, .28); }
.gx-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-top: 1.5rem; font-size: .88rem; color: #CDCDC9; }
.gx-stats span { display: inline-flex; align-items: center; gap: .4rem; }
.gx-stats .icon { width: 16px; height: 16px; color: var(--gold); }
.gx-stats b { color: #fff; }

.gx-sec { padding: 3.6rem 0 1rem; }
.gx-sec[hidden] { display: none; }
.gx-alt { background: #F1F0EC; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-bottom: 3.6rem; margin-top: 2.6rem; }
.gx-head { max-width: 760px; margin-bottom: 1.6rem; }
.gx-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--charcoal); margin: 0 0 .5rem; position: relative; padding-bottom: .6rem; }
.gx-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); }
.gx-head p { color: var(--text-muted); margin: 0; font-size: 1.02rem; line-height: 1.65; }

.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gx-card {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.5rem 1.25rem; border-radius: 16px;
  background: #FAFAF8; border: 1px solid var(--border); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.gx-alt .gx-card { background: #fff; }
.gx-card[hidden] { display: none; }
.gx-card:hover { background: #fff; border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(31, 34, 37, .10); }
.gx-card-top { display: flex; align-items: center; gap: .75rem; }
.gx-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.gx-ic .icon { width: 20px; height: 20px; }
.gx-card h3 { font-size: 1.06rem; margin: 0; color: var(--charcoal); line-height: 1.3; }
.gx-card p { font-size: .92rem; color: var(--text-muted); margin: 0; line-height: 1.6; flex: 1; }
.gx-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.gx-tags span { font-size: .7rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px; background: #EDECE8; color: #464B51; }
.gx-tags span:first-child { background: var(--gold-tint); color: var(--gold-text); }
.gx-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .88rem; font-weight: 700; color: var(--gold-text); }
.gx-go .icon { width: 15px; height: 15px; transition: transform .2s; }
.gx-card:hover .gx-go .icon { transform: translateX(4px); }

.gx-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.8rem; }
.gx-chips[hidden] { display: none; }
.gx-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: .9rem; font-weight: 500; transition: .2s; }
.gx-chip .icon { width: 15px; height: 15px; color: var(--gold-text); }
.gx-chip:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--charcoal); }
.gx-none { text-align: center; color: var(--text-muted); padding: 3rem 1rem 1rem; display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gx-none[hidden] { display: none; }
.gx-none .icon { width: 18px; height: 18px; }
.gx-none a { color: var(--gold-text); font-weight: 600; }

.gx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gx-feat { display: flex; gap: .8rem; align-items: center; padding: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.gx-feat > .icon { width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-text); }
.gx-feat b { display: block; color: var(--text-strong); font-size: .95rem; }
.gx-feat span { font-size: .82rem; color: var(--text-muted); }
.gx-faq { max-width: 860px; margin: 3.6rem auto 0; }
.gx-faq h2 { text-align: center; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--charcoal); margin-bottom: 1.4rem; }

@media (max-width: 1024px) {
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gx-hero { padding: 40px 0 80px; border-radius: 0 0 50% 50% / 0 0 44px 44px; }
  .gx-grid, .gx-feats { grid-template-columns: 1fr; }
  .gx-sec { padding-top: 2.6rem; }
  .gx-alt { padding-bottom: 2.6rem; }
  .gx-stats { gap: .4rem 1rem; font-size: .82rem; }
  .gx-search input { font-size: .92rem; }
}
.gx-help { grid-column: span 1; background: linear-gradient(135deg, #FEF7E8, #fff 70%); border-style: dashed; border-color: #F0C674; }
.gx-help:hover { transform: none; }
.gx-help-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
@media (max-width: 640px) { .gx-help { grid-column: auto; } }

.gx-help.gx-span2 { grid-column: span 2; }
.gx-help.gx-span1 { grid-column: span 1; }
.gx-help .btn { white-space: nowrap; }
/* calculators hub: category groups with chips */
.gx-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gx-group { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem 1.4rem; }
.gx-group[hidden], .gx-chip[hidden] { display: none; }
.gx-group h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; color: var(--charcoal); margin: 0 0 .9rem; }
.gx-group h3 .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--gold-tint); color: var(--gold-text); }
.gx-group .gx-chips { margin: 0; gap: .45rem; }
.gx-group .gx-chip { padding: .42rem .8rem; font-size: .86rem; background: #FAFAF8; }
.gx-chip small { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.gx-chip:hover small { color: var(--gold-text); }
.gx-article { margin-top: 0; }
@media (max-width: 1024px) { .gx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gx-help.gx-span1 { grid-column: span 2; } }
@media (max-width: 640px) { .gx-groups { grid-template-columns: 1fr; } .gx-help.gx-span1, .gx-help.gx-span2 { grid-column: auto; } }

/* ===================== Task 32: Urdu fonts, Urdu visiting card, ATS CV, AI assistant ===================== */
@font-face { font-family: 'CBA Nastaliq'; src: url('fonts/noto-nastaliq-urdu-arabic.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'CBA Naskh'; src: url('fonts/noto-naskh-arabic-arabic.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
.ur-input { font-family: 'CBA Nastaliq', 'Noto Nastaliq Urdu', var(--font); font-size: 1.02rem; line-height: 2.1; padding-top: .25rem; padding-bottom: .25rem; text-align: right; }
.ur-input::placeholder { font-family: 'CBA Nastaliq', var(--font); }
[dir=rtl].ur-input { unicode-bidi: plaintext; }

/* Urdu card preview (same frame as the business card) */
.doc-paper.doc-ucard { padding: 0; min-height: 0; background: transparent; box-shadow: none; }
@media print {
  .doc-ucard .bc-screen { display: none !important; }
  .doc-ucard .bc-print { display: block; }
}

/* AI helper buttons inside generator forms */
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: -.2rem 0 1rem; }
.ai-row[hidden] { display: none; }
.ai-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--charcoal); color: var(--gold-light); border: 0; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .84rem; cursor: pointer; transition: .2s; }
.ai-btn .icon { width: 15px; height: 15px; }
.ai-btn:hover { background: var(--charcoal-dark); color: var(--gold); transform: translateY(-1px); }
.ai-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.ai-btn.busy .icon { animation: aiSpin 1s linear infinite; }
.ai-btn.ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.ai-row .hint { margin: 0; }
.ai-note { font-size: .82rem; margin: -.4rem 0 1rem; padding: .5rem .75rem; border-radius: 10px; background: var(--gold-tint); color: var(--text); }
.ai-note.err { background: #FDECEC; color: #9B1C1C; }
@keyframes aiSpin { to { transform: rotate(360deg); } }

/* ATS CV document */
.doc-paper.doc-atscv { padding: 15mm 16mm; }
.ats { color: #111; line-height: 1.38; }
.ats p, .ats ul { margin: 0; }
.ats-head { text-align: center; margin-bottom: 10px; }
.ats-head h1 { font: inherit; font-size: 2.05em; font-weight: 700; letter-spacing: .3px; margin: 0 !important; color: #111; line-height: 1.15; }
.ats-title { font-size: 1.12em; font-weight: 600; margin-top: 2px; color: #222; }
.ats-contact { font-size: .95em; margin-top: 4px; color: #222; word-break: break-word; }
.ats-sec { margin-top: 11px; }
.ats-sec h2 { font: inherit; font-size: 1.08em; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #111; border-bottom: 1px solid #111; padding-bottom: 2px; margin: 0 0 6px !important; }
.ats-item { margin-bottom: 8px; break-inside: avoid; }
.ats-item:last-child { margin-bottom: 0; }
.ats-row { display: flex; justify-content: space-between; gap: 12px; }
.ats-row span { white-space: nowrap; flex-shrink: 0; }
.ats-org { font-style: italic; }
.ats ul { padding-left: 1.25em; margin-top: 3px; }
.ats li { margin-bottom: 2px; }
.ats-skills { line-height: 1.5; }
@media print { .doc-paper.doc-atscv { padding: 0; } .ats-sec h2 { break-after: avoid; } }
.ats-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--text-muted); margin: 0 0 1rem; }
.ats-note .icon { color: #10B981; flex-shrink: 0; margin-top: 2px; }
.dl-t { background: #5B6470; font-size: .54rem; }

/* ATS score card */
.ats-score { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .8rem; }
.ats-score-top { display: flex; align-items: center; gap: .9rem; }
.ats-ring { --p: 0; --c: #10B981; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #EEEDEA 0); }
.ats-ring b { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 1rem/1 var(--font-head); color: var(--text); }
.ats-score-top h3 { margin: 0 !important; font-size: 1rem; }
.ats-score-top p { margin: 2px 0 0 !important; font-size: .8rem; color: var(--text-muted); }
.ats-toggle { margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.ats-checks { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; }
.ats-checks li { display: flex; gap: .45rem; align-items: flex-start; font-size: .8rem; line-height: 1.35; color: var(--text); }
.ats-checks li i { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 800 .62rem/1 var(--font); font-style: normal; color: #fff; background: #10B981; margin-top: 1px; }
.ats-checks li.warn i { background: #F59E0B; }
.ats-checks li.bad i { background: #EF4444; }
.ats-kw { margin-top: .8rem; border-top: 1px dashed var(--border); padding-top: .7rem; }
.ats-kw p { margin: 0 0 .45rem !important; font-size: .8rem; color: var(--text-muted); }
.ats-kw-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.ats-kw-list button, .ats-kw-list span { font-size: .76rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid #F3C27A; background: var(--gold-tint); color: var(--gold-text); font-weight: 600; cursor: pointer; }
.ats-kw-list button:hover { background: var(--gold-light); color: var(--on-gold); }
.ats-kw-list span { cursor: default; border-color: #BFE8D4; background: #ECFAF3; color: #0F7A4A; }
.ats-score.collapsed .ats-checks, .ats-score.collapsed .ats-kw { display: none; }
@media (max-width: 640px) { .ats-checks { grid-template-columns: 1fr; } }
@media print { .ats-score { display: none !important; } }

/* AI chat launcher & panel */
.ai-fab { position: fixed; right: 22px; bottom: 84px; z-index: 999; display: flex; align-items: center; gap: .5rem; background: var(--charcoal); color: var(--gold-light);
  border: 1.5px solid rgba(250, 171, 53, .55); padding: .72rem 1.15rem; border-radius: 999px; font: 600 .92rem var(--font); cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 34, 37, .35); transition: .25s; }
.ai-fab .icon { width: 19px; height: 19px; color: var(--gold); }
.ai-fab:hover { transform: translateY(-3px); color: #fff; }
.ai-on .to-top { bottom: 146px; }
.ai-open .ai-fab { opacity: 0; pointer-events: none; }
.ai-panel { position: fixed; right: 22px; bottom: 22px; z-index: 1001; width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 44px));
  background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 22, 24, .32), 0 0 0 1px rgba(0, 0, 0, .05); display: flex; flex-direction: column; overflow: hidden;
  animation: aiIn .22s ease-out; }
.ai-panel[hidden] { display: none; }
@keyframes aiIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ai-head { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem .85rem 1rem; background: var(--charcoal); color: #fff; }
.ai-av { width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; flex-shrink: 0; }
.ai-av .icon { width: 20px; height: 20px; }
.ai-ttl { flex: 1; min-width: 0; line-height: 1.2; }
.ai-ttl b { display: block; font-family: var(--font-head); font-size: 1rem; }
.ai-ttl small { color: #C9CCD0; font-size: .76rem; }
.ai-hbtn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.ai-hbtn .icon { width: 16px; height: 16px; }
.ai-hbtn:hover { background: rgba(255, 255, 255, .18); }
.ai-log { flex: 1; overflow-y: auto; padding: 1rem .9rem .5rem; background: #F7F7F5; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.ai-msg p { margin: 0 0 .45rem; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul, .ai-msg ol { margin: .2rem 0 .45rem; padding-left: 1.15rem; } .ai-msg li { margin-bottom: .15rem; }
.ai-msg ul:last-child, .ai-msg ol:last-child { margin-bottom: 0; }
.ai-msg a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ai-bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.ai-me { align-self: flex-end; background: var(--charcoal); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-msg[dir=rtl] { font-family: 'CBA Naskh', var(--font); font-size: .98rem; line-height: 1.85; }
.ai-me[dir=rtl] { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.ai-err { background: #FDECEC; border-color: #F8C9C9; color: #9B1C1C; }
.ai-retry { display: block; margin-top: .45rem; background: #fff; border: 1px solid #F1A9A9; color: #9B1C1C; border-radius: 8px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ai-typing { display: flex; gap: 4px; padding: .8rem .9rem; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #B9BCC0; animation: aiDot 1.1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem .9rem .6rem; background: #F7F7F5; }
.ai-chips[hidden] { display: none; }
.ai-chips button { font-size: .78rem; padding: .38rem .7rem; border-radius: 999px; border: 1px solid #F3C27A; background: #fff; color: var(--gold-text); font-weight: 600; cursor: pointer; text-align: left; }
.ai-chips button:hover { background: var(--gold-tint); }
.ai-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--border); background: #fff; }
.ai-form textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--border); border-radius: 12px; padding: .6rem .75rem; font: inherit; font-size: .92rem; line-height: 1.4; max-height: 120px; background: #fff; color: var(--text); unicode-bidi: plaintext; }
.ai-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250, 171, 53, .18); }
.ai-send { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; cursor: pointer; }
.ai-send .icon { width: 18px; height: 18px; }
.ai-send:disabled { opacity: .5; cursor: wait; }
.ai-foot { font-size: .7rem; color: var(--text-muted); text-align: center; padding: 0 .8rem .65rem; background: #fff; }
.ai-foot a { color: #128C4A; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.ai-foot a .icon { width: 12px; height: 12px; }
@media (max-width: 640px) {
  .ai-fab span { display: none; }
  .ai-fab { padding: .85rem; bottom: 82px; right: 22px; }
  .ai-panel { inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
  .ai-open { overflow: hidden; }
  .ai-form textarea { font-size: 16px; }
  .ai-open .wa-float, .ai-open .to-top { display: none; }
}
@media print { .ai-fab, .ai-panel, .ai-row, .ai-note { display: none !important; } }

/* ---- Google AdSense (Auto ads): never print ads, keep them inside the layout ---- */
ins.adsbygoogle{max-width:100%;overflow:hidden}
.google-auto-placed{margin:18px auto;clear:both}
@media print{ins.adsbygoogle,.google-auto-placed,.adsbygoogle-noablate,iframe[id^="aswift"]{display:none!important}}

/* ---- Update 2: worldwide calculators ---- */
.fx-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.6rem;align-items:end}
.fx-row>div{min-width:0}
.fx-swap{margin-bottom:1.1rem;width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:12px}
.fx-swap .icon{width:20px;height:20px}
.fx-pairs button{font-size:.8rem}
.intl-head{margin-top:3.5rem}
.intl-head .eyebrow{display:inline-flex;align-items:center;gap:.35rem}
.intl-head .eyebrow .icon{width:15px;height:15px}
/* Roman Urdu help block */
.ru-box{margin:2rem 0 1rem;padding:1.4rem 1.5rem;border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:14px;background:var(--gold-tint)}
.ru-box h2{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;margin:0 0 .5rem}
.ru-box h2 .icon{width:20px;height:20px;color:var(--mustard)}
.ru-box .ru-lead{color:var(--text);margin:0 0 .8rem}
.ru-box .faq{max-width:none}
.ru-box .faq-item{background:#fff}
.ru-sec .ru-box{margin:0}
@media (max-width:600px){.ru-box{padding:1.1rem 1rem}.ru-box h2{font-size:1.08rem}}
