/* ============================================================
   QUL WADAL - Design System v2 (Figma handoff, Sept 2026)
   Loaded after site.css: overrides tokens + layout + components
   ============================================================ */

:root{
  --bg:#F9F9F9;
  --surface:#FFFFFF;
  --surface2:#F4EEFA;
  --ink:#26192F;
  --ink2:#6B6478;
  --ink3:#9A94A6;
  --line:#ECE8F1;
  --primary:#6B21A8;
  --primary-deep:#4C1D95;
  --primary-soft:#F4EEFA;
  --accent:#7C38BC;
  --danger:#D32F2F;
  --hdr-a:#3D1D4F;
  --hdr-b:#5B2A7A;
  --radius:20px;
  --radius-sm:12px;
  --shadow:0 4px 18px rgba(38,25,47,.06);
  --shadow-lg:0 18px 44px rgba(38,25,47,.12);

  /* legacy token bridge (old pages keep working) */
  --paper:#F9F9F9;
  --paper2:#F1EFF4;
  --card:#FFFFFF;
  --purple:#6B21A8;
  --purple-deep:#4C1D95;
  --purple-soft:#F4EEFA;
  --gold:#7C38BC;
  --gold-deep:#6B21A8;
  --gold-soft:#F4EEFA;
  --sh:0 4px 18px rgba(38,25,47,.06);
  --sh-lg:0 18px 44px rgba(38,25,47,.12);
}

html[data-theme=dark]{
  --bg:#141116;
  --surface:#1E1A22;
  --surface2:#211A26;
  --ink:#F2EEF5;
  --ink2:#B5AEC0;
  --ink3:#7D7688;
  --line:#2A2430;
  --primary:#A855F7;
  --primary-deep:#C4B5FD;
  --primary-soft:#241B2E;
  --accent:#B77CE8;
  --hdr-a:#2A1638;
  --hdr-b:#3D1D4F;
  --shadow:0 4px 18px rgba(0,0,0,.35);
  --shadow-lg:0 18px 44px rgba(0,0,0,.55);

  --paper:#141116;
  --paper2:#1A1620;
  --card:#1E1A22;
  --purple:#A855F7;
  --purple-deep:#C4B5FD;
  --purple-soft:#241B2E;
  --gold:#B77CE8;
  --gold-deep:#B77CE8;
  --gold-soft:#241B2E;
  --sh:0 4px 18px rgba(0,0,0,.35);
  --sh-lg:0 18px 44px rgba(0,0,0,.55);
}

body{background:var(--bg);color:var(--ink)}
.container{max-width:1200px}

/* ---------- header (desktop) ---------- */
.hdr{position:sticky;top:0;z-index:80;background:linear-gradient(90deg,var(--hdr-a),var(--hdr-b));
  box-shadow:0 2px 14px rgba(38,25,47,.25);border:0}
.hdr-meta{display:none}
.hdr-main{background:transparent;border:0}
.hdr-main-in{height:72px;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.brand-mark{color:#fff;font-family:var(--head);font-weight:700;font-size:1.5rem}
.brand-dot{background:#D9B8FF}
.brand-logo{height:44px;filter:brightness(0) invert(1)}
.hdr-side{display:flex;align-items:center;gap:2rem;flex:1;justify-content:space-between}
.nav{display:flex;gap:2.1rem}
.nav a{color:rgba(255,255,255,.82);font-weight:600;font-size:.98rem;padding:.4rem 0;position:relative;transition:color .2s}
.nav a:hover{color:#fff}
.nav a.on{color:#fff}
.nav a:after{content:'';position:absolute;inset-inline:0;bottom:-6px;height:2px;border-radius:2px;
  background:#D9B8FF;transform:scaleX(0);transform-origin:right;transition:transform .25s}
html[dir=ltr] .nav a:after{transform-origin:left}
.nav a.on:after,.nav a:hover:after{transform:scaleX(1)}

.hdr-tools{display:flex;align-items:center;gap:.6rem}
.tool-btn{height:36px;min-width:36px;padding:0 .7rem;border-radius:12px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);color:#fff;display:inline-flex;align-items:center;justify-content:center;
  gap:.35rem;font-family:var(--body);font-weight:700;font-size:.8rem;cursor:pointer;transition:background .2s}
.tool-btn:hover{background:rgba(255,255,255,.18)}
.tool-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tool-btn .ico-moon{display:none}
html[data-theme=dark] .tool-btn .ico-sun{display:none}
html[data-theme=dark] .tool-btn .ico-moon{display:block}
.search-btn{display:none}

/* ---------- breaking ticker ---------- */
.ticker{background:var(--primary-soft);border-bottom:1px solid var(--line)}
.ticker-in{height:40px;display:flex;align-items:center;gap:.9rem;overflow:hidden}
.ticker-badge{flex:0 0 auto;background:var(--primary);color:#fff;font-size:.72rem;font-weight:800;
  padding:4px 12px;border-radius:8px;letter-spacing:.2px}
.ticker-items{position:relative;flex:1;height:100%;min-width:0}
.ticker-items a{position:absolute;inset:0;display:flex;align-items:center;color:var(--ink);font-weight:700;
  font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .5s}
.ticker-items a.on{opacity:1}
.ticker-items a:hover{color:var(--primary)}

/* ---------- mobile header ---------- */
@media(max-width:760px){
  .hdr{background:var(--surface);box-shadow:0 1px 0 var(--line)}
  .hdr-main-in{height:64px}
  .brand-mark{color:var(--primary-deep);font-size:1.3rem}
  .brand-logo{filter:none;height:38px}
  .nav{display:none}
  .hdr-side{justify-content:flex-end}
  .tool-btn{background:var(--surface2);border-color:transparent;color:var(--primary-deep);border-radius:50%;
    width:40px;height:40px;padding:0;min-width:0}
  .tool-btn span.lbl{display:none}
  .ticker-in{height:36px}
  .ticker-items a{font-size:.8rem}
}

/* ---------- page head card ---------- */
.pg-head{background:transparent;padding:2rem 0 .5rem}
.page-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:2rem 2.2rem;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.page-card h1,.pg-title{font-family:var(--head);font-weight:700;font-size:2.6rem;margin:0;color:var(--ink);letter-spacing:0}
.page-card p,.pg-desc{color:var(--ink2);margin:.35rem 0 0;font-size:1rem}
.kicker{color:var(--primary);font-weight:700}
.kicker:before{background:var(--primary)}
.date-pill{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,#8B5CF6,var(--primary));
  color:#fff;font-weight:700;font-size:.95rem;padding:.6rem 1.1rem;border-radius:14px;box-shadow:0 8px 20px rgba(107,33,168,.25)}
.date-pill svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media(max-width:760px){.page-card{padding:1.3rem 1.2rem}.page-card h1,.pg-title{font-size:2rem}.date-pill{display:none}}

/* ---------- sections ---------- */
.sec{padding:1.6rem 0}
.sec-alt{background:transparent}
.sec-block{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow);margin-bottom:1.4rem}
.sec-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.1rem}
.sec-title{font-family:var(--head);font-weight:700;font-size:1.6rem;color:var(--primary-deep);margin:0}
.sec-title:after{display:none}
.sec-more{color:var(--primary);font-weight:700;font-size:.9rem}
.sec-more:hover{text-decoration:underline}

/* ---------- cards ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;transition:transform .22s,box-shadow .22s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.card-img{margin:14px 14px 0;border-radius:14px;overflow:hidden;aspect-ratio:16/10;background:var(--surface2)}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-img-ph{color:var(--primary);opacity:.4}
.badge{background:var(--primary);color:#fff;border-radius:8px;font-size:.7rem;font-weight:800;padding:4px 10px;
  top:auto;bottom:10px;inset-inline-start:24px;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.badge-news,.badge-sports,.badge-article{background:var(--primary);color:#fff}
.badge-x{background:#111;color:#fff;bottom:auto;top:24px;inset-inline-start:auto;inset-inline-end:24px}
.card-body{padding:1rem 1.1rem 1.1rem}
.card-title{font-family:var(--head);font-weight:700;font-size:1.05rem;line-height:1.55;color:var(--ink);margin:0 0 .4rem}
.card-excerpt{color:var(--ink2);font-size:.86rem;line-height:1.7;margin:0 0 .8rem}
.card-meta{display:flex;justify-content:space-between;align-items:center;color:var(--ink3);font-size:.78rem;
  border-top:1px solid var(--line);padding-top:.7rem;margin-top:auto}
.card-meta .sep{display:none}
.card-cta{color:var(--primary);font-weight:800;font-size:.84rem}

/* ---------- chips / buttons / pager ---------- */
.cats{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1.4rem}
.cat{padding:.45rem 1.1rem;border-radius:30px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink2);
  font-size:.85rem;font-weight:700;transition:all .2s}
.cat:hover{border-color:var(--primary);color:var(--primary)}
.cat.on{background:var(--primary);border-color:var(--primary);color:#fff}
.btn,.pager-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1.5rem;border-radius:30px;font-weight:700;
  font-size:.9rem;border:1.5px solid var(--primary);color:var(--primary);background:var(--surface);cursor:pointer;transition:all .2s}
.btn:hover,.pager-btn:hover{background:var(--primary-soft)}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-deep);border-color:var(--primary-deep);color:#fff}
.pager{margin-top:1.6rem}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius);color:var(--ink3)}

