@view-transition{navigation:auto}
.site-header{view-transition-name:site-header}
::view-transition-old(root){animation:yq-out .1s ease-in both}
::view-transition-new(root){animation:yq-in .16s .09s ease-out both}
@keyframes yq-out{to{opacity:0}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none !important}}

:root{
  --bg:#F8F7F1; --surface:#FFFFFF; --ink:#16211E; --muted:#56605A; --dark:#123A31; --dark-2:#0E2E27;
  --line:#DFE3D8; --line-strong:#C6CDBE; --soft:#EEF1E8; --chip:#F2E8D1; --gold:#7A5A1C; --gold-bright:#E8CC86;
  --accent:#1D5A4A; --accent-hover:#164A3D; --up:#1F7A4D; --down:#A33A2C; --warn:#8A5A00;
  --radius:16px; --radius-lg:24px; --shadow:0 18px 50px rgba(18,58,49,.08);
  --font:'IBM Plex Sans Arabic',system-ui,sans-serif; --display:'Readex Pro','IBM Plex Sans Arabic',sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold-bright);outline-offset:2px}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.wrap{width:min(1280px,100% - 32px);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* header */
.topbar{background:var(--dark);color:#EAF1EC;font-size:14px}
.site-header{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .wrap{display:flex;align-items:center;gap:32px;min-height:76px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}
.brand img{width:auto;height:48px;max-width:180px;object-fit:contain}
.brand b{font-family:var(--display);font-size:21px}
.nav{display:flex;gap:26px;font-weight:500}
.nav a{color:var(--ink);padding:8px 0;border-bottom:2px solid transparent}
.nav a[aria-current=page]{border-color:var(--accent);color:var(--accent)}
.header-tools{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.select{height:44px;padding:0 12px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);min-width:0}
.btn{height:48px;padding:0 22px;border-radius:12px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;cursor:pointer;background:var(--accent);color:#fff}
.btn:hover{background:var(--accent-hover);color:#fff}
.btn.ghost{background:transparent;border-color:var(--line-strong);color:var(--ink);font-weight:500}
.btn.ghost:hover{background:var(--soft)}
.btn.small{height:40px;padding:0 14px;font-size:14px}
.menu-toggle{display:none}

/* ticker */
.ticker{background:var(--dark);color:#EAF1EC}
.ticker .wrap{display:flex;align-items:center;gap:28px;min-height:44px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;font-size:14px}
.ticker .price{display:inline-flex;gap:8px;align-items:baseline;padding:4px 8px;border-radius:8px}
.ticker .value{color:var(--gold-bright);font-weight:700}
.live-dot{display:inline-flex;align-items:center;gap:8px;color:#9FD8B4}
.live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}

/* sections */
main{display:block;min-height:calc(100vh - 140px)}
.block{padding:56px 0}
.block[hidden]{display:none}
.block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.block-head h2{margin:0;font-family:var(--display);font-size:32px;line-height:1.25}
.block-head p{margin:6px 0 0;color:var(--muted)}

/* hero */
.hero{padding:72px 0 56px}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center}
.hero h1{margin:0 0 20px;font-family:var(--display);font-size:clamp(34px,4.4vw,56px);line-height:1.2}
.hero p.lead{margin:0 0 28px;color:var(--muted);font-size:18px;max-width:560px}
.pill{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--chip);color:var(--gold);font-weight:600;font-size:14px;margin-bottom:18px}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:32px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:20px}
.hero-card .price.featured{display:flex;flex-direction:column;gap:14px;padding:4px;border-radius:14px}
.featured .label-row{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}
.featured .big{font-family:var(--display);font-size:64px;font-weight:700;line-height:1}
.featured .big small{font-size:20px;color:var(--muted);font-weight:500;margin-inline-start:8px}
.sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.side{padding:16px;border-radius:14px;background:var(--soft);display:flex;flex-direction:column;gap:4px}
.side span{font-size:14px;color:var(--muted)}
.side b{font-size:22px}
.minis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.minis .price{padding:12px;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:2px;background:var(--surface)}
.minis .price span{font-size:12px;color:var(--muted)}
.minis .price b{font-size:17px}

/* table */
.table{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.table .row{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:12px;padding:18px 28px;border-top:1px solid var(--line);align-items:center}
.table .row.head{background:var(--soft);border-top:0;font-size:14px;color:var(--muted);padding:14px 28px}
.table .row b{font-size:18px}
.table .cell{font-size:18px;text-align:center}
.table .row.head>span:not(:first-child){text-align:center}
.status{font-size:12px;display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.status.live{color:var(--up)} .status.stale{color:var(--warn)} .status.manual{color:var(--gold)} .status.unavailable{color:var(--muted)}

/* cards */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:6px}
.card span{color:var(--muted);font-size:14px}
.card b{font-size:26px}
.card small{color:var(--muted)}

/* converter & calculator */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:36px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-size:14px;font-weight:600}
.field input,.field select{height:52px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);font-size:16px;width:100%}
.result{border-radius:20px;background:var(--soft);padding:32px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.result .big{font-family:var(--display);font-size:44px;font-weight:700;line-height:1.1;word-break:break-word}
.result small{color:var(--muted)}
.swap{align-self:end;height:52px}

/* footer */
.site-footer{background:var(--dark);color:#D5DED8;margin-top:40px}
.site-footer .wrap{padding:48px 0 32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.site-footer b{color:#fff}
.site-footer a{color:#D5DED8}
.site-footer .legal{grid-column:1/-1;border-top:1px solid #2C564B;padding-top:20px;font-size:13px;color:#A9BBB2}

@media (max-width:980px){
  .hero .wrap,.panel{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav{display:none}
  .nav.open{display:flex;flex-direction:column;position:absolute;inset:76px 0 auto 0;background:var(--surface);padding:16px;border-bottom:1px solid var(--line);gap:4px}
  .menu-toggle{display:inline-flex;width:44px;height:44px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);align-items:center;justify-content:center}
  .site-footer .wrap{grid-template-columns:1fr}
}
@media (max-width:640px){
  .site-header .wrap{gap:12px}
  .brand b{font-size:18px}.brand img{height:40px;max-width:140px}
  .header-tools .btn{display:none}
  .table .row{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));padding:14px 16px}
  .table .row .col-mid{display:none}
  .minis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .featured .big{font-size:48px}
  .form-grid{grid-template-columns:1fr}
  .panel{padding:22px}
  .block{padding:40px 0}
  .block-head h2{font-size:26px}
}

/* ---------- edit mode (visible only to managers) */
.edit-bar{position:fixed;inset-block-end:16px;inset-inline-start:16px;z-index:50;display:flex;gap:8px;align-items:center;background:var(--dark);color:#fff;padding:8px;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.edit-bar .btn{height:40px}
.edit-bar .btn.on{background:var(--gold-bright);color:var(--dark)}
body.editing .price{outline:2px dashed #C9A24A;outline-offset:2px;cursor:pointer;position:relative}
body.editing .price:hover{outline-style:solid;background:rgba(232,204,134,.12)}
body.editing .block[hidden]{display:block !important;opacity:.45}
.block-tools{display:none}
body.editing .block-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;padding:10px;border-radius:12px;background:#FFF8E6;border:1px dashed #C9A24A;align-items:center;color:var(--ink)}
.block-tools b{margin-inline-end:auto;font-size:14px}
.drawer{position:fixed;inset-block:0;inset-inline-end:0;width:min(440px,100%);background:var(--surface);z-index:60;box-shadow:-20px 0 60px rgba(0,0,0,.2);display:flex;flex-direction:column}
.drawer header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.drawer header h3{margin:0;font-family:var(--display);font-size:20px}
.drawer .body{padding:20px 22px;overflow:auto;display:flex;flex-direction:column;gap:18px;flex:1}
.drawer .foot{padding:16px 22px;border-top:1px solid var(--line);display:flex;gap:10px}
.drawer fieldset{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:12px;margin:0}
.drawer legend{font-weight:700;padding:0 6px}
.drawer .field input,.drawer .field select{height:44px}
.check{display:flex;align-items:center;gap:10px;font-weight:500}
.check input{width:20px;height:20px;accent-color:var(--accent)}
.colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.colors input[type=color]{width:100%;height:44px;padding:2px;border:1px solid var(--line-strong);border-radius:10px;background:#fff}
.hint{font-size:13px;color:var(--muted);margin:0}
.error-box{background:#FBEDEA;color:#7A2418;border-radius:12px;padding:10px 14px;font-size:14px}
.toast{position:fixed;inset-block-start:20px;inset-inline:0;margin:auto;width:max-content;max-width:90vw;z-index:80;background:var(--dark);color:#fff;padding:12px 20px;border-radius:12px;box-shadow:var(--shadow)}
.backdrop{position:fixed;inset:0;background:rgba(10,30,25,.35);z-index:55}
.loading{padding:80px 0;color:var(--muted)}
.header-tools .select{max-width:200px;text-overflow:ellipsis}
.card b{white-space:nowrap}
@media (max-width:640px){.header-tools .select{max-width:120px}.card b{font-size:20px}.cards{gap:10px}.card{padding:16px}}
.row-note{font-size:12px;color:var(--muted)}
/* products */
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;color:var(--ink);transition:box-shadow .2s}
.product:hover{box-shadow:var(--shadow);color:var(--ink)}
.product img{width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--soft)}
.product-ph{aspect-ratio:1/1;background:linear-gradient(135deg,var(--soft),#E4EADF);display:flex;align-items:center;justify-content:center;color:var(--accent);font-family:var(--display);font-size:24px}
.product-body{padding:16px;display:flex;flex-direction:column;gap:6px}
.product-body b{font-size:17px}
.product-price{font-size:19px;font-weight:700;color:var(--gold)}
.badge-sold{align-self:flex-start;background:#ECECEA;color:#555;border-radius:999px;padding:2px 12px;font-size:13px}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.filters input.select{min-width:260px;flex:1}
.page-title{margin:0;font-family:var(--display);font-size:36px}
.product-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.gallery-main{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:22px;border:1px solid var(--line);background:var(--soft)}
.thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.thumb{width:76px;height:76px;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;background:var(--surface)}
.thumb img{width:100%;height:100%;object-fit:cover}
.product-info{display:flex;flex-direction:column;gap:14px}
.product-info h1{margin:0;font-family:var(--display);font-size:34px}
.big-price{font-family:var(--display);font-size:40px;font-weight:700;color:var(--accent)}
.specs{display:grid;grid-template-columns:max-content 1fr;gap:8px 20px;margin:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.specs dt{color:var(--muted)}.specs dd{margin:0;font-weight:600}
.desc{white-space:pre-line;line-height:1.9}
@media (max-width:980px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.product-page{grid-template-columns:1fr}}
@media (max-width:640px){.products{gap:10px}.product-body{padding:12px}.filters input.select{min-width:0;width:100%}}
/* change arrows */
.change{font-size:12px;font-weight:700;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.change.up{color:var(--up)} .change.down{color:var(--down)} .change.flat{color:var(--muted)}
.ticker .change.up{color:#8FE0AE} .ticker .change.down{color:#FFA595}
/* chart */
.chart-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px}
.chart-controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:14px}
.tabs{display:flex;gap:4px;padding:4px;background:var(--soft);border-radius:12px}
.tab{min-height:40px;padding:0 16px;border:0;border-radius:9px;background:transparent;cursor:pointer;font-weight:500;color:var(--muted)}
.tab[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.chart{width:100%;height:auto;display:block;touch-action:pan-y;direction:ltr}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .axis{fill:var(--muted);font-size:13px;font-family:var(--font)}
.chart .line{fill:none;stroke-width:2.5}
.chart .line.up{stroke:var(--accent)} .chart .line.down{stroke:var(--down)}
.chart .area.up{fill:rgba(29,90,74,.10)} .chart .area.down{fill:rgba(163,58,44,.08)}
.chart .dot{fill:var(--surface);stroke:var(--gold);stroke-width:3}
.chart .guide{stroke:var(--line-strong);stroke-dasharray:4 4}
.chart-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px;margin-bottom:8px}
.chart-summary b{font-family:var(--display);font-size:28px}
.chart-tip{margin-inline-start:auto;color:var(--muted);font-size:14px}
.chart-empty{padding:40px 0;text-align:center}

/* contact */
.about{max-width:760px;font-size:18px;line-height:1.9;color:var(--ink-2,var(--ink))}
.about p{margin:0 0 14px}
.social{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.social-link{display:inline-flex;align-items:center;height:38px;padding:0 16px;border:1px solid var(--line-strong);border-radius:999px;color:var(--accent);font-weight:600;text-decoration:none;background:var(--surface)}
.social-link:hover{background:var(--accent);color:#fff}
.site-footer .social{margin-top:10px}
.site-footer .social-link{height:32px;padding:0 12px;font-size:13px;background:transparent;border-color:rgba(232,204,134,.45);color:var(--gold-bright)}
.site-footer .social-link:hover{background:var(--gold-bright);color:var(--dark)}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-bottom:24px}
.info-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.info-card span{color:var(--muted);font-size:14px}
.info-card b{font-size:17px;overflow-wrap:break-word}
.contact-form .form-grid>:last-child{grid-column:1/-1}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;align-items:start}
.map{width:100%;height:420px;border:0;border-radius:22px;background:var(--line)}
.contact-form{display:block;padding:28px}
.contact-form h2{margin-top:0}
.contact-form .field{margin-bottom:14px}
.field textarea{padding:12px 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);font:inherit;font-size:16px;width:100%;resize:vertical}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.error-box{background:#FBEDEA;color:#8A2E22;border:1px solid #F0C9C1;border-radius:12px;padding:10px 14px}
.prerender{animation:yq-reveal .25s 2.5s both}
@keyframes yq-reveal{from{opacity:0;visibility:hidden}to{opacity:1;visibility:visible}}
#main>:not(.prerender){animation:yq-in .16s ease-out both}
@keyframes yq-in{from{opacity:0}to{opacity:1}}
.prerender table{border-collapse:collapse;margin:10px 0 24px}
.prerender th,.prerender td{padding:6px 12px;border-bottom:1px solid var(--line);text-align:start}
@media (max-width:640px){.contact-grid{grid-template-columns:1fr}.map{height:300px}}

/* articles */
.articles{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.article-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;color:var(--ink);transition:box-shadow .2s,transform .2s}
.article-card:hover{box-shadow:var(--shadow);transform:translateY(-2px);color:var(--ink)}
.article-card img,.article-ph{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.article-ph{display:grid;place-items:center;background:linear-gradient(135deg,var(--dark),var(--accent));color:var(--gold-bright);font-family:var(--display);font-size:22px;padding:20px;text-align:center}
.article-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:6px}
.article-body h3{margin:0;font-family:var(--display);font-size:20px;line-height:1.5}
.article-body p{margin:0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cat-tabs{margin-bottom:22px;flex-wrap:wrap;width:max-content;max-width:100%}
.narrow{max-width:780px}
.article-page h1{font-family:var(--display);font-size:clamp(28px,4vw,42px);line-height:1.4;margin:8px 0 12px}
.article-page .lead{font-size:20px;color:var(--muted);margin:0 0 22px}
.article-cover{width:100%;border-radius:22px;margin:6px 0 26px;aspect-ratio:16/9;object-fit:cover}
.prose{font-size:18px;line-height:2}
.prose h2{font-family:var(--display);font-size:26px;margin:34px 0 10px;line-height:1.5}
.prose h3{font-family:var(--display);font-size:21px;margin:26px 0 8px}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 18px;padding-inline-start:26px}
.prose li{margin-bottom:6px}
.prose blockquote{margin:22px 0;padding:14px 20px;border-inline-start:4px solid var(--gold-bright);background:var(--soft);border-radius:12px;font-size:19px}
.prose figure{margin:24px 0}
.prose img{max-width:100%;border-radius:16px;display:block}
.prose figcaption{color:var(--muted);font-size:14px;margin-top:8px;text-align:center}
.prose a{text-decoration:underline;text-underline-offset:3px}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:34px 0 26px;padding-top:22px;border-top:1px solid var(--line)}
.share .social-link{font:inherit;font-weight:600;cursor:pointer}
.article-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:var(--dark);color:#fff;border-radius:22px;padding:24px 28px}
.article-cta p{margin:4px 0 0;color:rgba(255,255,255,.75)}
.article-cta .btn{background:var(--gold-bright);color:var(--dark)}
@media (max-width:640px){.prose{font-size:17px}.articles{grid-template-columns:1fr}}

/* price alerts */
.alert-form{display:block;padding:28px}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.alert-now{margin:14px 0}
.alert-send{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-bottom:10px}
.alert-send .btn{height:52px}
@media (max-width:640px){.form-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.alert-send{grid-template-columns:1fr}.alert-form{padding:20px}}
.nav a.lang-switch{border:1px solid var(--line-strong);border-radius:999px;padding-inline:14px;font-weight:600;color:var(--accent)}
.nav a.lang-switch:hover{background:var(--soft)}
html[dir=ltr] .prose{line-height:1.8}
.tabs{max-width:100%;overflow-x:auto;scrollbar-width:none}
.tab{white-space:nowrap;flex:0 0 auto}
@media (max-width:640px){.tab{padding:0 11px}}

/* trading screen */
.trading .tr-wrap{display:flex;flex-direction:column;gap:18px}
.tr-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px}
.tr-head .page-title{margin:0}
.tr-quote{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.tr-price{font-family:var(--display);font-size:clamp(28px,4vw,40px)}
.tr-quote small{color:var(--muted)}
.tr-grid{display:grid;grid-template-columns:280px minmax(0,1fr) 320px;gap:18px;align-items:start}
.tr-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px}
.tr-panel h2{font-size:18px;margin:0 0 12px;font-family:var(--display)}
.tr-panel h3{font-size:15px;margin:14px 0 8px}
.tr-toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-bottom:10px}
.tr-toggles{display:flex;flex-wrap:wrap;gap:6px}
.chip-toggle{height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);font-weight:600;font-size:13px;cursor:pointer;color:var(--muted)}
.chip-toggle[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.tr-readout{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;min-height:22px;margin-bottom:6px;direction:ltr;justify-content:flex-start}
.tr-readout small{color:var(--muted);font-weight:700}
.tr-chart{direction:ltr;touch-action:pan-y;user-select:none}
.cc-canvas{display:block;cursor:crosshair}
.tr-kv{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.tr-kv span{color:var(--muted)}
.tr-kv small{font-size:12px}
.tr-range-row{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.tr-range-row>span{color:var(--muted)}
.tr-range{position:relative;height:6px;border-radius:6px;background:linear-gradient(90deg,var(--down),var(--line-strong),var(--up));margin:8px 0 4px}
.tr-range i{position:absolute;top:-4px;width:4px;height:14px;background:var(--ink);border-radius:2px;transform:translateX(-50%)}
html[dir=rtl] .tr-range{background:linear-gradient(270deg,var(--down),var(--line-strong),var(--up))}
html[dir=rtl] .tr-range i{transform:translateX(50%)}
.tr-range-ends{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}
html[dir=rtl] .tr-range-ends{flex-direction:row-reverse}
.tr-local{margin-top:10px}
.tr-local-head,.tr-local-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;padding:6px 0;font-size:14px}
.tr-local-head{color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
.tr-local-row b{min-width:74px;text-align:end}
.tr-gauge-box{text-align:center;margin:4px 0 8px}
.tr-gauge{width:100%;max-width:220px}
.tr-gauge path{fill:none;stroke-width:16}
.g-sd{stroke:#A33A2C}.g-d{stroke:#D98C7F}.g-n{stroke:#C6CDBE}.g-u{stroke:#7FBF9D}.g-su{stroke:#1F7A4D}
.g-needle{stroke:var(--ink);stroke-width:4;stroke-linecap:round}.g-hub{fill:var(--ink)}
.tr-gauge-box b{display:block;font-family:var(--display);font-size:18px;margin-top:-6px}
.tr-tv{margin-top:14px}
.tr-tv iframe{border:0;width:100%}
.tr-disclaimer{margin-top:12px;font-size:12px}
@media (max-width:1180px){.tr-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tr-main{grid-column:1/-1;order:-1}}
@media (max-width:720px){.tr-grid{grid-template-columns:1fr}.tr-panel{padding:14px}.tr-toolbar .tabs{overflow-x:auto}}
.notfound{padding:60px 0 90px;text-align:center}
.nf-code{font-family:var(--display);font-size:clamp(72px,14vw,140px);line-height:1;margin:0;color:var(--gold-bright);-webkit-text-stroke:2px var(--gold)}
.notfound .actions{justify-content:center;display:flex;flex-wrap:wrap;gap:10px}
.privacy-note{margin-top:8px;font-size:13px}
/* trading 3.10: market closed, summary, levels, lower sections */
.tr-closed{align-self:center;padding:3px 10px;border-radius:999px;background:#FDF1E7;color:#9A4B12;font-size:13px;font-weight:700}
.tr-closed-note{margin:0;padding:10px 14px;border-radius:12px;background:#FDF6EC;border:1px solid #F0DFC4;color:#6B4A1D;font-size:14px}
.tr-since{margin-top:8px;font-size:12px}
.tr-summary{background:var(--bg);border-radius:14px;padding:12px 14px;margin:6px 0 10px}
.tr-summary b{display:block;font-family:var(--display);margin-bottom:4px}
.tr-summary p{margin:0;font-size:14px;line-height:1.7}
.tr-levels{display:grid;gap:2px}
.tr-level{display:flex;justify-content:space-between;padding:6px 10px;border-radius:8px;font-size:14px}
.tr-level span{color:var(--muted)}
.tr-level.res b{color:var(--down)}
.tr-level.sup b{color:var(--up)}
.tr-level.piv{background:var(--bg)}
.tr-level.near{outline:1.5px solid var(--line-strong)}
.tr-more-title{font-family:var(--display);font-size:22px;margin:14px 0 0}
.tr-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.tr-lazy{min-height:200px}
.tr-lazy iframe{border:0;width:100%}
.tr-advanced .tr-lazy{min-height:560px}
.tr-pair .tr-lazy{min-height:520px}
.tradingview-widget-copyright{font-size:12px;margin-top:6px}
.tr-articles-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tr-articles-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tr-article{display:flex;flex-direction:column;gap:6px;color:inherit;text-decoration:none}
.tr-article img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.tr-article span{color:var(--muted);font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tr-article:hover b{text-decoration:underline}
@media (max-width:900px){.tr-pair{grid-template-columns:1fr}.tr-articles-list{grid-template-columns:1fr}}
.tr-lazy.tv-failed{min-height:0}
/* customer accounts */
.account .stack,.ac-card.stack{display:flex;flex-direction:column;gap:14px}
.account .linklike,.product-actions .linklike{background:none;border:0;padding:0;color:var(--accent);cursor:pointer;text-align:start;font:inherit;text-decoration:underline;text-underline-offset:3px;align-self:flex-start}
.linklike.danger{color:#8A2E22}
.ac-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg,20px);padding:28px}
.ac-card h2{font-size:18px;margin:0;font-family:var(--display)}
.ac-card .page-title{margin:0}
.ac-tabs{margin:18px 0 16px;align-self:flex-start;width:fit-content;flex-wrap:wrap}
.ac-tabs .count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-inline-start:6px;border-radius:999px;background:var(--accent);color:#fff;font-size:12px;font-weight:700}
.ac-modes{display:flex;gap:8px;flex-wrap:wrap}
.ac-sent{background:var(--soft);border-radius:14px;padding:16px 18px}
.ac-sent h3{margin:0 0 6px}
.ok-box{background:#E8F3EC;color:#1F5A3A;border:1px solid #C6E2D0;border-radius:12px;padding:10px 14px;margin:0 0 12px}
.form-msg:empty{display:none}
.ac-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.ac-head .hint{margin:4px 0 0}
.ac-verify{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#FDF6EC;border:1px solid #F0DFC4;color:#6B4A1D;border-radius:14px;padding:12px 16px;margin-top:14px}
.ac-verify p{margin:0}
.ac-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ac-row .hint{margin:0}
.ac-list{display:flex;flex-direction:column;gap:12px}
.ac-item{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.ac-item p{margin:0}
.ac-item-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ac-item-head b{margin-inline-end:auto}
.ac-reply{background:var(--soft);border-radius:12px;padding:10px 14px;margin-top:4px}
.ac-reply p{white-space:pre-line}
.empty{color:var(--muted);background:var(--surface);border:1px dashed var(--line-strong);border-radius:16px;padding:22px;text-align:center;margin:0}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--soft)}
.badge.green{background:#E3F1E8;color:#1F6B43}.badge.gold{background:#FBF1DA;color:#8A6412}.badge.gray{background:#ECECEA;color:#555}.badge.blue{background:#E6EEF8;color:#24507F}
.ac-favs{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.ac-fav{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ac-fav-link{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none;padding-bottom:12px}
.ac-fav-link img,.ac-fav-link .product-ph{width:100%;aspect-ratio:1;object-fit:cover;display:grid;place-items:center}
.ac-fav-link b,.ac-fav-link span{padding:0 12px}
.ac-fav-x{position:absolute;top:8px;inset-inline-end:8px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:20px;line-height:1;cursor:pointer}
.product-actions{display:flex;flex-direction:column;gap:12px}
.product-buttons{display:flex;gap:10px;flex-wrap:wrap}
.fav-btn[aria-pressed=true]{color:#A3342A;border-color:#E5B8B1}
.fav-btn span{font-size:18px}
.rq-form{padding:20px}
.rq-form h3{margin:0}
.account select,.rq-form select{height:52px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);font-size:16px;width:100%}
@media (max-width:640px){.ac-card{padding:20px}.ac-tabs{width:100%}}
/* trading (trader side) */
.td-terms{display:grid;gap:6px;padding:18px 22px}
.td-terms-row{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}
.td-terms-row b{min-width:140px;color:var(--muted);font-weight:600}
.td-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.td-price{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.td-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.td-two div{display:flex;flex-direction:column;background:var(--bg);border-radius:10px;padding:8px 10px}
.td-two small{color:var(--muted);font-size:12px}
.td-two span{font-weight:700;font-size:16px;white-space:nowrap}
.td-segs{display:flex;gap:18px;flex-wrap:wrap}
.td-quote{border:2px solid var(--accent);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.td-quote p{margin:0}
.td-big{font-size:28px;font-weight:700;font-family:var(--display)}
.td-bar{height:6px;border-radius:6px;background:var(--line);overflow:hidden}
.td-bar i{display:block;height:100%;background:var(--accent);transition:width .25s linear}
.td-wait{background:#FDF6EC;border:1px solid #F0DFC4;color:#6B4A1D;border-radius:12px;padding:12px 14px}
.td-wait p,.ok-box p{margin:4px 0 0}
