/* ============================================================
   Earnify — styles.css
   Palette derived from the reference mockup:
   primary blue #076bfd · navy #122641 · light blue-gray bg
   ============================================================ */

:root{
  --navy:#122641;
  --navy-2:#1c3559;
  --blue:#0b63e5;
  --blue-strong:#076bfd;
  --blue-soft:#e8f0fe;
  --green:#16a34a;
  --green-soft:#e7f7ee;
  --amber:#f59e0b;
  --red:#e11d48;
  --bg:#eef2f8;
  --card:#ffffff;
  --line:#e3e9f2;
  --muted:#64748b;
  --radius:16px;
  --shadow:0 8px 24px rgba(18,38,65,.08);
  --shadow-sm:0 2px 8px rgba(18,38,65,.06);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--navy);
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
h1,h2,h3{margin:0;line-height:1.2}
.muted{color:var(--muted)}
.pos{color:var(--green)}
.neg{color:var(--red)}

/* ---------- Layout ---------- */
.app{display:grid;grid-template-columns:260px 1fr;min-height:100vh}

/* ---------- Sidebar ---------- */
.sidebar{
  background:#fff;border-right:1px solid var(--line);
  padding:18px 14px;display:flex;flex-direction:column;gap:6px;
  position:sticky;top:0;height:100vh;overflow-y:auto;
}
.brand{display:flex;align-items:center;gap:10px;padding:6px 8px 14px}
.brand-logo{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--blue-strong),#5b9bff);
  color:#fff;font-weight:800;font-size:18px;box-shadow:0 6px 14px rgba(7,107,253,.35)
}
.brand-text strong{display:block;font-size:17px}
.brand-text span{font-size:11px;color:var(--muted)}
.nav{display:flex;flex-direction:column;gap:2px}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;
  font-size:14px;color:#40506b;font-weight:500;transition:.15s
}
.nav-item .ic{font-size:15px;width:20px;text-align:center}
.nav-item:hover{background:var(--blue-soft);color:var(--blue)}
.nav-item.active{background:var(--blue-strong);color:#fff;box-shadow:0 6px 14px rgba(7,107,253,.3)}
.nav-divider{height:1px;background:var(--line);margin:10px 6px}
.sidebar-ad{margin-top:auto;padding:8px 0}
.sidebar-user{
  display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);
  border-radius:12px;background:#f8fafd;margin-top:8px
}
.sidebar-user strong{display:block;font-size:13px}
.sidebar-user span{font-size:11px;color:var(--muted)}
.avatar-sm{width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px}

/* ---------- Main / topbar ---------- */
.main{min-width:0;display:flex;flex-direction:column}
.topbar{
  display:flex;align-items:center;gap:16px;padding:14px 26px;background:#fff;
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20
}
.menu-btn{display:none;background:none;border:none;font-size:20px;cursor:pointer}
.search{
  flex:1;max-width:520px;display:flex;align-items:center;gap:8px;background:var(--bg);
  border:1px solid var(--line);border-radius:12px;padding:9px 14px
}
.search input{border:none;background:none;outline:none;width:100%;font-size:14px;color:var(--navy)}
.search-ic{opacity:.6}
.topbar-right{display:flex;align-items:center;gap:16px;margin-left:auto}
.hello{text-align:right;line-height:1.25}
.hello strong{display:block;font-size:14px}
.level{font-size:11px;color:var(--blue);font-weight:600}
.points-pill{background:var(--blue-soft);color:var(--blue);font-weight:700;font-size:13px;padding:8px 14px;border-radius:999px}
.avatar{width:38px;height:38px;border:0;border-radius:50%;background:linear-gradient(135deg,var(--blue-strong),#7db0ff);color:#fff;display:grid;place-items:center;font:inherit;font-weight:700;cursor:pointer}
.avatar:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* ---------- Content ---------- */
.content{padding:24px 26px 60px;display:flex;flex-direction:column;gap:26px;max-width:1200px;width:100%}
.guest-mode-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 26px;background:#fff;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.guest-mode-notice>div{flex:1}
.guest-mode-notice strong,.guest-mode-notice span{display:block}
.guest-mode-notice strong{color:var(--navy);margin-bottom:2px}
.guest-mode-notice .btn{white-space:nowrap}
.guest-profile-note{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:var(--blue-soft);color:var(--navy);font-size:13px}
.guest-save-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 auto 28px;padding:20px 26px;border-top:1px solid var(--line);max-width:1200px;width:100%}
.guest-save-progress h2{font-size:17px;margin:0 0 4px}
.guest-save-progress p{font-size:13px;color:var(--muted);margin:0}
.guest-save-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}