/* ---------- footer ---------- */
.ftr{background:var(--surface);color:var(--ink);border-top:1px solid var(--line);padding:3rem 0 0;margin-top:2rem}
html[data-theme=dark] .ftr{background:var(--surface)}
.ftr-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2.5rem}
.ftr .brand-mark{color:var(--primary-deep)}
.ftr .brand-logo{filter:none;height:44px;margin-bottom:.6rem}
.ftr-tag{color:var(--ink2);font-size:.9rem;line-height:1.8;margin:.6rem 0 1rem;max-width:320px}
.ftr-soc{display:flex;gap:1rem;margin:0 0 1.4rem}
.ftr-soc a{width:22px;height:22px;color:var(--ink2);transition:color .2s;display:inline-flex}
.ftr-soc a:hover{color:var(--primary)}
.ftr-soc svg{width:22px;height:22px;fill:currentColor}
.ftr-sub-lbl{font-weight:800;font-size:.9rem;margin-bottom:.6rem}
.ftr-sub{display:flex;gap:.5rem;max-width:360px;margin:0}
.ftr-sub input{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:12px;padding:12px 14px}
.ftr-sub input::placeholder{color:var(--ink3)}
.ftr-sub button{background:var(--primary);color:#fff;border-radius:12px;padding:0 22px;font-weight:800}
.ftr-sub button:hover{background:var(--primary-deep)}
.ftr-sub-ok{color:#1B8A5A}.ftr-sub-err{color:var(--danger)}
.ftr-col h4{font-family:var(--head);font-weight:700;font-size:1.05rem;color:var(--primary-deep);margin:0 0 1rem}
.ftr-col a{display:block;color:var(--ink2);font-size:.92rem;margin-bottom:.75rem;transition:color .2s}
.ftr-col a:hover{color:var(--primary)}
.ftr-bottom{border-top:1px solid var(--line);margin-top:2rem;padding:1.2rem 5%;display:flex;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;color:var(--ink3);font-size:.8rem;text-align:start}
.ftr-bottom a{color:var(--ink3)}
.ftr-bottom a:hover{color:var(--primary)}
.ftr-disclaimer{color:var(--ink3);font-size:.7rem;padding:0 5% 1.4rem;text-align:start}
@media(max-width:900px){.ftr-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ftr-grid{grid-template-columns:1fr 1fr;gap:1.6rem}.ftr-grid>div:first-child{grid-column:1/-1}}

/* ---------- tab bar (6 items) ---------- */
.tabbar{background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -4px 20px rgba(38,25,47,.08)}
.tabbar a{color:var(--ink3)}
.tabbar a.on{color:var(--primary)}
.tabbar a span{font-size:.62rem;font-weight:700}
.tabbar svg{width:22px;height:22px;stroke-width:1.9}
.tabbar a.on:before{display:none}

/* ---------- legacy bridges ---------- */
.hdr-meta-tag,.lang-switch,.ctrl-btn,.hdr-meta-links{display:none}
.hero{background:transparent}
.hero-corner{display:none}
.match{border-radius:16px}
.duo-card{border-radius:var(--radius)}

/* ============ R1C pages ============ */

.grid{display:grid;gap:1.1rem}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1000px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

.hero-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.2rem}
.hero-img{border-radius:16px;overflow:hidden;aspect-ratio:21/9;background:var(--surface2)}
.hero-img img{width:100%;height:100%;object-fit:cover}
.hero-body{padding:1rem .4rem 0}
.hero-cat{color:var(--primary);font-size:.8rem;font-weight:700}
.hero-kicker{font-family:var(--head);font-weight:700;font-size:1.6rem;color:var(--ink);margin-top:.5rem}
.hero-title{font-family:var(--head);font-weight:500;font-size:1.7rem;margin:.1rem 0 .6rem;color:var(--ink)}
.hero-meta{color:var(--ink3);font-size:.82rem}
@media(max-width:760px){.hero-img{aspect-ratio:16/10}.hero-kicker{font-size:1.2rem}.hero-title{font-size:1.25rem}}

.rail{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;scrollbar-width:thin;scrollbar-color:var(--primary) transparent}
.rail-item{flex:0 0 268px;scroll-snap-align:start}
.rail .card{height:100%}
@media(max-width:640px){.rail-item{flex-basis:80%}}

.sec-block.soft{background:var(--surface2)}
.sec-title.big{font-size:1.9rem;text-align:center;margin-bottom:.4rem}
.sec-lead{text-align:center;color:var(--ink2);max-width:640px;margin:0 auto 1rem}
.sec-actions{display:flex;justify-content:center;gap:.6rem;margin-bottom:1.4rem}

.people-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.pcard{display:block;border-radius:18px;overflow:hidden;position:relative;aspect-ratio:9/15;background:#0E0A18;box-shadow:var(--shadow)}
.pcard-media{position:absolute;inset:0}
.pcard-media img{width:100%;height:100%;object-fit:cover}
.pcard-play,.pv-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;
  background:rgba(255,255,255,.9);display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:transform .25s}
.pcard-play svg{width:22px;height:22px;fill:var(--primary);margin-inline-start:3px}
.pcard:hover .pcard-play{transform:translate(-50%,-50%) scale(1.1)}
.pcard-foot{position:absolute;inset-inline:0;bottom:0;padding:2.2rem .9rem .9rem;color:#fff;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.75));display:flex;flex-direction:column;gap:.2rem}
.pcard-title{font-weight:700;font-size:.95rem}
.pcard-src{font-size:.72rem;opacity:.85}
@media(max-width:900px){.people-row{grid-template-columns:repeat(2,1fr)}}

.ep-card{display:block;background:#151020;border-radius:18px;overflow:hidden;color:#fff;box-shadow:var(--shadow)}
.ep-media{position:relative;aspect-ratio:16/9;background:#241A38}
.ep-media img{width:100%;height:100%;object-fit:cover;opacity:.9}
.ep-foot{padding:.8rem .9rem;display:flex;flex-direction:column;gap:.15rem}
.ep-foot b{font-family:var(--head);font-size:1rem}
.ep-foot span{font-size:.8rem;opacity:.8}

.writer-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1rem;text-align:center;box-shadow:var(--shadow);transition:transform .2s}
.writer-card:hover{transform:translateY(-3px)}
.writer-avatar{width:64px;height:64px;border-radius:50%;margin:0 auto .7rem;background:var(--surface2);display:grid;place-items:center;overflow:hidden;color:var(--primary);font-weight:800}
.writer-avatar img{width:100%;height:100%;object-fit:cover}
.writer-avatar.big{width:110px;height:110px;margin:0;font-size:1.6rem}
.writer-name{font-family:var(--head);font-weight:700;color:var(--ink)}
.writer-title{color:var(--ink3);font-size:.8rem;margin:.2rem 0 .8rem}
.writer-latest{color:var(--primary-deep);font-size:.85rem;font-weight:700;border-top:1px solid var(--line);padding-top:.7rem}
.writer-hero{display:flex;gap:1.6rem;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem;box-shadow:var(--shadow)}
.writer-bio{color:var(--ink2);margin:.6rem 0 1rem;max-width:640px}
.writer-links{display:flex;gap:.5rem}
.writer-box{display:flex;gap:1rem;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;margin-top:1.6rem}
.writer-box .writer-avatar{margin:0;flex:0 0 64px}
.writer-box b{display:block;margin-bottom:.3rem}
.writer-box p{color:var(--ink2);font-size:.88rem;margin:0 0 .5rem}
.writer-box a{color:var(--primary);font-weight:700;font-size:.85rem}

.op-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow)}
.op-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.8rem}
.op-avatar{width:36px;height:36px;border-radius:50%;background:var(--surface2);color:var(--primary);display:grid;place-items:center;font-size:.75rem;font-weight:800}
.op-name{font-size:.85rem;font-weight:700;color:var(--ink2)}
.op-title{font-family:var(--head);font-weight:700;font-size:1.15rem;margin:0 0 .5rem;color:var(--ink)}
.op-excerpt{color:var(--ink2);font-size:.86rem;margin:0 0 .8rem}
.op-read{color:var(--ink3);font-size:.78rem}
.card-by{color:var(--ink2);font-size:.82rem;font-weight:700;margin-bottom:.6rem}

.ranked{display:flex;flex-direction:column}
.ranked-row{display:grid;grid-template-columns:auto 1fr auto;gap:1.2rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line);color:var(--ink)}
.ranked-cat{color:var(--ink3);font-size:.75rem}
.ranked-title{font-family:var(--head);font-weight:600;font-size:1.15rem}
.ranked-num{font-family:var(--head);font-weight:700;font-size:2rem;color:var(--primary);opacity:.55;line-height:1}
.ranked-row:hover .ranked-title{color:var(--primary)}

