﻿
:root { --bg: #f3f4f6; --surface: #fff; --ink: #111317; --ink-2: #1f242b; --muted: #6b7280; --line: #e5e7eb; --line-2: #eef0f3; --accent: #f08a1e;
        --accent-2: #ffb347; --good: #16a34a; --bad: #dc2626; --info: #2563eb; --chip: #f6f7f9; --radius: 14px; --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03); 
        --shadow: 0 8px 24px -12px rgba(15,23,42,.15), 0 2px 6px rgba(15,23,42,.04); 
           --ta: #ce1126;
    --ta-rgb: 206, 17, 38;
    --tb: #c1272d;
    --tb-rgb: 193, 39, 45;
}

h1 { line-height: normal; }

main, .main {  }

.myaccount main > section { }


/* ===== global ===== */
.btn { background: linear-gradient(180deg,var(--accent),#dd7710); color: #fff; font-weight: 800; padding: 10px 15px; border-radius: 10px; font-size: 12px; box-shadow: 0 6px 16px -6px rgba(240,138,30,.6); display: inline-flex; align-items: center; gap: 6px }

span.field-validation-error {
    color: red;
    display: block;
}

.acc-avatar{
    border-radius: 50%;
}

  /* ─── hero strip with live counters ─── */
  .hero-row{
    display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-bottom:22px;
  }

  /* featured spotlight (left, RTL) */
  .spotlight{
    position:relative;border-radius:18px;overflow:hidden;color:#fff;
    background:
      radial-gradient(80% 100% at 100% 0%, rgba(240,138,30,.45), transparent 55%),
      radial-gradient(80% 80% at 0% 100%, rgba(124,58,237,.6), transparent 60%),
      linear-gradient(135deg,#1a1238 0%,#0f1029 100%);
    padding:24px;display:flex;flex-direction:column;gap:14px;min-height:280px;
    border:1px solid rgba(255,255,255,.08);
  }
  .spotlight::before{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:
      radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,.7), transparent 2px),
      radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,.5), transparent 2px),
      radial-gradient(2px 2px at 85% 70%, rgba(255,255,255,.6), transparent 3px),
      radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.5), transparent 2px);
  }
  .spotlight > *{position:relative;z-index:1}
  .sp-tag{
    align-self:flex-start;display:inline-flex;align-items:center;gap:6px;
    background:rgba(255,255,255,.12);backdrop-filter:blur(8px);
    padding:5px 11px;border-radius:99px;font-size:11.5px;font-weight:800;
    text-transform:uppercase;letter-spacing:.4px;
  }
  .sp-tag .dot{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:p 1.4s infinite;box-shadow:0 0 8px #22c55e}
  @keyframes p{50%{opacity:.35}}
  .sp-flex{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
  .sp-logo{
    width:88px;height:88px;border-radius:20px;background:#fff;display:grid;place-items:center;
    box-shadow:0 8px 28px -8px rgba(0,0,0,.5);flex-shrink:0;
  }
  .sp-logo svg{width:64px;height:64px}
  .sp-body h2{margin:0;font-size:26px;font-weight:800;line-height:1.25;text-shadow:0 4px 18px rgba(0,0,0,.4)}
  .sp-body p{margin:6px 0 0;color:#e7d9ff;font-size:13.5px;line-height:1.7;max-width:380px}

  .sp-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
  .sp-stat{
    background:rgba(255,255,255,.07);backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.1);border-radius:12px;
    padding:10px 14px;display:flex;align-items:center;gap:10px;flex:1;min-width:120px;
  }
  .sp-stat .ic{width:34px;height:34px;border-radius:9px;background:rgba(240,138,30,.18);display:grid;place-items:center;color:var(--accent);flex-shrink:0}
  .sp-stat b{display:block;font-size:16px;font-weight:800;font-family:"Cairo";line-height:1}
  .sp-stat small{display:block;font-size:11px;color:#cbd0d8;margin-top:3px}

  .sp-cta{
    display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
    background:var(--accent);color:#fff;font-weight:800;font-size:14px;
    padding:12px 22px;border-radius:11px;cursor:pointer;border:0;
    box-shadow:0 10px 24px -8px rgba(240,138,30,.5);transition:.15s;
  }
  .sp-cta:hover{background:#e07b15;transform:translateY(-1px)}

  /* live stats column (right side, RTL) */
  .live-stack{display:grid;gap:14px;align-content:start}
  .live-card{
    background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;
    display:flex;align-items:center;gap:12px;box-shadow:var(--shadow-sm);
  }
  .live-card .lic{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
  .live-card.live .lic{background:rgba(220,38,38,.1);color:var(--bad)}
  .live-card.soon .lic{background:rgba(240,138,30,.12);color:var(--accent)}
  .live-card.players .lic{background:rgba(37,99,235,.1);color:var(--info)}
  .live-card.prize .lic{background:rgba(22,163,74,.1);color:var(--good)}
  .live-card b{display:block;font-size:22px;font-weight:900;font-family:"Cairo";color:var(--ink);line-height:1}
  .live-card small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
  .live-card .arr{margin-inline-start:auto;color:var(--muted)}

  /* ─── filter chips ─── */
  .filters{
    display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:6px;
    scrollbar-width:none;
  }
  .filters::-webkit-scrollbar{display:none}
  .filt{
    flex-shrink:0;padding:9px 16px;border:1px solid var(--line);border-radius:99px;
    background:#fff;font-size:13.5px;font-weight:700;color:var(--ink-2);cursor:pointer;
    display:inline-flex;align-items:center;gap:7px;transition:.15s;
  }
  .filt:hover{border-color:#cbd0d8}
  .filt[aria-pressed="true"]{background:#0f1115;color:#fff;border-color:#0f1115}
  .filt .cnt{
    background:rgba(255,255,255,.18);color:inherit;padding:2px 8px;border-radius:99px;
    font-size:11.5px;font-weight:800;font-family:"Cairo";
  }
  .filt:not([aria-pressed="true"]) .cnt{background:#f3f4f6;color:var(--muted)}

  /* ─── competitions grid ─── */
  .cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;margin-bottom: 10px;}

  .ccard{
    background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;
    display:flex;flex-direction:column;transition:.15s;cursor:pointer;
    box-shadow:var(--shadow-sm);position:relative;
  }
  .ccard:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#cbd0d8}

  .cc-banner{
    height:96px;background:linear-gradient(135deg,#0f1029,#251a4a);position:relative;
    display:flex;align-items:center;justify-content:center;overflow:hidden;
  }
  .cc-banner::before{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:
      radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent 2px),
      radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent 2px),
      radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,.5), transparent 2px);
  }
  .cc-banner.t-wc{background:radial-gradient(80% 100% at 50% 0%, rgba(240,138,30,.5), transparent 60%),linear-gradient(135deg,#1a1238,#0f1029)}
  .cc-banner.t-ucl{background:radial-gradient(80% 100% at 50% 0%, rgba(37,99,235,.5), transparent 60%),linear-gradient(135deg,#0f1029,#001a4d)}
  .cc-banner.t-pl{background:radial-gradient(80% 100% at 50% 0%, rgba(124,58,237,.5), transparent 60%),linear-gradient(135deg,#1f0f3d,#37004d)}
  .cc-banner.t-laliga{background:radial-gradient(80% 100% at 50% 0%, rgba(220,38,38,.4), transparent 60%),linear-gradient(135deg,#4d0a0a,#3d0f1f)}
  .cc-banner.t-egy{background:radial-gradient(80% 100% at 50% 0%, rgba(206,17,38,.4), transparent 60%),linear-gradient(135deg,#1a1d23,#0f1115)}
  .cc-banner.t-caf{background:radial-gradient(80% 100% at 50% 0%, rgba(34,197,94,.4), transparent 60%),linear-gradient(135deg,#0a2a1a,#0f1029)}
  .cc-banner.t-saudi{background:radial-gradient(80% 100% at 50% 0%, rgba(21,128,61,.5), transparent 60%),linear-gradient(135deg,#0a2a1a,#0f1029)}
  .cc-banner.t-roma{background:radial-gradient(80% 100% at 50% 0%, rgba(245,158,11,.4), transparent 60%),linear-gradient(135deg,#3d1f0a,#1a1238)}

  .cc-logo{
    width:64px;height:64px;border-radius:16px;background:#fff;display:grid;place-items:center;
    box-shadow:0 8px 24px -8px rgba(0,0,0,.5);position:relative;z-index:1;
  }
  .cc-logo svg{width:46px;height:46px}

  .cc-live-pill{
    position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:5px;
    background:rgba(255,255,255,.12);backdrop-filter:blur(8px);
    color:#fff;font-size:10.5px;font-weight:800;padding:4px 9px;border-radius:99px;
    border:1px solid rgba(255,255,255,.18);
  }
  .cc-live-pill .d{width:6px;height:6px;border-radius:50%;background:#22c55e;animation:p 1.4s infinite}
  .cc-live-pill.hot{background:rgba(220,38,38,.85);color:#fff;border-color:transparent}
  .cc-live-pill.hot .d{background:#fff}

  .cc-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
  .cc-title{margin:0;font-size:15.5px;font-weight:800;line-height:1.4}
  .cc-sub{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
  .cc-sub .sep{width:3px;height:3px;border-radius:50%;background:#cbd0d8}

  .cc-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:10px;border-top:1px solid var(--line-2);margin-top:auto}
  .cc-mi{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted)}
  .cc-mi b{font-size:13px;font-weight:800;color:var(--ink);font-family:"Cairo"}
  .cc-mi.prize b{color:var(--accent)}
  .cc-mi.deadline.urgent b{color:var(--bad)}

  .cc-foot{
    display:flex;align-items:center;gap:10px;padding:0 16px 16px;
  }
  .cc-progress{
    flex:1;height:6px;border-radius:99px;background:#f3f4f6;overflow:hidden;position:relative;
  }
  .cc-progress span{
    display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));
    border-radius:99px;
  }
  .cc-progress-text{font-size:11px;color:var(--muted);font-weight:700;font-family:"Cairo"}

  .cc-action{
    width:100%;padding:11px 14px;border-radius:10px;font-weight:800;font-size:13.5px;
    background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;
    transition:.15s;cursor:pointer;border:0;
  }
  .cc-action:hover{background:#e07b15}
  .cc-action.joined{background:#0f1115;color:#fff}
  .cc-action.joined:hover{background:#1a1d23}
  .cc-action.locked{background:#f3f4f6;color:var(--muted);cursor:not-allowed}

  .cc-action-wrap{padding:0 16px 16px}

  /* status corner badges */
  .cc-corner{
    position:absolute;top:12px;left:12px;background:var(--accent);color:#fff;
    font-size:10.5px;font-weight:800;padding:4px 9px;border-radius:99px;letter-spacing:.3px;
    box-shadow:0 4px 12px -4px rgba(240,138,30,.6);
  }
  .cc-corner.joined{background:var(--good)}
  .cc-corner.new{background:#7c3aed}

  /* ─── countdown strip ─── */
  .urgency{
    margin-top:32px;border-radius:16px;background:#0f1115;color:#fff;padding:18px 22px;
    display:flex;align-items:center;gap:18px;flex-wrap:wrap;border:1px solid #1a1d23;
    background:linear-gradient(135deg,#0f1115,#1a1238)
  }
  .urgency .icbig{width:54px;height:54px;border-radius:14px;background:rgba(240,138,30,.18);display:grid;place-items:center;color:var(--accent);flex-shrink:0}
  .urgency h3{margin:0;font-size:17px;font-weight:800}
  .urgency p{margin:4px 0 0;color:#cbd0d8;font-size:13px}
  .urgency .timer{display:flex;gap:8px;margin-inline-start:auto}
  .urgency .tu{
    background:rgba(255,255,255,.08);border-radius:10px;padding:8px 12px;text-align:center;min-width:54px;
  }
  .urgency .tu b{display:block;font-size:20px;font-weight:900;font-family:"Cairo";color:var(--accent);line-height:1}
  .urgency .tu small{display:block;font-size:10.5px;color:#cbd0d8;margin-top:3px}
  .urgency .go{
    background:var(--accent);color:#fff;font-weight:800;padding:11px 18px;border-radius:10px;font-size:13.5px;
    display:inline-flex;align-items:center;gap:6px;
  }

  /* section heads inline (no panel) */
  .sec-head{display:flex;align-items:center;gap:10px;margin:24px 4px 14px}
  .sec-head h2{margin:0;font-size:18px;font-weight:800;display:flex;align-items:center;gap:10px}
  .sec-head h2 .bar{width:4px;height:20px;border-radius:3px;background:var(--accent)}
  .sec-head .more{margin-inline-start:auto;font-size:13px;color:var(--accent);font-weight:700;cursor:pointer}

  @media (max-width:900px){
    .hero-row{grid-template-columns:1fr}
    .live-stack{grid-template-columns:repeat(2,1fr)}
  }
  @media (max-width:560px){
    .live-stack{grid-template-columns:1fr}
    .urgency .timer{margin-inline-start:0;width:100%;justify-content:space-between}
    .sp-body h2{font-size:22px}
  }



.panel-title svg { width: 18px; height: 18px; color: var(--accent); }


.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(120% 100% at 80% 20%, rgba(240, 138, 30, .45), transparent 55%), radial-gradient(80% 80% at 20% 100%, rgba(124, 58, 237, .5), transparent 60%), linear-gradient(180deg, #1a1238 0%, #251a4a 60%, #0f1029 100%); }
    .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 10% 30%, rgba(255, 255, 255, .7), transparent 2px), radial-gradient(1px 1px at 40% 20%, rgba(255, 255, 255, .5), transparent 2px), radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, .6), transparent 2px), radial-gradient(1px 1px at 90% 25%, rgba(255, 255, 255, .7), transparent 2px), radial-gradient(1px 1px at 25% 60%, rgba(255, 255, 255, .5), transparent 2px), radial-gradient(1px 1px at 55% 70%, rgba(255, 255, 255, .6), transparent 2px), radial-gradient(2px 2px at 85% 75%, rgba(255, 255, 255, .6), transparent 3px), radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, .5), transparent 2px); pointer-events: none; }
.stadium { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; opacity: .55; pointer-events: none; }
    .stadium svg { width: 100%; height: 100%; }
.hero-inner { max-width: min(1090px, calc(100% - 20px)); margin: 0 auto; padding: 46px 20px 22px; position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: radial-gradient(50% 90% at 50% 100%, rgba(0, 0, 0, .85), rgba(0, 0, 0, .4) 60%, transparent 90%); pointer-events: none; }
.hero h1 { font-size: 39px; font-weight: 800; margin: 0; text-align: right; text-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
    .hero h1 .tr { color: var(--accent); }
.hero p { margin: 8px 0 0; color: #e7d9ff; font-size: 13px; text-align: right; }
.hero .lead { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
    .hero .lead .trophy { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 24px -8px rgba(245, 158, 11, .6); }



.league-logo { padding: 5px 2px; /* width: 192px; */ /* height: 132px; */ /* border-radius: 6px; */ /* overflow: hidden; */ background: #fff; display: grid; place-items: center; position: relative; }
    .league-logo img { width: 150px; }

  /* user dashboard strip */
  .dash{
    background:linear-gradient(135deg,#fff7ed,#fff);
    border:1px solid #fed7aa;
    border-radius:14px;
    padding:18px 22px;
    margin-bottom:10px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:22px;
    align-items:center
  }
  .dash .av{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#ff5e3a);display:grid;place-items:center;color:#fff;font-weight:800;font-size:26px}
  .dash .who b{display:block;font-size:18px;font-weight:800}
  .dash .who small{color:var(--muted);font-size:13px}
  .dash .nums{display:flex;gap:24px;align-items:center}
  .dash .num-tile b{display:block;font-size:24px;font-weight:900;color:var(--accent);font-family:"Cairo";line-height:1}
  .dash .num-tile small{color:var(--muted);font-size:12px;margin-top:4px;display:block}



/* featured matches mini */
  .featured{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:18px}
  .fm{
    border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff;
    display:flex;flex-direction:column;gap:10px;cursor:pointer;
    transition:transform .15s,box-shadow .15s
  }
  .fm:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
  .fm .tour{font-size:11.5px;color:var(--accent);font-weight:700;text-transform:uppercase;letter-spacing:.4px}
  .fm .vs{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .fm .t{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;flex:1}
  .fm .t .flag{width:38px;height:38px;font-size:9.5px}
  .fm .t .nm{font-size:12.5px;font-weight:700}
  .fm .mid{font-size:14px;color:var(--muted);font-weight:700;font-family:"Cairo"}
  .fm .ft{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;color:var(--muted);padding-top:8px;border-top:1px solid var(--line-2)}
  .fm .ft .live{color:var(--bad);font-weight:800;display:inline-flex;align-items:center;gap:5px}
  .fm .ft .live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--bad);animation:p 1.2s infinite}
  @keyframes p{50%{opacity:.3}}

  /* results strip */
  .results{padding:14px 18px;display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin}
  .rs{flex:0 0 auto;min-width:220px;background:#fafbfc;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
  .rs .row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
  .rs .row .nm{font-weight:600}
  .rs .row .sc{font-weight:900;font-family:"Cairo";color:var(--ink);min-width:18px;text-align:center}
  .rs .row.win .nm{font-weight:800}
  .rs .row.win .sc{color:var(--good)}
  .rs .ft{margin-top:6px;font-size:11.5px;color:var(--muted);display:flex;justify-content:space-between}



/* ===== HowToWin ===== */
.tiers {  gap: 10px; }
.tier { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
    .tier .hd { background: #0f1115; color: #fff; padding: 12px 10px; display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--accent); }
    .tier .pts { font-size: 34px; font-weight: 900; color: var(--accent); font-family: inherit; line-height: 1; letter-spacing: -1px; }
    .tier .label { font-size: 12px; line-height: 1.35; }

    .tier .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
    .tier .badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--good); background: #dcfce7; border: 1px solid #86efac; padding: 3px 8px; border-radius: 99px; }
    .tier .ex { background: #fafbfc; border: 1px dashed var(--line); border-radius: 10px; padding: 12px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
        .tier .ex b { color: var(--accent); font-weight: 800; }
    .tier .miniMatch { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-weight: 700; gap: 8px; }
        .tier .miniMatch .vs { font-size: 18px; font-weight: 900; color: var(--accent); font-family: inherit; }

.rules { padding: 10px; }
    .rules .note { background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
        .rules .note .ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; border: 1px solid #fed7aa; }


.steps {  gap: 14px; padding:  10px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
    .step .n { width: 36px; height: 36px; border-radius: 50%; background: #fff7ed; color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 16px; border: 2px solid #fed7aa; font-family: inherit; }
    .step b { font-size: 14.5px; font-weight: 800; }
    .step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }


.calc { padding: 10px; gap: 18px; align-items: stretch; }
    .calc .left { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
        .calc .left h3 { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
    .calc .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
        .calc .row .grp { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
            .calc .row .grp .flag-sm { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #0369a1); color: #fff; font-weight: 800; font-size: 10px; display: grid; place-items: center; font-family: inherit; }
            .calc .row .grp input { width: 42px; border: 0; outline: 0; background: none; font: inherit; font-weight: 800; font-size: 18px; text-align: center; color: var(--ink); font-family: inherit; }
        .calc .row .vs { font-weight: 900; color: var(--muted); font-family: inherit; font-size: 14px; }
        .calc .row .grp input { width: 42px; border: 0; outline: 0; background: none; font: inherit; font-weight: 800; font-size: 18px; text-align: center; color: var(--ink); font-family: inherit; }
    .calc .right { background: linear-gradient(135deg, #0f1115, #1a1d23); color: #fff; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; }
        .calc .right .pts-lbl { color: #cbd0d8; font-size: 13px; }
        .calc .right .pts-big { font-size: 64px; font-weight: 900; color: var(--accent); font-family: inherit; line-height: 1; }
        .calc .right .verdict { background: rgba(240, 138, 30, .18); border: 1px solid rgba(240, 138, 30, .35); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; margin-top: 6px; }




.faq { padding: 8px 22px 22px; }
.qa { border-top: 1px solid var(--line-2); padding: 14px 0; cursor: pointer; }
    .qa summary { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; list-style: none; }
        .qa summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: #fff7ed; color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 16px; transition: transform .2s; flex-shrink: 0; }
    .qa[open] summary::before { content: "−"; }
    .qa p { margin: 10px 0 0 34px; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }



/* ===== Awards ===== */
.grand { background: radial-gradient(60% 80% at 80% 30%, rgba(240, 138, 30, .35), transparent 60%), linear-gradient(135deg, #1a1238 0%, #251a4a 60%, #0f1029 100%); color: #fff; border-radius: 14px; padding: 30px; margin-bottom: 10px; gap: 22px; align-items: center; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); margin-top: 10px; }
    .grand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent 2px), radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, .4), transparent 2px), radial-gradient(2px 2px at 85% 60%, rgba(255, 255, 255, .5), transparent 3px), radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, .4), transparent 2px); pointer-events: none; }
    .grand .ribbon { display: inline-block; background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b); color: #7c2d12; padding: 4px 14px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; }
    .grand h2 { font-size: 36px; font-weight: 900; margin: 14px 0 8px; line-height: 1.2; text-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
        .grand h2 .tr { color: var(--accent); }
    .grand p { color: #e7d9ff; font-size: 14.5px; line-height: 1.7; margin: 0; }
    .grand .countdown { display: flex; gap: 8px; margin-top: 18px; }
    .grand .cd { background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .15); padding: 10px 16px; border-radius: 12px; text-align: center; min-width: 64px; }
        .grand .cd b { display: block; font-size: 24px; font-weight: 900; font-family: inherit; color: #fff; }
        .grand .cd small { color: #cbd0d8; font-size: 11px; }
    .grand .trophy-big { width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(60% 60% at 50% 35%, #fde68a 0%, #f59e0b 40%, #7c2d12 100%); display: grid; place-items: center; font-size: 120px; box-shadow: 0 0 0 8px rgba(245, 158, 11, .15), 0 30px 60px -20px rgba(245, 158, 11, .4); justify-self: center; position: relative; }
        .grand .trophy-big::before { content: ""; position: absolute; inset: -20px; border-radius: 50%; border: 2px dashed rgba(245, 158, 11, .3); animation: spin 30s linear infinite; }

.prize-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.pcell { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; gap: 14px; align-items: center; }
    .pcell .ic { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
    .pcell b { display: block; font-size: 15px; font-weight: 800; }
    .pcell small { color: var(--muted); font-size: 12.5px; }
    .pcell .v { margin-inline-start: auto; font-weight: 900; font-family: inherit; color: var(--accent); font-size: 18px; white-space: nowrap; }
    .pcell.alt .ic { background: linear-gradient(135deg, #a7f3d0, #10b981); }
    .pcell.alt2 .ic { background: linear-gradient(135deg, #bfdbfe, #3b82f6); }
    .pcell.alt3 .ic { background: linear-gradient(135deg, #fbcfe8, #db2777); }




.claim { padding: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.cstep { display: flex; gap: 14px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
    .cstep .n { width: 44px; height: 44px; border-radius: 50%; background: #fff7ed; color: var(--accent); display: grid; place-items: center; font-weight: 900; font-family: inherit; font-size: 18px; flex-shrink: 0; border: 2px solid #fed7aa; }
    .cstep b { display: block; font-size: 14.5px; font-weight: 800; }
    .cstep p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }




.past { padding: 18px; }
    .past .row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
    .past .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; color: #7c2d12; font-weight: 800; }
    .past .info b { display: block; font-size: 14.5px; }
    .past .info small { color: var(--muted); font-size: 12px; }
    .past .badge { background: #fff7ed; color: var(--accent); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
    .past .pts { font-weight: 900; font-family: inherit; color: var(--ink); font-size: 14px; }



.sponsors { padding: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sp { aspect-ratio: 2 / 1; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 13px; transition: background .15s; }



/* ===== winners ===== */
.winners { gap: 14px; padding:10px; }
.win-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .15s, box-shadow .15s; }
    .win-card .top-strip { padding: 14px 18px; color: #fff; font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
    .win-card.gold .top-strip { background: linear-gradient(135deg, #f59e0b, #7c2d12); }
    .win-card .icon { width: 90px; height: 90px; border-radius: 50%; background: #fafbfc; display: grid; place-items: center; font-size: 46px; margin: 18px auto 10px; }
    .win-card.gold .icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
    .win-card .body { padding: 0 5px 5px; text-align: center; }
        .win-card .body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
    .win-card .val { margin: 14px 0; font-family: inherit; font-weight: 900; font-size: 28px; color: var(--accent); }
    .win-card .body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
    .win-card.silver .top-strip { background: linear-gradient(135deg, #9ca3af, #374151); }
    .win-card.silver .icon { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
    .win-card.bronze .top-strip { background: linear-gradient(135deg, #a16207, #451a03); }

/* ===== Rank ===== */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 14px; align-items: end; padding: 30px 22px 22px; background: radial-gradient(50% 80% at 50% 20%, rgba(240, 138, 30, .18), transparent 60%), linear-gradient(135deg, #0f1115, #1f1d2a); color: #fff; border-radius: 14px; margin-bottom: 22px; position: relative; overflow: hidden; }
    .podium::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent 2px), radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, .4), transparent 2px), radial-gradient(2px 2px at 85% 60%, rgba(255, 255, 255, .5), transparent 3px); pointer-events: none; }
.pod { background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
    .pod.r2 { order: 1; }
    .pod .rank-num { position: absolute; top: 10px; inset-inline-start: 14px; font-family: inherit; font-weight: 900; font-size: 20px; color: rgba(255, 255, 255, .4); }
    .pod .crown { font-size: 32px; margin-bottom: -4px; }
    .pod.r2 .av-big { border-color: #9ca3af; }
    .pod .av-big { width: 78px; height: 78px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff5e3a); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 28px; border: 3px solid #f59e0b; }
    .pod .grp { color: #cbd0d8; font-size: 11.5px; }
    .pod .nm { font-weight: 800; font-size: 15px; }
    .pod.r2 .pts-big { color: #cbd0d8; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
    .pod .pts-big { font-size: 24px; font-weight: 900; color: #f59e0b; font-family: inherit; background: rgba(245, 158, 11, .15); border: 1px solid rgba(245, 158, 11, .3); padding: 4px 14px; border-radius: 99px; margin-top: 4px; }
    .pod.r1 { order: 2; padding: 24px 14px; }
    .pod.r3 { order: 3; }



.myrank { position: sticky; bottom: 14px; margin: 18px; background: #0f1115; color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .4); z-index: 10; }
    .myrank .lbl { color: #cbd0d8; font-size: 12.5px; }
    .myrank .nm { font-weight: 700; font-size: 14px; }
    .myrank b { font-size: 18px; font-weight: 900; font-family: inherit; color: var(--accent); }
    .myrank .pts-mr { margin-inline-start: auto; font-weight: 900; font-family: inherit; color: var(--accent); font-size: 18px; }


/* ===== Table ===== */

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #fafbfc; align-items: center; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters .grow { flex: 1; min-width: 200px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 10px; max-width: 320px; }
    .filters .grow svg { width: 16px; height: 16px; color: var(--muted); }
    .filters .grow input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 9px 10px; font-size: 14px; }
.chip.active { background: #0f1115; color: #fff; border-color: #0f1115; }

.lbtable { width: 100%; border-collapse: collapse; font-size: 14px; }
    .lbtable thead th { background: #0f1115; color: #fff; font-weight: 700; padding: 13px 14px; text-align: right; font-size: 13px; }
        .lbtable thead th:first-child { width: 64px; text-align: center; }
        .lbtable thead th.num-col { text-align: center; width: 90px; font-family: inherit; }
    .lbtable tbody tr { border-bottom: 1px solid var(--line-2); transition: background .12s; }
    .lbtable tbody tr { border-bottom: 1px solid var(--line-2); transition: background .12s; }
    .lbtable tbody tr { border-bottom: 1px solid var(--line-2); transition: background .12s; }
        .lbtable tbody tr.me { background: #fff7ed; font-weight: 700; border: 2px solid var(--accent); border-left: 0; border-right: 0; position: relative; }

    .lbtable td { padding: 11px 14px; }

        .lbtable td.num-col { text-align: center; font-family: inherit; font-feature-settings: "tnum"; }

    .lbtable .rk { width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--muted); display: inline-grid; place-items: center; font-weight: 900; font-family: inherit; font-size: 13.5px; }
    .lbtable tr.gold .rk { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #fff; }


    .lbtable .move { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
    .lbtable tr.up .move { color: var(--good); }

    .lbtable .player { display: flex; align-items: center; gap: 10px; }
        .lbtable .player .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
        .lbtable .player b { font-weight: 700; font-size: 14px; }
        .lbtable .player small { color: var(--muted); font-size: 11.5px; display: block; margin-top: 1px; }

    .lbtable .pts-pill { display: inline-block; background: #fff7ed; color: var(--accent); padding: 5px 14px; border-radius: 99px; font-weight: 900; font-family: inherit; font-size: 14px; }
tr.gold .pts-pill { background: #fef3c7; color: #a16207; }
tr.silver .pts-pill { background: #f3f4f6; color: #374151; }
tr.bronze .pts-pill { background: #fde68a; color: #78350f; }
.lbtable tr.silver .rk { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #fff; }
.lbtable tr.bronze .rk { background: linear-gradient(135deg, #fed7aa, #a16207); color: #fff; }

.pretable thead th:first-child {
    width: unset;
}
.pretable thead th.num-col {
    width: 65px;
}



/* ===== challenge ===== */

.ctabs { margin-top: 10px; background: #0f1115; color: #fff; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #1a1d23; margin-bottom: 18px; }
.ctab { padding: 18px 16px; text-align: center; color: #cbd0d8; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-inline-end: 1px solid #1a1d23; background: none; border-top: 0; border-bottom: 0; border-inline-start: 0; position: relative; transition: color .15s; }
    .ctab svg { width: 18px; height: 18px; opacity: .7; }
    .ctab:last-child { border-inline-end: 0; }
    .ctab.active { color: #fff; background: #1a1d23; }




/* create group bar */
.create-bar { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); align-items: center; flex-wrap: wrap }
    .create-bar .grow { flex: 1; min-width: 200px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; padding: 0 10px }
        .create-bar .grow svg { width: 16px; height: 16px; color: var(--muted) }
        .create-bar .grow input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 11px 10px; font-size: 14px }
    .create-bar .join { background: #fff; color: var(--ink-2); font-weight: 700; padding: 11px 16px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line) }
        .create-bar .join:hover { border-color: var(--accent); color: var(--accent) }



/* groups table */
.gtable { width: 100%; border-collapse: collapse; font-size: 14px }
    .gtable thead th { background: #0f1115; color: #fff; font-weight: 700; padding: 13px 14px; text-align: right; border-inline-end: 1px solid #2a2d33 }
        .gtable thead th:last-child { border-inline-end: 0 }
        .gtable thead th:first-child { width: 60px; text-align: center }
        .gtable thead th.code { width: 120px }
    .gtable tbody tr { border-bottom: 1px solid var(--line-2) }
        .gtable tbody tr:nth-child(even) { background: #fafbfc }
        .gtable tbody tr:hover { background: #fff7ed }
    .gtable td { padding: 11px 14px }
    .gtable .del { width: 32px; height: 32px; border-radius: 8px; background: var(--bad); color: #fff; display: inline-grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 0; box-shadow: 0 2px 6px -2px rgba(220,38,38,.5); cursor: pointer; border: 0 }
        .gtable .del:hover { filter: brightness(1.1) }
    .gtable .code-cell { font-family: "Cairo"; font-weight: 600; color: var(--ink-2); text-align: center; font-feature-settings: "tnum" }
    .gtable .name-cell { color: var(--accent); font-weight: 700; cursor: pointer }
        .gtable .name-cell:hover { text-decoration: underline }
        .gtable .name-cell .count { color: var(--muted); font-weight: 500; font-family: "Cairo" }



/* stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 18px }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: flex; gap: 12px; align-items: center }
    .stat .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff7ed; color: var(--accent); display: grid; place-items: center; flex-shrink: 0 }
        .stat .ic svg { width: 22px; height: 22px }
    .stat .v { font-size: 22px; font-weight: 900; color: var(--ink); font-family: "Cairo" }
    .stat .l { color: var(--muted); font-size: 12.5px; margin-top: 2px }

/* points panel (left) */
.pts-card { padding: 22px; text-align: center; background: linear-gradient(135deg,#0f1115,#1f1d2a); color: #fff; border-radius: 14px; margin: 18px }
    .pts-card .big { font-size: 56px; font-weight: 900; color: var(--accent); font-family: "Cairo"; line-height: 1 }
    .pts-card .lbl { color: #cbd0d8; font-size: 13.5px; margin-top: 4px }
    .pts-card .breakdown { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 12.5px; color: #cbd0d8 }
        .pts-card .breakdown b { color: #fff; font-weight: 800; font-family: "Cairo" }


.mypredc .miniMatch { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 8px; padding: 5px 0px; font-size: 12.5px; gap: 8px; }

    .mypredc .miniMatch span { display: flex; align-items: center; gap: 10px; }
        .mypredc .miniMatch span small { background: #eee; padding: 4px 6px; }
        .mypredc .miniMatch span:first-child { justify-content: end; flex: 1; }
        .mypredc .miniMatch span:nth-child(2n+3) { flex: 1; }

    .mypredc .miniMatch .vs { font-size: 18px; font-weight: 900; color: var(--accent); font-family: inherit; }



* { box-sizing: border-box }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans Arabic","Readex Pro",system-ui,sans-serif }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer }
.num { font-family: "Readex Pro",ui-monospace,monospace; font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums }

/* top bar */
.top { background: #0f1115; color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #1a1d23 }
.top-inner { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800 }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,var(--accent),#ff5e3a); display: grid; place-items: center; color: #fff; font-weight: 900 }
.top-search { flex: 1; display: flex; align-items: center; gap: 8px; background: #1a1d23; padding: 8px 12px; border-radius: 10px; color: #9aa1ab; max-width: 420px }
    .top-search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit }
.top-nav { margin-inline-start: auto; display: flex; gap: 6px; align-items: center }
    .top-nav button { padding: 8px 12px; border-radius: 8px; color: #cbd0d8; font-size: 14px }
        .top-nav button:hover { background: #1a1d23; color: #fff }
    .top-nav .me { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #1a1d23 }
        .top-nav .me .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),#ff5e3a); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px }
        .top-nav .me .nm { font-size: 13px; color: #fff; font-weight: 600 }

/* subnav */
.subnav { background: #0f1115; color: #fff; border-bottom: 1px solid #1a1d23; margin-bottom: 10px }
.subnav-inner { max-width: min(1090px, calc(100% - 20px)); margin: 0 auto; padding: 0 0px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none }
    .subnav-inner::-webkit-scrollbar { display: none }
.snav { padding: 14px 18px; color: #cbd0d8; font-weight: 600; font-size: 14.5px; white-space: nowrap; position: relative }
    .snav:hover { color: #fff }
    .snav.active { color: #fff }
        .snav.active::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent) }

/* breadcrumbs strip */
.crumbs { background: #fff; border-bottom: 1px solid var(--line-2) }
.crumbs-inner { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted) }
.crumbs a:hover { color: var(--accent) }
.crumbs .sep { opacity: .45 }
.crumbs .cur { color: var(--ink); font-weight: 700 }

/* page */
.page { max-width: 1320px; margin: 0 auto; padding: 22px 20px 60px; display: grid; grid-template-columns: 280px 1fr; gap: 22px }

/* side menu */
.side .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 18px }
.side .panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2) }
.side .panel-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0 }
    .side .panel-title .bar { width: 4px; height: 18px; border-radius: 3px; background: var(--accent) }
.smenu { list-style: none; margin: 0; padding: 6px 0 }
    .smenu li a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 14px; color: var(--ink-2); font-weight: 600; border-inline-start: 3px solid transparent }
        .smenu li a:hover { background: #fafbfc; color: var(--accent) }
        .smenu li a[aria-current="true"] { background: #fff7ed; color: var(--accent); border-inline-start-color: var(--accent) }
        .smenu li a svg { width: 16px; height: 16px; color: currentColor }
    .smenu li.danger a { color: var(--bad) }
        .smenu li.danger a:hover { background: #fef2f2 }

/* user mini card */
.who { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2) }
    .who .av { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),#ff5e3a); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0 }
    .who .nm { font-weight: 700; font-size: 14.5px; line-height: 1.2 }
    .who .em { color: var(--muted); font-size: 12px; margin-top: 3px; direction: ltr; text-align: right }

/* main panel */
.main .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden }
.main .panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line-2) }
.main .panel-title { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; margin: 0 }
    .main .panel-title .bar { width: 4px; height: 20px; border-radius: 3px; background: var(--accent) }
.main .panel-head .hint { margin-inline-start: auto; color: var(--muted); font-size: 12.5px }

/* tabs (account / password / preferences) */
.tabs { display: flex; border-bottom: 1px solid var(--line-2); padding: 0 18px; background: #fafbfc; gap: 4px }
.tab { padding: 13px 16px; font-size: 14px; font-weight: 700; color: var(--muted); position: relative; cursor: pointer; border: 0; background: none }
    .tab:hover { color: var(--ink) }
    .tab[aria-current="true"] { color: var(--ink) }
        .tab[aria-current="true"]::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent) }

/* avatar picker */
.ap { display: flex; justify-content: center; padding: 28px 22px 22px; position: relative }
.ap-wrap { position: relative; display: inline-block }
.ap-circle { position: relative; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(60% 60% at 50% 35%, #ff8b6b 0%, #c54a2a 55%, #6e1f17 100%); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 38px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 18px 36px -16px rgba(0,0,0,.35); overflow: hidden; cursor: pointer }
    .ap-circle .initials { position: relative; z-index: 0; text-shadow: 0 2px 8px rgba(0,0,0,.2) }
    .ap-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ap-pick { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px -4px rgba(15,23,42,.2), 0 1px 2px rgba(15,23,42,.06); white-space: nowrap; cursor: pointer; z-index: 2 }
    .ap-pick:hover { color: var(--accent); border-color: var(--accent) }
    .ap-pick svg { width: 13px; height: 13px }
.ap-rm { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted) }
    .ap-rm button { color: var(--bad); text-decoration: underline; font-weight: 600 }

/* form */
form { padding: 18px 22px 24px }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px }
.full { grid-column: 1 / -1 }
.field { display: flex; flex-direction: column; gap: 6px }
    .field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: right }
    .field .req { color: var(--bad); margin-inline-end: 2px }
.ctl { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .12s, box-shadow .12s; overflow: hidden }
    .ctl:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,138,30,.15) }
    .ctl input, .ctl select { flex: 1; width: 100%; border: 0; outline: 0; background: none; font: inherit; padding: 6px 10px; font-size: 14px; color: var(--ink); text-align: right }
        .ctl input::placeholder { color: #9aa1ab }
    .ctl .lead, .ctl .trail { display: flex; align-items: center; justify-content: center; padding: 0 10px; color: var(--muted); background: #fafbfc; align-self: stretch; border-inline-start: 1px solid var(--line-2) }
    .ctl .lead { border-inline-start: 0; border-inline-end: 1px solid var(--line-2) }
        .ctl .lead svg, .ctl .trail svg { width: 16px; height: 16px }
    .ctl select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-start: 32px }

/* phone: country code chip + number */
.phone-wrap { display: grid; grid-template-columns: 1fr 92px; gap: 10px }
.cc { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; padding: 0 10px; gap: 8px; color: var(--muted) }
    .cc svg { width: 18px; height: 18px }
    .cc .v { font-weight: 800; color: var(--ink); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; width: 100%; background: #fafbfc; padding: 0; border: 0; }

/* birthdate: 3 selects + icon */
.dob { display: grid; grid-template-columns: 88px 1fr 96px 46px; gap: 10px }
    .dob .ico { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; color: var(--accent) }
        .dob .ico svg { width: 18px; height: 18px }

/* check */
.check { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; font-size: 13.5px; color: var(--ink-2); font-weight: 600 }
    .check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; cursor: pointer; display: grid; place-items: center; background: #fff; flex-shrink: 0 }
        .check input:checked { background: var(--accent); border-color: var(--accent) }
            .check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px,-1px) }

/* save bar */
.savebar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2) }
    .savebar .ghost { padding: 11px 16px; border-radius: 10px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); font-size: 14px }
        .savebar .ghost:hover { border-color: #cbd0d8 }
    .savebar .save { flex: 1; padding: 13px 18px; border-radius: 10px; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(180deg,var(--accent),#dd7710); box-shadow: 0 6px 18px -6px rgba(240,138,30,.6), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .08s }
        .savebar .save:hover { filter: brightness(1.04) }
        .savebar .save:active { transform: translateY(1px) }
        .savebar .save.saved { background: linear-gradient(180deg,#16a34a,#15803d); box-shadow: 0 6px 18px -6px rgba(22,163,74,.5) }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0f1115; color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 40px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60 }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }
    .toast svg { width: 18px; height: 18px; color: #34d399 }

/* responsive */
@media (max-width:980px) {
    .page { grid-template-columns: 1fr }
    .side { order: 2 }
}

@media (max-width:560px) {
    .grid { grid-template-columns: 1fr }
    .dob { grid-template-columns: 1fr 1fr 1fr 46px }
    .phone-wrap { grid-template-columns: 1fr 80px }
}





.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 99999999999999; }
.modal { background: white; width: 500px; max-width: 90vw; border-radius: 12px; position: relative; }
.modal-header {color: #FFF;border-start-end-radius: 12px;border-start-start-radius: 12px; padding: 15px; border-bottom: 1px solid #e5e5e5;background: linear-gradient(135deg, #FFC107 0%, #FF9800 48%, #FF9800 52%, #FFC107 100%); }
.modal .close-btn { position: absolute; top: 10px; left: 8px; border: none; background: #fff; font-size: 22px; cursor: pointer; width: 27px; z-index: 9;color: #000; }
    .modal form { padding: 0; }
.modal-content { padding: 0px; }
.modal-footer { display: flex; align-items: center;  border-top: 1px solid #e5e5e5; padding: 15px; }
.modal-loader { width: 80px; height: 80px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 15px; overflow: scroll; max-height: 600px; }

.spinner { width: 40px; height: 40px; border: 4px solid #ddd; border-top-color: #333; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

/*.h2h-hero .modal-header{
    position: relative;
    overflow: hidden;
    color: #fff;
}
.h2h-hero .modal-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ta) 0%, var(--ta) 48%, var(--tb) 52%, var(--tb) 100%);
    z-index: 0;
}
*/
.h2h-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}



:root{
 
}

.h2h-bar-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
    .h2h-bar-labels span:nth-child(2) { text-align: center; }
    .h2h-bar-labels span:last-child { text-align: left; }
.h2h-bar { height: 25px; border-radius: 10px; overflow: hidden; display: flex; background: #e5e7eb; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
    .h2h-bar span { min-width: 50px;display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 10px;  transition: .3s; position: relative; }
    .h2h-bar .b-a { background: #388cc5; }
    .h2h-bar .b-draw { background: #6b7280; }
    .h2h-bar .b-b { background: #FF9800; }

.form-group { margin-bottom: 16px; }



   /* grand prize hero card */
    .grand {
        background: radial-gradient(60% 80% at 80% 30%, rgba(240,138,30,.35), transparent 60%), linear-gradient(135deg,#1a1238 0%,#251a4a 60%,#0f1029 100%);
        color: #fff;
        border-radius: 14px;
        padding: 30px;
        margin-bottom: 22px;
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 22px;
        align-items: center;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.1)
    }

        .grand::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent 2px), radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.4), transparent 2px), radial-gradient(2px 2px at 85% 60%, rgba(255,255,255,.5), transparent 3px), radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.4), transparent 2px);
            pointer-events: none
        }

        .grand .ribbon {
            display: inline-block;
            background: linear-gradient(90deg,#f59e0b,#fde68a,#f59e0b);
            color: #7c2d12;
            padding: 4px 14px;
            border-radius: 99px;
            font-size: 11.5px;
            font-weight: 800;
            letter-spacing: .5px
        }

        .grand h2 {
            font-size: 36px;
            font-weight: 900;
            margin: 14px 0 8px;
            line-height: 1.2;
            text-shadow: 0 4px 20px rgba(0,0,0,.4)
        }

            .grand h2 .tr {
                color: var(--accent)
            }

        .grand p {
            color: #e7d9ff;
            font-size: 14.5px;
            line-height: 1.7;
            margin: 0
        }

        .grand .countdown {
            display: flex;
            gap: 8px;
            margin-top: 18px
        }

        .grand .cd {
            background: rgba(255,255,255,.1);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,.15);
            padding: 10px 16px;
            border-radius: 12px;
            text-align: center;
            min-width: 64px
        }

            .grand .cd b {
                display: block;
                font-size: 24px;
                font-weight: 900;
                font-family: "Cairo";
                color: #fff
            }

            .grand .cd small {
                color: #cbd0d8;
                font-size: 11px
            }

    /* device card inside hero */
    .device-card {
        justify-self: center;
        width: 290px;
        background: #fff;
        border-radius: 22px;
        padding: 16px;
        box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
        position: relative;
        z-index: 1
    }

        .device-card img {
            width: 100%;
            display: block;
            border-radius: 12px
        }

        .device-card .two-badge {
            position: absolute;
            top: -14px;
            inset-inline-start: -12px;
            background: var(--accent);
            color: #fff;
            font-weight: 900;
            font-size: 13px;
            padding: 8px 14px;
            border-radius: 99px;
            box-shadow: 0 8px 20px -6px rgba(240,138,30,.7);
            display: flex;
            align-items: center;
            gap: 6px
        }

    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px
    }

    .chip {
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff;
        padding: 8px 14px;
        border-radius: 99px;
        font-size: 13px;
        font-weight: 700;
        display: inline-flex;
        gap: 7px;
        align-items: center
    }

        .chip svg {
            width: 15px;
            height: 15px;
            color: var(--accent)
        }

    @media (max-width:780px) {
        .grand {
            grid-template-columns: 1fr;
            text-align: center
        }

        .device-card {
            width: 230px
        }

        .chips {
            justify-content: center
        }
    }



		/* ===== Pager ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border-top: 1px solid var(--line-2);
    background: #fafbfc;
}

    .pagination li a, .pagination li span {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        background: #fff;
        cursor: pointer;
    }

    .pagination li a:hover {
    }

        .pagination li.active span, .pagination li a:hover {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

    .pagination li.next-page a, .pagination li.previous-page a {
        width: auto;
        padding: 0 14px;
    }


/* ===== WINNERS TIERS (two phone winner cards) ===== */
.ph-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
    padding: 22px;
}

.ph-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .15s,box-shadow .15s;
}

    .ph-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }

    .ph-card .strip {
        padding: 14px 18px;
        color: #fff;
        font-weight: 800;
        font-size: 14.5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ph-card.gold .strip {
        background: linear-gradient(135deg,#f59e0b,#7c2d12);
    }

    .ph-card.silver .strip {
        background: linear-gradient(135deg,#9ca3af,#374151);
    }

    .ph-card .photo {
        background: linear-gradient(180deg,#fafbfc,#eef0f3);
        padding: 22px;
        display: grid;
        place-items: center;
    }

        .ph-card .photo img {
            width: 185px;
            height: 215px;
            object-fit: contain;
            filter: drop-shadow(0 18px 22px rgba(0,0,0,.18));
        }

    .ph-card .info {
        padding: 18px 20px 22px;
        text-align: center;
    }

        .ph-card .info .pmodel {
            font-size: 19px;
            font-weight: 900;
            margin: 0 0 4px;
        }

        .ph-card .info .psub {
            color: var(--muted);
            font-size: 13px;
            margin: 0 0 12px;
        }

        .ph-card .info .pspecs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 6px;
        }

            .ph-card .info .pspecs span {
                background: #f3f4f6;
                border-radius: 8px;
                padding: 5px 10px;
                font-size: 12.5px;
                font-weight: 700;
                color: var(--ink-2);
            }

@media (max-width:780px) {
    .ph-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== TIE-BREAKER callout ===== */
.tie {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
}

    .tie .ic {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        display: grid;
        place-items: center;
        flex-shrink: 0;
        color: var(--accent);
    }

        .tie .ic svg {
            width: 30px;
            height: 30px;
        }

    .tie h3 {
        margin: 0 0 6px;
        font-size: 17px;
        font-weight: 800;
    }

    .tie p {
        margin: 0;
        color: var(--ink-2);
        font-size: 14px;
        line-height: 1.8;
    }

    .tie .draw {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

        .tie .draw .nm {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 99px;
            padding: 6px 13px;
            font-size: 12.5px;
            font-weight: 700;
            color: var(--muted);
        }

            .tie .draw .nm.pick {
                background: var(--accent);
                color: #fff;
                border-color: var(--accent);
            }


/* ===== SPECS section ===== */
.specs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    padding: 24px;
    align-items: center;
}

    .specs .pic {
        background: linear-gradient(180deg,#fafbfc,#eef0f3);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 22px;
        display: grid;
        place-items: center;
    }

        .specs .pic img {
            width: 100%;
            max-width: 230px;
            display: block;
        }

.spec-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.spec-item {
    display: flex;
    gap: 13px;
    align-items: center;
}

    .spec-item .si {
        width: 48px;
        height: 48px;
        border-radius: 13px;
        background: #fff7ed;
        color: var(--accent);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

        .spec-item .si svg {
            width: 24px;
            height: 24px;
        }

    .spec-item b {
        display: block;
        font-size: 15.5px;
        font-weight: 800;
    }

    .spec-item small {
        color: var(--muted);
        font-size: 12.5px;
    }

@media (max-width:780px) {
    .specs {
        grid-template-columns: 1fr;
    }
}

