/* GoldRatesDaily — light, card-based layout (goldpriceindia-style) */
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --surface-2: #F8F9FB; --text: #1D2939; --muted: #667085; --line: #E4E7EC;
  --navy: #13263D; --navy-2: #0B1726; --gold: #C9921F; --gold-d: #9A6A0B; --gold-l: #FFF7E3; --teal: #1F6F78; --green: #1E8E4E;
  --up: #067647; --down: #B42318; --up-bg: #ECFDF3; --down-bg: #FEF3F2; --wa: #1FA855; --radius: 8px;
  --ink: #13263D; --link: #175CD3; --line-2: #D0D5DD; --row-alt: #FAFBFC; --input-bg: #FFFFFF; --gold-line: #F2E2B8;
  --text-2: #344054; --text-3: #475467; --up-line: #ABEFC6; --down-line: #FECDCA; --shadow: rgba(16,24,40,.08);
  color-scheme: light;
}
/* ---------- dark theme: [data-theme="dark"], or "system" when the device is dark ---------- */
:root[data-theme="dark"] {
  --bg: #0B111A; --surface: #121A26; --surface-2: #18222F; --text: #E4E9F0; --muted: #98A2B3; --line: #243042;
  --navy: #1C3A5E; --navy-2: #060B12; --gold: #D9A43A; --gold-d: #E9BC5C; --gold-l: #262012; --teal: #2A8A95; --green: #23A35B;
  --up: #47CD89; --down: #F97066; --up-bg: #0D2A1C; --down-bg: #33130F;
  --ink: #E8EDF4; --link: #7AB0FF; --line-2: #33415A; --row-alt: #151E2B; --input-bg: #0E1621; --gold-line: #4A3A17;
  --text-2: #CDD5E0; --text-3: #AAB4C2; --up-line: #1B5C3B; --down-line: #6E2620; --shadow: rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0B111A; --surface: #121A26; --surface-2: #18222F; --text: #E4E9F0; --muted: #98A2B3; --line: #243042;
    --navy: #1C3A5E; --navy-2: #060B12; --gold: #D9A43A; --gold-d: #E9BC5C; --gold-l: #262012; --teal: #2A8A95; --green: #23A35B;
    --up: #47CD89; --down: #F97066; --up-bg: #0D2A1C; --down-bg: #33130F;
    --ink: #E8EDF4; --link: #7AB0FF; --line-2: #33415A; --row-alt: #151E2B; --input-bg: #0E1621; --gold-line: #4A3A17;
    --text-2: #CDD5E0; --text-3: #AAB4C2; --up-line: #1B5C3B; --down-line: #6E2620; --shadow: rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 1rem 0 .6rem; } h2 { font-size: 1.05rem; margin: 0; } h3 { font-size: 1rem; margin: 0 0 .6rem; }
code, pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .85em; }
pre { padding: 10px; overflow-x: auto; white-space: pre-wrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }
.muted { color: var(--muted); } .small { font-size: .85em; } .nowrap { white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); }
.urdu { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; font-size: .85em; }