.cta-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.cta{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow)}
.cta svg{width:26px;height:26px;fill:none;stroke:var(--primary);stroke-width:1.8;margin-bottom:.6rem}
.cta h3{font-family:var(--head);font-weight:700;font-size:1.3rem;margin:0 0 .3rem}
.cta p{color:var(--ink2);font-size:.9rem;margin:0 0 1rem}
.cta-primary{background:var(--primary-deep);color:#fff}
.cta-primary svg{stroke:#fff}
.cta-primary p{color:rgba(255,255,255,.8)}
.cta-primary .btn{background:#fff;color:var(--primary-deep);border-color:#fff}
.cta-btns{display:flex;gap:.5rem}
@media(max-width:760px){.cta-grid{grid-template-columns:1fr}}

.badge-inline{display:inline-block;background:var(--primary-soft);color:var(--primary);font-size:.75rem;font-weight:800;padding:4px 12px;border-radius:8px;margin-bottom:.6rem}
.top-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:1.1rem}
.top-main{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow)}
.top-img{border-radius:14px;overflow:hidden;aspect-ratio:16/10;background:var(--surface2);margin-bottom:1rem}
.top-img img{width:100%;height:100%;object-fit:cover}
.top-title{font-family:var(--head);font-weight:700;font-size:1.6rem;margin:.2rem 0 .6rem;color:var(--ink)}
.top-excerpt{color:var(--ink2);font-size:.92rem;margin:0 0 .9rem}
.top-meta{display:flex;justify-content:space-between;color:var(--ink3);font-size:.8rem;border-top:1px solid var(--line);padding-top:.7rem}
.top-side{display:flex;flex-direction:column;gap:1rem}
@media(max-width:900px){.top-grid{grid-template-columns:1fr}}

.compact{display:flex;gap:1rem;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:.9rem;box-shadow:var(--shadow)}
.compact-body{flex:1;min-width:0}
.compact-cat{color:var(--primary);font-size:.72rem;font-weight:700}
.compact-title{font-family:var(--head);font-weight:700;font-size:.98rem;margin:.2rem 0;color:var(--ink)}
.compact-time{color:var(--ink3);font-size:.75rem}
.compact-img{flex:0 0 96px;aspect-ratio:4/3;border-radius:10px;overflow:hidden}
.compact-img img{width:100%;height:100%;object-fit:cover}

.rows{display:flex;flex-direction:column;gap:.9rem}
.row-card{display:grid;grid-template-columns:150px 1fr auto;gap:1.1rem;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:.9rem;box-shadow:var(--shadow)}
.row-img{aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:var(--surface2)}
.row-img img{width:100%;height:100%;object-fit:cover}
.row-meta{color:var(--ink3);font-size:.75rem;display:flex;align-items:center;gap:.4rem}
.row-cat{color:var(--primary);font-weight:700}
.row-title{font-family:var(--head);font-weight:700;font-size:1.1rem;margin:.3rem 0;color:var(--ink)}
.row-excerpt{color:var(--ink2);font-size:.85rem;margin:0}
.row-read{color:var(--ink3);font-size:.75rem;white-space:nowrap}
@media(max-width:640px){.row-card{grid-template-columns:1fr}.row-read{display:none}}

.feat-article{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow)}
.feat-img{border-radius:16px;overflow:hidden;aspect-ratio:21/9;margin-bottom:1rem;background:var(--surface2)}
.feat-img img{width:100%;height:100%;object-fit:cover}
.feat-title{font-family:var(--head);font-weight:700;font-size:1.7rem;margin:.2rem 0 .6rem;color:var(--ink)}
.feat-excerpt{color:var(--ink2);margin:0 0 .8rem}
.feat-meta{color:var(--ink3);font-size:.85rem}
.feat-meta b{color:var(--primary)}

