/* ═══════════════════════════════════════════════════════════════════════════
 * AAKASHVANI GLOBAL DESIGN TOKENS
 * Single source of truth for all colors, spacing, radius, shadow, typography
 * ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand (Teal) ──────────────────────────────────────────────────────── */
  --brand:        #0d9488;
  --brand-hover:  #0f766e;
  --brand-light:  #ccfbf1;
  --brand-deep:   #0f766e;
  --brand-2:      #14b8a6;
  /* Aliases for global.css components that reference --brand-600 etc. */
  --brand-50:  #f0fdfa; --brand-100: #ccfbf1; --brand-200: #99f6e4;
  --brand-500: #14b8a6; --brand-600: #0d9488; --brand-700: #0f766e; --brand-800: #115e59;

  /* ── Text ──────────────────────────────────────────────────────────────── */
  --ink:        #1e293b;   /* primary text */
  --muted:      #64748b;   /* secondary text */
  --muted-fg:   #64748b;   /* alias used in older components */
  --text-hint:  #94a3b8;   /* placeholder / hint */

  /* ── Surfaces ──────────────────────────────────────────────────────────── */
  --page:    #f8fafc;   /* body background */
  --surface: #ffffff;   /* card / elevated surface */
  --raised:  #f1f5f9;   /* slightly elevated */

  /* ── Borders ───────────────────────────────────────────────────────────── */
  --line:    #e2e8f0;   /* default border */
  --border:  #eef0f3;   /* subtle border (used in .hit) */

  /* ── Shadows ───────────────────────────────────────────────────────────── */
  --shadow-app: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.10);
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .10), 0 2px 4px -2px rgb(0 0 0 / .10);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .10), 0 4px 6px -4px rgb(0 0 0 / .10);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .10), 0 8px 10px -6px rgb(0 0 0 / .10);

  /* ── Radius ────────────────────────────────────────────────────────────── */
  --radius-sm:   8px;   /* chips, badges, small buttons */
  --radius-md:  12px;   /* buttons, inputs, small cards */
  --radius-lg:  16px;   /* cards, panels */
  --radius-xl:  20px;   /* hero sections, large cards */
  --radius-full: 999px; /* pills */
  /* Aliases used in older components */
  --radius-sm-old: 8px; --radius-md-old: 12px; --radius-lg-old: 16px; --radius-xl-old: 20px;

  /* ── Slate palette (used by components) ────────────────────────────────── */
  --slate-50:  #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569;
  --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;

  /* ── Other palettes ─────────────────────────────────────────────────────── */
  --rose-50: #fff1f2; --rose-500: #f43f5e; --rose-600: #e11d48;
  --amber-50: #fffbeb; --amber-200: #fde68a; --amber-500: #f59e0b;
  --blue-50: #eff6ff; --blue-500: #3b82f6; --blue-600: #2563eb;
  --emerald-50: #ecfdf5; --emerald-500: #10b981; --emerald-600: #059669;
  --violet-50: #f5f3ff; --violet-500: #8b5cf6; --violet-600: #7c3aed;

  /* ── Font sizes (semantic scale) ────────────────────────────────────────── */
  --fs-xs:   10px;   /* micro label, meta, hint */
  --fs-sm:   11px;   /* caption, badge */
  --fs-base: 12px;   /* small label, tag */
  --fs-md:   13px;   /* body, form label */
  --fs-lg:   14px;   /* body large, card text */
  --fs-xl:   16px;   /* subheading, input */
  --fs-2xl:  18px;   /* h3, section head */
  --fs-3xl:  20px;   /* h2 */
  --fs-4xl:  24px;   /* h1 small */
  --fs-5xl:  28px;   /* h1 large */
}

/* ── Dark Mode Token Overrides ──────────────────────────────────────────────── */
.dark {
  --brand:    #2dd4bf; --brand-2: #5eead4; --brand-deep: #14b8a6;
  --ink:      #f8fafc; --muted: #cbd5e1; --muted-fg: #cbd5e1; --text-hint: #94a3b8;
  --page:     #0f172a; --surface: #1e293b; --raised: #273548;
  --line:     #334155; --border: #2d3748;
  --shadow-app: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.4);
  --brand-600: #2dd4bf; --brand-700: #14b8a6;
  --slate-50: #1e293b; --slate-100: #273548; --slate-200: #334155;
  --slate-500: #94a3b8; --slate-700: #cbd5e1; --slate-900: #f8fafc;
}

/* Shared app utilities and repeated UI helpers */

/* ─── ICON SIZE SYSTEM ──────────────────────────────────────────────────────── */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-3xl { width: 48px; height: 48px; }

/* Icon Clarity - Remove blur and ensure sharp rendering */
i, svg {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
}

/* ─── TEXT SIZE SCALE ───────────────────────────────────────────────────────
 * Use these classes instead of Tailwind's arbitrary text-[Npx].
 * NOTE: We prefix with .fs- to avoid collisions with Tailwind's text-xs/text-sm.
 * The old .text-xs through .text-5xl classes are kept for backward compat.
 * ─────────────────────────────────────────────────────────────────────────── */
/* Semantic classes (preferred going forward) */
.fs-xs   { font-size: var(--fs-xs,   10px); }  /* micro label, meta */
.fs-sm   { font-size: var(--fs-sm,   11px); }  /* caption, badge */
.fs-base { font-size: var(--fs-base, 12px); }  /* small label */
.fs-md   { font-size: var(--fs-md,   13px); }  /* body */
.fs-lg   { font-size: var(--fs-lg,   14px); }  /* body large */
.fs-xl   { font-size: var(--fs-xl,   16px); }  /* subheading */
.fs-2xl  { font-size: var(--fs-2xl,  18px); }  /* h3 */
.fs-3xl  { font-size: var(--fs-3xl,  20px); }  /* h2 */
.fs-4xl  { font-size: var(--fs-4xl,  24px); }  /* h1 small */
.fs-5xl  { font-size: var(--fs-5xl,  28px); }  /* h1 large */

/* Legacy backward-compat aliases (kept, but do not use in new code) */
.text-xs { font-size: 10px; }
.text-sm { font-size: 11px; }
.text-base { font-size: 12px; }
.text-md { font-size: 13px; }
.text-lg { font-size: 14px; }
.text-xl { font-size: 16px; }
.text-2xl { font-size: 18px; }
.text-3xl { font-size: 20px; }
.text-4xl { font-size: 24px; }
.text-5xl { font-size: 28px; }

/* Spacing */
.space-1 { gap: 4px; }
.space-2 { gap: 8px; }
.space-3 { gap: 12px; }
.space-4 { gap: 16px; }
.space-5 { gap: 20px; }

/* Padding */
.p-xs { padding: 8px; }
.p-sm { padding: 12px; }
.p-md { padding: 16px; }
.p-lg { padding: 20px; }
.p-xl { padding: 24px; }

/* Margin */
.m-xs { margin: 8px; }
.m-sm { margin: 12px; }
.m-md { margin: 16px; }
.m-lg { margin: 20px; }
.m-xl { margin: 24px; }

.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 20px; }
.mb-xl { margin-bottom: 24px; }

.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 20px; }
.mt-xl { margin-top: 24px; }