/* ---------- Hero ---------- */
.hero{
  display:grid;grid-template-columns:1.5fr 1fr;gap:20px;
  background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 45%,#0b4fb8 100%);
  border-radius:var(--radius);padding:30px 32px;color:#fff;
  box-shadow:var(--shadow);position:relative;overflow:hidden
}
.hero::after{content:"";position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.06)}
.hero-eyebrow{font-size:13px;opacity:.85}
.hero h1{font-size:30px;margin:8px 0 10px;letter-spacing:-.5px}
.hero p{margin:0 0 20px;font-size:14px;opacity:.85;max-width:420px}
.hero-left{position:relative;z-index:2}

.points-card{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:14px;
  padding:18px;backdrop-filter:blur(4px);position:relative;z-index:2;height:100%;display:flex;flex-direction:column;gap:8px
}
.points-card .muted{color:rgba(255,255,255,.75)}
.points-big{font-size:34px;font-weight:800;letter-spacing:-1px}
.points-cash{font-size:13px;color:#bfe0ff;margin-top:-4px}
.progress-wrap{margin-top:auto}
.progress{height:7px;border-radius:99px;background:rgba(255,255,255,.2);overflow:hidden;margin-bottom:6px}
.progress-bar{height:100%;background:linear-gradient(90deg,#7db0ff,#fff);border-radius:99px;transition:width .4s ease}
.progress-wrap small{font-size:11px;opacity:.85}

/* ---------- Buttons ---------- */
.btn{border:none;border-radius:10px;padding:10px 18px;font-size:13.5px;font-weight:600;cursor:pointer;transition:.15s;font-family:inherit}
.btn-primary{background:var(--blue-strong);color:#fff}
.btn-primary:hover{background:#0557d0}
.btn-light{background:#fff;color:var(--navy)}
.btn-light:hover{background:#eef4ff}
.btn-white{background:rgba(255,255,255,.92);color:var(--navy);margin-top:4px}
.btn-outline{background:transparent;border:1.5px solid var(--blue);color:var(--blue)}
.btn-outline:hover{background:var(--blue-soft)}
.btn-ghost{background:var(--blue-soft);color:var(--blue)}
.btn-ghost:hover{background:#d7e6fd}
.btn-danger{background:#fde8ee;color:var(--red)}
.btn-danger:hover{background:#fbd1dc}

/* ---------- Sections ---------- */
.section{display:flex;flex-direction:column;gap:14px}
.section-head{display:flex;align-items:center;justify-content:space-between}
.section-head h2{font-size:18px}
.link{font-size:13px;color:var(--blue);font-weight:600}

/* Opportunities */
.opp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.opp-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow-sm);transition:.15s}
.opp-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.opp-ic{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:19px;margin-bottom:4px}
.ic-blue{background:var(--blue-soft)}
.ic-purple{background:#efe7fe}
.ic-green{background:var(--green-soft)}
.ic-amber{background:#fef3e2}
.opp-card h3{font-size:14.5px}
.opp-card p{font-size:13px;color:var(--muted);margin:0 0 12px}
.opp-card .btn{margin-top:auto;align-self:flex-start}

/* Brands */
.brand-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.brand-card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow-sm);transition:.15s}
.brand-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.brand-thumb{height:92px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:20px;letter-spacing:.5px}
.t1{background:linear-gradient(135deg,#f97316,#fb923c)}
.t2{background:linear-gradient(135deg,#dc2626,#f87171)}
.t3{background:linear-gradient(135deg,#1e40af,#3b82f6)}
.t4{background:linear-gradient(135deg,#16a34a,#4ade80)}
.brand-body{padding:12px 14px}
.brand-body h3{font-size:14px}
.brand-body p{font-size:12.5px;color:var(--muted);margin:2px 0 8px}
.tag{font-size:11px;background:var(--bg);color:#40506b;padding:3px 9px;border-radius:99px}

/* Two column panels */
.two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm)}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.panel-head h2{font-size:17px}
.panel-head .muted{font-size:13px;margin:2px 0 0}
.balance{text-align:right;font-size:12px}
.balance strong{display:block;font-size:16px;color:var(--navy)}
.balance em{font-style:normal;color:var(--green);font-size:12px}

.tabs{display:flex;gap:8px;margin-bottom:12px}
.tab{border:1px solid var(--line);background:#fff;padding:7px 14px;border-radius:99px;font-size:12.5px;font-weight:600;color:var(--muted);cursor:pointer;font-family:inherit}
.tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}

.reward-list,.tx-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.reward-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.reward-list li:first-child{border-top:none}
.reward-list li div{flex:1}
.reward-list strong{display:block;font-size:13.5px}
.reward-list small{font-size:11.5px;color:var(--muted)}
.rw-ic{width:38px;height:38px;border-radius:10px;background:var(--bg);display:grid;place-items:center;font-size:17px}

.tx-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.tx-list li:first-child{border-top:none}
.tx-list li div{flex:1}
.tx-list strong{display:block;font-size:13px}
.tx-list small{font-size:11px;color:var(--muted)}
.tx-ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:800}
.pos-bg{background:var(--green-soft);color:var(--green)}
.neg-bg{background:#fde8ee;color:var(--red)}

/* Refer */
.refer-card{background:linear-gradient(120deg,#0b4fb8,#076bfd);border-radius:var(--radius);padding:28px 30px;color:#fff;display:grid;grid-template-columns:1.3fr 1fr;gap:24px;box-shadow:var(--shadow);align-items:center}
.refer-card h2{font-size:22px;margin-bottom:8px}
.refer-card p{font-size:14px;opacity:.9;margin:0 0 16px;max-width:440px}
.refer-code span{font-size:12px;opacity:.85}
.code-box{display:flex;gap:8px;margin:6px 0 16px}
.code-box strong{background:rgba(255,255,255,.15);border:1px dashed rgba(255,255,255,.5);border-radius:10px;padding:10px 18px;font-size:17px;letter-spacing:2px}
.refer-right{display:grid;place-items:center}

/* Why */
.why-sub{font-size:13.5px;margin-top:-6px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.why-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.why-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow-sm)}
.why-card span{font-size:22px}
.why-card strong{display:block;margin:8px 0 4px;font-size:14px}
.why-card p{font-size:12.5px;color:var(--muted);margin:0}

/* Footer */
.footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:8px;flex-wrap:wrap}
.footer p{margin:4px 0 0;font-size:12px}

/* ---------- Ad slots ---------- */
.ad-wrap{display:flex;justify-content:center}
.ad-slot{
  display:grid;place-items:center;background:repeating-linear-gradient(45deg,#f7f9fc,#f7f9fc 10px,#eef2f8 10px,#eef2f8 20px);
  border:1px dashed #c6d2e6;border-radius:12px;color:#94a3b8;font-size:12px;
  min-height:90px;width:100%;overflow:hidden
}
.ad-slot::after{content:attr(data-ad-size) " ad · Adsterra";letter-spacing:.5px}
.ad-leaderboard{max-width:728px;min-height:90px}
.ad-inline{max-width:300px;min-height:250px}
.ad-native{max-width:320px;min-height:250px;width:100%}
.sidebar-ad .ad-slot{width:100%;min-height:220px}
.ad-slot.loaded::after{content:""}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .opp-grid,.brand-grid,.why-grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
}
@media (max-width:860px){
  .app{grid-template-columns:1fr}
  .sidebar{position:fixed;left:-280px;width:260px;z-index:50;transition:.25s;box-shadow:var(--shadow)}
  .sidebar.open{left:0}
  .menu-btn{display:block}
  .hero{grid-template-columns:1fr}
  .refer-card{grid-template-columns:1fr}
  .hello{display:block}
  .level{display:none}
  .points-pill{font-size:12px;padding:6px 11px}
}
@media (max-width:560px){
  .opp-grid,.brand-grid,.why-grid{grid-template-columns:1fr}
  .content{padding:16px}
  .ad-leaderboard{min-height:50px}
  .guest-mode-notice{align-items:stretch;flex-direction:column;padding:12px 16px;gap:10px}
  .guest-mode-notice .btn{text-align:center}
  .guest-save-progress{align-items:flex-start;flex-direction:column;padding:18px 16px}
  .guest-save-actions{width:100%}
  .guest-save-actions .btn{flex:1;text-align:center}
  .topbar{flex-wrap:wrap;gap:10px;padding:12px 16px}
  .menu-btn{flex:0 0 auto}
  .search{order:3;flex:1 0 100%;max-width:none}
  .topbar-right{order:2;gap:8px}
  .hello{display:none}
}

/* ============================================================
   Functional UI added on top of the mockup:
   toasts · modals · watch timer · missions · profile · support
   ============================================================ */

/* ---------- small helpers ---------- */
.btn-disabled{background:var(--bg);color:#9aa8bd;cursor:not-allowed}
.btn-disabled:hover{background:var(--bg)}
.btn:disabled{opacity:.75;cursor:not-allowed}
.empty{color:var(--muted);font-size:13px;padding:14px 0;text-align:center}
.opp-note{font-size:11.5px;color:var(--blue);font-weight:600;margin-bottom:10px}

/* ---------- streak / check-in ---------- */
.streak-badge{background:#fef3e2;color:#b45309;font-weight:700;font-size:12.5px;padding:7px 14px;border-radius:99px;border:1px solid #fde3bf}
.checkin-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(120deg,#eef4ff,#ffffff);border:1px solid var(--line);border-radius:14px;padding:14px 18px;box-shadow:var(--shadow-sm);flex-wrap:wrap}
.checkin-bar strong{display:block;font-size:14px}
.checkin-bar small{font-size:12px}

/* ---------- toast ---------- */
.toast-root{position:fixed;right:20px;bottom:20px;z-index:100;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;background:var(--navy);color:#fff;padding:12px 16px;border-radius:12px;font-size:13.5px;font-weight:500;box-shadow:0 12px 32px rgba(18,38,65,.28);opacity:0;transform:translateY(12px);transition:.24s;max-width:360px;pointer-events:auto}
.toast.show{opacity:1;transform:translateY(0)}
.toast-ok{border-left:4px solid var(--green)}
.toast-info{border-left:4px solid #60a5fa}
.toast-err{border-left:4px solid var(--red)}
.toast-ic{font-size:15px}

/* ---------- modal ---------- */
#modalRoot{ }
.modal-overlay{position:fixed;inset:0;background:rgba(18,38,65,.5);backdrop-filter:blur(2px);z-index:200;display:grid;place-items:center;padding:20px;opacity:0;transition:.18s}
.modal-overlay.show{opacity:1}
.modal{background:#fff;border-radius:18px;width:100%;max-width:440px;max-height:88vh;overflow:auto;box-shadow:0 30px 70px rgba(18,38,65,.4);transform:translateY(10px) scale(.98);transition:.18s}
.modal-overlay.show .modal{transform:none}
.modal-wide{max-width:620px}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2;border-radius:18px 18px 0 0}
.modal-head h3{font-size:16px}
.modal-close{border:none;background:var(--bg);width:30px;height:30px;border-radius:9px;cursor:pointer;color:var(--muted);font-size:13px;font-family:inherit}
.modal-close:hover{background:#e2e8f2;color:var(--navy)}
.modal-body{padding:20px}
.modal-foot{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px;border-top:1px solid var(--line);flex-wrap:wrap}
.modal-hint{font-size:13px;color:var(--muted);margin:0 0 14px}

/* ---------- watch flow ---------- */
.watch-player{position:relative;border-radius:14px;min-height:190px;background:linear-gradient(135deg,#122641,#0b4fb8);display:grid;place-items:center;gap:14px;padding:22px;color:#fff;overflow:hidden}
.watch-overlay{position:absolute;top:12px;left:14px;font-size:11.5px;display:flex;align-items:center;gap:7px;opacity:.9}
.live-dot{width:8px;height:8px;border-radius:50%;background:#f43f5e;box-shadow:0 0 0 0 rgba(244,63,94,.6);animation:pulse 1.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(244,63,94,.6)}70%{box-shadow:0 0 0 10px rgba(244,63,94,0)}100%{box-shadow:0 0 0 0 rgba(244,63,94,0)}}
.watch-count{font-size:42px;font-weight:800;letter-spacing:-1px}
.watch-bar{position:absolute;left:0;bottom:0;height:5px;width:100%;background:rgba(255,255,255,.18)}
.watch-bar i{display:block;height:100%;background:linear-gradient(90deg,#7db0ff,#fff);transition:width .9s linear}
.watch-note{font-size:11.5px;opacity:.8;text-align:center;max-width:280px}

/* ---------- missions ---------- */
.mission-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:10px}
.mission-list li{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:13.5px}
.mission-list li span:nth-child(2){flex:1}
.mission-list li.done{border-color:#bfe8cd;background:#f4fbf6}
.mission-check{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--bg);color:var(--muted);font-weight:800;font-size:12px}
.mission-list li.done .mission-check{background:var(--green);color:#fff}
.mission-go{padding:6px 14px;font-size:12.5px}
.mission-progress{display:flex;align-items:center;gap:12px}
.mission-progress .progress{flex:1}
.mission-progress small{font-size:12px;color:var(--muted);white-space:nowrap}

/* ---------- confirm ---------- */
.confirm{text-align:center}
.confirm-ic{font-size:40px;margin-bottom:8px}
.confirm p{margin:6px 0;font-size:14px}
.confirm .muted{font-size:12.5px}

/* ---------- profile ---------- */
.profile-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.profile-head>div:nth-child(2){flex:1}
.profile-head strong{display:block;font-size:15px}
.profile-head span{font-size:12px;color:var(--muted)}
.profile-email{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;margin-bottom:14px;border:1px solid var(--line);border-radius:10px;font-size:12px}
.profile-email span{color:var(--muted)}
.profile-email strong{min-width:0;overflow-wrap:anywhere;text-align:right}
.avatar-lg{width:52px;height:52px;font-size:20px}
.badge{background:var(--blue-soft);color:var(--blue);font-weight:700;font-size:12px;padding:6px 12px;border-radius:99px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.stat{background:var(--bg);border-radius:11px;padding:12px;text-align:center}
.stat span{display:block;font-size:11px}
.stat strong{font-size:15px}
.profile-code{display:flex;align-items:center;justify-content:space-between;border:1px dashed var(--blue);border-radius:11px;padding:12px 14px;background:var(--blue-soft)}
.profile-code span{font-size:12px;color:var(--muted)}
.profile-code strong{letter-spacing:2px;font-size:15px;color:var(--blue)}

/* ---------- support ---------- */
.support p{font-size:13.5px}
.support-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13.5px}
.support-list li{display:flex;gap:10px;align-items:center}
.support details{border-top:1px solid var(--line);padding:10px 0;font-size:13.5px}
.support summary{cursor:pointer;font-weight:600}
.support details p{color:var(--muted);margin:6px 0 0}

/* ---------- misc ---------- */
.refer-count{display:block;margin:-8px 0 14px;font-size:12px;opacity:.9}
.tx-list-full li{border-top:1px solid var(--line)}
.footer-links{margin:6px 0 0;font-size:12px}
.footer-links a{color:var(--blue);font-weight:600}
.footer-links a:hover{text-decoration:underline}

@media (max-width:560px){
  .toast-root{left:14px;right:14px;bottom:14px}
  .toast{max-width:none}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .modal-foot{justify-content:stretch}
  .modal-foot .btn{flex:1}
}

/* ---------- withdraw & achievements components ---------- */
.withdraw-balance-box{background:var(--blue-soft);border:1px solid #cce0ff;border-radius:12px;padding:14px;text-align:center}
.withdraw-balance-box span{display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
.withdraw-balance-box strong{font-size:20px;color:var(--blue-strong)}
.withdraw-balance-box small{font-size:13px;color:var(--navy);font-weight:600}
.method-btn{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:10px 8px;font-size:13px;font-weight:600;cursor:pointer;transition:.15s;font-family:inherit;color:var(--navy)}
.method-btn:hover{background:var(--bg)}
.method-btn.active{border-color:var(--blue-strong);background:var(--blue-soft);color:var(--blue-strong)}
.achievement-list li{transition:.15s}
.achievement-list li:hover{transform:translateX(3px)}


/* ---------- KYC & Identity Verification Component ---------- */
.modal-kyc { max-width: 680px; }
.kyc-hero {
  background: linear-gradient(135deg, #0b63e5 0%, #1e3a8a 100%);
  color: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 20px rgba(11,99,229,.18);
}
.kyc-hero-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 22px;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.25);
}
.kyc-hero-text h4 { margin: 0 0 3px; font-size: 15px; color: #fff; font-weight: 700; }
.kyc-hero-text p { margin: 0; font-size: 12px; opacity: .92; line-height: 1.4; color: #e0e7ff; }

.kyc-name-match-notice {
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 16px; display: flex; gap: 10px;
  align-items: flex-start; font-size: 12px; color: #92400e; line-height: 1.45;
}
.kyc-name-match-notice strong { color: #78350f; font-weight: 700; }

.kyc-section {
  background: #ffffff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 14px;
}
.kyc-section-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.kyc-step-pill {
  background: var(--blue-soft); color: var(--blue-strong); font-size: 11px;
  font-weight: 800; padding: 2px 8px; border-radius: 99px;
}

.kyc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 580px) { .kyc-grid-2 { grid-template-columns: 1fr; } }

.kyc-field { margin-bottom: 12px; text-align: left; }
.kyc-field label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--navy);
}
.kyc-badge {
  font-size: 10.5px; font-weight: 600; color: var(--blue-strong);
  background: var(--blue-soft); padding: 2px 7px; border-radius: 6px;
}
.kyc-badge-warn { color: #b45309; background: #fef3c7; }

.kyc-input-wrap { position: relative; display: flex; align-items: center; }
.kyc-input-wrap .field-ic {
  position: absolute; left: 12px; font-size: 14px; pointer-events: none; opacity: .6;
}
.kyc-input-wrap input, .kyc-input-wrap select {
  width: 100%; padding: 10px 12px 10px 36px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 13px; outline: none; font-family: inherit;
  background: #fbfcfe; color: var(--navy); transition: .15s;
}
.kyc-input-wrap input:focus, .kyc-input-wrap select:focus {
  border-color: var(--blue-strong); background: #fff;
  box-shadow: 0 0 0 3px rgba(7,107,253,.12);
}
.kyc-input-wrap.has-error input { border-color: var(--red); background: #fff9f9; }
.kyc-field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.kyc-upload-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px;
}
@media (max-width: 580px) { .kyc-upload-grid { grid-template-columns: 1fr; } }

.kyc-upload-card {
  border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 14px 10px;
  text-align: center; background: #f8fafc; cursor: pointer; position: relative;
  transition: all .18s; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.kyc-upload-card:hover {
  border-color: var(--blue-strong); background: #f0f7ff; transform: translateY(-2px);
}
.kyc-upload-card.has-file {
  border-color: var(--green); border-style: solid; background: #f2fcf5;
}
.kyc-upload-card input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.kyc-upload-icon { font-size: 24px; margin-bottom: 6px; }
.kyc-upload-card strong { display: block; font-size: 12px; color: var(--navy); margin-bottom: 2px; }
.kyc-upload-card small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.kyc-file-preview {
  display: none; align-items: center; gap: 4px; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--green); margin-top: 4px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kyc-upload-card.has-file .kyc-file-preview { display: flex; }
.kyc-upload-card.has-file .kyc-upload-hint { display: none; }


/* ---------- Watch page refresh ---------- */
.watch-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: clamp(24px, 5vw, 68px);
  min-height: 330px;
  padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(circle at 80% 0%, rgba(91,155,255,.3), transparent 36%), linear-gradient(125deg, #102b52 0%, #0b4fb8 62%, #076bfd 100%);
}
.watch-hero::after { right: 34%; top: -180px; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.09); background: transparent; }
.watch-hero-copy { max-width: 620px; }
.watch-hero .hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #dbeafe; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.watch-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); }
.watch-hero h1 { max-width: 560px; margin: 14px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.04em; }
.watch-hero p { max-width: 490px; margin-bottom: 22px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.65; }
.watch-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.watch-main-action { display: inline-flex; align-items: center; gap: 10px; padding: 13px 17px; background: #fff; color: #0b4fb8; box-shadow: 0 8px 20px rgba(7,30,66,.2); }
.watch-main-action:hover { background: #eff6ff; }
.watch-action-reward { padding: 4px 8px; border-radius: 99px; background: #e7f7ee; color: #15803d; font-size: 11px; }
.watch-hero .btn-white { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.watch-trust-note { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: rgba(255,255,255,.72); font-size: 11.5px; }
.watch-trust-note span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(52,211,153,.2); color: #6ee7b7; font-weight: 800; }
.watch-progress-card { position: relative; z-index: 2; padding: 22px; border: 1px solid rgba(255,255,255,.58); border-radius: 18px; background: rgba(255,255,255,.97); color: var(--navy); box-shadow: 0 20px 48px rgba(7,30,66,.2); }
.watch-progress-heading { display: flex; align-items: center; gap: 11px; }
.watch-progress-heading strong,.watch-progress-heading small { display: block; }
.watch-progress-heading strong { font-size: 14px; }
.watch-progress-heading small { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.watch-progress-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 24px; }
.watch-progress-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 26px 0 12px; }
.watch-progress-total strong { color: var(--navy); font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; }
.watch-progress-total span { color: var(--muted); font-size: 11px; }
.watch-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef7; }
.watch-progress-fill { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b63e5, #34d399); transition: width .35s ease; }
.watch-progress-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.watch-progress-foot strong { color: var(--navy); font-size: 12px; }
.watch-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.watch-section-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.watch-section-heading h2 { margin-top: 5px; font-size: 22px; letter-spacing: -.03em; }
.watch-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.watch-update-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #bbf7d0; border-radius: 99px; background: #f0fdf4; color: #15803d; font-size: 11px; font-weight: 700; }
.watch-update-tag span { font-size: 8px; }
#videoFeedGrid.opp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#videoFeedGrid .opp-card { min-height: 220px; padding: 20px; border-radius: 16px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
#videoFeedGrid .opp-card:hover { transform: translateY(-4px); border-color: #bdd4fc; box-shadow: 0 14px 30px rgba(18,38,65,.1); }
#videoFeedGrid .opp-ic { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
#videoFeedGrid .opp-card h3 { margin-top: 7px; font-size: 16px; }
#videoFeedGrid .opp-card p { min-height: 36px; margin: 2px 0 8px; line-height: 1.5; }
#videoFeedGrid .opp-note { width: fit-content; padding: 6px 9px; border-radius: 8px; background: var(--green-soft); color: #16803d; }
#videoFeedGrid .opp-card .btn { width: 100%; align-self: stretch; margin-top: 12px; padding: 11px 14px; }
@media (max-width: 900px) {
  .watch-hero { grid-template-columns: 1fr; gap: 24px; }
  .watch-progress-card { max-width: none; }
  #videoFeedGrid.opp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .watch-hero { gap: 22px; padding: 25px 20px; }
  .watch-hero h1 { font-size: 31px; }
  .watch-hero-actions { align-items: stretch; flex-direction: column; }
  .watch-hero-actions .btn { justify-content: center; width: 100%; text-align: center; }
  .watch-progress-card { padding: 18px; }
  .watch-section-heading { align-items: flex-start; flex-direction: column; }
  #videoFeedGrid.opp-grid { grid-template-columns: 1fr; gap: 12px; }
}