.sports-top{display:grid;grid-template-columns:1.6fr 1fr;gap:1.1rem;align-items:stretch}
.sports-hero{position:relative;display:block;border-radius:var(--radius);overflow:hidden;min-height:340px;background:#1A1220}
.sports-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sports-hero-body{position:absolute;inset-inline:0;bottom:0;padding:2rem 1.6rem 1.4rem;color:#fff;background:linear-gradient(180deg,transparent,rgba(0,0,0,.8))}
.sports-hero-tags{display:flex;gap:.8rem;align-items:center;font-size:.8rem;opacity:.9;margin-bottom:.5rem}
.sports-hero-tags .badge-inline{margin:0;background:var(--primary);color:#fff}
.sports-hero h2{font-family:var(--head);font-weight:700;font-size:1.7rem;margin:0 0 .4rem}
.sports-hero p{margin:0;font-size:.9rem;opacity:.9}
.sports-side{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}
.side-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem}
.side-head a{color:var(--primary);font-size:.8rem;font-weight:700}
.mrow{display:grid;grid-template-columns:1fr auto 1fr auto;gap:.6rem;align-items:center;padding:.6rem .5rem;border-radius:12px;background:var(--bg);margin-bottom:.5rem}
.mrow-team{display:flex;align-items:center;gap:.4rem;font-size:.85rem;font-weight:700;min-width:0}
.mrow-team img,.mrow-ph{width:24px;height:24px;border-radius:50%;object-fit:contain;background:var(--surface2);display:inline-block;flex:0 0 auto}
.mrow-score b{font-family:var(--head);font-size:1rem;color:var(--primary-deep)}
.mrow-status{font-size:.68rem;color:var(--ink3)}
.mrow.is-live .mrow-status{color:var(--danger);font-weight:800}
.empty.small{padding:1rem;font-size:.85rem}
@media(max-width:900px){.sports-top{grid-template-columns:1fr}}

.numbered{display:flex;flex-direction:column;gap:.7rem}
.numbered-row{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:.9rem 1.1rem;box-shadow:var(--shadow);color:var(--ink)}
.numbered-n{font-family:var(--head);font-weight:700;color:var(--primary);font-size:1.4rem;width:32px;text-align:center}
.numbered-body{display:flex;flex-direction:column;gap:.2rem}
.numbered-body b{font-family:var(--head)}
.numbered-body small{color:var(--ink2)}
.numbered-time{color:var(--ink3);font-size:.75rem;white-space:nowrap}

.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.standings{width:100%;border-collapse:collapse;font-size:.9rem}
.standings th,.standings td{padding:.75rem .9rem;text-align:center;border-bottom:1px solid var(--line)}
.standings th{color:var(--ink3);font-size:.75rem;font-weight:700;background:var(--surface2)}
.standings .st-team{text-align:start;font-weight:700;display:flex;align-items:center;gap:.5rem}
.standings .st-team img{width:22px;height:22px;object-fit:contain}
.standings tr:first-child td{background:rgba(107,33,168,.05)}

.art .container{max-width:1100px}
.crumbs{color:var(--ink3);font-size:.8rem;margin:1.6rem 0 1rem}
.crumbs a{color:var(--ink2)}
.art-title{font-family:var(--head);font-weight:700;font-size:2.3rem;line-height:1.35;margin:.5rem 0 .8rem;color:var(--ink)}
.art-lead{color:var(--ink2);font-size:1.05rem;line-height:1.8;margin:0 0 1.2rem}
.art-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:.8rem 1rem;margin-bottom:1.2rem}
.art-author{display:flex;align-items:center;gap:.8rem}
.art-avatar{width:40px;height:40px;border-radius:50%;background:var(--surface2);color:var(--primary);display:grid;place-items:center;font-size:.8rem;font-weight:800;overflow:hidden}
.art-avatar img{width:100%;height:100%;object-fit:cover}
.art-author b{display:block;font-size:.9rem}
.art-author small{color:var(--ink3);font-size:.75rem}
.art-actions{display:flex;gap:.5rem;position:relative}
.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink2);display:grid;place-items:center;cursor:pointer;transition:all .2s}
.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:hover,.icon-btn.on{border-color:var(--primary);color:var(--primary)}
.icon-btn.on svg{fill:var(--primary)}
.art-actions .share-menu{inset-inline-end:0;inset-inline-start:auto;top:calc(100% + 8px);bottom:auto}
.art-figure{margin:0 0 1.4rem;border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.art-figure img{width:100%;aspect-ratio:16/8;object-fit:cover;display:block}
.art-figure figcaption{display:flex;justify-content:space-between;gap:1rem;padding:.6rem .2rem 0;color:var(--ink3);font-size:.78rem}
.art-match{margin-bottom:1.4rem}
.art-grid{display:grid;grid-template-columns:1fr 280px;gap:2rem;align-items:start}
.art-body{font-size:1.06rem;line-height:2;color:var(--ink)}
.art-body p{margin:0 0 1.2rem}
.art-body img{max-width:100%;border-radius:14px}
.art-body blockquote{background:var(--surface2);border-inline-start:4px solid var(--primary);border-radius:14px;padding:1.2rem 1.4rem;margin:1.4rem 0;font-family:var(--head);font-weight:600;color:var(--primary-deep)}
.art-body h2,.art-body h3{font-family:var(--head);color:var(--ink)}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.tags b{font-size:.9rem;margin-inline-end:.3rem}
.tag{background:var(--surface2);color:var(--ink2);font-size:.8rem;font-weight:700;padding:.35rem .9rem;border-radius:8px}
.tag:hover{color:var(--primary)}
.art-side{position:sticky;top:90px;display:flex;flex-direction:column;gap:1rem}
.side-box{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.1rem;box-shadow:var(--shadow);display:block}
.side-box b{display:block;font-size:.9rem;margin-bottom:.7rem}
.side-share{display:flex;gap:.6rem}
.side-share a{width:38px;height:38px;border-radius:10px;background:var(--surface2);color:var(--primary);display:grid;place-items:center}
.side-share svg{width:18px;height:18px;fill:currentColor}
.side-box.promo{background:#FFF7E6;border-color:#F3E1B6}
html[data-theme=dark] .side-box.promo{background:#2A2214;border-color:#4A3B1E}
.side-box.promo small{color:#B08F35;font-weight:800;font-size:.72rem;display:block;margin-bottom:.4rem}
.side-box.promo p{color:var(--ink2);font-size:.85rem;margin:0}
@media(max-width:900px){.art-grid{grid-template-columns:1fr}.art-side{position:static}.art-title{font-size:1.7rem}}

/* ============ R2A video ============ */

.prog-layout{display:grid;grid-template-columns:1.7fr 1fr;gap:1.2rem;align-items:start}
.prog-player{border-radius:var(--radius);overflow:hidden;background:#000;box-shadow:var(--shadow-lg)}
.prog-player .embed-16x9{aspect-ratio:16/9}
.prog-info{padding:1.2rem .3rem 0}
.prog-type{color:var(--ink3);font-size:.85rem;font-weight:700}
.prog-name{font-family:var(--head);font-weight:700;font-size:2rem;margin:.2rem 0 .4rem;color:var(--ink)}
.prog-desc{color:var(--ink2);margin:0 0 .6rem;max-width:720px}
.prog-ep-label{color:var(--ink3);font-size:.85rem;margin-bottom:1rem}
.prog-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.prog-latest{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}
.prog-latest h3{font-family:var(--head);font-weight:700;font-size:1.2rem;margin:0 0 .9rem;color:var(--primary-deep)}
.latest-ep{display:grid;grid-template-columns:110px 1fr;gap:.8rem;align-items:center;padding:.6rem;border-radius:14px;margin-bottom:.4rem;transition:background .2s;color:var(--ink)}
.latest-ep:hover{background:var(--surface2)}
.latest-thumb{position:relative;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:var(--surface2)}
.latest-thumb img{width:100%;height:100%;object-fit:cover}
.pcard-play.small{width:34px;height:34px}
.pcard-play.small svg{width:14px;height:14px}
.latest-ep b{display:block;font-family:var(--head);font-size:.95rem}
.latest-ep small{display:block;color:var(--ink3);font-size:.75rem}
.rail .ep-card{flex:0 0 250px;text-align:start;border:2px solid transparent;cursor:pointer;padding:0;font-family:var(--body)}
.rail .ep-card.active{border-color:var(--primary)}
.prog-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.prog-card:hover{transform:translateY(-3px)}
.prog-card.on{border-color:var(--primary)}
.prog-card-media{position:relative;aspect-ratio:16/10;background:#1A1220}
.prog-card-media img{width:100%;height:100%;object-fit:cover}
.prog-card-body{padding:.9rem 1rem 1.1rem;display:flex;flex-direction:column;gap:.15rem}
.prog-card-body small{color:var(--ink3);font-size:.75rem}
.prog-card-body b{font-family:var(--head);font-size:1.15rem;color:var(--ink)}
.prog-card-body span{color:var(--ink2);font-size:.82rem}
@media(max-width:900px){.prog-layout{grid-template-columns:1fr}.prog-name{font-size:1.5rem}}

.pv-card{position:relative;background:#0E0A18}
.pv-media{position:relative;overflow:hidden}
.pv-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .5s}
.pv-card.loaded .pv-poster{opacity:0;pointer-events:none}
.pv-dur{position:absolute;top:12px;inset-inline-end:12px;z-index:3;background:rgba(0,0,0,.65);color:#fff;font-size:.72rem;font-weight:800;padding:3px 9px;border-radius:8px;backdrop-filter:blur(4px)}
.pv-info{position:absolute;inset-inline:0;bottom:0;z-index:3;padding:2.4rem .9rem .9rem;color:#fff;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));display:flex;flex-direction:column;gap:.25rem}
.pv-info b{font-family:var(--head);font-size:.98rem;line-height:1.4}
.pv-info small{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;opacity:.9}
.pv-info svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.pv-link-out{position:absolute;inset:0;z-index:4}
.pv-card.loaded .pv-info{padding-bottom:3.4rem}
.people-more{text-align:center;margin-top:1.6rem}
.pcard-dur{position:absolute;top:12px;inset-inline-end:12px;z-index:3;background:rgba(0,0,0,.65);color:#fff;font-size:.72rem;font-weight:800;padding:3px 9px;border-radius:8px}

/* ============ R2B series ============ */

.weekly-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.weekly-tile{display:block;aspect-ratio:2/1;border-radius:16px;overflow:hidden;background:var(--surface2);box-shadow:var(--shadow);transition:transform .2s;display:grid;place-items:center}
.weekly-tile:hover{transform:translateY(-3px)}
.weekly-tile img{width:100%;height:100%;object-fit:cover}
.weekly-tile span{font-family:var(--head);font-weight:700;font-size:1.6rem;color:var(--primary-deep)}
@media(max-width:760px){.weekly-tiles{grid-template-columns:repeat(2,1fr)}}

.series-card{display:grid;grid-template-columns:1fr 1.2fr;gap:1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow);align-items:center}
.series-tile{aspect-ratio:2/1;border-radius:14px;overflow:hidden;background:var(--surface2);display:grid;place-items:center}
.series-tile img{width:100%;height:100%;object-fit:cover}
.series-tile span{font-family:var(--head);font-weight:700;color:var(--primary-deep)}
.series-body b{font-family:var(--head);font-size:1.3rem;display:block;color:var(--ink)}
.series-body p{color:var(--ink2);font-size:.88rem;margin:.3rem 0 .5rem}
.series-body small{color:var(--primary);font-weight:700;font-size:.8rem}

.series-hero{position:relative;background:var(--surface);border-bottom:1px solid var(--line);padding:1.2rem 0 2rem;overflow:hidden}
.series-hero .pg-title{margin-top:.4rem}
.series-sub{display:block;color:var(--ink3);font-size:.8rem;margin-top:.6rem}
.series-quote{position:absolute;inset-inline-start:6%;top:10%;font-size:12rem;line-height:1;color:var(--primary);opacity:.06;font-family:var(--head)}

.release-feat{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow)}
.release-feat h3{font-family:var(--head);font-weight:700;font-size:1.6rem;margin:.4rem 0 .5rem;color:var(--ink)}
.release-feat p{color:var(--ink2);margin:0 0 .8rem}
.release-meta{color:var(--ink3);font-size:.82rem;margin-bottom:1rem}
.release-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.release-feat-cover{display:block;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:var(--surface2)}
.release-feat-cover img{width:100%;height:100%;object-fit:cover}
@media(max-width:800px){.release-feat{grid-template-columns:1fr}}

.release-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.release-card:hover{transform:translateY(-3px)}
.release-cover{aspect-ratio:1/1;background:var(--surface2)}
.release-cover img{width:100%;height:100%;object-fit:cover}
.release-body{padding:.9rem 1rem 1rem;display:flex;flex-direction:column;gap:.3rem}
.release-body b{font-family:var(--head);color:var(--ink)}
.release-body small{color:var(--ink3);font-size:.75rem}

.viewer-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:start;margin-top:1rem}
.viewer{position:relative;background:#0E0A18;border-radius:var(--radius);overflow:hidden;aspect-ratio:1/1;box-shadow:var(--shadow-lg)}
.viewer:fullscreen{border-radius:0;aspect-ratio:auto}
.viewer-track{position:absolute;inset:0}
.viewer-slide{position:absolute;inset:0;opacity:0;transition:opacity .35s}
.viewer-slide.on{opacity:1}
.viewer-slide img{width:100%;height:100%;object-fit:contain}
.viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.92);color:var(--primary);display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3);z-index:2}
.viewer-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.viewer-nav.prev{inset-inline-end:14px}
.viewer-nav.next{inset-inline-start:14px}
.viewer-dots{position:absolute;bottom:14px;inset-inline:0;display:flex;justify-content:center;gap:6px;z-index:2}
.viewer-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45)}
.viewer-dots span.on{background:#fff;width:22px;border-radius:4px}
.viewer-full{position:absolute;top:12px;inset-inline-start:12px;width:36px;height:36px;border-radius:10px;border:none;background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2}
.viewer-full svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.viewer-count{position:absolute;top:14px;inset-inline-end:14px;background:rgba(0,0,0,.55);color:#fff;font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:8px;z-index:2}
.viewer-title{font-family:var(--head);font-weight:700;font-size:1.9rem;margin:.4rem 0 .6rem;color:var(--ink)}
.viewer-excerpt{color:var(--ink2);line-height:1.8;margin:0 0 .8rem}
.viewer-back{display:inline-block;margin-top:1.2rem;color:var(--primary);font-weight:700;font-size:.9rem}
@media(max-width:900px){.viewer-layout{grid-template-columns:1fr}.viewer-title{font-size:1.4rem}}

/* ============ R3A pages + forms ============ */

.about-hero{background:var(--surface);border-bottom:1px solid var(--line);padding:2.6rem 0}
.about-hero-in{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
.about-hero .pg-desc{max-width:520px;line-height:1.9}
.collage{position:relative;height:300px}
.collage img{position:absolute;width:55%;aspect-ratio:4/3;object-fit:cover;border-radius:18px;box-shadow:var(--shadow-lg)}
.collage img:nth-child(1){top:0;inset-inline-start:0}
.collage img:nth-child(2){top:22%;inset-inline-end:0;width:48%}
.collage img:nth-child(3){bottom:0;inset-inline-start:18%;width:52%}
@media(max-width:800px){.about-hero-in{grid-template-columns:1fr}.collage{height:240px}}

.prose-wrap{max-width:860px}
.sec-title.underline{padding-bottom:.5rem;border-bottom:3px solid var(--primary);width:fit-content;margin-bottom:1.2rem}
.prose{font-size:1.05rem;line-height:2;color:var(--ink)}
.prose p{margin:0 0 1.1rem}
.prose h2,.prose h3{font-family:var(--head);color:var(--ink);margin:1.6rem 0 .6rem}
.prose ul,.prose ol{padding-inline-start:1.4rem}
.vm-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.vm-card{background:var(--surface2);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem}
.vm-card.primary{background:var(--surface);border-color:var(--primary)}
.vm-card b{font-family:var(--head);font-size:1.3rem;color:var(--primary-deep);display:block;margin-bottom:.5rem}
.vm-card p{color:var(--ink2);margin:0;line-height:1.9}
@media(max-width:700px){.vm-grid{grid-template-columns:1fr}}
.offer{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow)}
.offer-ico{width:44px;height:44px;border-radius:12px;background:var(--surface2);display:grid;place-items:center;margin-bottom:.8rem}
.offer-ico svg{width:22px;height:22px;fill:none;stroke:var(--primary);stroke-width:1.8;stroke-linecap:round}
.offer b{font-family:var(--head);font-size:1.15rem;color:var(--ink);display:block;margin-bottom:.3rem}
.offer p{color:var(--ink2);font-size:.9rem;margin:0}

.form-layout{display:grid;grid-template-columns:1.7fr 1fr;gap:1.4rem;align-items:start}
.form-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.8rem;box-shadow:var(--shadow)}
.form-title{font-family:var(--head);font-weight:700;font-size:1.4rem;margin:0 0 1.2rem;color:var(--ink)}
.form-sub{font-family:var(--head);font-weight:700;font-size:1.15rem;margin:1.6rem 0 .9rem;color:var(--primary-deep)}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.4rem}
.f-field{display:flex;flex-direction:column;gap:.4rem}
.f-field.full{grid-column:1/-1}
.f-field>span{font-size:.85rem;font-weight:700;color:var(--ink)}
.f-field input,.f-field select,.f-field textarea{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;font-family:var(--body);font-size:.95rem;background:var(--bg);color:var(--ink);transition:border .2s,box-shadow .2s}
.f-field input:focus,.f-field select:focus,.f-field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(107,33,168,.1);background:var(--surface)}
.f-field small{color:var(--ink3);font-size:.75rem}
.form-alert{background:#FDECEC;color:#B42318;border:1px solid #F5C2C2;border-radius:12px;padding:.8rem 1rem;font-size:.9rem;font-weight:700;margin-bottom:1rem}
html[data-theme=dark] .form-alert{background:#3A1A1A;border-color:#5A2A2A;color:#F5B5B5}
.hp{position:absolute;opacity:0;height:0;width:0;pointer-events:none}
.form-side{display:flex;flex-direction:column;gap:1rem}
.side-line{display:block;color:var(--primary);font-weight:700;font-size:.9rem;margin-bottom:.5rem}
.steps{list-style:none;padding:0;margin:0;counter-reset:s}
.steps li{position:relative;padding-inline-start:2.4rem;margin-bottom:.9rem;counter-increment:s}
.steps li:before{content:counter(s);position:absolute;inset-inline-start:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--surface2);color:var(--primary);font-weight:800;font-size:.8rem;display:grid;place-items:center}
.steps li b{display:block;font-size:.9rem}
.steps li span{color:var(--ink2);font-size:.82rem}
@media(max-width:800px){.form-layout{grid-template-columns:1fr}.f-grid{grid-template-columns:1fr}}

.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-bottom:1.4rem}
.choice{position:relative;display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1.5px solid var(--line);border-radius:14px;background:var(--bg);cursor:pointer;transition:all .2s}
.choice:hover{border-color:var(--primary)}
.choice input{position:absolute;opacity:0}
.choice input:checked~.choice-ring{border-color:var(--primary);background:var(--primary)}
.choice:has(input:checked){border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 3px rgba(107,33,168,.1)}
.choice-ring{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);align-self:flex-end}
.choice b{font-size:.9rem;color:var(--ink)}
@media(max-width:640px){.choice-grid{grid-template-columns:1fr 1fr}}
.upload-box{border:1.5px dashed var(--line);border-radius:14px;padding:1.4rem;text-align:center;color:var(--ink2);background:var(--bg);cursor:pointer;transition:border .2s}
.upload-box:hover{border-color:var(--primary)}
.upload-box input{display:none}
.upload-box small{display:block;color:var(--ink3);margin-top:.3rem;font-size:.75rem}
.upload-box .up-name{display:block;color:var(--primary);font-weight:700;margin-top:.4rem;font-size:.85rem}