/* ---------- ticker ---------- */
.ticker { background: var(--navy-2); color: #CFD8E3; font-size: .8rem; }
.ticker-in { display: flex; align-items: center; gap: 16px; min-height: 34px; }
.tk-date { color: #8EA0B5; white-space: nowrap; }
.tk-items { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; white-space: nowrap; }
.tk-items::-webkit-scrollbar { display: none; }
.tk b { color: #fff; font-weight: 600; } .tk small { color: #8EA0B5; }
.tk em { font-style: normal; font-weight: 600; margin-left: 4px; }
.tk em.up { color: #47CD89; } .tk em.down { color: #F97066; }
.tk-wa { color: #47CD89; font-weight: 600; white-space: nowrap; }

/* ---------- masthead & nav ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.mast-ad { flex: 0 1 728px; } .mast-ad .ad { margin: 8px 0; } .mast-ad .ad-placeholder { min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo-img { width: 44px; height: auto; flex: none; }
.wordmark { display: block; font: 800 1.6rem/1 "Playfair Display", Georgia, serif; letter-spacing: -.3px; color: var(--ink); }
.wordmark .g { background: linear-gradient(180deg, #F3D27A, #D9A22E 55%, #A8740F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .i { font-style: italic; font-weight: 700; }
.brand small { display: block; font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.mainnav { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.nav-in { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.nav-links { display: flex; flex-wrap: wrap; flex: 1; }
.nav-links a { color: #E4E9F0; padding: 13px 14px; font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-links a.on { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.08); }
.badge { background: var(--gold); color: #1d1300; border-radius: 10px; padding: 0 6px; font-size: .72rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
.cur-switch select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); padding: 5px 8px; }
.cur-switch option { color: #000; }
.subnav { background: var(--gold-l); border-bottom: 1px solid var(--gold-line); font-size: .84rem; }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-block: 8px; }
.subnav .lbl { font-weight: 700; color: var(--gold-d); }
.subnav a { color: var(--ink); } .subnav .more { color: var(--gold-d); font-weight: 600; }
@media (max-width: 860px) {
  .mast-ad { display: none; } .mast-in { min-height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; order: 3; padding-bottom: 8px; }
  .nav-in { flex-wrap: wrap; justify-content: space-between; }
  .nav-in.open .nav-links { display: flex; }
  .nav-links a { border-bottom: 0; border-left: 3px solid transparent; padding: 10px 12px; }
  .nav-links a.on { border-left-color: var(--gold); }
  .subnav .wrap { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}

/* ---------- page grid ---------- */
.page { padding-top: 6px; padding-bottom: 20px; }
.page-title { font-size: 1.45rem; }
.page-title small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #12B76A; animation: pulse 1.6s infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .3; } }
.grid3 { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.grid2, .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.col > *, .sidebar > * { margin: 0 !important; }
.sidebar { display: grid; gap: 16px; }
@media (max-width: 1150px) { .grid3 { grid-template-columns: 320px minmax(0, 1fr); } .grid3 > .side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
@media (max-width: 800px) { .grid3, .grid2, .layout { grid-template-columns: minmax(0, 1fr); } .grid3 > .side { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; overflow: hidden; }
.card > .ch { margin: -14px -16px 12px; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; color: #fff; flex-wrap: wrap; }
.ch h2 { font-size: .98rem; font-weight: 700; color: #fff; }
.ch a { color: #fff; font-size: .82rem; opacity: .9; } .ch-note { font-size: .78rem; opacity: .85; }
.ch-gold { background: linear-gradient(90deg, #B7811A, #D4A032); }
.ch-navy { background: var(--navy); } .ch-teal { background: var(--teal); } .ch-green { background: var(--green); }
.cb { padding: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card.empty, .empty { text-align: center; padding: 34px 20px; }
.note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.t td, .t th, .rates td, .rates th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.t td:first-child, .t th:first-child, .rates td:first-child, .rates th:first-child { text-align: left; }
.t thead th, .rates thead th { background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.t tbody tr:nth-child(even), .rates tbody tr:nth-child(even) { background: var(--row-alt); }
.t tbody tr:hover, .rates tbody tr:hover { background: var(--gold-l); }
.rates td, .rates th { white-space: nowrap; }
.mini td, .mini th { padding: 6px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.mini td:last-child, .mini th:last-child { text-align: right; }
.chg { font-size: .84rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.tag { font-size: .7rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px; color: var(--muted); }
.flash-up { animation: fu 1.5s; } .flash-down { animation: fd 1.5s; }
@keyframes fu { from { background: #ABEFC6; } } @keyframes fd { from { background: #FECDCA; } }

/* ---------- today widget ---------- */
.today { text-align: center; }
.today-date { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px; font-size: .84rem; color: var(--muted); }
.today-price { font-size: 2.6rem; font-weight: 800; color: var(--gold-d); letter-spacing: -1px; margin: 10px 0 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.today-price .sym { font-size: .55em; vertical-align: .35em; margin-right: 2px; }
.today-unit { color: var(--muted); font-size: .84rem; }
.today-chg { margin: 6px 0 10px; font-size: .9rem; }
.range { margin: 12px 0; }
.range-labels { display: flex; justify-content: space-between; font-size: .76rem; font-variant-numeric: tabular-nums; }
.range-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #FDA29B, #FEDF89, #75E0A7); margin-top: 4px; }
.range-bar i, .heat-bar i { position: absolute; top: -5px; width: 4px; height: 16px; margin-left: -2px; background: var(--navy); border-radius: 2px; }
.kv td { padding: 5px 2px; border-bottom: 1px dashed var(--line); font-size: .86rem; font-variant-numeric: tabular-nums; }
.kv td:first-child { text-align: left; color: var(--muted); } .kv td:last-child { text-align: right; font-weight: 600; }
.heat { margin-top: 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.heat-top { display: flex; justify-content: space-between; font-size: .84rem; }
.heat-top span { font-weight: 700; } .heat-hot { color: var(--down); } .heat-cool { color: var(--link); } .heat-neutral { color: var(--gold-d); }
.heat-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #84CAFF, #FEDF89, #F97066); margin: 8px 0 3px; }
.heat-scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.heat p { margin: 6px 0 0; }
.spark-box { position: relative; height: 70px; margin-top: 10px; }
.spark { width: 100% !important; }
.extremes > div { padding: 8px 10px; border-radius: 4px; margin-bottom: 6px; font-size: .9rem; }
.extremes .lo { background: var(--down-bg); } .extremes .hi { background: var(--up-bg); } .extremes .ye { background: var(--surface-2); }
.extremes small { color: var(--muted); } .extremes p { margin: 8px 0 0; }

/* ---------- misc blocks ---------- */
.rng { display: flex; gap: 2px; }
.rng button { background: rgba(255,255,255,.12); color: #fff; border: 0; padding: 3px 8px; border-radius: 4px; font: 600 .74rem Inter, sans-serif; cursor: pointer; }
.rng button.on { background: var(--gold); color: #1d1300; }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq p { margin: 6px 0 2px; color: var(--text-2); }
.linkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .86rem; }
.tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; } .tabs a { white-space: nowrap; flex: none; }
.tabs a { padding: 8px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.crumbs { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.sub { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.sub .consent { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.or { text-align: center; color: var(--muted); font-size: .76rem; margin: 8px 0; }
.calc-mini label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.calc-mini select { width: 100%; margin-top: 3px; }
.calc-out { font-size: 1.5rem; font-weight: 800; color: var(--gold-d); margin: 6px 0; font-variant-numeric: tabular-nums; }

/* calculator page */
.calc-form fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 12px 0 0; padding: 8px 12px 12px; }
.calc-form legend { font-weight: 700; font-size: .84rem; color: var(--ink); padding: 0 4px; }
.fg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fg label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); }
.fg input, .fg select { width: 100%; }
.calc-result { margin-top: 14px; }
.calc-result .total { display: flex; justify-content: space-between; align-items: baseline; background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; }
.calc-result .total b { font-size: 1.7rem; color: var(--gold-d); font-variant-numeric: tabular-nums; }

/* ---------- forms & buttons ---------- */
input, select, textarea { font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #F5D78E; border-color: var(--gold); }
textarea { width: 100%; }
.form label { display: block; margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.form label input:not([type=checkbox]):not([type=radio]), .form label select, .form label textarea { display: block; width: 100%; margin-top: 4px; color: var(--text); }
.form label.inline, label.inline { display: inline-flex; align-items: center; gap: 6px; }
.form .field { margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.row { display: flex; gap: 8px; margin-top: 4px; } .row input { flex: 1; min-width: 0; }
.form .row input, .form .row select { margin-top: 0 !important; }
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn.wa { background: var(--wa); } .btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; padding: 0; }
.link.danger { color: var(--down); }
form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters label { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted); gap: 4px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.flash { padding: 10px 14px; border-radius: 6px; margin: 10px 0; background: var(--up-bg); border: 1px solid var(--up-line); }
.flash.err { background: var(--down-bg); border-color: var(--down-line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.chips a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: var(--surface); }
.chips a.on { background: var(--navy); color: #fff; border-color: var(--ink); }
.pay-options { display: grid; gap: 8px; margin-top: 6px; }
.pay-opt { display: flex !important; margin: 0 !important; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; color: var(--text); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-l); }

/* legacy blocks still used by currency / archive / store / admin */
.grid-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.grid-rates > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.grid-rates small { display: block; color: var(--muted); } .grid-rates b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stats { margin: 10px 0 16px; } .stats b { font-size: 1.6rem; }
.conv-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.conv-row input { flex: 1 1 140px; font-size: 1.1rem; } .conv-row select { flex: 1 1 100px; }
.conv-out { font-size: 1.4rem; font-variant-numeric: tabular-nums; } .conv-out b { color: var(--gold-d); } .conv-out small { display: block; font-size: .84rem; color: var(--muted); }

/* ---------- ads ---------- */
.ad { margin: 0 0 16px; text-align: center; overflow: hidden; }
.ad img { max-width: 100%; height: auto; }
.ad-placeholder { border: 1px dashed var(--line-2); border-radius: 6px; padding: 14px; color: var(--muted); font-size: .8rem; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 90px; background: repeating-linear-gradient(45deg, var(--row-alt), var(--row-alt) 10px, var(--surface-2) 10px, var(--surface-2) 20px); }
.side .ad-placeholder { min-height: 250px; } .side .ad-sidebar_bottom.ad-placeholder { min-height: 400px; }
.mobile-only { display: none; }
@media (max-width: 700px) {
  .mobile-only { display: block; position: sticky; bottom: 0; z-index: 19; }
  .mobile-only .ad { margin: 0; background: var(--surface); } .mobile-only .ad-placeholder { min-height: 50px; padding: 6px; border-radius: 0; }
}

/* ---------- store ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: box-shadow .15s; }
.product:hover { box-shadow: 0 6px 18px var(--shadow); text-decoration: none; }
.product .img, .product-page .img { aspect-ratio: 1; background: linear-gradient(135deg, #FBE7A1, #D4A032); display: grid; place-items: center; color: #5a4000; font-weight: 700; font-size: 1.3rem; }
.product .img img, .product-page .img img { width: 100%; height: 100%; object-fit: cover; }
.product .info { padding: 12px; display: grid; gap: 3px; } .product small { color: var(--muted); }
.price { font-weight: 800; color: var(--gold-d); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.product-page .img { border-radius: 6px; overflow: hidden; }
.big-price { font-size: 1.8rem; margin: 8px 0 12px; }
.add { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; } .add input { width: 80px; } .qty { width: 70px; }
@media (max-width: 700px) { .product-page { grid-template-columns: 1fr; } }

/* ---------- admin ---------- */
.card-preview, .thumb { max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.thumb { max-width: 120px; display: block; margin-top: 6px; }
fieldset.card { border: 1px solid var(--line); } legend { font-weight: 700; padding: 0 6px; }
.sticky-save { position: sticky; bottom: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
#msg { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
body.admin .site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
body.admin .site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 10px; }
body.admin nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
body.admin nav a { color: var(--text); padding: 6px 10px; border-radius: 6px; font-weight: 500; }
body.admin nav a.on { background: var(--navy); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #B9C4D2; margin-top: 24px; padding: 28px 0 14px; font-size: .86rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer b { color: #fff; display: block; margin-bottom: 8px; }
.site-footer .cols > div > a { display: block; color: #D0D8E2; margin-bottom: 5px; }
.site-footer .btn { margin: 0 0 8px; display: inline-block; color: #fff; }
.brand-foot .wordmark { color: #fff; font-size: 1.4rem; } .brand-foot small { display: none; }
.site-footer .copy { border-top: 1px solid #1F3148; margin-top: 18px; padding-top: 12px; color: #7F8DA3; font-size: .78rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .today-price { font-size: 2.2rem; } }
.sub input { min-width: 0; width: 100%; } .sub .btn { white-space: nowrap; padding-inline: 12px; }
.sub input[type=checkbox] { width: auto; flex: none; margin-top: 2px; }
.grid3 > .col:first-child .t td, .grid3 > .col:first-child .t th { white-space: nowrap; padding: 7px 6px; font-size: .84rem; }
.metal-tabs { overflow-x: auto; scrollbar-width: none; white-space: nowrap; } .metal-tabs::-webkit-scrollbar { display: none; } .metal-tabs a { padding: 8px 12px; }

/* ---------- blog ---------- */
.pl-cat { display: inline-block; font: 700 .68rem Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 3px; padding: 2px 7px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list a { display: grid; gap: 3px; padding: 9px 0; color: var(--text); }
.post-list a:hover { text-decoration: none; } .post-list a:hover b { color: var(--link); }
.post-list b { font-size: .92rem; line-height: 1.35; } .post-list small { color: var(--muted); font-size: .76rem; }
.post-list .pl-cat { justify-self: start; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.post-grid > .ad { grid-column: 1 / -1; }
.post-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); margin: 0 !important; transition: box-shadow .15s; }
.card.post-card { padding: 0 0 14px; } .card.post-card > :not(img) { margin-inline: 14px; }
.post-card:hover { text-decoration: none; box-shadow: 0 6px 18px var(--shadow); } .post-card:hover h3 { color: var(--link); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.post-card .pl-cat { align-self: flex-start; margin-top: 4px; }
.post-card h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
.post-card p { margin: 0; color: var(--text-3); font-size: .86rem; }
.related .post-card { gap: 4px; } .related .post-card img { border-radius: 6px; }
.post-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; color: var(--text); padding: 0 !important; }
.post-lead:hover { text-decoration: none; } .post-lead:hover h2 { color: var(--link); }
.post-lead img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 630; display: block; }
.post-lead > div { padding: 16px 18px 16px 0; } .post-lead h2 { font-size: 1.35rem; margin: 8px 0; } .post-lead p { color: var(--text-3); margin: 0 0 8px; }
@media (max-width: 700px) { .post-lead { grid-template-columns: 1fr; } .post-lead > div { padding: 0 16px 16px; } }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--ink); }
.article { padding: 22px 26px; }
.article h1 { font: 800 2rem/1.2 "Playfair Display", Georgia, serif; color: var(--ink); margin: 10px 0 8px; letter-spacing: -.2px; }
.byline { color: var(--muted); font-size: .84rem; margin: 0 0 14px; }
.article .hero { width: 100%; height: auto; border-radius: 6px; display: block; margin-bottom: 14px; }
.lede { font-size: 1.1rem; color: var(--text-2); font-weight: 500; line-height: 1.55; }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.08rem; margin: 1.3em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; } .prose li { margin-bottom: .35em; }
.prose table { margin: 0 0 1.2em; font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose thead th { background: var(--surface-2); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--gold); background: var(--gold-l); border-radius: 0 6px 6px 0; }
.prose .callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 0 0 1em; }
.sources { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; font-size: .88rem; margin: 18px 0; }
.sources ul { margin: 6px 0 0; padding-left: 18px; }
.disclaimer { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 18px; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.share .btn { padding: 6px 14px; font-size: .84rem; }
@media (max-width: 700px) { .article { padding: 16px; } .article h1 { font-size: 1.5rem; } .prose { font-size: 1rem; } }
.share-rates { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; } .share-rates .btn { padding: 6px 14px; font-size: .86rem; }
.cities tr.xtra { display: none; } .cities.all tr.xtra { display: table-row; }
.cities tr.here td { background: var(--gold-l); font-weight: 700; }
.more-cities { display: block; margin: 8px auto 0; font-weight: 600; }

/* ---------- widget builder ---------- */
.lede-sm { color: var(--text-3); margin: -4px 0 14px; max-width: 820px; }
.wb { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wb-out { position: sticky; top: 60px; display: grid; gap: 16px; } .wb-out > .card { margin: 0; }
@media (max-width: 900px) { .wb { grid-template-columns: 1fr; } .wb-out { position: static; } }
.wb-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 12px; margin: 0 0 12px; }
.wb-form legend { font-weight: 700; font-size: .86rem; color: var(--ink); padding: 0 4px; }
.wb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wb-type { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; }
.wb-type input { position: absolute; opacity: 0; } .wb-type small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.wb-type:has(input:checked) { border-color: var(--gold); background: var(--gold-l); box-shadow: 0 0 0 1px var(--gold) inset; }
.wb-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: .84rem; }
.wb-checks > span { width: 100%; font-weight: 600; color: var(--ink); } .wb-checks em { font-weight: 400; color: var(--muted); font-style: normal; }
.wb-checks label { display: inline-flex; gap: 4px; align-items: center; }
.wb-colors { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .84rem; }
.wb-colors label { display: inline-flex; gap: 6px; align-items: center; } .wb-colors input[type=color] { width: 34px; height: 26px; padding: 0 2px; }
.wb-preview { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 18px 18px; border-radius: 6px; padding: 14px; min-height: 140px; }
#wb-code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: #0f1a2b; color: #e9eef5; border-color: #0f1a2b; }

/* ---------- marketplace ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sell-banner { display: block; background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; color: var(--text); }
.sell-banner span { color: var(--gold-d); font-weight: 700; white-space: nowrap; } .sell-banner:hover { text-decoration: none; border-color: var(--gold); }
.store-filters { align-items: end; } .store-filters input[name=q] { min-width: 180px; }
.price.on-request { color: var(--ink); font-size: .92rem; } .sold-by { color: var(--muted); font-size: .76rem; }
.sold-by-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; display: inline-block; }
.on-request-box { background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.on-request-box .big-price { margin: 0 0 4px; font-size: 1.3rem; } .on-request-box p { margin: 6px 0 0; }
.enquiry { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 12px 0; } .enquiry summary { cursor: pointer; } .enquiry form { margin-top: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.shop-card { display: flex; gap: 12px; align-items: center; color: var(--text); margin: 0; } .shop-card:hover { text-decoration: none; border-color: var(--gold); }
.shop-card small { display: block; color: var(--muted); }
.shop-card.featured { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-l), var(--surface) 60%); }
.feat-tag { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--gold-d); background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.shop-logo { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #F3D27A, #B7811A); color: #fff; font: 800 1.4rem "Playfair Display", serif; display: grid; place-items: center; flex: none; overflow: hidden; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; } .shop-logo.big { width: 96px; height: 96px; font-size: 2.4rem; }
.shop-hero { display: flex; gap: 18px; align-items: flex-start; } .shop-hero h1 { margin-top: 0; }
@media (max-width: 600px) { .shop-hero { flex-direction: column; } }
.sell-hero h1 { font: 800 1.7rem/1.25 "Playfair Display", Georgia, serif; color: var(--ink); margin-top: 0; }
.ticks { padding-left: 0; list-style: none; } .ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 800; }
.narrow-form { max-width: 760px; }
.price-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.price-preview .pp-total { color: var(--gold-d); font-size: 1.1em; }
.product-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 10px; margin: 10px 0; }

/* ---------- language switcher / Google Translate ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 1rem; }
.lang-switch select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); padding: 5px 6px; max-width: 150px; }
.lang-switch option { color: #000; }
@media (max-width: 860px) { .lang-switch select { max-width: 110px; } }
/* hide Google's top bar and hover popups; keep page from being pushed down */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
/* right-to-left languages */
html.rtl-lang body { direction: rtl; }
html.rtl-lang .t td, html.rtl-lang .t th, html.rtl-lang .rates td, html.rtl-lang .rates th { text-align: left; }
html.rtl-lang .t td:first-child, html.rtl-lang .t th:first-child, html.rtl-lang .rates td:first-child, html.rtl-lang .rates th:first-child { text-align: right; }
html.rtl-lang .notranslate, html.rtl-lang [data-live], html.rtl-lang .tk-items, html.rtl-lang .wordmark { direction: ltr; unicode-bidi: isolate; }
html.rtl-lang .prose, html.rtl-lang .faq, html.rtl-lang .page-title, html.rtl-lang .ch { text-align: right; }
html.rtl-lang body, html.rtl-lang .prose { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", Inter, system-ui, sans-serif; line-height: 1.8; }
/* keep prices "Rs 37,206" in left-to-right order inside right-to-left (Urdu/Arabic) pages */
html.rtl-lang .t td:not(:first-child), html.rtl-lang .rates td:not(:first-child), html.rtl-lang .today-price, html.rtl-lang .price,
html.rtl-lang .big-price, html.rtl-lang .kv td:last-child, html.rtl-lang .calc-out, html.rtl-lang .range-labels span, html.rtl-lang .tk,
html.rtl-lang [data-live], html.rtl-lang .chg { direction: ltr; unicode-bidi: isolate; }
html.rtl-lang .today-price { display: block; }
/* Arabic uses Naskh script (Nastaliq is the Urdu style) */
html[lang="ar"] body, html[lang="ar"] .prose { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Inter, sans-serif; line-height: 1.75; }

/* ---------- customer accounts & lucky draw ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 320px); gap: 16px; justify-content: center; align-items: start; margin-top: 10px; }
.auth h1 { font-size: 1.4rem; margin: 0 0 12px; } .auth-side h2 { font-size: 1.1rem; margin: 0 0 8px; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; } }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.draw-prize { font-size: 1.05rem; margin: 4px 0 10px; } .draw-prize.big { font-size: 1.25rem; }
.draw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.draw-stats > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.draw-stats small { display: block; color: var(--muted); font-size: .76rem; } .draw-stats b { font-size: 1.5rem; color: var(--gold-d); }
.earn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.earn-row:last-child { border-bottom: 0; } .earn-row small { display: block; color: var(--muted); font-size: .8rem; }
.earn-row form { margin: 0; } .social-claim { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.draw-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--gold-l), var(--surface)); }
.draw-hero h1 { font: 800 1.9rem/1.2 "Playfair Display", Georgia, serif; color: var(--ink); margin: 8px 0 4px; }
.draw-hero img { max-width: 260px; border-radius: 10px; } .draw-coin { font-size: 7rem; line-height: 1; filter: drop-shadow(0 6px 12px rgba(150,100,0,.3)); }
@media (max-width: 700px) { .draw-hero { flex-direction: column; text-align: center; } .draw-coin { font-size: 4.5rem; } }
.rules li { margin-bottom: 6px; }
.hero-fig { margin: 0 0 14px; } .hero-fig .hero { margin-bottom: 4px; } .credit { font-size: .72rem; color: var(--muted); text-align: right; } .credit a { color: var(--muted); text-decoration: underline; }

/* Referral invite card + share panel (account → Invite friends) */
.ref-share h3 { margin: 18px 0 8px; font-size: 1rem; }
.ref-cards { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; margin-top: 10px; }
.ref-cards figure { margin: 0; }
.ref-cards img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ref-cards figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.ref-share .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.ref-share .seg button { border: 0; background: var(--surface); padding: 6px 14px; cursor: pointer; font: inherit; color: var(--text); }
.ref-share .seg button.on { background: var(--navy); color: #fff; }
.reftext { width: 100%; font: inherit; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); resize: vertical; }
.reftext[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; line-height: 2.1; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ref-cards { grid-template-columns: 2fr 1fr 1fr; }
.ref-hero { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, #13263D 0%, #2B4A73 55%, #9A6A0B 100%); box-shadow: 0 14px 34px -22px #13263D; }
.ref-hero h2 { font-size: 1.35rem; margin: 0 0 4px; color: #fff; } .ref-hero p { margin: 0; opacity: .92; max-width: 560px; } .ref-hero b { color: #F6D27A; }
.ref-steps { display: flex; gap: 8px; flex-wrap: wrap; } .ref-steps span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 8px 10px; font-size: .82rem; max-width: 150px; line-height: 1.3; }
.ref-steps span b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E0A43A; color: #13263D; margin-bottom: 4px; font-size: .8rem; }
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ref-stats > div { border-radius: 14px; padding: 14px 16px; color: #fff; } .ref-stats small { display: block; opacity: .9; font-weight: 600; } .ref-stats b { display: block; font-size: 1.6rem; line-height: 1.2; } .ref-stats span { font-size: .78rem; opacity: .9; }
.rs-a { background: linear-gradient(135deg, #059669, #10B981); } .rs-b { background: linear-gradient(135deg, #B7791F, #E0A43A); } .rs-c { background: linear-gradient(135deg, #2563EB, #7C3AED); } .rs-d { background: linear-gradient(135deg, #DB2777, #F97316); }
.ref-miles h2 { margin-bottom: 6px; } .ref-bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.ref-bar i { display: block; height: 100%; background: linear-gradient(90deg, #10B981, #E0A43A); border-radius: 6px; transition: width .6s; }
.ref-goals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .ref-goals span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .85rem; background: var(--surface-2); }
.ref-goals span.done { background: var(--up-bg); border-color: var(--up-line); color: var(--up); }
.ref-qr { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ref-qr #refqr { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; flex: none; } .ref-qr #refqr img, .ref-qr #refqr canvas { width: 130px; height: 130px; }
.ref-qr p { margin: 4px 0 8px; }
.ref-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ref-tpl button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 99px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: .88rem; }
.ref-tpl button.on { background: var(--gold-l); border-color: var(--gold); color: var(--gold-d); font-weight: 600; }
.share-btns.big .btn { padding: 9px 14px; } .share-btns .btn.st { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; border: 0; }
.ref-tips ul { margin: 0; padding-left: 18px; } .ref-tips li { margin: 6px 0; }
.ref-board { list-style: none; margin: 0; padding: 0; } .ref-board li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.ref-board li.me { background: var(--gold-l); border-radius: 8px; } .ref-board .rk { width: 26px; text-align: center; font-weight: 700; } .ref-board .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-mini { width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .ref-mini i { display: block; height: 100%; background: var(--gold); }
button.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; }
@media (max-width: 760px) { .ref-stats { grid-template-columns: 1fr 1fr; } .ref-stats b { font-size: 1.3rem; } .ref-steps span { max-width: none; flex: 1 1 30%; } }
@media (max-width: 640px) { .ref-cards { grid-template-columns: 1fr 1fr; } .ref-cards figure:first-child { grid-column: 1 / -1; } .ref-qr { flex-direction: column; text-align: center; } }

/* Share & tag tasks (account → lucky draw) */
.share-tasks .earn-row.task { flex-wrap: wrap; }
.share-tasks .task-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.share-tasks .proof-form { flex-basis: 100%; display: grid; gap: 8px; margin-top: 8px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.share-tasks .proof-form[hidden] { display: none; }
.badge-wait { font-size: .85rem; color: var(--gold-d); background: var(--gold-l); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
@media (min-width: 641px) { .ref-cards { grid-template-columns: 2fr 1fr .62fr; } }

/* Answer-first summary + FAQ blocks (SEO / answer engines) */
.quick-answer { background: var(--gold-l); border: 1px solid var(--gold-line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 4px 0 14px; }
.quick-answer p { margin: 0; line-height: 1.55; }
.quick-answer small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.rtl-lang .quick-answer { border-left: 1px solid var(--gold-line); border-right: 4px solid var(--gold); }
.faq-wrap { margin: 18px 0; }
details.faq summary { cursor: pointer; }
.faq-hub h2 { margin-top: 26px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.faq-toc a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .9rem; background: var(--surface); }
.prose h2 { margin-top: 24px; } .prose p, .prose li { line-height: 1.65; }

/* Video & photo gallery */
.gallery-tabs { margin: 6px 0 14px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.vcard { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.vcard b { font-size: .92rem; line-height: 1.35; }
.vthumb { position: relative; display: block; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: var(--navy); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vplay { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 22px; }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 6px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.igrid.cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.icard { display: grid; gap: 4px; color: inherit; font-size: .85rem; }
.icard img { width: 100%; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; background: var(--surface-2); }
.watch { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.watch-player video { width: 100%; aspect-ratio: 9/16; border-radius: 16px; background: #000; display: block; }
.watch-info h1 { font-size: 1.5rem; margin-bottom: 4px; }
.latest-video .vthumb { max-width: 220px; margin: 0 auto; }
@media (max-width: 760px) { .watch { grid-template-columns: 1fr; } .watch-player { max-width: 420px; } }

/* Alerts button, alerts panel, install bar (PWA) */
.alert-btn { background: rgba(231,183,66,.18); color: #fff; border: 1px solid rgba(231,183,66,.55); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .9rem; cursor: pointer; margin-right: 8px; white-space: nowrap; }
.alert-btn.on { background: var(--gold); color: var(--ink); }
@media (max-width: 640px) { .alert-btn span { display: none; } }
.alert-panel { border: 0; border-radius: 16px; padding: 20px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.alert-panel::backdrop { background: rgba(10,18,34,.55); }
.alert-panel h2 { margin: 0 0 4px; font-size: 1.25rem; }
.ap-close { position: absolute; right: 12px; top: 10px; } .ap-close button { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.ap-topics { display: grid; gap: 8px; margin: 12px 0; } .ap-topics label { display: flex; gap: 8px; align-items: center; }
.ap-target { margin: 6px 0 12px; } .ap-target summary { cursor: pointer; font-weight: 600; } .ap-target .fg { margin-top: 8px; }
.ap-actions { display: flex; gap: 8px; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 520px; margin: 0 auto; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; } .install-bar span { flex: 1; display: grid; line-height: 1.2; } .install-bar small { color: #A9B8CC; }
.install-x { background: none; border: 0; color: #A9B8CC; font-size: 1.1rem; cursor: pointer; }
.app-hero { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: center; }
.app-hero .phone { border-radius: 28px; overflow: hidden; border: 8px solid var(--navy); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.app-hero .phone img { display: block; width: 100%; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.app-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.app-feats li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 760px) { .app-hero { grid-template-columns: 1fr; } .app-hero .phone { max-width: 260px; margin: 0 auto; } }

.btn[hidden], [data-install][hidden] { display: none !important; }

/* ===================== Mobile header & footer ===================== */
@media (max-width: 860px) {
  /* ticker: just the prices, scrolling sideways */
  .ticker-in { gap: 10px; min-height: 30px; }
  .tk-date, .tk-wa { display: none; }
  /* logo bar: one compact line */
  .mast-in { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .logo-img { width: 36px; }
  .masthead .wordmark { font-size: 1.35rem; }
  .masthead .brand small { font-size: .6rem; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
  /* menu bar: [☰ Menu] ............ [🔔] [🌐 lang] [PKR] */
  .nav-in { flex-wrap: wrap; gap: 6px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
  .nav-toggle { order: 0; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; font-weight: 600; }
  .alert-btn { order: 1; margin: 0 0 0 auto; padding: 6px 10px; }
  .lang-switch { order: 2; font-size: .9rem; gap: 2px; }
  .lang-switch select { max-width: 92px; padding: 5px 4px; font-size: .85rem; }
  .cur-switch { order: 3; }
  .cur-switch select { padding: 5px 4px; font-size: .85rem; }
  /* opened menu: full-width panel below the bar, two columns, scrolls if long */
  .nav-links { order: 9; flex: 0 0 100%; width: 100%; display: none; padding: 6px 0 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px;
    max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-in.open .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .nav-links a { padding: 11px 10px; border-radius: 8px; border-left: 3px solid transparent; font-size: .95rem; }
  .nav-links a.on { border-left-color: var(--gold); }
}
@media (max-width: 380px) {
  .masthead .brand small { display: none; }
  .lang-switch select { max-width: 78px; }
}
@media (max-width: 340px) { .nav-in.open .nav-links { grid-template-columns: 1fr; } }
/* while the menu is open, nothing floats over it */
body:has(.nav-in.open) .install-bar, body:has(.nav-in.open) .mobile-only { display: none; }
@media (max-width: 800px) {
  .site-footer { padding: 22px 0 12px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
  .site-footer .cols > div > a { padding: 6px 0; margin: 0; }          /* comfortable tap targets */
  .site-footer .copy { line-height: 1.9; }
  .site-footer .copy a { display: inline-block; }
}
@media (max-width: 340px) { .site-footer .cols { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .site-footer .cols > div > a { font-size: .85rem; } .site-footer .cols > div:last-child { grid-column: 1 / -1; } }
body:has(.install-bar:not([hidden])) .site-footer { padding-bottom: 96px; }
/* sticky bottom ad: dismissible, and the app install bar sits above it */
@media (max-width: 700px) {
  .mobile-only { box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
  .mobile-only .ad-x { position: absolute; right: 2px; top: 2px; z-index: 2; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06);
    color: var(--muted); font-size: .75rem; line-height: 24px; cursor: pointer; }
  .mobile-only.closed { display: none; }
  .install-bar { bottom: 74px; }
  body:has(.mobile-only.closed) .install-bar, body:not(:has(.mobile-only .ad)) .install-bar { bottom: 12px; }
}
.site-footer .copy a { color: #C9D3DF; } .site-footer .copy a:hover { color: #fff; }
/* framed ads: never block the page; shrink to fit narrow screens */
.ad-framed { display: flex; flex-direction: column; align-items: center; overflow: hidden; }   /* the "Advertisement" label sits above the ad */
.ad::before { flex: none; width: 100%; }
.ad-frame { border: 0; display: block; max-width: none; transform-origin: top center; }

/* ad placements in content */
.grid-ad { grid-column: 1 / -1; }
.grid-ad .ad { margin: 4px 0; }
.ad-inline { margin: 22px 0; clear: both; } .ad-inline .ad { margin: 0 auto; }
.ad-inline .ad::before, .grid-ad .ad::before, .ad-video_watch::before { content: 'Advertisement'; display: block; text-align: center; font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-inline .ad-placeholder::before, .grid-ad .ad-placeholder::before { content: none; }
@media (min-width: 1151px) { .side .ad-sidebar_bottom { position: sticky; top: 64px; } }   /* stays in view while reading */

/* catalogue: category bar, sub-categories, tiles, specification table, attribute fields */
.cat-bar, .cat-subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; margin-bottom: 6px; }
.cat-bar::-webkit-scrollbar, .cat-subs::-webkit-scrollbar { display: none; }
.cat-bar a, .cat-subs a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; font-size: .9rem; color: var(--text); }
.cat-bar a.on { background: var(--navy); color: #fff; border-color: var(--ink); }
.cat-subs a { font-size: .84rem; padding: 5px 12px; } .cat-subs a.on { background: var(--gold-l); border-color: var(--gold); font-weight: 600; } .cat-subs a.empty { opacity: .6; }
.cat-bar small, .cat-subs small { color: var(--muted); margin-left: 2px; } .cat-bar a.on small { color: #C9D3DF; }
.cat-desc { color: var(--muted); max-width: 820px; margin: -4px 0 10px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.cat-tile { display: grid; gap: 4px; padding: 16px; color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.cat-tile:hover { border-color: var(--gold); text-decoration: none; } .cat-tile .ic { font-size: 1.8rem; } .cat-tile small { color: var(--muted); }
.product .p-cat { color: var(--gold-d); font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; }
.spec { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.spec th { text-align: left; color: var(--muted); font-weight: 500; width: 38%; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.attr-field .chips-in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-check { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: .82rem; font-weight: 400; cursor: pointer; }
.chip-check:has(input:checked) { background: var(--gold-l); border-color: var(--gold); }
.chip-check input { margin: 0; }

/* ---------- theme switch ---------- */
.theme-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.theme-btn:hover { background: rgba(255,255,255,.18); }
.theme-btn .tl { font-size: .8rem; margin-left: 4px; }
body.admin .theme-btn, .theme-float { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.theme-float { position: fixed; right: 12px; top: 12px; z-index: 50; }
.theme-btn [data-t] { display: none; }
:root:not([data-theme-pref]) .theme-btn [data-t="system"], :root[data-theme-pref="system"] .theme-btn [data-t="system"],
:root[data-theme-pref="light"] .theme-btn [data-t="light"], :root[data-theme-pref="dark"] .theme-btn [data-t="dark"] { display: inline; }
@media (max-width: 860px) { .mainnav .theme-btn .tl { display: none; } }
/* Ad frames keep a light scheme so they stay transparent (not painted white) on the dark theme */
iframe.ad-frame, .ad iframe { color-scheme: light; }
/* ---------- seller agreement ---------- */
.agree-box { border: 1px solid var(--gold-line); background: var(--gold-l); border-radius: 8px; padding: 10px 14px 4px; margin: 10px 0 14px; }
.agree-box legend { font-weight: 700; padding: 0 6px; }
.agree-read summary { cursor: pointer; font-weight: 600; color: var(--link); }
.agree-read .agreement { max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 14px; margin: 8px 0; font-size: .9rem; }
.agreement h2 { font-size: 1.02rem; margin: 18px 0 6px; scroll-margin-top: 12px; }
.sig-input { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.25rem; }
.sig-name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.5rem; color: var(--ink); }
.agree-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 6px; }
.sign-record td, .sign-record th { padding: 5px 8px; text-align: left; vertical-align: top; }
.sign-record th { color: var(--muted); font-weight: 600; white-space: nowrap; }
@media print {
  .ticker, .masthead, .mainnav, .subnav, .site-footer, .ad, .no-print, .site-header, .crumbs, .install-bar, .mobile-only, .theme-btn { display: none !important; }
  body, .card { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 0 !important; }
  .grid2 { display: block !important; }
  a, .prose, .prose * { color: #000 !important; }
}
.invite-box > summary { cursor: pointer; list-style: none; } .invite-box > summary::-webkit-details-marker { display: none; }
.invite-msg { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.invite-msg .card-head { padding: 0 0 6px; border: 0; background: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-msg textarea { width: 100%; font-size: .88rem; line-height: 1.45; }
.invite-msg textarea.urdu-msg { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2; }
/* ---------- error pages ---------- */
.err-page { max-width: 760px; margin: 18px auto 8px; }
.err-hero { text-align: center; }
.err-hero .cb { padding: 26px 20px; }
.err-icon { font-size: 3.2rem; line-height: 1; }
.err-code { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 10px 0 2px; }
.err-hero h1 { margin: 4px 0 8px; font-size: 1.5rem; }
.err-hero p { max-width: 520px; margin: 0 auto 16px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.err-rate .cb { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: center; text-align: center; }
.err-list { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.err-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.err-grid a { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); background: var(--surface-2); }
.err-grid a:hover { border-color: var(--gold); text-decoration: none; }
/* ---------- thank-you page ---------- */
.ty { max-width: 1040px; margin: 16px auto 0; }
.ty-hero { text-align: center; }
.ty-hero .cb { padding: 26px 18px; }
.ty-hero h1 { margin: 10px 0 6px; font-size: 1.7rem; }
.ty-hero .lede-sm { max-width: 640px; margin: 0 auto 12px; }
.ty-check svg { width: 74px; height: 74px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ty-check circle { stroke: var(--up); stroke-dasharray: 151; stroke-dashoffset: 151; animation: ty-draw .6s ease-out forwards; }
.ty-check path { stroke: var(--up); stroke-dasharray: 40; stroke-dashoffset: 40; animation: ty-draw .4s .5s ease-out forwards; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ty-check circle, .ty-check path { animation: none; stroke-dashoffset: 0; } }
.ty-nums { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ty-nums span { background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 99px; padding: 4px 12px; font-size: .9rem; }
.ty-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.ty-steps { list-style: none; padding: 0; margin: 8px 0; counter-reset: s; }
.ty-steps li { position: relative; padding: 0 0 14px 38px; counter-increment: s; }
.ty-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line-2); }
.ty-steps li.done::before { content: "✓"; background: var(--up); border-color: var(--up); color: #fff; }
.ty-steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 2px; width: 1px; background: var(--line-2); }
.ty-steps b { display: block; } .ty-steps span { color: var(--muted); font-size: .88rem; }
.ty-draw .cb { background: var(--gold-l); border-radius: var(--radius); }
/* ---------- admin: AI connector ---------- */
.mcp-tools td, .mcp-tools th, .mcp-log td, .mcp-log th { white-space: normal; text-align: left; vertical-align: top; }
.mcp-cmd { white-space: pre-wrap; word-break: break-all; font-size: .78rem; }
code.copy-src { word-break: break-all; }
.mcp-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 18px; margin: 12px 0; padding: 12px; background: var(--surface-2); border-radius: 8px; }
.mcp-acts label.inline { align-items: flex-start; }
.sarafa-t td, .sarafa-t th { text-align: left; white-space: nowrap; }
.kit-slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.kit-slides img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; display: block; }
.vthumb.land { aspect-ratio: 16/9; }
.watch-player video.land { aspect-ratio: 16/9; }
.watch.watch-land { grid-template-columns: 1fr; }
.watch.watch-land .watch-player { max-width: 960px; }
.latest-video .vthumb.land { max-width: 100%; }
/* ---------- admin security ---------- */
.qr-box { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; margin: 6px 0 10px; }
.backup-codes { font: 700 1.15rem/1.8 ui-monospace, Menlo, monospace; columns: 2; background: var(--surface-2); padding: 14px 18px; border-radius: 10px; }
.sec-t td, .sec-t th { white-space: normal; text-align: left; }
.checks { list-style: none; padding: 0; margin: 8px 0; line-height: 2; }

/* ---------- petrol & fuel prices ---------- */
.fuel-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 16px; }
.fh-card { border-radius: 16px; padding: 18px 20px; color: #fff; box-shadow: 0 12px 28px -18px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.fh-card::after { content: "⛽"; position: absolute; right: 14px; top: 10px; font-size: 2.6rem; opacity: .18; }
.fh-petrol { background: linear-gradient(135deg, #B42318, #F97316); } .fh-hsd { background: linear-gradient(135deg, #13263D, #2563EB); }
.fh-card small { display: block; font-weight: 600; opacity: .92; } .fh-card .urdu { opacity: .85; }
.fh-card b { display: block; font-size: 2rem; line-height: 1.2; margin: 4px 0; } .fh-card b span { font-size: .9rem; font-weight: 500; opacity: .85; margin-left: 4px; }
.fh-card .chg { background: rgba(255,255,255,.18); color: #fff !important; border-radius: 99px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.fh-card em { display: block; font-style: normal; font-size: .8rem; opacity: .85; margin-top: 6px; }
.fuel-t td { vertical-align: middle; } .fc-out { background: var(--gold-l); border: 1px solid var(--gold-line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; }
.ch-sub { font-size: .78rem; font-weight: 500; opacity: .85; margin-left: auto; }

/* ---------- gemstone prices ---------- */
.gem-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gem-units { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gem-units a { padding: 5px 12px; color: var(--text); background: var(--surface); } .gem-units a.on { background: var(--navy); color: #fff; } .gem-units a:hover { text-decoration: none; }
.gem-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gem-chips a { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 12px; font-size: .86rem; color: var(--text); } .gem-chips a:hover { border-color: var(--gold); text-decoration: none; }
.gem-fam { font-size: 1.05rem; margin: 18px 0 8px; color: var(--gold-d); }
.gem-card { padding: 16px 18px; } .gem-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; } .gem-head h2 { font-size: 1.12rem; margin: 0; }
.gem-dot { width: 40px; height: 40px; border-radius: 50% 50% 50% 8px; flex: none; transform: rotate(-45deg); box-shadow: inset -6px -6px 12px rgba(0,0,0,.25), inset 6px 6px 10px rgba(255,255,255,.45); background: #94A3B8; }
.g-ruby { background: #C1121F; } .g-blue-sapphire { background: #1D4ED8; } .g-yellow-sapphire { background: #EAB308; } .g-emerald { background: #059669; } .g-diamond { background: #E2E8F0; }
.g-cats-eye { background: #B7791F; } .g-peridot { background: #84CC16; } .g-aquamarine { background: #67E8F9; } .g-topaz { background: #F472B6; } .g-tourmaline { background: #DB2777; }
.g-spinel { background: #E11D48; } .g-amethyst { background: #7C3AED; } .g-hessonite { background: #C2410C; } .g-turquoise { background: #14B8A6; } .g-agate { background: #9A3412; }
.g-pearl { background: #F8FAFC; } .g-coral { background: #F97316; }
.gem-t { margin: 4px 0; } .gem-soon { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.gem-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 10px 0 4px; font-size: .88rem; }
.gem-facts dt { color: var(--muted); font-size: .76rem; } .gem-facts dd { margin: 0; } .gem-facts .wide { grid-column: 1 / -1; }
.tips { padding-left: 18px; margin: 0; } .tips li { margin: 4px 0; }

/* ---------- gold savings plan ---------- */
.sav-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sav-item { cursor: pointer; margin: 0 !important; } .sav-item input { position: absolute; opacity: 0; }
.sav-item span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 9px 11px; font-weight: 600; background: var(--surface); transition: .15s; }
.sav-item small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.sav-item input:checked + span { border-color: var(--gold); background: var(--gold-l); }
.sav-item input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.row.tight { display: flex; gap: 6px; } .row.tight input { flex: 1; min-width: 0; } .row.tight select { width: auto; }
.sav-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.sav-mode label { margin: 0 !important; padding: 7px 12px; cursor: pointer; display: flex !important; gap: 6px; align-items: center; font-weight: 600; }
.sav-mode label:has(input:checked) { background: var(--navy); color: #fff; }
.sav-scen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sav-scen label { margin: 0 !important; cursor: pointer; } .sav-scen input { position: absolute; opacity: 0; }
.sav-scen span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 9px 11px; background: var(--surface); }
.sav-scen small { display: block; color: var(--muted); } .sav-scen input:checked + span { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--surface)); }
.sav-custom { margin-top: 10px; display: flex !important; gap: 6px; align-items: center; flex-wrap: wrap; } .sav-custom input { width: 90px; }
.sav-side { position: sticky; top: 12px; align-self: start; }
.sav-result { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; box-shadow: 0 12px 30px -20px var(--shadow); }
.sr-top { padding: 14px 16px; } .sr-top small { color: var(--muted); display: block; } .sr-top b { font-size: 1.5rem; display: block; margin: 2px 0 6px; } .sr-top span { font-size: .82rem; color: var(--muted); }
.sr-big { padding: 16px; color: #fff; background: linear-gradient(135deg, #059669, #10B981); } .sr-big.warn { background: linear-gradient(135deg, #B45309, #F59E0B); }
.sr-big small { opacity: .9; display: block; } .sr-big b { font-size: 1.9rem; display: block; line-height: 1.2; } .sr-big span { font-size: .86rem; opacity: .92; }
.sr-ms { list-style: none; margin: 0; padding: 8px 16px; counter-reset: ms; } .sr-ms li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sr-ms li::before { counter-increment: ms; content: "⭐"; margin-right: 6px; } .sr-ms li b { flex: 1; } .sr-ms li span { color: var(--muted); font-size: .88rem; text-align: right; }
.sav-result > p { padding: 0 16px; margin: 8px 0 12px; }
.sav-save { padding: 16px; } .sav-save h3 { margin-top: 0; } .btn.block { width: 100%; display: block; text-align: center; }
@media (max-width: 900px) { .sav-side { position: static; } }
.sav-head { margin: 8px 0 12px; } .sav-head h2 { margin: 0; }
.sav-plan { padding: 16px 18px; } .sav-plan.paused { opacity: .75; } .sav-plan details { margin-top: 10px; } .sav-plan summary { cursor: pointer; color: var(--link); }
.sp-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: start; } .sp-head h3 { margin: 0; }
.sp-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 1.4fr; gap: 16px; margin: 14px 0; }
.sp-prog { display: flex; gap: 16px; align-items: center; } .sp-prog small { display: block; color: var(--muted); font-size: .78rem; } .sp-prog b { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.sp-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77% 100%), conic-gradient(#10B981 calc(var(--p) * 1%), var(--surface-2) 0); }
.sp-ring b { font-size: 1.4rem; margin: 0; }
.sp-next p { margin: 0 0 8px; } .sp-ok { background: var(--up-bg); border: 1px solid var(--up-line); border-radius: 10px; padding: 8px 10px; }
.sp-dep { gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
@media (max-width: 700px) { .sp-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sp-dep { display: grid; grid-template-columns: 1fr 1fr; } .sp-dep input, .sp-dep select { width: 100% !important; min-width: 0; }
  .sp-dep [name=note] { grid-column: 1 / -1; } .sp-dep .btn { grid-column: 1 / -1; }
  .sav-plan .fg { grid-template-columns: 1fr; } .sp-prog { flex-wrap: wrap; }
}

/* ---------- crude oil & world fuel ---------- */
.sec-h { font-size: 1.25rem; margin: 26px 0 10px; }
.oil-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.oil-card { border-radius: 16px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 12px 28px -18px rgba(0,0,0,.5); }
.oil-card::after { content: "🛢️"; position: absolute; right: 14px; top: 10px; font-size: 2.6rem; opacity: .2; }
.oc-brent { background: linear-gradient(135deg, #0F766E, #14B8A6); } .oc-wti { background: linear-gradient(135deg, #4C1D95, #7C3AED); }
.oil-card small { display: block; font-weight: 600; opacity: .92; } .oil-card b { display: block; font-size: 2rem; line-height: 1.2; margin: 4px 0; } .oil-card b span { font-size: .9rem; font-weight: 500; opacity: .85; margin-left: 4px; }
.oil-card .chg { background: rgba(255,255,255,.18); color: #fff !important; border-radius: 99px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.oil-card em { display: block; font-style: normal; font-size: .8rem; opacity: .88; margin-top: 6px; }
.world-fuel td { vertical-align: top; } .world-fuel .pk-row td { background: var(--gold-l); } .world-fuel small { font-size: .74rem; }
.quick-answer .qa-q { font-size: .95rem; margin: 0 0 4px; color: var(--ink); }

/* ---------- native banner & sponsored link ---------- */
.ad-native { margin: 16px 0; padding-top: 4px; }
.ad-label { display: inline-block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.smartlink-btn { display: block; margin: 10px 0 16px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; text-align: center; }
.smartlink-btn:hover { text-decoration: none; border-color: var(--gold); }
.smartlink-btn .ad-label { display: block; margin: 0 0 2px; }
.smartlink-row { padding: 8px 16px 0; font-size: .85rem; } .smartlink-foot { color: var(--muted); }

/* ---------- Social icons & share buttons (includes/share.php) ---------- */
.si { display: block; width: 18px; height: 18px; }
.soc { --c: #475467; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  background: var(--c); color: #fff !important; border: 0; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: transform .12s, filter .12s; }
.soc:hover, .soc:focus-visible { transform: translateY(-1px); filter: brightness(1.12); }
.soc-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.soc-follow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.share-bar .sb-l { font-weight: 700; font-size: .9rem; margin-right: 4px; color: var(--muted, #667085); }
.share-bar .soc { width: 36px; height: 36px; padding: 0; }
.share-bar .soc-native { width: auto; padding: 0 12px; }
.share-bar .soc-copy .sb-done { display: none; }
.share-bar .soc-copy.done { width: auto; padding: 0 12px; background: var(--up, #067647); }
.share-bar .soc-copy.done .si { display: none; } .share-bar .soc-copy.done .sb-done { display: inline; }
.share-bar.sb-top { margin: 4px 0 14px; }
.page-share { border-top: 1px solid var(--line, #E4E7EC); margin-top: 24px; padding-top: 4px; }
.tk-soc { margin-left: auto; gap: 4px; }
.tk-soc .soc { min-width: 24px; width: 24px; height: 24px; padding: 0; }
.tk-soc .si { width: 14px; height: 14px; }
.ticker-in .tk-wa + .tk-soc { margin-left: 0; }
.nav-soc { display: none; }
.foot-soc { flex-direction: column; align-items: flex-start; }
.foot-soc .soc { background: transparent !important; color: inherit !important; padding: 0; height: auto; min-width: 0; font-weight: 400; gap: 8px; }
.foot-soc .soc .si { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--c); color: #fff; box-sizing: border-box; }
.foot-soc .soc-instagram .si { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.foot-soc .soc-instagram { background: transparent !important; }
@media (max-width: 760px) {
  .tk-soc { display: none; }
  .nav-in.open .nav-soc { display: flex; padding: 10px 0 4px; }
  .share-bar .sb-l { width: 100%; }
}
@media print { .share-bar, .soc-follow, .page-share { display: none !important; } }
.soc-x, .soc-tiktok, .foot-soc .soc-x .si, .foot-soc .soc-tiktok .si { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.nav-links .nav-soc { grid-column: 1 / -1; gap: 8px; justify-content: center; }
.nav-links .nav-soc .soc { flex: none; width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border: 0; }

/* ---------- header: tools beside the ad · one menu row with submenus ---------- */
.mast-in { gap: 18px; }
.mast-ad { min-width: 0; overflow: hidden; }
/* tools (account, cart, alerts, theme, language, currency) — in the masthead on wide screens */
.nav-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.mast-in .nav-tools { flex-wrap: wrap; justify-content: flex-end; max-width: 250px; row-gap: 8px; }
.nt-user, .nt-cart { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-weight: 600; font-size: .85rem; white-space: nowrap; position: relative; text-decoration: none !important; }
.nt-user span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.nt-cart .badge { position: absolute; top: -6px; right: -6px; font-size: .65rem; }
.nav-tools .alert-btn { margin: 0; padding: 5px 9px; }
.nav-tools .theme-btn .tl { display: none; }
.nav-tools .lang-switch select { max-width: 112px; }
.mast-in .nt-user, .mast-in .nt-cart, .mast-in .alert-btn, .mast-in .theme-btn, .mast-in .lang-switch select, .mast-in .cur-switch select {
  color: var(--text); background: var(--surface-2, rgba(127,127,127,.08)); border: 1px solid var(--line); }
.mast-in .nt-user:hover, .mast-in .nt-cart:hover, .mast-in .theme-btn:hover { border-color: var(--gold); }
.mast-in .alert-btn { background: var(--gold-l); border-color: var(--gold-line, var(--gold)); }
.mast-in .lang-switch { color: var(--text); }
.mast-in .nt-user.on, .mast-in .nt-cart.on { border-color: var(--gold); }
/* menu row */
.nav-links { flex-wrap: wrap; align-items: stretch; min-width: 0; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-top { color: #E4E9F0; padding: 13px 12px; font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; cursor: pointer; }
.nav-item.has-sub .nav-top:not(.nav-more-btn) { padding-right: 2px; }
.nav-top:hover, .nav-item:hover .nav-top, .nav-item.open .nav-top { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-item.on .nav-top { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.08); }
.sub-btn { background: none; border: 0; color: #B9C6D6; padding: 0 9px 0 4px; cursor: pointer; font-size: .7rem; border-bottom: 3px solid transparent; }
.nav-item.on .sub-btn { border-bottom-color: var(--gold); background: rgba(255,255,255,.08); }
.nav-item:hover .sub-btn, .nav-item.open .sub-btn { color: #fff; background: rgba(255,255,255,.06); }
.nav-more .sub-btn { display: none; }
.nav-more-btn::after { content: ' ▾'; font-size: .7rem; }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 240px; width: max-content; max-width: min(720px, 92vw); padding: 16px 20px;
  gap: 8px 28px; grid-auto-flow: column; grid-auto-columns: minmax(150px, auto); background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.nav-item.has-sub:hover > .sub-menu, .nav-item.open > .sub-menu, .nav-item.has-sub:focus-within > .sub-menu { display: grid; }
.nav-more .sub-menu { left: auto; right: 0; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(140px, auto)); }
.nav-item:last-child .sub-menu, .nav-item:nth-last-child(2) .sub-menu { left: auto; right: 0; }
.nm-col { display: flex; flex-direction: column; gap: 1px; }
.nm-col b, .nm-follow b { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 4px; }
.sub-menu a { color: var(--text); padding: 6px 8px; margin: 0 -8px; border-radius: 6px; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--gold-l); color: var(--gold-d); text-decoration: none; }   /* dark gold on light gold (the menu bar's white hover must not apply here) */
.sub-menu a.on { color: var(--gold-d); font-weight: 700; background: var(--gold-l); }
.nm-follow { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; display: flex; align-items: center; gap: 12px; }
.nm-follow b { margin: 0; }
.sub-menu .nav-soc { display: flex; gap: 6px; }
.sub-menu .nav-soc .soc { width: 32px; height: 32px; min-width: 0; padding: 0; margin: 0; border-radius: 50%; color: #fff; }
.sub-menu .nav-soc .soc:hover { background: var(--c); }
.nm-theme { display: none; }
/* top bar: social icons at the right, prices keep the rest */
.tk-soc { margin-left: auto; gap: 4px; flex: none; }
.tk-soc .soc { min-width: 24px; width: 24px; height: 24px; padding: 0; }
.tk-soc .si { width: 14px; height: 14px; }
.tk-items { min-width: 0; }
@media (max-width: 1180px) and (min-width: 861px) {
  .nav-top { padding: 13px 8px; font-size: .86rem; }
  .sub-btn { padding: 0 6px 0 2px; }
  .mast-in .nt-user span { display: none; }
}
@media (max-width: 860px) {
  .tk-soc { display: none; }
  .nav-in .nav-tools { display: contents; }
  .nt-user, .nt-cart, .nav-tools .alert-btn { order: 1; width: 34px; height: 34px; padding: 0; justify-content: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
  .nt-user { margin-left: auto; } .nt-user span { display: none; }
  .nt-cart:not(:has(.badge)) { display: none; }
  .nav-in .nav-tools .theme-btn { display: none; }
  .nav-tools .lang-switch select { max-width: 74px; }
  /* menu: main items in a list; ▾ opens each submenu in place */
  .nav-in.open .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-top { flex: 1; text-align: left; padding: 12px 10px; border-bottom: 0 !important; border-left: 3px solid transparent; }
  .nav-item.on .nav-top { border-left-color: var(--gold); }
  .sub-btn { padding: 0 16px; font-size: .9rem; border-bottom: 0 !important; }
  .nav-more .nav-more-btn::after { content: ''; } .nav-more .sub-btn { display: block; }
  .sub-menu { position: static; width: 100%; max-width: none; box-shadow: none; border: 0; border-radius: 0; background: rgba(0,0,0,.18); color: #E4E9F0;
    padding: 10px 14px; grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .nav-item.has-sub:hover > .sub-menu, .nav-item.has-sub:focus-within > .sub-menu { display: none; }
  .nav-item.open > .sub-menu { display: grid; }
  .nav-more .sub-menu { grid-template-columns: 1fr 1fr; }
  .sub-menu a { color: #E4E9F0; margin: 0; padding: 7px 6px; white-space: normal; }
  .sub-menu a:hover, .sub-menu a.on { background: rgba(255,255,255,.08); color: #fff; }
  .nm-col b, .nm-follow b { color: var(--gold); }
  .nm-follow { border-top-color: rgba(255,255,255,.12); justify-content: center; flex-wrap: wrap; }
  .nm-follow b { width: 100%; text-align: center; }
  .nm-theme { display: flex; grid-column: 1 / -1; justify-content: center; padding-top: 6px; }
  .nm-theme .theme-btn .tl { display: inline; }
}
.sub-menu a { border: 0 !important; }
.mast-in .brand { flex: none; }

/* ---------- footer site map (same sections & submenus as the header menu) ---------- */
.site-footer .cols { grid-template-columns: 2fr 1fr; }
.foot-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #1F3148; }
.fcol summary { color: #fff; font-weight: 700; list-style: none; cursor: default; margin-bottom: 8px; }
.fcol summary::-webkit-details-marker { display: none; }
.fcol-in { display: flex; flex-direction: column; }
.fcol-in i { font-style: normal; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: #C9A24A; margin: 10px 0 4px; }
.fcol-in i:first-child { margin-top: 0; }
.fcol-in a { color: #D0D8E2; padding: 3px 0; font-size: .84rem; }
.fcol-in a:hover { color: #fff; }
@media (max-width: 1100px) and (min-width: 801px) { .foot-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .foot-map { grid-template-columns: 1fr; gap: 0; margin-top: 16px; padding-top: 4px; }
  .fcol { border-bottom: 1px solid #1F3148; }
  .fcol summary { cursor: pointer; margin: 0; padding: 13px 2px; display: flex; justify-content: space-between; }
  .fcol summary::after { content: '▾'; color: #8EA0B5; transition: transform .15s; }
  .fcol[open] summary::after { transform: rotate(180deg); }
  .fcol-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-bottom: 12px; }
  .fcol-in i { grid-column: 1 / -1; }
  .fcol-in a { padding: 7px 0; }
}

/* ---------- videos: shorts grid, carousels, YouTube-style watch page (assets/js/videos.js) ---------- */
.v-h { margin: 22px 0 12px; font-size: 1.25rem; } .v-h small { font-size: .85rem; font-weight: 400; }
.vgrid-shorts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.vgrid-shorts > .grid-ad { grid-column: 1 / -1; }                   /* ads always take a full row — no gaps */
@media (max-width: 1100px) { .vgrid-shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vgrid-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vgrid-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }
.vcard .vmeta { display: grid; gap: 3px; }
.vcard .vmeta b { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vmeta small { font-size: .78rem; }
.vthumb { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vcard .vplay { opacity: 0; transition: opacity .2s; } .vcard:hover .vplay { opacity: 1; }
.vnow { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; padding: 4px; }
.v-loading { text-align: center; color: var(--muted, #667085); padding: 16px; }
/* carousels */
.vcarousel { margin: 22px 0; }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.vc-head h2 { font-size: 1.15rem; margin: 0; }
.vc-nav { display: flex; align-items: center; gap: 6px; }
.vc-all { font-weight: 600; font-size: .88rem; margin-right: 6px; }
.vc-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.vc-btn:hover:not(:disabled) { border-color: var(--gold); } .vc-btn:disabled { opacity: .35; cursor: default; }
.vc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.vc-track::-webkit-scrollbar { display: none; }
.vc-track > .vcard { scroll-snap-align: start; }
.vcarousel.land .vc-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
@media (max-width: 1100px) { .vc-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 760px) { .vc-track { grid-auto-columns: 40%; } .vcarousel.land .vc-track { grid-auto-columns: 80%; } .vc-btn { display: none; } }
/* watch page */
.yt { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.yt-stage { background: #000; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; height: min(78vh, 760px); --plyr-color-main: #E7B742; }
.yt-stage.land { height: auto; aspect-ratio: 16 / 9; }
.yt-player { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; }
.yt-stage.land .yt-player { aspect-ratio: 16 / 9; width: 100%; }
.yt-player .plyr, .yt-player video { width: 100%; height: 100%; }
.yt-player video { object-fit: contain; background: #000; }
.yt-preroll, .yt-upnext { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.92); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.yt-preroll[hidden], .yt-upnext[hidden] { display: none; }
.pr-tag { position: absolute; top: 10px; left: 10px; background: #E7B742; color: #111; font-weight: 800; font-size: .72rem; padding: 2px 8px; border-radius: 4px; }
.pr-ad { max-width: 100%; overflow: hidden; } .pr-ad .ad { margin: 0; }
.pr-skip { position: absolute; right: 0; bottom: 56px; background: rgba(0,0,0,.75); color: #fff; border: 1px solid rgba(255,255,255,.4); border-right: 0; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.pr-skip:disabled { cursor: default; opacity: .8; font-weight: 500; }
.yt-upnext img { width: 120px; border-radius: 10px; } .yt-upnext b { max-width: 90%; } .yt-upnext span { display: flex; gap: 8px; }
.yt-title { font-size: 1.35rem; margin: 14px 0 8px; line-height: 1.3; }
.yt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.yt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .yt-acts .share-bar { margin: 0; }
.yt-desc { background: var(--surface-2, rgba(127,127,127,.08)); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; font-size: .92rem; position: relative; }
.yt-desc.clamp { max-height: 7.4em; overflow: hidden; padding-bottom: 34px; }
.yt-desc p { margin: 0 0 8px; }
.yt-more { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, var(--surface-2, var(--surface)) 45%); border: 0; color: var(--text); font: inherit; font-weight: 700; padding: 18px 14px 8px; text-align: left; cursor: pointer; }
.yt-desc:not(.clamp) .yt-more { position: static; background: none; padding: 4px 0 0; }
.yt-side .ad { margin: 0 0 14px; }
.yt-playlist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.pl-head b { display: block; font-size: .98rem; } .pl-head small { font-size: .78rem; }
.pl-auto { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pl-list { max-height: min(70vh, 640px); overflow-y: auto; padding: 6px; }
.vcard.vc-row { grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding: 6px; border-radius: 10px; }
.vcard.vc-row:hover { background: var(--surface-2, rgba(127,127,127,.08)); }
.vcard.vc-row.current { background: var(--gold-l); }
.vcard.vc-row .vthumb { border-radius: 8px; } .vcard.vc-row .vthumb.land { aspect-ratio: 16 / 9; }
.vcard.vc-row .vplay { display: none; } .vcard.vc-row .vdur { font-size: .66rem; right: 4px; bottom: 4px; padding: 1px 4px; }
.vcard.vc-row .vnow { font-size: .6rem; padding: 2px; }
.vcard.vc-row .vmeta b { font-size: .84rem; }
@media (max-width: 960px) {
  .yt { grid-template-columns: minmax(0, 1fr); }
  .yt-main, .yt-side { min-width: 0; }
  .yt-bar, .yt-acts { min-width: 0; } .yt-acts .share-bar { flex-wrap: wrap; }
  .yt-stage { height: min(72vh, 680px); }
  .pl-list { max-height: 420px; }
}

/* ---------- grids with ads: fixed columns, so an ad row only ever follows complete rows ---------- */
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }               /* ad after every 6 articles */
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }                /* ad after every 12 products */
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.igrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }                   /* photos: ad after every 12 */
@media (max-width: 900px) { .igrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.igrid.cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }             /* rate cards: ad after every 12 */
@media (max-width: 1000px) { .igrid.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .igrid.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .igrid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- home: calculator row, gallery card, sidebar flow ---------- */
.calc-mini .row { display: flex; gap: 8px; align-items: stretch; margin-top: 3px; }
.calc-mini .row input { flex: 1 1 90px; min-width: 70px; width: auto; }
.calc-mini .row select { flex: 1 1 110px; width: auto; margin-top: 0; }
.g-latest { display: block; } .g-latest img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.g-latest + p { margin: 6px 0 10px; }
/* mid-size screens: sidebar cards flow into balanced columns instead of a grid with uneven gaps */
@media (max-width: 1150px) and (min-width: 801px) {
  .grid3 > .side { display: block; columns: 2 280px; column-gap: 16px; }
  .grid3 > .side > * { break-inside: avoid; margin-top: 0; margin-bottom: 16px; }
}
.latest-video + .vcard.vc-row { margin-top: 10px; }

/* ---------- monthly expense tracker (/expense-tracker) ---------- */
.exp-loading { padding: 30px; text-align: center; color: var(--muted); }
.exp-guest { background: var(--gold-l); border: 1px solid var(--gold-line, var(--gold)); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }
.exp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.exp-month { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.exp-month b { min-width: 170px; text-align: center; }
.exp-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.exp-nav:hover { border-color: var(--gold); }
.exp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.es { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.es small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; } .es b { font-size: 1.35rem; } .es span { font-size: .8rem; color: var(--muted); }
.es-in b { color: var(--up); } .es-out b { color: var(--gold-d); } .es-ok { border-color: var(--up); } .es-ok b { color: var(--up); } .es-bad { border-color: var(--down); } .es-bad b { color: var(--down); }
.exp-gold { background: var(--surface); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.exp-grid > .card { margin: 0; padding: 14px 16px; }
.exp h2 { font-size: 1.05rem; margin: 0 0 10px; }
.exp-add label { display: block; margin-bottom: 8px; font-size: .88rem; color: var(--muted); }
.exp-add input:not([type=checkbox]):not([type=radio]), .exp-add select { width: 100%; margin-top: 3px; }
.exp-add .fg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exp-kind { display: flex; gap: 6px; margin-bottom: 10px; }
.exp-kind label { flex: 1; margin: 0; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--text); font-weight: 600; }
.exp-kind label:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #13233F; }
.exp-kind input { position: absolute; opacity: 0; pointer-events: none; }
.exp-add label.inline { color: var(--text); }
.exp-h { display: flex; justify-content: space-between; align-items: center; } .exp-h h2 { margin: 0 0 10px; }
.exp-bars { display: grid; gap: 10px; max-height: 420px; overflow: auto; padding-right: 4px; }
.eb-t { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; } .eb-t small { color: var(--muted); font-weight: 400; }
.eb-bar { height: 8px; border-radius: 99px; background: var(--surface-2, rgba(127,127,127,.15)); overflow: hidden; margin-top: 4px; }
.eb-bar i { display: block; height: 100%; border-radius: 99px; background: var(--up); }
.eb-warn .eb-bar i { background: #D97706; } .eb-over .eb-bar i { background: var(--down); } .eb-nob .eb-bar i { background: var(--muted); opacity: .45; }
.eb-n { font-size: .76rem; color: var(--muted); } .eb-over .eb-n { color: var(--down); font-weight: 600; }
.exp-blist { display: grid; gap: 6px; max-height: 380px; overflow: auto; margin-bottom: 10px; }
.exp-blist label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.exp-blist input { width: 130px; }
#exp-bform .fg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } #exp-bform .fg label { font-size: .85rem; color: var(--muted); } #exp-bform .fg input { width: 100%; }
.exp-chart { position: relative; height: 240px; }
.exp-list { padding: 14px 16px; }
.ei { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ei-e { font-size: 1.3rem; text-align: center; } .ei-m { display: grid; } .ei-m small { font-size: .8rem; }
.ei-a { font-weight: 700; white-space: nowrap; } .ei-in .ei-a { color: var(--up); }
.ei-x { grid-column: 2 / -1; font-size: .82rem; display: flex; gap: 10px; flex-wrap: wrap; }
.exp-more { margin-top: 10px; }
@media (max-width: 860px) { .exp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .exp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .exp-add .fg, #exp-bform .fg { grid-template-columns: 1fr; } .exp-month b { min-width: 0; } }
/* admin: Instagram Highlight covers */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 10px 0; }
.hl { display: grid; justify-items: center; gap: 4px; text-align: center; color: inherit; text-decoration: none; }
.hl img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--line); }
.hl:hover img { border-color: var(--gold); }
.hl small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
/* visitor country picker (header) */
.country-switch select { max-width: 9.5rem; text-overflow: ellipsis; }
@media (max-width: 860px) { .country-switch select { max-width: 7.5rem; } }
/* footer visitor counter */
.vcount { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 10px 16px 0; font-size: .85rem; opacity: .9; }
.vcount b { color: var(--gold, #e7b742); font-variant-numeric: tabular-nums; }
.vc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 6px; vertical-align: middle; animation: vcpulse 2s infinite; }
@keyframes vcpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .vc-dot { animation: none; } }
.vcount span { display: inline-flex; align-items: center; gap: 5px; width: auto; }
.vcount b { display: inline; margin: 0; font-size: inherit; }
.vcount .vc-dot { margin-right: 2px; }
/* countries page: region filter */
.region-tabs button { font: inherit; font-weight: 600; cursor: pointer; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px;
  padding: 8px 12px; color: var(--muted); white-space: nowrap; flex: none; }
.region-tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }

/* admin: tab bar for long pages (only the open tab is built) */
.subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,var(--surface))}
.subtabs a{padding:7px 13px;border-radius:8px;font-weight:600;font-size:.9rem;color:inherit;text-decoration:none}
.subtabs a:hover{background:var(--surface)}
.subtabs a.on{background:var(--gold,#d4a017);color:#1a1200}
.lib-sub{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.lib-sub a{padding:4px 11px;border:1px solid var(--line);border-radius:999px;font-size:.85rem;text-decoration:none;color:inherit}
.lib-sub a.on{background:var(--gold,#d4a017);color:#1a1200;border-color:transparent}

/* watch page: YouTube player behind a click-to-play poster (a real link without JavaScript) */
.yt-embed,.yt-facade{display:block;position:relative;width:100%;height:100%;background:#000}
.yt-facade img{width:100%;height:100%;object-fit:contain;display:block}
.yt-playbtn{position:absolute;left:50%;top:50%;width:72px;height:50px;margin:-25px 0 0 -36px;border-radius:14px;background:#f00;box-shadow:0 2px 14px rgba(0,0,0,.4);transition:transform .15s}
.yt-playbtn::after{content:"";position:absolute;left:29px;top:15px;border-left:18px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}
.yt-facade:hover .yt-playbtn{transform:scale(1.1)}
.yt-embed iframe{width:100%;height:100%;border:0;display:block}

/* lucky draw: winner reveal */
.draw-winner{text-align:center;padding:20px 16px;margin-bottom:16px;overflow:hidden;background:linear-gradient(160deg,#0f2038,#1b2f52);color:#fff}
.draw-winner h2{margin:.2em 0 .6em}.draw-winner code{color:#E7B742}
.dw-stage{min-height:120px;display:grid;place-content:center;gap:8px;padding:12px;border:2px solid rgba(231,183,66,.6);border-radius:18px;background:rgba(0,0,0,.25);margin-bottom:10px}
.dw-name{font:800 clamp(1.6rem,5vw,3rem)/1.1 var(--font-serif,Georgia,serif);color:#E7B742;transition:transform .2s}
.dw-name.spin{color:#fff;opacity:.85}
.draw-winner.done .dw-name{transform:scale(1.08);text-shadow:0 0 30px rgba(231,183,66,.7)}
.dw-sub{font-weight:700}