.badge-green { background: rgba(35, 134, 54, .15); border: 1px solid rgba(46, 160, 67, .4); color: #14b8a6; padding: .15rem .6rem; border-radius: .25rem; font-size: .7rem; font-family: 'Space Mono', monospace; }

/* Unified Section Title — single authoritative definition */
.sec-title { display: flex; align-items: center; gap: 8px; margin: 18px 4px 10px; font-size: 13px; font-weight: 700; color: var(--ink, #0f172a); letter-spacing: -0.01em; }
.sec-title i { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand, #0d9488); }
.sec-title .badge { margin-left: auto; font-size: 11px; color: var(--brand-deep, #0d9488); font-weight: 600; }
.sec-title span { font-weight: 700; }
.badge-orange { background: rgba(210, 90, 0, .15); border: 1px solid rgba(210, 90, 0, .4); color: #f59e0b; padding: .15rem .6rem; border-radius: .25rem; font-size: .7rem; font-family: 'Space Mono', monospace; }
.badge-blue { background: rgba(31, 111, 235, .15); border: 1px solid rgba(31, 111, 235, .4); color: #0ea5e9; padding: .15rem .6rem; border-radius: .25rem; font-size: .7rem; font-family: 'Space Mono', monospace; }
.badge-gray { background: #f5f5f4; border: 1px solid #e2e8f0; color: #64748b; padding: .15rem .6rem; border-radius: .25rem; font-size: .7rem; font-family: 'Space Mono', monospace; }
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, .1); }
.of-chip.active { background: var(--rose-600, #f43f5e); color: #fff; border-color: var(--rose-600, #f43f5e); }
.job-tab.active { background: var(--brand-600, #0d9488); color: #fff; border-color: var(--brand-600, #0d9488); }
.section-card { background: var(--surface, #fff); border-radius: var(--radius-xl, 20px); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-app); border: 1px solid var(--line, #e2e8f0); }
.dark .section-card { background: var(--surface); border-color: var(--line); }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-icon { width: 44px; height: 44px; border-radius: var(--radius-md, 14px); display: flex; align-items: center; justify-content: center; }
.section-icon i { width: 24px; height: 24px; }
.section-title h2 { font-size: var(--fs-xl, 16px); font-weight: 700; color: var(--ink, #0f172a); margin: 0; }
.section-title p { font-size: var(--fs-base, 12px); color: var(--muted, #64748b); margin: 2px 0 0; }
/* .section-more — canonical definition in SECTION HEADERS block below */
.mini-icon { width: 28px; height: 28px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.article-body { color: var(--ink, #1e293b); font-size: 1.0625rem; line-height: 1.9; font-family: 'Hind Siliguri', sans-serif; text-align: justify; hyphens: auto; }
.article-body p { margin-bottom: 1.3em; }
.article-body h2, .article-body h3 { color: var(--ink, #0f172a); font-weight: 700; margin: 1.8em 0 .6em; }
.article-body h2 { font-size: 1.35rem; border-bottom: 1px solid var(--line, #e2e8f0); padding-bottom: .4em; }
.article-body h3 { font-size: 1.15rem; }
.article-body strong, .article-body b { color: var(--ink, #0f172a); font-weight: 600; }
.article-body a { color: var(--brand-hover, #0f766e); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--brand-hover, #0f766e); padding: .9em 1.2em; background: rgba(15,118,110,.07); margin: 1.6em 0; border-radius: 0 8px 8px 0; color: var(--ink, #0f172a); font-style: italic; }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 1.1em; }
.article-body li { margin-bottom: .45em; }
.article-body img { border-radius: 8px; margin: 1em 0; width: 100%; }
@media (min-width: 768px) { .article-body { font-size: 1.125rem; line-height: 1.95; } }
.info-hub { padding: 14px 16px 100px; }
.hub-search { position: relative; margin-bottom: 20px; }
.hub-search input { width: 100%; padding: 14px 16px 14px 44px; border: 2px solid #e2e8f0; border-radius: 16px; background: #fff; font-size: 15px; transition: all 0.2s; }
.hub-search input:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 4px rgba(13, 148, 136, .1); }
.hub-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.quick-access { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 24px; }
.quick-access a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); text-decoration: none; transition: all 0.2s; }
.quick-access a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.quick-access .emoji { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.quick-access span { font-size: 11px; font-weight: 600; color: #334155; text-align: center; }
@media (max-width: 780px) { .quick-access { grid-template-columns: repeat(3, 1fr); } .quick-access a:nth-child(n+4) { display: none; } }
@keyframes twink { 0%,100%{opacity:.2;transform:scale(.7)}50%{opacity:1;transform:scale(1.3)} }
.mr-star, .rashi-star { position:absolute; border-radius:50%; background:#fff; pointer-events:none; }

/* Shared page-level layout helpers */
.prose-custom h1, .prose-custom h2, .prose-custom h3 { color: var(--ink, #0f172a); margin-top: 1.5em; margin-bottom: .75em; font-weight: 700; }
.prose-custom h2 { font-size: 1.25rem; border-bottom: 1px solid var(--line, #e2e8f0); padding-bottom: .5em; }
.prose-custom h3 { font-size: 1.05rem; color: var(--brand-2, #14b8a6); }
.prose-custom p, .prose-custom ul, .prose-custom ol { color: var(--muted, #64748b); line-height: 1.8; margin-bottom: 1em; }
.prose-custom li { margin-bottom: .4em; }
.prose-custom strong { color: var(--ink, #0f172a); }
.prose-custom blockquote { border-left: 3px solid var(--brand-hover, #0f766e); padding: 1em; color: var(--muted, #64748b); font-style: italic; background: rgba(35,134,54,.06); border-radius: 0 .25rem .25rem 0; margin: 1em 0; }
.prose-custom code { background: var(--slate-100, #f5f5f4); color: var(--brand-2, #14b8a6); padding: .15em .4em; border-radius: .25rem; font-size: .875em; }
.prose-custom pre { background: var(--slate-100, #f5f5f4); border: 1px solid var(--line, #e2e8f0); padding: 1em; border-radius: .5rem; overflow-x: auto; margin-bottom: 1em; }
.search-wrap { max-width: 760px; margin: 0 auto; padding: 14px; }
.search-box { display: flex; gap: 8px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.search-box i { width: 20px; height: 20px; color: #64748b; align-self: center; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; font-family: inherit; }
.search-box button { background: var(--brand, #0f766e); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
/* .sec-title — see canonical definition above (duplicate removed) */
.hit { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--border, #eef0f3); margin-bottom: 8px; text-decoration: none; color: inherit; }
.hit:hover { border-color: var(--brand, #0f766e); background: rgba(15, 118, 110, .04); }
.hit-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(15, 118, 110, .1); display: grid; place-items: center; color: var(--brand, #0f766e); flex-shrink: 0; }
.hit-t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.hit-d { font-size: 12px; color: #64748b; margin-top: 2px; }
.hit-meta { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.empty { text-align: center; padding: 30px 14px; color: #64748b; font-size: 14px; }
.chip { display: inline-block; background: rgba(15, 118, 110, .08); color: var(--brand, #0f766e); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; margin-right: 4px; text-decoration: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.tool-card:active { transform: scale(0.95); }
.category-section { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.vp-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; }
.vp-wrap .back { color: #dc2626; text-decoration: none; font-size: var(--fs-lg, 14px); }
.vp-wrap h1 { font-size: 32px; margin: 12px 0 4px; color: var(--ink, #0f172a); }
.vp-sub { color: var(--muted, #64748b); margin-bottom: 18px; }
.vp-hero { width: 100%; border-radius: var(--radius-md, 14px); margin-bottom: 20px; }
.vp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.vp-info div { background: var(--page, #f8fafc); border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 12px; }
.vp-info b { display: block; font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); margin-bottom: 2px; }
.vp-desc { font-size: var(--fs-xl, 16px); line-height: 1.75; color: var(--ink, #1e293b); }
.vp-map { margin-top: 20px; border-radius: 12px; overflow: hidden; height: 300px; background: var(--raised, #f1f5f9); width: 100%; border: 0; }
.story-wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; color: var(--ink, #0f172a); }
.story-wrap .back { color: var(--brand-hover, #0f766e); text-decoration: none; font-size: var(--fs-lg, 14px); }
.story-wrap h1 { font-size: 32px; line-height: 1.3; margin: 16px 0 10px; }
.story-meta { color: var(--muted, #64748b); font-size: var(--fs-md, 13px); margin-bottom: 18px; }
.story-hero { width: 100%; border-radius: var(--radius-md, 14px); margin-bottom: 20px; }
.story-body { font-size: var(--fs-xl, 16px); line-height: 1.75; color: var(--ink, #1e293b); text-align: justify; hyphens: auto; }
.story-source { margin-top: 30px; padding: 16px; background: var(--raised, #f1f5f9); border-radius: 10px; font-size: var(--fs-lg, 14px); }
.story-source a { color: var(--brand-hover, #0f766e); font-weight: 600; }
.rd-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; }
.rd-hero { background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.rd-hero h1 { margin: 0 0 8px; font-size: 28px; }
.rd-hero p { margin: 0; opacity: .95; }
.rd-player { position: sticky; top: 8px; background: #0f172a; color: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; z-index: 10; box-shadow: 0 10px 30px -10px rgba(15,23,42,.5); margin-bottom: 24px; }
.rd-player .now { flex: 1; min-width: 0; }
.rd-player .now b { display: block; font-size: 15px; margin-bottom: 2px; }
.rd-player .now span { font-size: 12px; opacity: .7; }
.rd-player audio { display: none; }
.rd-player .ctrl { display: flex; gap: 8px; }
.rd-player button { background: #7c3aed; color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.rd-player button:hover { background: #6d28d9; }
.rd-player .logo { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; margin-bottom: 30px; }
.rd-card { background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: var(--radius-md, 12px); padding: 14px; cursor: pointer; transition: all .2s; text-align: center; }
.rd-card:hover { border-color: var(--violet-600, #7c3aed); transform: translateY(-3px); box-shadow: 0 8px 20px -8px rgba(124,58,237,.3); }
.rd-card.playing { background: var(--violet-600, #7c3aed); color: #fff; border-color: var(--violet-600, #7c3aed); }
.rd-card .logo { width: 64px; height: 64px; border-radius: 12px; margin: 0 auto 10px; background: var(--raised, #f1f5f9) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.rd-card h4 { margin: 0 0 4px; font-size: var(--fs-lg, 14px); }
.rd-card .meta { font-size: var(--fs-sm, 11px); opacity: .7; }
.dark .rd-card { background: var(--surface); border-color: var(--line); }
.rd-section { font-size: 18px; margin: 20px 0 12px; color: #0f172a; }
.rd-podcast { display: flex; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; margin-bottom: 10px; align-items: center; }
.rd-podcast .pic { width: 56px; height: 56px; border-radius: 8px; background: #f1f5f9 center/cover no-repeat; flex-shrink: 0; }
.rd-podcast .pi { flex: 1; min-width: 0; }
.rd-podcast h4 { margin: 0 0 3px; font-size: 14px; color: #0f172a; }
.rd-podcast .pm { font-size: 11px; color: #64748b; }
.rd-podcast button { background: #0f766e; color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.rd-podcast .dl { background: #f1f5f9; color: #0f172a; margin-left: 6px; }
.rd-offline-tip { background: #fef3c7; border: 1px solid #fde68a; color: #78350f; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.pc-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; }
.pc-hero { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.pc-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.pc-hero p { margin: 0; opacity: .92; font-size: 15px; }
.pc-player { position: sticky; top: 8px; background: #0f172a; color: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; z-index: 10; box-shadow: 0 10px 30px -10px rgba(15,23,42,.5); margin-bottom: 24px; }
.pc-player .now { flex: 1; min-width: 0; }
.pc-player .now b { display: block; font-size: 15px; margin-bottom: 2px; }
.pc-player .now span { font-size: 12px; opacity: .7; }
.pc-player audio { display: none; }
.pc-player .ctrl { display: flex; gap: 8px; }
.pc-player button { background: #7c3aed; color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: .2s; }
.pc-player button:hover { background: #6d28d9; }
.pc-player .icon, .pc-player-icon { width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; margin-bottom: 30px; }
.pc-card { background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: var(--radius-md, 12px); overflow: hidden; transition: all .2s; cursor: pointer; }
.pc-card:hover { transform: translateY(-4px); border-color: var(--violet-600, #7c3aed); box-shadow: 0 12px 24px -8px rgba(124,58,237,.25); }
.pc-card.playing { background: var(--violet-600, #7c3aed); color: #fff; border-color: var(--violet-600, #7c3aed); }
.pc-img { width: 100%; aspect-ratio: 1; background: var(--raised, #f1f5f9) center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.pc-badge { position: absolute; top: 10px; left: 10px; background: var(--violet-600, #7c3aed); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: var(--fs-sm, 11px); font-weight: 600; }
.pc-body { padding: 12px; }
.pc-body h3 { margin: 0 0 6px; font-size: var(--fs-xl, 15px); line-height: 1.4; color: var(--ink, #0f172a); }
.pc-card.playing h3 { color: #fff; }
.pc-body p { margin: 0 0 8px; font-size: var(--fs-base, 12px); color: var(--muted, #64748b); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-card.playing p { color: #f3e8ff; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); }
.pc-card.playing .pc-meta { color: #e9d5ff; }
.pc-actions { display: flex; gap: 4px; margin-top: 8px; }
.pc-actions button { flex: 1; padding: 6px; font-size: var(--fs-base, 12px); border: 1px solid var(--line, #e5e7eb); border-radius: 6px; background: var(--surface, #fff); color: var(--ink, #0f172a); cursor: pointer; transition: .2s; }
.pc-actions button:hover { background: var(--raised, #f1f5f9); }
.pc-card.playing .pc-actions button { border-color: #a855f7; background: #a855f7; color: #fff; }
.dark .pc-card { background: var(--surface); border-color: var(--line); }
.pc-section-title { font-size: 18px; margin: 24px 0 14px; color: #0f172a; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pc-empty { text-align: center; padding: 40px; color: #64748b; }
.pc-offline-tip { background: #fef3c7; border: 1px solid #fde68a; color: #78350f; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.pc-featured-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 18px; margin-bottom: 30px; }
.vn-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; }
.vn-hero { background: linear-gradient(135deg,#dc2626,#f59e0b); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.vn-hero h1 { margin: 0 0 8px; font-size: 30px; }
.vn-hero p { margin: 0; opacity: .95; }
.vn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.vn-filter a { padding: 6px 14px; background: #f1f5f9; color: #0f172a; border-radius: 20px; text-decoration: none; font-size: 13px; border: 1px solid #e2e8f0; }
.vn-filter a.active { background: #0f766e; color: #fff; border-color: #0f766e; }
.vn-feat { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 16px; margin-bottom: 32px; }
.vn-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 14px; }
.vn-card { background: var(--surface, #fff); border-radius: var(--radius-md, 14px); overflow: hidden; border: 1px solid var(--line, #e5e7eb); transition: transform .25s, box-shadow .25s; }
.vn-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px -10px rgba(220,38,38,.25); }
.vn-card a { color: inherit; text-decoration: none; display: block; }
.vn-img { aspect-ratio: 4/3; background: #f1f5f9 center/cover no-repeat; position: relative; }
.vn-img .pin { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; backdrop-filter: blur(6px); }
.vn-img .feat { position: absolute; top: 10px; right: 10px; background: #f59e0b; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.vn-body { padding: 12px; }
.vn-body h3 { margin: 0 0 4px; font-size: var(--fs-xl, 15px); color: var(--ink, #0f172a); }
.vn-body .cap { margin: 0; font-size: var(--fs-base, 12px); color: var(--muted, #64748b); line-height: 1.55; text-align: justify; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vn-section { font-size: 20px; margin: 0 0 14px; color: #0f172a; }
.vn-feat .vn-img { aspect-ratio: 16/10; }
.vn-empty { text-align: center; padding: 60px 20px; color: #64748b; background: #f8fafc; border-radius: 12px; }
.rashi-star { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes floatSym { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes energyFill { from { width: 0; } to { width: var(--e-pct); } }
.rashi-tile-active { background: rgba(124,58,237,.95) !important; color: #fff !important; box-shadow: 0 4px 20px rgba(124,58,237,.45) !important; transform: scale(1.05); }
.rashi-tile { transition: transform .18s, box-shadow .18s; }
.src-wrap { padding: 18px 14px 100px; max-width: 860px; margin: 0 auto; }
.src-hero { background: linear-gradient(135deg,#0d9488,#0891b2); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.src-hero h1 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.src-hero p { font-size: 13px; margin: 0; opacity: .92; line-height: 1.55; }
.src-grid { display: grid; gap: 10px; }
.src-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.src-card .num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#f0fdfa,#cffafe); color: #0d9488; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.src-card .body { flex: 1; min-width: 0; }
.src-card .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.src-card h3 { font-size: 14px; font-weight: 800; margin: 0; color: #0b1220; }
.src-card .cat { font-size: 10.5px; font-weight: 700; color: #0f766e; background: #ccfbf1; padding: 2px 8px; border-radius: 999px; }
.src-card .usage { font-size: 12.5px; color: #475569; line-height: 1.55; margin-bottom: 6px; }
.src-card .lic { font-size: 10.5px; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
.src-card a.link { color: #0d9488; font-size: 11.5px; font-weight: 700; text-decoration: none; }
.src-card a.link:hover { text-decoration: underline; }
.legal-card { background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 16px; margin-top: 18px; }
.legal-card h2 { font-size: 15px; color: #92400e; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.legal-card p { font-size: 12.5px; color: #78350f; line-height: 1.65; margin: 0 0 8px; }
.contact { margin-top: 14px; padding: 14px; background: var(--page, #f8fafc); border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-md, 12px); font-size: var(--fs-md, 13px); color: var(--slate-600, #475569); }
.contact a { color: var(--brand, #0d9488); font-weight: 600; }
.art-wrap { padding: 14px 14px 100px; max-width: 760px; margin: 0 auto; }
.art-back { display: inline-flex; align-items: center; gap: 5px; color: var(--brand, #0d9488); font-weight: 600; font-size: var(--fs-md, 13px); text-decoration: none; margin-bottom: 14px; }
.art-srcbar { display: flex; align-items: center; gap: 12px; background: var(--surface, #fff); border: 2px solid var(--src-color,#0d9488); border-radius: var(--radius-lg, 16px); padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow-app); }
.art-srcbar .logo { width: 40px; height: 40px; border-radius: 11px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; background: var(--src-color,#0d9488); }
.art-srcbar .meta { flex: 1; min-width: 0; }
.art-srcbar .name { font-size: var(--fs-lg, 14px); font-weight: 800; color: var(--ink, #0b1220); }
.art-srcbar .name a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.art-srcbar .lic { font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); margin-top: 2px; }
.art-srcbar .read-source-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--src-color,#0d9488); color: #fff; border-radius: 8px; text-decoration: none; font-size: var(--fs-md, 13px); font-weight: 600; white-space: nowrap; transition: opacity 0.2s; }
.art-srcbar .read-source-btn:hover { opacity: 0.9; }
.art-srcbar .read-source-btn svg, .art-srcbar .read-source-btn i { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .art-srcbar { flex-wrap: wrap; }
  .art-srcbar .read-source-btn { width: 100%; justify-content: center; margin-top: 8px; }
}
.art-title { font-size: 21px; font-weight: 800; line-height: 1.45; color: var(--ink, #0b1220); margin: 0 0 10px; text-align: justify; hyphens: auto; }
.art-meta { font-size: var(--fs-base, 12px); color: var(--muted, #64748b); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-hero { width: 100%; border-radius: var(--radius-md, 14px); overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg,#f0fdfa,#cffafe); }
.art-hero img { width: 100%; height: auto; display: block; }
.art-ai-wrap { background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-lg, 16px); overflow: hidden; margin-bottom: 16px; }
.art-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg,#f0fdfa,#e0f9f6); border-bottom: 1px solid #d1fae5; }
.art-ai-head .label { font-size: var(--fs-sm, 11px); font-weight: 700; color: #065f46; display: flex; align-items: center; gap: 5px; }
.art-ai-head .src-badge { font-size: var(--fs-xs, 10px); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full, 999px); color: #fff; background: var(--src-color,#0d9488); display: inline-flex; align-items: center; gap: 4px; }
.art-ai-body { padding: 14px 16px; font-size: var(--fs-xl, 15px); line-height: 1.9; color: var(--ink, #1e293b); font-family: 'Hind Siliguri', 'Mukta', sans-serif; min-height: 200px; text-align: justify; hyphens: auto; }
.art-ai-body p { margin-bottom: 1.1em; }
.art-ai-body h3 { font-size: var(--fs-2xl, 16px); font-weight: 700; color: var(--ink, #0f172a); margin: 1.4em 0 .5em; text-align: left; }
.art-ai-body .db-content { width: 100%; }
.art-ai-body .excerpt-fallback { font-size: var(--fs-lg, 14px); color: var(--slate-600, #475569); font-style: italic; padding: 12px; background: var(--page, #f8fafc); border-radius: 8px; border-left: 3px solid var(--brand, #0d9488); text-align: left; }
.art-ai-body strong, .art-ai-body b { font-weight: 700; color: var(--ink, #0f172a); }
.art-ai-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--page, #f8fafc); border-top: 1px solid var(--line, #e2e8f0); flex-wrap: wrap; }
.art-ai-footer .src-note { font-size: var(--fs-sm, 11px); color: var(--slate-600, #475569); display: none; }
.art-ai-footer .src-note a { color: var(--src-color,#0d9488); font-weight: 700; text-decoration: underline; }
.art-ai-footer .read-full { font-size: var(--fs-base, 12px); font-weight: 700; color: #fff; background: var(--src-color,#0d9488); padding: 6px 12px; border-radius: 9px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.art-ai-footer .read-full:hover { opacity: .88; }
.art-spinner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; color: var(--muted, #475569); font-size: var(--fs-md, 13px); }
.art-spinner .spin { width: 20px; height: 20px; border: 2px solid #d1fae5; border-top-color: var(--brand, #0d9488); border-radius: 50%; animation: artSpin .7s linear infinite; }
@keyframes artSpin { to { transform: rotate(360deg); } }
.tab-btn { transition: all .15s; }
.tab-btn.active { background: var(--surface, #fff); color: var(--ink, #0f172a); box-shadow: var(--shadow-sm); }
.sub-chip { flex-shrink: 0; padding: 5px 11px; border-radius: var(--radius-full, 999px); font-size: var(--fs-sm, 11px); font-weight: 600; background: var(--surface, #fff); color: var(--slate-600, #475569); border: 1px solid var(--line, #e2e8f0); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.sub-chip.active { background: var(--ink, #0f172a); color: #fff; border-color: var(--ink, #0f172a); }
.dark .sub-chip { background: var(--surface); border-color: var(--line); color: var(--muted); }
.dark .sub-chip.active { background: var(--ink); border-color: var(--ink); }
.share-btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.75rem; min-width:38px; border-radius:999px; border:1px solid transparent; text-decoration:none; transition:transform .2s,opacity .2s; }
.share-btn:hover { transform:translateY(-1px); opacity:.92; }
.share-btn.facebook { background:#1877f2; color:#fff; }
.share-btn.whatsapp { background:#25d366; color:#fff; }
.share-btn.twitter { background:#000; color:#fff; }
.share-btn.viber { background:#7360f2; color:#fff; }
.share-btn.copy { background:#f1f5f9; color:#64748b; border-color:#e2e8f0; }

/* New Features - Unified Styles */
/* Language Translator */
.lt-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.lt-hero { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.lt-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.lt-hero p { margin: 0; opacity: .92; }
.lt-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 16px; margin-bottom: 16px; }
.lt-result { display: none; }
.lt-result.show { display: block; }
.lt-phrase { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8fafc; border-radius: 12px; cursor: pointer; transition: background .2s; }
.lt-phrase:hover { background: #f1f5f9; }

/* Dictionary */
.dict-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.dict-hero { background: linear-gradient(135deg,#4f46e5,#6366f1); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.dict-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.dict-hero p { margin: 0; opacity: .92; }
.dict-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 16px; margin-bottom: 16px; }
.dict-result { display: none; }
.dict-result.show { display: block; }
.dict-word { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8fafc; border-radius: 12px; cursor: pointer; transition: background .2s; }
.dict-word:hover { background: #f1f5f9; }

/* Quiz & Games */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.quiz-hero { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.quiz-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.quiz-hero p { margin: 0; opacity: .92; }
.quiz-card { background: linear-gradient(135deg,#3b82f6,#2563eb); border-radius: 16px; padding: 16px; color: #fff; cursor: pointer; transition: transform .2s; }
.quiz-card:hover { transform: scale(1.02); }
.quiz-question { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px; margin-bottom: 16px; display: none; }
.quiz-question.show { display: block; }
.quiz-option { padding: 14px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.quiz-option:hover { border-color: #6366f1; background: #eef2ff; }
.quiz-option.correct { background: #dcfce7; border-color: #22c55e; }
.quiz-option.wrong { background: #fee2e2; border-color: #ef4444; }

/* Health Tips */
.ht-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.ht-hero { background: linear-gradient(135deg,#14b8a6,#0d9488); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.ht-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.ht-hero p { margin: 0; opacity: .92; }
.ht-daily { background: linear-gradient(135deg,#14b8a6,#0d9488); border-radius: 16px; padding: 16px; color: #fff; margin-bottom: 16px; }
.ht-tip { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 14px; margin-bottom: 12px; }
.ht-cat-btn { padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; cursor: pointer; white-space: nowrap; transition: all .2s; }
.ht-cat-btn:hover { background: #f1f5f9; }
.ht-cat-btn.active { background: #14b8a6; color: #fff; border-color: #14b8a6; }

/* Fitness Tracker */
.ft-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.ft-hero { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.ft-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.ft-hero p { margin: 0; opacity: .92; }
.ft-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 16px; margin-bottom: 16px; }
.ft-stat { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8fafc; border-radius: 12px; margin-bottom: 8px; }
.ft-progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.ft-progress-bar { height: 100%; background: linear-gradient(90deg,#14b8a6,#0d9488); border-radius: 4px; transition: width .3s; }
.ft-btn { padding: 10px 16px; background: #f97316; color: #fff; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s; }
.ft-btn:hover { background: #ea580c; }

/* Lagna Calculator */
.lg-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 100px; }
.lg-hero { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.lg-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.lg-hero p { margin: 0; opacity: .92; }
.lg-card { background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 16px; margin-bottom: 16px; }
.lg-result { display: none; }
.lg-result.show { display: block; }
.lg-result-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f8fafc; border-radius: 12px; margin-bottom: 8px; }
.lg-label { font-size: 13px; font-weight: 600; color: #64748b; }
.lg-value { font-size: 14px; font-weight: 700; color: #1e293b; }
.lg-btn { padding: 12px 20px; background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lg-btn:hover { background: linear-gradient(135deg,#6d28d9,#9333ea); }

/* Dark mode for new features */
.dark .lt-card, .dark .dict-card, .dark .quiz-question, .dark .ht-tip, .dark .ft-card, .dark .lg-card { background: var(--surface); border-color: var(--line); }
.dark .lt-phrase, .dark .dict-word, .dark .quiz-option, .dark .ht-cat-btn, .dark .ft-stat, .dark .lg-result-item { background: var(--page); border-color: var(--line); color: var(--ink); }
.dark .lt-phrase:hover, .dark .dict-word:hover, .dark .quiz-option:hover, .dark .ht-cat-btn:hover, .dark .ft-stat:hover { background: var(--line); }
.dark .ht-cat-btn.active { background: #14b8a6; color: #fff; border-color: #14b8a6; }
.dark .quiz-option.correct { background: rgba(34,197,94,.2); border-color: #22c55e; }
.dark .quiz-option.wrong { background: rgba(239,68,68,.2); border-color: #ef4444; }
.dark .ft-progress { background: var(--line); }

/* Success stories page */
.ss-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; }
.ss-hero { background: linear-gradient(135deg,#0f766e,#0891b2); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.ss-hero h1 { margin: 0 0 8px; font-size: 28px; display: flex; align-items: center; gap: 10px; }
.ss-hero p { margin: 0; opacity: .92; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 18px; }
.ss-card { background: var(--surface, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: var(--radius-md, 14px); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ss-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(15,118,110,.25); }
.ss-body { padding: 14px; }
.ss-body h3 { margin: 0 0 8px; font-size: var(--fs-xl, 16px); line-height: 1.4; color: var(--ink, #0f172a); }
.ss-body p { margin: 0 0 10px; font-size: var(--fs-md, 13px); color: var(--slate-600, #475569); line-height: 1.5; text-align: justify; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ss-meta { display: flex; justify-content: space-between; font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); }
.dark .ss-card { background: var(--surface); border-color: var(--line); }
.ss-img { aspect-ratio: 16/10; background: #f1f5f9 center/cover no-repeat; position: relative; }
.ss-img .badge { position: absolute; top: 10px; left: 10px; background: #f59e0b; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.ss-section-title { font-size: var(--fs-2xl, 18px); margin: 24px 0 14px; color: var(--ink, #0f172a); display: flex; align-items: center; gap: 8px; }
.ss-empty { text-align: center; padding: 40px; color: var(--muted, #64748b); }

/* Loksewa notice page */
.lk-tab.active { background: var(--surface, #fff); color: var(--brand, #0d9488); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.type-notice { border-left-color: #0284c7; }
.type-vacancy { border-left-color: #16a34a; }
.type-result { border-left-color: #dc2626; }
.type-syllabus { border-left-color: #7c3aed; }

/* Directory page */
.dir-chip.active { background: var(--brand, #0d9488); color: #fff; border-color: var(--brand, #0d9488); }

/* News page */
.news-wrap { padding: 14px 12px 110px; max-width: 980px; margin: 0 auto; }
.news-hdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.news-hdr h1 { font-size: 22px; font-weight: 800; color: #0b1220; margin: 0; display: flex; align-items: center; gap: 8px; }
.news-hdr .live { font-size: 10.5px; font-weight: 700; background: #dc2626; color: #fff; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.news-hdr .live::before { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: nh-pulse 1.5s infinite; }
@keyframes nh-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.news-search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.news-search input { width: 100%; padding: 9px 14px 9px 36px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 13.5px; color: #0b1220; outline: none; transition: border-color .15s, box-shadow .15s; }
.news-search input:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.news-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.news-refresh { background: #0d9488; color: #fff; border: none; padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.news-refresh:hover { background: #0f766e; }
.news-chips { display: flex; gap: 7px; overflow-x: auto; padding: 4px 0 10px; margin-bottom: 6px; scrollbar-width: none; }
.news-chips::-webkit-scrollbar { display: none; }
.news-chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff; color: #475569; border: 1px solid #e2e8f0; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; }
.news-chip:hover { border-color: #0d9488; color: #0d9488; }
.news-chip.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.news-srcbar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 6px; scrollbar-width: none; }
.news-srcbar::-webkit-scrollbar { display: none; }
.news-src { flex-shrink: 0; padding: 5px 11px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; cursor: pointer; white-space: nowrap; transition: all .15s; }
.news-src:hover { border-color: #cbd5e1; color: #0b1220; }
.news-src.active { background: #0d9488; color: #fff; border-color: #0d9488; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card { display: flex; gap: 14px; background: var(--surface, #fff); border: 1px solid #e6eaf2; border-radius: 18px; padding: 14px; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; align-items: flex-start; }
.news-card:hover { transform: translateY(-1px); border-color: var(--brand, #0d9488); box-shadow: 0 4px 14px -8px rgba(13,148,136,.35); }
.news-card .thumb { width: 110px; height: 110px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg,#f0fdfa,#cffafe); position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news-card .meta { font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.news-card .meta .cat { color: var(--brand-deep, #0f766e); font-weight: 700; font-size: var(--fs-xs, 10px); background: var(--brand-light, #ccfbf1); padding: 2px 8px; border-radius: 6px; }
.news-card .meta .src { font-weight: 600; color: var(--slate-600, #475569); background: var(--raised, #f1f5f9); padding: 2px 8px; border-radius: 6px; }
.news-card .title { font-size: var(--fs-xl, 16px); font-weight: 700; line-height: 1.5; color: var(--ink, #0b1220); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.01em; text-align: justify; hyphens: auto; }
.news-card .sum { font-size: var(--fs-base, 12px); color: var(--slate-600, #475569); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; hyphens: auto; }
.news-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.news-card .time { font-size: var(--fs-xs, 11px); color: var(--text-hint, #94a3b8); display: flex; align-items: center; gap: 4px; }
.news-card .srclink { font-size: var(--fs-xs, 11px); font-weight: 700; color: var(--brand, #0d9488); display: inline-flex; align-items: center; gap: 3px; text-decoration: none; background: var(--brand-50, #f0fdfa); padding: 3px 8px; border-radius: 8px; border: 1px solid var(--brand-light, #ccfbf1); }
.news-card .srclink:hover { background: var(--brand, #0d9488); color: #fff; border-color: var(--brand, #0d9488); }
/* Dark mode news card */
.dark .news-card { background: var(--surface); border-color: var(--line); }
.dark .news-card .title { color: var(--ink); }
.dark .news-card .sum { color: var(--muted); }

.news-skel { background: #fff; border: 1px solid #e6eaf2; border-radius: 18px; padding: 14px; display: flex; gap: 14px; }
.news-skel .s1 { width: 110px; height: 110px; border-radius: 14px; background: linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9); background-size: 200% 100%; animation: nh-shim 1.4s infinite; }
.news-skel .s2 { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-skel .s2 i { height: 12px; border-radius: 6px; background: linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9); background-size: 200% 100%; animation: nh-shim 1.4s infinite; display: block; }
.news-skel .s2 i:nth-child(1) { width: 40%; height: 10px; }
.news-skel .s2 i:nth-child(2) { width: 95%; }
.news-skel .s2 i:nth-child(3) { width: 80%; }
@keyframes nh-shim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.news-empty { text-align: center; padding: 50px 16px; color: #64748b; background: #fff; border: 1px dashed #e2e8f0; border-radius: 14px; }
.news-empty i { display: block; margin: 0 auto 10px; color: #cbd5e1; }
.news-more { display: flex; justify-content: center; margin-top: 14px; }
.news-more button { background: #fff; color: #0d9488; border: 1px solid #0d9488; padding: 10px 22px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.news-more button:hover { background: #0d9488; color: #fff; }
.news-count { font-size: 11.5px; color: #94a3b8; text-align: center; margin-top: 10px; }

/* App notices */
.notice-banner { position: sticky; top: 0; z-index: 9998; display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; font-size: var(--fs-lg, 14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.notice-banner .ico { font-size: 18px; flex-shrink: 0; }
.notice-banner .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-banner .msg b { margin-right: 6px; }
.notice-banner a { color: inherit; text-decoration: underline; margin-left: 6px; }
.notice-banner .x { background: none; border: none; color: inherit; cursor: pointer; font-size: 18px; padding: 0 4px; opacity: .7; }
.notice-banner .x:hover { opacity: 1; }
.notice-modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; font-family: 'Hind Siliguri', system-ui, sans-serif; animation: nFade .25s ease; }
.notice-modal-bg.show { display: flex; }
@keyframes nFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.notice-modal { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px -10px rgba(0,0,0,.4); animation: nSlide .3s ease; }
.notice-modal .head { padding: 20px 24px 12px; display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid #f1f5f9; }
.notice-modal .head .big-ico { font-size: 32px; flex-shrink: 0; }
.notice-modal .head h3 { margin: 0; font-size: 20px; color: #0f172a; line-height: 1.3; }
.notice-modal .head .type-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }
.notice-modal .body { padding: 18px 24px; color: #334155; font-size: 15px; line-height: 1.7; }
.notice-modal .body p { margin: 0 0 10px; }
.notice-modal .doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 14px; text-decoration: none; color: #0f172a; }
.notice-modal .doc:hover { background: #f1f5f9; border-color: #94a3b8; }
.notice-modal .doc .di { font-size: 24px; }
.notice-modal .doc .dn { flex: 1; font-size: 14px; font-weight: 600; }
.notice-modal .doc .ds { font-size: 11px; color: #64748b; }
.notice-modal .actions { padding: 14px 24px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #f1f5f9; }
.notice-modal .actions .left { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.notice-modal .actions button, .notice-modal .actions a.btn { padding: 9px 18px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; border: none; text-decoration: none; display: inline-block; }
.notice-modal .actions .primary { background: #0f766e; color: #fff; font-weight: 600; }
.notice-modal .actions .primary:hover { background: #0d5d56; }
.notice-modal .actions .ghost { background: #f1f5f9; color: #475569; }
.notice-modal .actions .ghost:hover { background: #e2e8f0; }

/* Search widget */
.aak-search { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 480px; background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 8px 12px; font-family: 'Hind Siliguri', system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
.aak-search:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.aak-search-icon { width: 18px; height: 18px; color: #64748b; flex-shrink: 0; }
.aak-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #0f172a; }
.aak-search input::placeholder { color: #94a3b8; font-size: 13px; }
.aak-search-kbd { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 7px; font-size: 11px; font-family: ui-monospace, SFMono-Regular, monospace; }
.aak-search-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(15,23,42,.18); max-height: 420px; overflow: auto; display: none; z-index: 9997; }
.aak-search-drop.show { display: block; }
.aak-sr-group { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.aak-sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f8fafc; text-decoration: none; color: #0f172a; }
.aak-sr-item:hover, .aak-sr-item.active { background: #f0fdfa; }
.aak-sr-ico { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.aak-sr-txt { flex: 1; min-width: 0; }
.aak-sr-lbl { font-size: 14px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aak-sr-sub { font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); margin-top: 2px; }
.aak-sr-arrow { font-size: var(--fs-base, 12px); color: var(--text-hint, #94a3b8); }
.aak-sr-empty { padding: 24px; text-align: center; color: var(--text-hint, #94a3b8); font-size: var(--fs-md, 13px); }
.aak-sr-load { padding: 14px; text-align: center; color: var(--brand-hover, #0f766e); font-size: var(--fs-md, 13px); }
@media (max-width: 640px) { .aak-search-kbd { display: none; } }

/* Job cards */
.job-card { background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-md, 14px); padding: 12px 14px; }
.job-card .title { font-size: var(--fs-lg, 14px); font-weight: 700; color: var(--ink, #0f172a); line-height: 1.4; }
.job-card .meta { font-size: var(--fs-sm, 11px); color: var(--muted, #64748b); margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-card .sum { font-size: var(--fs-base, 12px); color: var(--slate-600, #475569); margin-top: 5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dark .job-card { background: var(--surface); border-color: var(--line); }

/* ── Color tokens fully declared at top of file — no duplicate :root needed ── */

/* ─── UNIFIED BADGE SYSTEM ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.badge-sm { padding: 2px 7px; font-size: 9px; }
.badge-lg { padding: 5px 14px; font-size: 11px; }
.badge-primary { background: var(--brand-100); color: var(--brand-700); border: 1px solid var(--brand-200); }
.badge-secondary { background: var(--slate-100); color: var(--slate-600); border: 1px solid var(--slate-200); }
.badge-success { background: var(--emerald-50); color: var(--emerald-600); border: 1px solid #a7f3d0; }
.badge-warning { background: var(--amber-50); color: #92400e; border: 1px solid var(--amber-200); }
.badge-danger { background: var(--rose-50); color: var(--rose-600); border: 1px solid #fecdd3; }
.badge-info { background: var(--blue-50); color: var(--blue-600); border: 1px solid #bfdbfe; }
.badge-accent { background: var(--violet-50); color: var(--violet-600); border: 1px solid #ddd6fe; }
.badge-live { background: var(--rose-600); color: #fff; animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.badge-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-dot.badge-live::before { background: #fff; }

/* ─── UNIFIED CARD STYLES ────────────────────────────────────────────────── */
.card { background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-lg, 16px); padding: 16px; transition: box-shadow 0.2s, transform 0.2s; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-interactive { cursor: pointer; }
.card-interactive:hover { border-color: var(--brand-500, #14b8a6); box-shadow: 0 4px 14px -6px rgba(13,148,136,0.25); }
.card-flat { border-color: transparent; background: var(--page, #f8fafc); }
.card-elevated { box-shadow: var(--shadow-app); }
.card-highlight { border-left: 3px solid var(--brand-500, #14b8a6); }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: var(--fs-xl, 15px); font-weight: 700; color: var(--ink, #0f172a); margin: 0; }
.card-subtitle { font-size: var(--fs-base, 12px); color: var(--muted, #64748b); margin: 2px 0 0; }
.card-icon { width: 44px; height: 44px; border-radius: var(--radius-md, 12px); display: grid; place-items: center; flex-shrink: 0; }
.card-icon-sm { width: 32px; height: 32px; border-radius: var(--radius-sm, 8px); }
.card-icon svg, .card-icon i { width: 22px; height: 22px; }
.card-icon-sm svg, .card-icon-sm i { width: 16px; height: 16px; }
.card-body { font-size: var(--fs-md, 13px); line-height: 1.6; color: var(--muted, #64748b); }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e2e8f0); }
.card-grid { display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .card-grid-4, .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }
.dark .card { background: var(--surface); border-color: var(--line); }
.dark .card-flat { background: var(--raised); }
.dark .card-footer { border-color: var(--line); }

/* ─── GRADIENT SYSTEM (replaces inline styles) ───────────────────────────── */
.gradient-brand { background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 45%, var(--brand-700) 100%); }
.gradient-hero { background: radial-gradient(120% 100% at 0% 0%, var(--brand-500) 0%, var(--brand-600) 45%, var(--brand-700) 100%); box-shadow: 0 16px 40px -16px rgba(13,148,136,0.5); }
.gradient-rashifal { background: radial-gradient(140% 120% at 5% 5%, var(--violet-500) 0%, #4338ca 48%, #1e1b4b 100%); box-shadow: 0 16px 40px -14px rgba(99,54,210,0.55); }
.gradient-visit-nepal { background: linear-gradient(135deg, #dc2626, var(--amber-500)); }
.gradient-success { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); }
.gradient-podcast { background: linear-gradient(135deg, var(--violet-600), #ec4899); }
.gradient-sunset { background: linear-gradient(135deg, #fff7ed, var(--amber-200)); }
.gradient-sky { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.gradient-rose { background: linear-gradient(135deg, #fff1f2, #ffe4e6); }

/* ─── GLASSMORPHISM UTILITIES ─────────────────────────────────────────────── */
.glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); }
.glass-white { background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); }
.glass-dark { background: rgba(15,23,42,0.7); backdrop-filter: blur(8px); }

/* ─── BUTTON UNIFICATION ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-family: inherit; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm  { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 12px 22px; font-size: 15px; border-radius: var(--radius-md); }
.btn-xl  { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; justify-content: center; }

/* Primary — always brand teal, regardless of page */
.btn-primary   { background: var(--brand-600, #0d9488); color: #fff; }
.btn-primary:hover { background: var(--brand-700, #0f766e); }
.btn-primary:active { transform: scale(.98); }

/* Secondary */
.btn-secondary { background: var(--slate-100, #f1f5f9); color: var(--slate-700, #334155); border-color: var(--slate-200, #e2e8f0); }
.btn-secondary:hover { background: var(--slate-200, #e2e8f0); }

/* Ghost */
.btn-ghost { background: transparent; color: var(--slate-600, #475569); }
.btn-ghost:hover { background: var(--slate-100, #f1f5f9); }

/* Danger */
.btn-danger { background: var(--rose-600, #e11d48); color: #fff; }
.btn-danger:hover { background: #be123c; }

/* Outline brand */
.btn-outline { background: transparent; color: var(--brand-600, #0d9488); border-color: var(--brand-600, #0d9488); }
.btn-outline:hover { background: var(--brand-50, #f0fdfa); }

/* Dark mode button overrides */
.dark .btn-secondary { background: var(--raised); color: var(--ink); border-color: var(--line); }
.dark .btn-secondary:hover { background: var(--line); }
.dark .btn-ghost:hover { background: var(--raised); }

/* ─── PAGE HEADER COMPONENT ──────────────────────────────────────────────── */
/* Standardized page title bar — use on every tool/feature page */
.page-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.page-header-icon { width: 40px; height: 40px; border-radius: var(--radius-lg, 16px); background: var(--brand-600, #0d9488); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.page-header-icon i, .page-header-icon svg { width: 20px; height: 20px; }
.page-header-body { min-width: 0; }
.page-header-title { font-size: 18px; font-weight: 700; color: var(--ink, #0f172a); line-height: 1.25; margin: 0; }
.page-header-subtitle { font-size: 11px; color: var(--muted, #64748b); margin: 2px 0 0; }
.dark .page-header-title { color: var(--ink); }
.dark .page-header-subtitle { color: var(--muted); }

/* ─── INPUT FIELD COMPONENT ──────────────────────────────────────────────── */
/* Standardized inputs — focus ring always brand teal */
.input-field {
  width: 100%; background: var(--slate-50, #f8fafc); border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius-md, 12px); padding: 10px 14px; font-size: 13px;
  font-family: inherit; color: var(--ink, #0f172a); transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input-field:focus { border-color: var(--brand, #0d9488); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.input-field::placeholder { color: var(--text-hint, #94a3b8); }
.input-field-lg { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-md, 12px); }
.dark .input-field { background: var(--raised); border-color: var(--line); color: var(--ink); }
.dark .input-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,212,191,.15); }

/* Select field */
.select-field {
  width: 100%; background: var(--slate-50, #f8fafc); border: 1px solid var(--slate-200, #e2e8f0);
  border-radius: var(--radius-md, 12px); padding: 10px 14px; font-size: 13px;
  font-family: inherit; color: var(--ink, #0f172a); cursor: pointer;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.select-field:focus { border-color: var(--brand, #0d9488); box-shadow: 0 0 0 3px rgba(13,148,136,.15); }
.dark .select-field { background: var(--raised); border-color: var(--line); color: var(--ink); }

/* ─── TAB PILL COMPONENT ─────────────────────────────────────────────────── */
/* Scrollable horizontal tab bar */
.tab-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-pill { flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-full, 999px); font-size: 12px; font-weight: 600; background: var(--surface, #fff); color: var(--slate-600, #475569); border: 1px solid var(--line, #e2e8f0); cursor: pointer; white-space: nowrap; transition: all .15s; font-family: inherit; }
.tab-pill:hover { border-color: var(--brand, #0d9488); color: var(--brand, #0d9488); }
.tab-pill.active { background: var(--brand-600, #0d9488); color: #fff; border-color: var(--brand-600, #0d9488); }
.dark .tab-pill { background: var(--surface); border-color: var(--line); color: var(--muted); }
.dark .tab-pill:hover { border-color: var(--brand); color: var(--brand); }
.dark .tab-pill.active { background: var(--brand); border-color: var(--brand); color: var(--page); }

/* Segment (boxed) tabs */
.tab-segment { display: flex; background: var(--slate-100, #f1f5f9); border-radius: var(--radius-md, 12px); padding: 4px; gap: 2px; }
.tab-segment-btn { flex: 1; padding: 7px 12px; border-radius: var(--radius-sm, 8px); font-size: 12px; font-weight: 600; color: var(--muted, #64748b); background: transparent; border: none; cursor: pointer; transition: all .15s; font-family: inherit; white-space: nowrap; }
.tab-segment-btn.active { background: var(--surface, #fff); color: var(--ink, #0f172a); box-shadow: var(--shadow-sm); }
.dark .tab-segment { background: var(--raised); }
.dark .tab-segment-btn.active { background: var(--surface); color: var(--ink); }

/* ─── SECTION HEADERS ────────────────────────────────────────────────────── */
.section-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 14px; font-size: var(--fs-base, 12px); font-weight: 700; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: 0.03em; }
.section-title svg, .section-title i { width: 18px; height: 18px; color: var(--brand-600, #0d9488); }
.section-more { margin-left: auto; font-size: var(--fs-sm, 11px); color: var(--brand-600, #0d9488); text-decoration: none; font-weight: 600; }
.section-more:hover { color: var(--brand-700, #0f766e); }

/* ─── ICON REPLACEMENT UTILITIES (replaces emojis) ───────────────────────── */
.icon-flag-np { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; background: linear-gradient(180deg, #dc2626 33%, #0ea5e9 33%, #0ea5e9 66%, #16a34a 66%); border-radius: 2px; position: relative; }
.icon-flag-np::after { content: '☀'; position: absolute; font-size: 0.5em; color: #fff; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-sun { color: var(--amber-500); }
.icon-moon { color: var(--violet-500); }
.icon-star { color: var(--amber-500); }
.icon-fire { color: var(--rose-500); }
.icon-trend-up { color: var(--emerald-500); }
.icon-trend-down { color: var(--rose-500); }

/* ─── QUICK ACCESS TILES ─────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); text-decoration: none; transition: all 0.2s; }
.tile:hover { border-color: var(--brand-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile .ic { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.tile .ic svg, .tile .ic i { width: 20px; height: 20px; color: #fff; }
.tile .lbl { font-size: 11px; font-weight: 600; color: var(--slate-700); text-align: center; }
.tile-bg-1 { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); }
.tile-bg-2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.tile-bg-3 { background: linear-gradient(135deg, var(--amber-500), #d97706); }
.tile-bg-4 { background: linear-gradient(135deg, var(--violet-500), var(--violet-600)); }
.tile-bg-5 { background: linear-gradient(135deg, #10b981, #059669); }
.tile-bg-6 { background: linear-gradient(135deg, var(--rose-500), #e11d48); }
.tile-bg-7 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.tile-bg-8 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* ─── MINIMAL SHARE BUTTONS ────────────────────────────────────────────────── */
.share-group { display: inline-flex; gap: 6px; }
.share-btn-mini { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s, opacity 0.2s; }
.share-btn-mini:hover { transform: translateY(-2px); }
.share-btn-mini svg { width: 14px; height: 14px; }

/* ─── ANIMATION UTILITIES ────────────────────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.animate-fade-in { animation: fade-in 0.3s ease-out; }
.animate-slide-in { animation: slide-in-right 0.3s ease-out; }
.animate-pulse-soft { animation: pulse-soft 2s infinite; }

/* ─── UTILITY SPACING ────────────────────────────────────────────────────── */
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.p-1 { padding: 4px; } .p-2 { padding: 8px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; }

/* ─── TYPOGRAPHY UTILITIES ───────────────────────────────────────────────── */
.text-brand   { color: var(--brand-600, #0d9488); }
.text-muted   { color: var(--muted, #64748b); }
.text-heading { color: var(--ink, #0f172a); font-weight: 700; }
.text-hint    { color: var(--text-hint, #94a3b8); }
/* Semantic font-size aliases matching --fs-* tokens */
.text-small  { font-size: var(--fs-base, 12px); }
.text-xs     { font-size: var(--fs-sm,   11px); }
.text-sm     { font-size: var(--fs-sm,   11px); }
.text-base   { font-size: var(--fs-base, 12px); }
.text-md     { font-size: var(--fs-md,   13px); }
.text-lg     { font-size: var(--fs-lg,   14px); }
.text-xl     { font-size: var(--fs-xl,   16px); }
.text-2xl    { font-size: var(--fs-2xl,  18px); }
.text-3xl    { font-size: var(--fs-3xl,  20px); }
.text-4xl    { font-size: var(--fs-4xl,  24px); }
.text-5xl    { font-size: var(--fs-5xl,  28px); }
.leading-relaxed { line-height: 1.6; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════════
 * Skeleton Loading States - Better UX while data loads
 * ═══════════════════════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-text { height: 12px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-title { height: 16px; width: 90%; margin-bottom: 12px; }
.skeleton-image { aspect-ratio: 16/9; width: 100%; border-radius: 12px; }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading spinner */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line, #e2e8f0);
  border-top-color: var(--brand, #0d9488);
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

/* Screen reader only - accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #64748b;
  gap: 12px;
}
.loading-container p {
  font-size: 13px;
  margin: 0;
}

/* ─── SAFE AREA FOR MOBILE ───────────────────────────────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  .safe-top { padding-top: env(safe-area-inset-top); }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * Mobile Touch Targets - Minimum 44px for accessibility
 * ═══════════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse), (max-width: 768px) {
  /* Ensure all interactive elements have minimum 44px touch target */
  button, .btn, [role="button"],
  a.aak-sr-item, .news-chip, .news-src,
  .aak-nav-tab, .dpd-tab, .aak-segment-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Increase padding on small touch targets */
  .aak-nav-tab { padding: 10px 14px; }
  .news-chip { padding: 10px 16px; }
  .news-src { padding: 8px 14px; }
  
  /* Form inputs - larger touch areas */
  input[type="text"], input[type="search"], input[type="email"],
  input[type="password"], input[type="number"],
  select, textarea {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
  
  /* Close buttons and small icons */
  .aak-close-btn, .modal-close, .drawer-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Cards and list items - full width tap targets */
  .news-card, .job-card, .ss-card, .pc-card,
  .vn-card, .radio-card {
    position: relative;
  }
  
  /* Radio player controls */
  .rp-controls button {
    min-width: 48px;
    min-height: 48px;
  }
  
  /* Tab bar items */
  .aak-tab-item {
    min-height: 44px;
    padding: 8px 12px;
  }
  
  /* Menu links in navigation */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Checkbox and radio - larger touch targets */
  input[type="checkbox"], input[type="radio"] {
    width: 24px;
    height: 24px;
  }
}

/* ─── SMOOTH SCROLLING ──────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .skeleton, .loading-spinner {
    animation: none !important;
  }
}

/* ─── FOCUS VISIBLE FOR KEYBOARD NAVIGATION ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand, #0d9488);
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand, #0d9488);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
}