.success-card{max-width:560px;margin:2rem auto;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:2.6rem 2rem;text-align:center;box-shadow:var(--shadow-lg)}
.success-ico{width:72px;height:72px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center;margin:0 auto 1.2rem}
.success-ico svg{width:34px;height:34px;fill:none;stroke:var(--primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.success-card h1{font-family:var(--head);font-weight:700;font-size:1.7rem;margin:0 0 .6rem;color:var(--ink)}
.success-card p{color:var(--ink2);line-height:1.8;margin:0 0 1.4rem}
.success-actions{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap}

/* ============ R3B jobs + services ============ */
.dots-deco{display:flex;gap:.6rem;justify-content:flex-end;align-self:flex-start;opacity:.4}
.dots-deco i{width:14px;height:14px;border-radius:50%;background:var(--surface2);border:1px solid var(--line)}
.dots-deco i:nth-child(2){background:var(--primary-soft)}
.offer-ico.emoji{font-size:1.4rem}
.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:.6rem;margin:1rem 0 1.4rem}
.filters input,.filters select{padding:11px 14px;border:1.5px solid var(--line);border-radius:12px;font-family:var(--body);font-size:.9rem;background:var(--surface);color:var(--ink)}
.filters input:focus,.filters select:focus{outline:none;border-color:var(--primary)}
@media(max-width:800px){.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}}
.job-card{display:flex;justify-content:space-between;align-items:flex-start;gap:1.2rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.6rem;box-shadow:var(--shadow);margin-bottom:1rem}
.job-body h3{font-family:var(--head);font-weight:700;font-size:1.25rem;margin:0 0 .5rem;color:var(--ink)}
.job-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.6rem}
.job-tags span{background:var(--surface2);color:var(--ink2);font-size:.75rem;font-weight:700;padding:.3rem .8rem;border-radius:8px}
.job-body p{color:var(--ink2);font-size:.9rem;margin:0 0 .5rem}
.job-body small{color:var(--ink3);font-size:.75rem}
@media(max-width:640px){.job-card{flex-direction:column}}

/* ============ R3F FIGMA PARITY ============ */
/* -- design tokens (sampled from Figma frames) -- */
:root{
  --bg:#FFFFFF; --band:#F7F7F7;
  --primary:#5C2F72; --primary-deep:#46215A; --accent:#7D598E;
  --primary-soft:#F2EFF4; --surface2:#F2EFF4;
  --ink2:#8D6E9D; --ink3:#B5A3C0; --line:#EFEBF1;
  --field:#F7F7F7; --field-focus:#FFFFFF; --field-border:#9D82AA; --ph:#C1B1C9;
  --hdr-a:#381B47; --hdr-b:#522967;
  --purple:#5C2F72; --purple-deep:#46215A; --purple-soft:#F2EFF4;
  --gold:#7D598E; --gold-deep:#5C2F72; --gold-soft:#F2EFF4;
  --paper:#FFFFFF; --paper2:#F7F7F7;
}
html[data-theme=dark]{
  --bg:#141116; --band:#1A1620;
  --primary:#B78BD9; --primary-deep:#CBA5E6; --accent:#B78BD9;
  --primary-soft:#241B2E; --surface2:#241B2E;
  --ink2:#B5AEC0; --ink3:#7D7688; --line:#2A2430;
  --field:#241E2A; --field-focus:#2A2233; --field-border:#7D598E; --ph:#6E6579;
  --hdr-a:#241031; --hdr-b:#3A1A4E;
  --purple:#B78BD9; --purple-deep:#CBA5E6; --purple-soft:#241B2E;
  --paper:#141116; --paper2:#1A1620;
}

/* -- header: تدرج عمودي + زوايا سفلية مدورة، بدون خط تحت الرابط النشط -- */
.hdr{background:linear-gradient(180deg,var(--hdr-a),var(--hdr-b));border-radius:0 0 26px 26px;box-shadow:0 2px 14px rgba(38,25,47,.18)}
.nav a:after{display:none}
.nav a.on{font-weight:800;color:#fff}
@media(max-width:760px){
  .hdr{background:var(--surface);border-radius:0;box-shadow:0 1px 0 var(--line)}
  .tool-btn{background:var(--band);border-color:transparent;color:var(--primary)}
  html[data-theme=dark] .tool-btn{background:#241E2A}
}

/* -- ticker -- */
.ticker{background:#F4EEFA;border-bottom:0}
html[data-theme=dark] .ticker{background:#241B2E}
.ticker-badge{background:#6B21A8;border-radius:9px}
.ticker-items a{color:#5C2F72}
html[data-theme=dark] .ticker-items a{color:#D9C6EA}

/* -- section headings -- */
.sec-title{color:var(--primary)}
.sec-title.big{text-align:start;font-size:2rem;color:var(--primary)}
.sec-lead{text-align:start;margin:0 0 1rem}
.sec-band{background:var(--band);padding:2.4rem 0}
.sec-band .sec{padding:0}

/* -- page head band (بدون بطاقة وبدون تاريخ) -- */
.pg-head{background:var(--band);padding:3rem 0}
.pg-head-in{display:flex;justify-content:space-between;align-items:center;gap:1.5rem}
.pg-head-txt h1{font-family:var(--head);font-weight:700;font-size:2.7rem;color:var(--primary);margin:0;line-height:1.3}
.pg-head-txt p{color:var(--ink2);font-size:1.05rem;line-height:1.9;margin:.7rem 0 0;max-width:660px}
.pg-head-btn{margin-top:1.4rem}
.pg-dots{display:flex;gap:1rem;flex:0 0 auto}
.pg-dots i{width:18px;height:18px;border-radius:50%;background:#E8E4EA}
html[data-theme=dark] .pg-dots i{background:#2A2430}
@media(max-width:760px){.pg-dots{display:none}.pg-head{padding:2.2rem 0}.pg-head-txt h1{font-size:2rem}}

/* -- hero (من نحن / الصفحات ذات الكولاج) -- */
.about-hero{background:var(--band);border-bottom:0;padding:3.4rem 0}
.about-hero .pg-title{color:var(--primary);font-size:2.9rem;line-height:1.35}
.about-hero .pg-desc{color:var(--ink2)}
.collage img{border-radius:16px}
.collage-quote{position:absolute;top:-14px;inset-inline-end:-6px;display:grid;grid-template-columns:repeat(2,20px);gap:9px;z-index:0}
.collage-quote i{width:20px;height:20px;border-radius:50%;background:#E8E4EA}
html[data-theme=dark] .collage-quote i{background:#2A2430}

/* -- buttons: pill أساس، rect للفورمات والبطاقات -- */
.btn,.pager-btn{border:1px solid #DCD3E1;color:var(--primary);background:var(--surface)}
.btn:hover,.pager-btn:hover{background:var(--surface);border-color:var(--primary)}
html[data-theme=dark] .btn,html[data-theme=dark] .pager-btn{border-color:#3A3242}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-deep);border-color:var(--primary-deep);color:#fff}
html[data-theme=dark] .btn-primary{color:#1A1020}
.btn-rect{border-radius:10px}
.btn-block{width:100%;justify-content:center;border-radius:10px;padding:.95rem 1.4rem;font-size:1rem}
.btn-white{background:#fff;border-color:#fff;color:#5C2F72}
.btn-white:hover{background:#F2EFF4;border-color:#F2EFF4}
.btn-ghost{background:transparent;border:1.5px solid rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}

/* -- نظام الحقول (حالات الحقل من الفيجما) -- */
.f-stack{display:grid;grid-template-columns:1fr;gap:1.15rem;margin-bottom:1.2rem}
.f-field>span{color:var(--primary);font-weight:700;font-size:.88rem}
.f-field input,.f-field select,.f-field textarea{
  background:var(--field);border:1.5px solid transparent;border-radius:10px;
  padding:12px 16px;color:var(--ink);font-size:.95rem;transition:background .15s,border-color .15s}
.f-field input::placeholder,.f-field textarea::placeholder{color:var(--ph)}
.f-field input:focus,.f-field select:focus,.f-field textarea:focus{
  outline:none;background:var(--field-focus);border-color:var(--field-border);box-shadow:none}
.f-field select{appearance:none;-webkit-appearance:none;padding-inline-end:2.4rem;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A98FB5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 4v14m0 0 5-5m-5 5-5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 14px center}
html[dir=ltr] .f-field select{background-position:right 14px center}
.f-field select.is-empty{color:var(--ph)}
.f-field.err input,.f-field.err select,.f-field.err textarea{background:#FEF2F2;border-color:#DC2626;color:#DC2626}
html[data-theme=dark] .f-field.err input,html[data-theme=dark] .f-field.err select,html[data-theme=dark] .f-field.err textarea{background:#2E1717;border-color:#E05252;color:#F5B5B5}
.f-err{color:#DC2626;font-size:.8rem;font-weight:600}
html[data-theme=dark] .f-err{color:#F5B5B5}
.f-divider{border:0;border-top:1px solid var(--line);margin:1.5rem 0}
.form-card{border-radius:20px;box-shadow:0 2px 10px rgba(38,25,47,.04);padding:2rem}
.form-title{color:var(--primary);font-size:1.35rem}
.form-sub{color:var(--primary);font-size:1.25rem;margin:1.8rem 0 1.1rem}
.form-cancel{display:block;text-align:center;color:#AE97B9;font-weight:600;margin-top:1.1rem;font-size:.95rem}
.form-cancel:hover{color:var(--primary)}
html[data-theme=dark] .form-cancel{color:#7D7688}

/* -- صندوق الرفع -- */
.upload-box{background:#FBFBFB;border:1.5px dashed #DBD2E0;border-radius:12px;padding:1.7rem 1.4rem;color:#A98FB5}
.upload-box:hover{border-color:var(--field-border)}
.upload-box .up-ico{display:block;margin:0 auto .5rem;width:26px;height:26px}
.upload-box .up-ico svg{width:26px;height:26px;fill:none;stroke:#A98FB5;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-theme=dark] .upload-box{background:#1E1A22;border-color:#3A3242;color:#7D7688}

/* -- checkbox الموافقة + راديو -- */
.consent{position:relative;display:flex;align-items:center;gap:.65rem;color:var(--ink2);font-size:.9rem;cursor:pointer;line-height:1.7}
.consent input{position:absolute;opacity:0;width:0;height:0}
.consent i{width:19px;height:19px;border:1.5px solid #C9BCD1;border-radius:6px;background:var(--surface);display:inline-grid;place-items:center;flex:0 0 auto}
.consent input:checked+i{background:var(--primary);border-color:var(--primary)}
.consent input:checked+i:after{content:'';width:9px;height:5px;border:2px solid #fff;border-top:0;border-inline-end:0;transform:rotate(-45deg) translateY(-1px)}
.consent.err i{border-color:#DC2626}
.consent a{color:var(--primary);text-decoration:underline}
.radio-row{display:flex;gap:1.8rem;flex-wrap:wrap}
.rpick{position:relative;display:flex;align-items:center;gap:.5rem;color:var(--ink2);font-size:.92rem;cursor:pointer}
.rpick input{position:absolute;opacity:0;width:0;height:0}
.rpick i{width:18px;height:18px;border-radius:50%;border:2px solid #D5CBDA;background:var(--surface);flex:0 0 auto}
.rpick input:checked+i{border-color:var(--primary);background:var(--primary);box-shadow:inset 0 0 0 3.5px var(--surface)}

/* -- بطاقات الاختيار (طلب خدمة) -- */
.choice{align-items:center;text-align:center;gap:.6rem;padding:1.2rem 1rem;background:var(--surface);border:1.5px solid var(--line);border-radius:14px}
.choice:hover{border-color:var(--accent)}
.choice:has(input:checked){border-color:var(--accent);background:var(--surface);box-shadow:none}
.choice-ico{width:44px;height:44px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center}
.choice-ico svg{width:20px;height:20px;fill:none;stroke:var(--primary);stroke-width:1.9;stroke-linecap:round}
.choice b{font-size:.92rem;color:var(--ink);font-weight:700}
.choice-ring{width:18px;height:18px;border-radius:50%;border:2px solid #D5CBDA;align-self:center;margin-top:.1rem}
.choice input:checked~.choice-ring{border-color:var(--primary);background:var(--primary);box-shadow:inset 0 0 0 3.5px var(--surface)}

/* -- السايدبار والخطوات -- */
.side-box{background:var(--band);border:0;border-radius:20px;padding:1.7rem}
.side-box>b{color:var(--primary);font-family:var(--head);font-size:1.1rem;display:block;margin-bottom:1rem}
.steps li:before{background:var(--surface);border:1px solid #E8E4EA;color:var(--primary)}
html[data-theme=dark] .steps li:before{border-color:#2A2430}
.steps li b{color:var(--ink)}

/* -- تواصل معنا: البطاقتان + بطاقة معلومات التواصل -- */
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
.promo{background:var(--band);border-radius:20px;padding:1.8rem}
.promo b{font-family:var(--head);font-size:1.25rem;color:var(--primary);display:block;margin-bottom:.4rem}
.promo p{color:var(--ink2);margin:0 0 1.1rem;font-size:.95rem}
@media(max-width:760px){.promo-grid{grid-template-columns:1fr}}
.cside{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:1.7rem}
.cside>b{color:var(--primary);font-family:var(--head);font-size:1.15rem;display:block;margin-bottom:1.1rem}
.cside-mail{display:flex;align-items:center;gap:.6rem;color:var(--primary);font-weight:600;font-size:.92rem;word-break:break-all}
.cside-mail .ic{width:34px;height:34px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center;flex:0 0 auto}
.cside-mail .ic svg{width:16px;height:16px;fill:none;stroke:var(--primary);stroke-width:1.8;stroke-linecap:round}
.soc-circles{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.1rem 0}
.soc-circles a{width:37px;height:37px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center;color:var(--primary);transition:background .2s}
.soc-circles a:hover{background:#E8DEF0}
.soc-circles svg{width:16px;height:16px;fill:currentColor}
.cside-note{color:var(--ink3);font-size:.85rem;line-height:1.8;margin:0}

/* -- من نحن: الرؤية والرسالة / ماذا نقدم / القيم / CTA -- */
.vm-card{background:var(--band);border:0}
.vm-card.primary{background:var(--surface);border:1.5px solid var(--primary)}
.vm-card b{color:var(--primary)}
.offer{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:none}
.offer-ico{background:var(--primary-soft);border-radius:12px}
.offer b{color:var(--primary)}
.vals-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem;margin-top:1.4rem}
@media(max-width:1000px){.vals-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.vals-grid{grid-template-columns:1fr}}
.val-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:1.4rem;padding-top:1.2rem}
.val-num{position:absolute;top:.9rem;inset-inline-end:1.1rem;font-family:var(--head);font-weight:800;font-size:1.7rem;color:#E8E0EE;line-height:1}
html[data-theme=dark] .val-num{color:#2E2536}
.val-card b{display:block;font-family:var(--head);font-size:1.2rem;color:var(--primary);margin:1.4rem 0 .4rem}
.val-card p{color:var(--ink2);font-size:.9rem;line-height:1.8;margin:0}
.cta-band{background:var(--primary);padding:4rem 0;text-align:center;margin-top:1.6rem}
html[data-theme=dark] .cta-band{background:#3A2049}
.cta-band h2{font-family:var(--head);font-weight:700;font-size:2.2rem;color:#fff;margin:0 0 .8rem}
.cta-band p{color:rgba(255,255,255,.85);font-size:1.05rem;margin:0 0 1.8rem}
.cta-actions{display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap}

/* -- الوظائف -- */
.offer-ico.emoji{width:46px;height:46px;border-radius:50%;background:var(--primary-soft);font-size:1.25rem}
.filters{grid-template-columns:1fr 150px 150px 150px;gap:.7rem;margin:1.2rem 0 1.5rem}
.filters input,.filters select{background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink)}
.filters input::placeholder{color:var(--ph)}
.filters select{appearance:none;-webkit-appearance:none;padding-inline-end:2rem;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A98FB5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 12px center;color:var(--ink2)}
html[dir=ltr] .filters select{background-position:right 12px center}
@media(max-width:800px){.filters{grid-template-columns:1fr 1fr}.filters input[type=search]{grid-column:1/-1}}
.job-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:1.5rem 1.7rem;box-shadow:none;margin-bottom:1rem}
.job-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.8rem}
.job-head h3{font-family:var(--head);font-weight:700;font-size:1.35rem;color:var(--primary);margin:0}
.job-tags{margin-bottom:.7rem}
.job-tags span{background:var(--surface);border:1px solid #E7E0EB;color:var(--ink2);font-size:.78rem;font-weight:600;padding:.35rem .95rem;border-radius:8px}
html[data-theme=dark] .job-tags span{border-color:#3A3242}
.job-card p{color:var(--ink2);font-size:.92rem;margin:0 0 .6rem;line-height:1.8}
.job-card small{color:var(--ink3);font-size:.78rem}
.jobs-empty{background:var(--surface);border:1px solid var(--line);border-radius:20px;text-align:center;padding:3.2rem 1.5rem}
.jobs-empty h3{font-family:var(--head);font-weight:700;font-size:1.5rem;color:var(--ink);margin:0 0 .5rem}
.jobs-empty p{color:var(--ink2);margin:0 0 1.4rem}
.cv-panel{background:#F6F3F9;border-radius:24px;padding:2rem;margin-top:1.2rem}
html[data-theme=dark] .cv-panel{background:#211A26}
.cv-panel .f-field input,.cv-panel .f-field select,.cv-panel .f-field textarea{background:var(--surface);border-color:#E7E0EB}
html[data-theme=dark] .cv-panel .f-field input,html[data-theme=dark] .cv-panel .f-field select,html[data-theme=dark] .cv-panel .f-field textarea{border-color:#3A3242}
.cv-panel .f-field input:focus,.cv-panel .f-field select:focus,.cv-panel .f-field textarea:focus{border-color:var(--field-border)}
.cv-panel .upload-box{background:var(--surface)}

/* -- مودال النجاح -- */
.qwd-modal{position:fixed;inset:0;z-index:220;display:grid;place-items:center;background:rgba(22,15,27,.55);padding:1rem;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.qwd-modal-card{background:var(--surface);border-radius:20px;max-width:500px;width:100%;padding:2.7rem 2rem;text-align:center;box-shadow:0 24px 64px rgba(0,0,0,.3)}
.qwd-modal-ico{width:68px;height:68px;border-radius:50%;background:var(--primary-soft);display:grid;place-items:center;margin:0 auto 1.3rem}
.qwd-modal-ico svg{width:30px;height:30px;fill:none;stroke:var(--primary);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.qwd-modal-card h2{font-family:var(--head);font-weight:700;font-size:1.5rem;color:var(--primary);margin:0 0 .6rem}
.qwd-modal-card p{color:var(--ink2);line-height:1.9;margin:0 0 1.6rem;font-size:.95rem}
.qwd-modal-actions{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap}

/* -- footer -- */
.ftr{border-top:1px solid var(--line)}
.ftr-col h4{color:var(--primary)}
.ftr-col a{color:var(--ink2)}
.ftr-soc a{color:var(--ink2)}
.ftr-tag{color:var(--ink2)}
.ftr-sub input{background:var(--surface);border:1px solid #E4DDE9;border-radius:10px}
html[data-theme=dark] .ftr-sub input{border-color:#3A3242}
.ftr-sub button{border-radius:10px}
.ftr-sub-lbl{color:var(--ink)}
.ftr-bottom{color:var(--ink2)}
.ftr-bottom a{color:var(--ink2)}
.ftr-disclaimer{display:none}
@media(max-width:600px){.ftr-sub{flex-wrap:wrap}.ftr-sub input{width:100%;flex:1 1 100%}.ftr-sub button{padding:10px 26px}}

/* -- عام -- */
.empty{color:var(--ink2)}
.form-alert{border-radius:10px}

/* ============ R3G MOBILE + DARK ============ */
/* -- توكنات الدارك مضبوطة على فريم الجوال الليلي -- */
html[data-theme=dark]{
  --surface:#211A26; --card:#211A26;
  --line:#2E2634;
}

/* -- الوضع الليلي: اللوقو أبيض دائماً على الخلفيات الداكنة -- */
html[data-theme=dark] .hdr .brand-logo,
html[data-theme=dark] .ftr .brand-logo{filter:brightness(0) invert(1)}
html[data-theme=dark] .ftr .brand-mark{color:#F2EEF5}

/* -- البادجات بالدارك تبقى بنفسجية مشبعة بنص أبيض (مثل الفريم) -- */
html[data-theme=dark] .badge,
html[data-theme=dark] .badge-news,
html[data-theme=dark] .badge-sports,
html[data-theme=dark] .badge-article,
html[data-theme=dark] .ticker-badge{background:#5C2F72;color:#fff}
html[data-theme=dark] .cat.on{background:#5C2F72;border-color:#5C2F72;color:#fff}

/* -- هيدر الجوال: حضور واضح مطابق للفريم -- */
@media(max-width:760px){
  .hdr{
    background:var(--surface);
    border-radius:0;
    box-shadow:none;
    border-bottom:1px solid var(--line);
    padding-top:env(safe-area-inset-top);
  }
  .hdr-main-in{height:64px;gap:.8rem}
  .brand-logo{filter:none;height:40px}
  .brand-mark{color:var(--primary);font-size:1.25rem}
  .hdr-side{justify-content:flex-end}
  .hdr-tools{gap:.55rem}
  .tool-btn{
    width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;
    background:#F7F7F7;border:0;color:#5C2F72;font-size:.78rem;font-weight:700;
  }
  .tool-btn svg{width:18px;height:18px}
  html[data-theme=dark] .hdr{background:var(--bg);border-bottom-color:#211A26}
  html[data-theme=dark] .tool-btn{background:#211A26;color:#C8BECF}
  html[data-theme=dark] .brand-logo{filter:brightness(0) invert(1)}
  html[data-theme=dark] .brand-mark{color:#F2EEF5}
}

/* -- التاب بار: أمان النوتش السفلي + ألوان مضبوطة -- */
.tabbar{padding-bottom:env(safe-area-inset-bottom)}
.tabbar a.on{color:var(--primary)}
html[data-theme=dark] .tabbar{background:var(--bg);border-top-color:#211A26;box-shadow:none}
html[data-theme=dark] .tabbar a{color:#6E6579}
html[data-theme=dark] .tabbar a.on{color:#C8BECF}

/* ============ R3H PURPLE MOBILE HEADER ============ */
/* -- هيدر الجوال بنفسجي متدرج مثل الدسكتوب -- */
@media(max-width:760px){
  .hdr{
    background:linear-gradient(180deg,var(--hdr-a),var(--hdr-b));
    border-bottom:0;
    border-radius:0 0 18px 18px;
    box-shadow:0 2px 14px rgba(38,25,47,.18);
    padding-top:env(safe-area-inset-top);
  }
  .brand-logo{filter:brightness(0) invert(1);height:40px}
  .brand-mark{color:#fff}
  .tool-btn{
    width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;
    background:rgba(255,255,255,.14);border:0;color:#fff;
    font-size:.78rem;font-weight:700;
  }
  .tool-btn:hover{background:rgba(255,255,255,.24)}
  .tool-btn svg{width:18px;height:18px}
  html[data-theme=dark] .hdr{background:linear-gradient(180deg,var(--hdr-a),var(--hdr-b))}
  html[data-theme=dark] .tool-btn{background:rgba(255,255,255,.12);color:#EDE6F2}
  html[data-theme=dark] .brand-logo{filter:brightness(0) invert(1)}
  html[data-theme=dark] .brand-mark{color:#fff}
}

/* -- التاب بار: 6 أعمدة + تناسق -- */
.tabbar{grid-template-columns:repeat(6,1fr)}
.tabbar a{padding:5px 0}
.tabbar a span{font-size:.6rem;letter-spacing:0}
.tabbar svg{width:21px;height:21px}

/* ============ R4B DALNI ============ */
.dalni{position:fixed;bottom:18px;left:0;right:0;z-index:180;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.dalni>*{pointer-events:auto}
.dalni.mini .dalni-bar{display:none}
.dalni-bar{
  display:flex;align-items:center;gap:.5rem;width:min(460px,calc(100vw - 24px));
  background:linear-gradient(135deg,var(--hdr-a),var(--hdr-b));
  border-radius:999px;padding:.45rem .55rem .45rem .45rem;
  box-shadow:0 10px 34px rgba(38,25,47,.35);
}
.dalni-bar input{
  flex:1;background:transparent;border:0;color:#fff;font-family:var(--body);
  font-size:.92rem;padding:.45rem .3rem;min-width:0
}
.dalni-bar input::placeholder{color:rgba(255,255,255,.65)}
.dalni-bar input:focus{outline:none}
.dalni-send,.dalni-min{
  width:36px;height:36px;border-radius:50%;border:0;cursor:pointer;flex:0 0 auto;
  display:grid;place-items:center;background:rgba(255,255,255,.16);color:#fff
}
.dalni-send{background:#fff;color:#5C2F72}
.dalni-send svg,.dalni-min svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.dalni-send svg{transform:scaleX(-1)}
html[dir=ltr] .dalni-send svg{transform:none}

/* نقاط اللوقو — مؤشر الهوية والكتابة */
.dalni-logo-dots{display:inline-flex;gap:4px;align-items:center;padding:0 .35rem;flex:0 0 auto}
.dalni-logo-dots i{width:7px;height:7px;border-radius:50%;background:#fff;opacity:.9}
.dalni-logo-dots i:nth-child(2){width:9px;height:9px}
.dalni-bar .dalni-logo-dots i{animation:dalniPulse 2.6s infinite}
.dalni-bar .dalni-logo-dots i:nth-child(2){animation-delay:.25s}
.dalni-bar .dalni-logo-dots i:nth-child(3){animation-delay:.5s}
@keyframes dalniPulse{0%,100%{opacity:.55;transform:translateY(0)}12%{opacity:1;transform:translateY(-2px)}}

.dalni-pill{
  position:fixed;bottom:18px;inset-inline-end:14px;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--hdr-a),var(--hdr-b));
  border-radius:999px;padding:.7rem .85rem;box-shadow:0 8px 26px rgba(38,25,47,.35)
}
.dalni-pill .dalni-logo-dots i{animation:dalniPulse 2.6s infinite}
.dalni-pill .dalni-logo-dots i:nth-child(2){animation-delay:.25s}
.dalni-pill .dalni-logo-dots i:nth-child(3){animation-delay:.5s}

/* اللوحة */
.dalni-panel{
  width:min(460px,calc(100vw - 24px));margin-bottom:.7rem;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;
  box-shadow:0 24px 60px rgba(20,12,26,.3);overflow:hidden;
  display:flex;flex-direction:column;max-height:min(560px,70vh)
}
.dalni-head{display:flex;align-items:center;gap:.6rem;padding:.85rem 1rem;background:linear-gradient(135deg,var(--hdr-a),var(--hdr-b))}
.dalni-head .dalni-logo-dots i{background:#fff}
.dalni-head-txt{flex:1;display:flex;flex-direction:column;line-height:1.3}
.dalni-head-txt b{color:#fff;font-family:var(--head);font-size:1rem}
.dalni-head-txt span{color:rgba(255,255,255,.72);font-size:.72rem}
.dalni-x{width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:grid;place-items:center}
.dalni-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.dalni-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;min-height:120px}
.dalni-m{max-width:85%;padding:.6rem .9rem;border-radius:14px;font-size:.9rem;line-height:1.8}
.dalni-m.a{background:var(--band);color:var(--ink);align-self:flex-start;border-start-start-radius:4px}
.dalni-m.u{background:#5C2F72;color:#fff;align-self:flex-end;border-start-end-radius:4px}
html[data-theme=dark] .dalni-m.u{background:#7D598E}
.dalni-m.typing{padding:.7rem .9rem}
.dalni-m.typing .dalni-logo-dots i{background:var(--ink3);animation:dalniPulse 1.2s infinite}
.dalni-m.typing .dalni-logo-dots i:nth-child(2){animation-delay:.15s}
.dalni-m.typing .dalni-logo-dots i:nth-child(3){animation-delay:.3s}
.dalni-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding:0 1rem 1rem}
.dalni-chips button{
  border:1px solid var(--line);background:var(--surface);color:var(--primary);
  font-family:var(--body);font-size:.78rem;font-weight:700;
  padding:.42rem .85rem;border-radius:999px;cursor:pointer
}
.dalni-chips button:hover{border-color:var(--primary)}

/* بطاقة الرسالة الجاهزة */
.dalni-card{align-self:stretch;background:var(--surface);border:1.5px solid var(--primary);border-radius:16px;padding:1rem;display:flex;flex-direction:column;gap:.7rem}
.dalni-card-to{font-size:.82rem;color:var(--ink2)}
.dalni-card-to b{color:var(--primary)}
.dalni-card-preview{background:var(--band);border-radius:12px;padding:.8rem .95rem;font-size:.85rem;line-height:1.9;color:var(--ink);max-height:180px;overflow-y:auto}
.dalni-wa{
  display:flex;align-items:center;justify-content:center;gap:.5rem;
  background:#5C2F72;color:#fff;font-weight:700;font-size:.92rem;
  border-radius:10px;padding:.75rem;text-align:center
}
.dalni-wa:hover{background:#46215A;color:#fff}
html[data-theme=dark] .dalni-wa{background:#7D598E}
.dalni-wa svg{width:19px;height:19px;fill:currentColor}
.dalni-again{border:0;background:transparent;color:#AE97B9;font-family:var(--body);font-size:.8rem;font-weight:600;cursor:pointer}
.dalni-again:hover{color:var(--primary)}

@media(max-width:760px){
  .dalni{bottom:calc(74px + env(safe-area-inset-bottom))}
  .dalni-pill{bottom:calc(74px + env(safe-area-inset-bottom))}
  .dalni-panel{max-height:62vh}
}
@media print{.dalni{display:none}}

/* ============ R4C DALNI DOCK ============ */
/* دسكتوب: يرسي بالزاوية بدل منتصف الشاشة */
@media(min-width:761px){
  .dalni{left:auto;right:auto;inset-inline-end:26px;bottom:22px;align-items:flex-end}
  html[dir=rtl] .dalni{left:26px;right:auto}
  html[dir=ltr] .dalni{right:26px;left:auto}
  .dalni-bar,.dalni-panel{width:400px}
}

/* اللوحة: حركة دخول + ارتفاع على قد المحتوى */
.dalni-panel{animation:dalniUp .22s ease}
@keyframes dalniUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.dalni-msgs{min-height:0;padding:.9rem 1rem .5rem}
.dalni-chips{padding:.55rem 1rem 1rem}
.dalni-m{box-shadow:0 1px 2px rgba(38,25,47,.05)}

/* شريط الإدخال: ظل أخف وحد أنعم */
.dalni-bar{box-shadow:0 8px 26px rgba(38,25,47,.28)}

/* ============ R4D DALNI HIDDEN ============ */
.dalni-panel[hidden]{display:none !important}
.dalni-pill[hidden]{display:none !important}

/* ============ R4E DALNI MINI ============ */
.dalni-pill{display:flex;align-items:center;gap:.15rem;padding:.62rem .95rem}
.dalni-pill b{color:#fff;font-family:var(--head);font-weight:700;font-size:.92rem;margin-inline-start:.3rem}
.dalni-pill:hover{transform:translateY(-2px);transition:transform .18s ease}

/* ============ R4G DALNI LINKS ============ */
.dalni-m a.dalni-link{color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px;word-break:break-all}
.dalni-m.u a.dalni-link{color:#fff}
