.auth-summary-btn{display:none!important}
body.auth-modal-open{overflow:hidden}

.auth-entry-btn{display:inline-flex;align-items:center;gap:14px;border:none;padding:.62rem .78rem;border-radius:18px;cursor:pointer;font-weight:800;transition:transform .18s ease, box-shadow .22s ease, border-color .22s ease;background:linear-gradient(180deg,#ffffff,#f5f9ff);color:#10203f;border:1px solid rgba(65,105,225,.14);box-shadow:0 14px 34px rgba(33,78,170,.11);text-align:left;max-width:min(100%,380px);position:relative;overflow:hidden}
.auth-entry-btn::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent,rgba(255,255,255,.68),transparent);transform:translateX(-140%);transition:transform .55s ease}
.auth-entry-btn:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(33,78,170,.16)}
.auth-entry-btn:hover::after{transform:translateX(140%)}
.auth-entry-btn.guest{padding:.82rem 1rem}
.auth-entry-btn__rank{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.auth-entry-btn__text{display:flex;flex-direction:column;min-width:0;line-height:1.08}
.auth-entry-btn__title{font-size:.95rem;font-weight:900;color:#173058;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.auth-entry-btn__meta{font-size:.74rem;color:#5d749a;font-weight:800}
.auth-entry-btn.guest .auth-entry-btn__title{max-width:none}
.auth-entry-btn .guest-only{padding-left:2px}
body.dark .auth-entry-btn{background:linear-gradient(180deg,#102144,#0b1731);color:#ecf3ff;border-color:#294171;box-shadow:0 0 18px rgba(80,130,255,.16)}
body.dark .auth-entry-btn__title{color:#eef4ff}
body.dark .auth-entry-btn__meta{color:#a7bbdf}

.auth-rank-badge{display:inline-flex;align-items:center;gap:14px;padding:12px 18px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(246,250,255,.88));border:1px solid rgba(65,105,225,.12);box-shadow:0 18px 42px rgba(39,82,173,.10);backdrop-filter:blur(10px);color:#173058;max-width:100%;transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease}
.auth-rank-badge:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 26px 52px rgba(39,82,173,.16);border-color:rgba(11,114,255,.22)}
.auth-rank-badge.compact{padding:0;border-radius:999px;background:transparent;border:none;box-shadow:none;gap:0;backdrop-filter:none}
.auth-rank-badge__media{width:94px;height:94px;display:grid;place-items:center;flex:0 0 auto;background:transparent;box-shadow:none;padding:0;position:relative;isolation:isolate;border:none;overflow:visible}
.auth-rank-badge__media::before,.auth-rank-badge__media::after{content:none!important;display:none!important}
.auth-rank-badge.compact .auth-rank-badge__media{width:74px;height:74px}
.auth-rank-badge__media img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 14px 24px rgba(27,63,146,.16));transform:translateZ(0)}
.auth-rank-badge:hover .auth-rank-badge__media img{transform:translateY(-1px) scale(1.01)}
.auth-rank-badge__text{display:flex;flex-direction:column;line-height:1;min-width:0;gap:6px}
.auth-rank-badge__name{font-size:1rem;font-weight:900;color:#173058}
.auth-rank-badge__tag{font-size:.7rem;color:#61789b;font-weight:900;letter-spacing:.24em;text-transform:uppercase}
.auth-rank-badge.compact .auth-rank-badge__text{display:none}
.auth-rank-inline{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.auth-rank-badge.start .auth-rank-badge__media::after{border-color:rgba(38,168,228,.26)}
.auth-rank-badge.redovni .auth-rank-badge__media::after{border-color:rgba(31,90,175,.26)}
.auth-rank-badge.premium .auth-rank-badge__media::after{border-color:rgba(201,170,72,.32)}
.auth-rank-badge.vip .auth-rank-badge__media::after{border-color:rgba(120,140,165,.28)}
.auth-rank-badge.elitni .auth-rank-badge__media::after{border-color:rgba(26,55,135,.32)}
body.dark .auth-rank-badge{background:linear-gradient(180deg,rgba(12,24,48,.92),rgba(8,16,32,.90));border-color:#294171;box-shadow:0 24px 52px rgba(0,0,0,.32)}
body.dark .auth-rank-badge__name{color:#edf4ff}
body.dark .auth-rank-badge__tag{color:#9eb3da}
body.dark .auth-rank-badge__media::before{background:radial-gradient(circle,rgba(126,164,255,.20),rgba(24,52,108,.16) 56%,transparent 72%)}
body.dark .auth-rank-badge__media::after{display:none!important;border:none!important;box-shadow:none!important}

.auth-page-strip{display:none!important}

.auth-overlay{position:fixed;inset:0;background:rgba(7,14,29,.36);display:none;align-items:center;justify-content:flex-end;z-index:300;padding:0;backdrop-filter:none;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .26s ease, visibility .26s ease}
.auth-overlay.open{display:flex;opacity:1;visibility:visible;pointer-events:auto;backdrop-filter:blur(12px)}
.auth-panel{width:min(96vw,580px);height:100%;background:linear-gradient(180deg,#ffffff,#f6faff);box-shadow:-18px 0 58px rgba(6,18,43,.18);padding:22px;overflow:auto;transform:translateX(26px);transition:transform .28s ease}
.auth-overlay.open .auth-panel{transform:translateX(0)}
body.dark .auth-panel{background:linear-gradient(180deg,#0f1a31,#0b1427);color:#e8f1ff;border-left:1px solid #243966}
.auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;position:sticky;top:0;padding-bottom:10px;background:inherit;z-index:3}
.auth-top h2{margin:0;font-size:1.14rem;color:#173058;font-weight:900}
body.dark .auth-top h2{color:#edf4ff}
.auth-close{border:none;background:transparent;font-size:28px;cursor:pointer;color:inherit;line-height:1}
.auth-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.auth-tab{padding:.6rem .92rem;border:1px solid rgba(65,105,225,.18);border-radius:999px;cursor:pointer;background:#f4f8ff;font-weight:900;color:#173058;transition:all .18s ease}
.auth-tab:hover{transform:translateY(-1px)}
body.dark .auth-tab{background:#122242;color:#e6f1ff;border-color:#2B3C63}
.auth-tab.active{background:#0b72ff;color:#fff;border-color:#0b72ff;box-shadow:0 10px 24px rgba(11,114,255,.24)}
.auth-section{display:none;animation:authFade .24s ease}.auth-section.active{display:block}
@keyframes authFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.auth-panel input,.auth-panel textarea{width:100%;padding:.86rem .96rem;border:1px solid rgba(65,105,225,.14);border-radius:15px;background:#fff;color:#0d1b2a;outline:none;transition:border-color .15s ease, box-shadow .18s ease, transform .18s ease;font:inherit}
.auth-panel input:focus,.auth-panel textarea:focus{border-color:#0b72ff;box-shadow:0 0 0 4px rgba(11,114,255,.10);transform:translateY(-1px)}
.auth-panel textarea{min-height:88px;resize:vertical}
body.dark .auth-panel input,body.dark .auth-panel textarea{background:#122242;color:#e8f1ff;border-color:#2B3C63}
.auth-panel label{display:block;font-weight:900;margin:.82rem 0 .36rem;color:#173058;font-size:.95rem}
body.dark .auth-panel label{color:#edf4ff}
.auth-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-row.single{grid-template-columns:1fr}
.auth-btn{border:none;padding:.88rem 1rem;border-radius:15px;cursor:pointer;font-weight:900;background:linear-gradient(180deg,#1590ff,#0b72ff);color:#fff;box-shadow:0 14px 26px rgba(11,114,255,.24);transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease}
.auth-btn:hover{transform:translateY(-1px);box-shadow:0 18px 30px rgba(11,114,255,.28)}
.auth-btn.secondary{background:#eef3ff;color:#1d2a44;border:1px solid rgba(65,105,225,.16);box-shadow:none}
.auth-btn.secondary:hover{box-shadow:0 10px 22px rgba(39,82,173,.08)}
body.dark .auth-btn.secondary{background:#122242;color:#e6f1ff;border-color:#2B3C63}
.auth-muted{color:#5a6b8a;font-size:.9rem;line-height:1.45}.auth-msg{margin:10px 0;padding:12px 14px;border-radius:14px;display:none}.auth-msg.show{display:block;animation:authFade .18s ease}.auth-msg.ok{background:#e9fff3;color:#0f5132}.auth-msg.err{background:#ffe9ea;color:#842029}
.auth-statbar{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 18px}
.auth-stat{background:linear-gradient(180deg,#ffffff,#f6faff);border:1px solid rgba(65,105,225,.12);padding:14px;border-radius:18px;text-align:center;box-shadow:0 12px 26px rgba(39,82,173,.07)}
.auth-stat strong{display:block;font-size:1.18rem;color:#173058}
.auth-stat span{color:#5f769b;font-size:.82rem;font-weight:800}
body.dark .auth-stat{background:#102144;border-color:#243966;box-shadow:none}
body.dark .auth-stat strong{color:#edf4ff}
body.dark .auth-stat span{color:#9db3da}
.auth-rank{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#0f2247,#0b72ff 62%,#77c6ff);color:#fff;border-radius:26px;padding:18px;margin:10px 0 14px;box-shadow:0 22px 42px rgba(28,72,170,.28);position:relative;overflow:hidden}
.auth-rank::after{content:"";position:absolute;inset:auto -12% -45% 25%;height:160px;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 60%);pointer-events:none}
.auth-rank-hero{display:flex;align-items:center;gap:16px;min-width:0;flex:1;position:relative;z-index:1}
.auth-rank-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.auth-rank-copy strong{font-size:1.14rem}
.auth-rank-copy small{opacity:.9;text-transform:uppercase;letter-spacing:.18em;font-weight:800}
.auth-points-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:800;font-size:.94rem}
.auth-progress{height:12px;background:rgba(255,255,255,.24);border-radius:999px;overflow:hidden;margin-top:8px;min-width:170px}.auth-progress>span{display:block;height:100%;background:linear-gradient(90deg,#ffffff,#d9eeff);box-shadow:0 0 18px rgba(255,255,255,.35)}
.auth-list{display:grid;gap:12px;margin-top:10px}
.auth-reward-grid{display:grid;grid-template-columns:1fr;gap:12px}
.auth-card{background:linear-gradient(180deg,#ffffff,#f9fbff);border:1px solid rgba(65,105,225,.12);padding:15px;border-radius:20px;box-shadow:0 12px 28px rgba(39,82,173,.06);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.auth-card:hover{transform:translateY(-2px);box-shadow:0 18px 32px rgba(39,82,173,.09)}
.auth-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.auth-card h4{margin:0 0 5px;color:#173058;font-size:1rem}
.auth-card p{margin:0 0 10px;font-size:.9rem;line-height:1.5;color:#50627f}
.auth-card--favorite p,.auth-chip-btn{font-size:.84rem}
.auth-card--history h4,.auth-card--reward h4{padding-right:4px}
.auth-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.auth-chip{display:inline-flex;align-items:center;justify-content:center;padding:.4rem .68rem;border-radius:999px;background:#eef3ff;color:#1d2a44;font-size:.8rem;font-weight:900;border:1px solid rgba(65,105,225,.12)}
.auth-chip.success{background:#eaf9f0;color:#1a6a44;border-color:rgba(26,106,68,.12)}
.auth-chip.expired{background:#f3f4f6;color:#5a6473;border-color:rgba(90,100,115,.12)}
.auth-chip-cloud{display:flex;gap:8px;flex-wrap:wrap}
.auth-chip-btn{border:1px solid rgba(65,105,225,.14);background:#f4f8ff;color:#18315b;padding:.7rem .86rem;border-radius:999px;font-weight:800;cursor:pointer;transition:transform .15s ease, box-shadow .18s ease, border-color .18s ease;max-width:100%;text-align:left}
.auth-chip-btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(39,82,173,.08);border-color:rgba(11,114,255,.22)}
.auth-history-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.auth-wallet-title{font-weight:900;color:#173058;margin:2px 0 2px;padding-left:2px}
body.dark .auth-card{background:#102144;border-color:#243966;box-shadow:none} 
body.dark .auth-card p{color:#b8c9e3}
body.dark .auth-wallet-title{color:#edf4ff}
body.dark .auth-chip{background:#18315f;color:#dce9ff;border-color:#294171}
body.dark .auth-chip.success{background:#123429;color:#c9f0dd;border-color:#235c45}
body.dark .auth-chip.expired{background:#1f2937;color:#d2d8e2;border-color:#374151}
body.dark .auth-chip-btn{background:#122242;color:#dce9ff;border-color:#294171}
.auth-empty{padding:16px;border:1px dashed rgba(65,105,225,.25);border-radius:16px;color:#5a6b8a;text-align:center;background:rgba(255,255,255,.55)}
.auth-linkbtn{border:none;background:#eef4ff;color:#0b72ff;cursor:pointer;padding:.72rem .88rem;border-radius:14px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center}
.auth-linkbtn:hover{background:#e7f0ff}

.auth-order-form{position:relative}
.auth-order-form.auth-locked>*:not(.auth-paywall){filter:blur(3px);pointer-events:none;user-select:none}
.auth-paywall{position:absolute;inset:0;display:none;align-items:center;justify-content:center;padding:18px;z-index:40;border-radius:18px;background:rgba(245,249,255,.42);backdrop-filter:blur(10px)}
.auth-paywall-card{width:min(100%,500px);background:rgba(255,255,255,.98);border:1px solid rgba(65,105,225,.12);border-radius:26px;padding:24px;text-align:center;box-shadow:0 30px 60px rgba(33,73,151,.16);animation:authFade .24s ease}
.auth-paywall-kicker{display:inline-flex;align-items:center;gap:8px;padding:.48rem .76rem;border-radius:999px;background:#eef4ff;color:#173058;font-size:.82rem;font-weight:900;border:1px solid rgba(65,105,225,.12);margin-bottom:12px}
.auth-paywall-card h3{margin:0 0 10px;color:#173058;font-size:1.38rem}
.auth-paywall-card p{margin:0 0 14px;color:#63799c;line-height:1.55}
.auth-paywall-card .auth-actions{justify-content:center}
.auth-paywall-note{font-size:.9rem;color:#60769d}
body.dark .auth-paywall{background:rgba(5,10,22,.50)}
body.dark .auth-paywall-card{background:rgba(10,18,36,.95);border-color:#294171;box-shadow:0 18px 50px rgba(0,0,0,.45)}
body.dark .auth-paywall-kicker{background:#13254a;color:#e5efff;border-color:#294171}
body.dark .auth-paywall-card h3{color:#eef4ff}
body.dark .auth-paywall-card p, body.dark .auth-paywall-note{color:#b7c8e6}

@media (max-width:920px){
  .auth-panel{width:min(100vw,620px)}
}
@media (max-width:760px){
  .auth-entry-btn{max-width:100%}
  .auth-top{position:static}
}
@media (max-width:560px){
  .auth-panel{width:100%;padding:18px 14px 22px}
  .auth-row{grid-template-columns:1fr}
  .auth-statbar{grid-template-columns:1fr}
  .auth-rank{flex-direction:column;align-items:flex-start;padding:16px}
  .auth-rank-hero{align-items:flex-start}
  .auth-entry-btn__title{max-width:150px}
  .auth-rank-badge__media{width:66px;height:66px}
  .auth-paywall-card{padding:20px 18px;border-radius:22px}
  .auth-actions{gap:7px}
  .auth-linkbtn,.auth-btn,.auth-btn.secondary,.auth-chip-btn{width:100%;justify-content:center}
  .auth-card-top{flex-direction:column;align-items:flex-start}
}


.auth-text-btn{border:none;background:transparent;color:#0b72ff;font-weight:900;cursor:pointer;padding:.6rem 0 0;text-align:left}
.auth-text-btn:hover{opacity:.86}
body.dark .auth-text-btn{color:#8dbaff}
.auth-reset-step{display:none}
.auth-reset-step.active{display:block;animation:authFade .24s ease}
.auth-card--soft{background:linear-gradient(180deg,#f9fbff,#f3f8ff)}
body.dark .auth-card--soft{background:linear-gradient(180deg,#112145,#0d1a34)}
.auth-reset-timer{margin-top:14px;padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f3f8ff);border:1px solid rgba(65,105,225,.14);box-shadow:0 14px 30px rgba(39,82,173,.08)}
.auth-reset-timer__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.auth-reset-timer__label{font-size:.8rem;font-weight:900;color:#5d749a;letter-spacing:.08em;text-transform:uppercase}
.auth-reset-timer__value{font-size:1.2rem;font-weight:900;color:#173058;font-variant-numeric:tabular-nums}
.auth-reset-timer__bar{height:10px;border-radius:999px;background:rgba(11,114,255,.12);overflow:hidden}
.auth-reset-timer__bar>span{display:block;height:100%;width:100%;border-radius:999px;background:linear-gradient(90deg,#1aa0ff,#0b72ff);box-shadow:0 0 18px rgba(11,114,255,.22);transition:width .25s linear}
.auth-reset-timer__meta{margin-top:10px;font-size:.86rem;color:#60769d;line-height:1.45}
.auth-reset-timer.is-warning .auth-reset-timer__value{color:#d97706}
.auth-reset-timer.is-warning .auth-reset-timer__bar>span{background:linear-gradient(90deg,#f6b73c,#f08b23)}
.auth-reset-timer.is-expired .auth-reset-timer__value{color:#c62828}
.auth-reset-timer.is-expired .auth-reset-timer__bar>span{background:linear-gradient(90deg,#ef4444,#dc2626)}
body.dark .auth-reset-timer{background:linear-gradient(180deg,#102144,#0c1730);border-color:#294171;box-shadow:none}
body.dark .auth-reset-timer__label{color:#9eb3da}
body.dark .auth-reset-timer__value{color:#eef4ff}
body.dark .auth-reset-timer__meta{color:#b9cae6}
.auth-btn[disabled],.auth-btn.secondary[disabled]{opacity:.58;cursor:not-allowed;transform:none;box-shadow:none}
.auth-rank{background:linear-gradient(135deg,#0f2247,#0b72ff 58%,#7fcfff);color:#fff;border-radius:30px;padding:20px;box-shadow:0 24px 50px rgba(28,72,170,.28)}
body.dark .auth-rank{background:linear-gradient(135deg,#0b1731,#123570 54%,#1a63d0);box-shadow:0 24px 60px rgba(0,0,0,.42);border:1px solid rgba(92,126,201,.28)}
.auth-card--favorite p,.auth-chip-btn{font-size:.78rem;letter-spacing:.01em}
.auth-chip-btn{line-height:1.35;font-weight:850;padding:.72rem .82rem}
.auth-card--favorite h4,.auth-card--history h4,.auth-card--reward h4{font-size:.96rem}
.auth-card--favorite p,.auth-card--history p,.auth-card--reward p{font-size:.84rem}
body.auth-celebrate .auth-panel{animation:authPulse .72s ease}
@keyframes authPulse{0%{transform:translateX(0) scale(1)}35%{transform:translateX(0) scale(1.01)}100%{transform:translateX(0) scale(1)}}
@media (max-width:560px){
  .auth-rank-badge__media{width:84px;height:84px}
  .auth-rank-badge.compact .auth-rank-badge__media{width:68px;height:68px}
  .auth-tab{padding:.56rem .78rem;font-size:.88rem}
}


.auth-referral-hint{margin-top:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(11,114,255,.14);background:linear-gradient(180deg,rgba(245,249,255,.98),rgba(237,245,255,.94));display:grid;gap:4px;color:#173058;box-shadow:0 14px 26px rgba(36,82,173,.07)}
.auth-referral-hint strong{font-size:.84rem;letter-spacing:.14em;text-transform:uppercase;color:#0b72ff}
.auth-referral-hint span{font-size:.88rem;line-height:1.5;color:#435d84}
body.dark .auth-referral-hint{background:linear-gradient(180deg,rgba(12,24,48,.96),rgba(8,16,32,.94));border-color:#2c467e;box-shadow:0 0 0 1px rgba(114,160,255,.10) inset, 0 0 26px rgba(50,110,255,.18)}
body.dark .auth-referral-hint strong{color:#dcecff;text-shadow:0 0 12px rgba(120,180,255,.42)}
body.dark .auth-referral-hint span{color:#b6c8e7}
.auth-card--referral-main{display:grid;gap:14px}
.auth-referral-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.auth-referral-linkrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.auth-referral-linkrow input{font-size:.92rem}
.auth-referral-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.auth-card--referral h4{font-size:.96rem}
.auth-card--favorite p,.auth-card--history p,.auth-card--reward p,.auth-card--referral p{font-size:.8rem;line-height:1.5}
body.dark .auth-panel{box-shadow:0 0 0 1px rgba(108,150,255,.10) inset, -10px 0 40px rgba(0,0,0,.42), 0 0 40px rgba(46,96,255,.10)}
body.dark .auth-rank-badge__media::after{display:none!important;border:none!important;box-shadow:none!important}
body.dark .auth-rank-badge__media img{filter:drop-shadow(0 0 22px rgba(112,170,255,.18)) drop-shadow(0 14px 28px rgba(10,30,72,.55))}
body.dark .auth-card{box-shadow:0 0 0 1px rgba(94,132,205,.08) inset, 0 18px 34px rgba(0,0,0,.18)}
body.dark .auth-btn{box-shadow:0 0 0 1px rgba(186,224,255,.08) inset, 0 0 18px rgba(74,124,255,.20)}
body.dark .auth-btn.secondary{box-shadow:0 0 0 1px rgba(155,198,255,.08) inset, 0 0 14px rgba(54,102,211,.10)}
body.dark .auth-progress{background:rgba(122,170,255,.12);box-shadow:0 0 0 1px rgba(122,170,255,.08) inset}
body.dark .auth-progress span{box-shadow:0 0 20px rgba(120,184,255,.40)}
@media (max-width:640px){.auth-referral-linkrow,.auth-referral-stats{grid-template-columns:1fr}.auth-referral-linkrow .auth-btn{width:100%}}


/* ===== Final premium drawer + rank polish ===== */
.auth-overlay.open{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.auth-panel{background:linear-gradient(180deg,#fcfeff,#f2f7ff)!important}
body.dark .auth-panel{
  background:linear-gradient(180deg,#091427,#0d1d39 58%,#102445)!important;
  box-shadow:0 0 0 1px rgba(135,180,255,.12) inset, -12px 0 42px rgba(0,0,0,.44), 0 0 44px rgba(72,128,255,.14)!important;
}
.auth-top{background:transparent!important;border-bottom:1px solid rgba(30,92,190,.10)!important}
body.dark .auth-top{border-bottom-color:rgba(120,168,255,.16)!important}
.auth-top h2{color:#193663!important;text-shadow:none!important}
body.dark .auth-top h2{color:#eef4ff!important;text-shadow:0 0 10px rgba(122,182,255,.24)!important}
.auth-close{background:rgba(255,255,255,.86)!important;border:1px solid rgba(30,92,190,.12)!important;box-shadow:none!important}
body.dark .auth-close{background:rgba(16,33,68,.88)!important;border-color:rgba(135,180,255,.18)!important;color:#eef4ff!important}

.auth-rank{
  position:relative;
  overflow:hidden;
  align-items:center!important;
  gap:18px!important;
  padding:18px 20px!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,#0d4fd0 0%,#2c79ee 54%,#70bfff 100%)!important;
  box-shadow:0 22px 44px rgba(27,79,184,.20)!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
.auth-rank::before{
  content:"";
  position:absolute;inset:0;
  background:radial-gradient(circle at 14% 24%,rgba(255,255,255,.22),transparent 28%), linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%);
  pointer-events:none;
}
body.dark .auth-rank{
  background:linear-gradient(135deg,#081225 0%,#0f2b63 44%,#1b63d3 100%)!important;
  border-color:rgba(140,186,255,.22)!important;
  box-shadow:0 0 0 1px rgba(152,198,255,.10) inset, 0 20px 42px rgba(0,0,0,.46), 0 0 30px rgba(76,132,255,.24)!important;
}
body.dark .auth-rank::after{
  content:"";
  position:absolute;inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.04) inset, 0 0 18px rgba(110,170,255,.22), 0 0 36px rgba(52,112,255,.18);
}
.auth-rank-hero{gap:16px!important;align-items:center!important}
.auth-rank-copy{gap:6px!important}
.auth-rank-copy strong,
.auth-rank-copy small,
.auth-points-line,
#authPoints,
#authNextRank{
  text-shadow:none!important;
  filter:none!important;
}
.auth-rank-copy strong{font-size:1.75rem!important;line-height:1.05;color:#fff!important;font-weight:900}
.auth-rank-copy small{font-size:.84rem!important;letter-spacing:.24em!important;color:rgba(235,244,255,.92)!important}
.auth-points-line{display:flex;gap:12px;flex-wrap:wrap;font-weight:800;color:#fff!important}
#authPoints,#authNextRank{font-size:1rem!important;color:#fff!important}
.auth-progress{margin-top:4px;background:rgba(255,255,255,.20)!important;border:none!important;box-shadow:none!important}
.auth-progress span{background:linear-gradient(90deg,#ffffff,#d7ebff)!important;box-shadow:none!important}
body.dark .auth-progress{background:rgba(182,213,255,.18)!important}
body.dark .auth-progress span{background:linear-gradient(90deg,#ffffff,#dcedff)!important}

.auth-rank-badge.hero{
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.auth-rank-badge.hero .auth-rank-badge__text{display:none!important}
.auth-rank-badge.hero .auth-rank-badge__media{
  width:108px!important;
  height:108px!important;
  border-radius:50%!important;
  padding:10px!important;
  overflow:visible!important;
  background:linear-gradient(180deg,#ffffff,#edf5ff)!important;
  border:1px solid rgba(29,108,224,.14)!important;
  box-shadow:0 14px 30px rgba(31,83,182,.16), inset 0 0 0 1px rgba(255,255,255,.72)!important;
}
.auth-rank-badge.hero .auth-rank-badge__media::before{
  inset:-12px!important;
  background:radial-gradient(circle,rgba(255,255,255,.56),rgba(17,95,225,.10) 60%,transparent 72%)!important;
}
.auth-rank-badge.hero .auth-rank-badge__media::after{
  inset:6px!important;
  border-radius:50%!important;
  border:2px solid rgba(28,136,235,.68)!important;
  box-shadow:none!important;
}
.auth-rank-badge.hero .auth-rank-badge__media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  filter:none!important;
  transform:none!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media{
  background:linear-gradient(180deg,#fdfefe,#edf5ff)!important;
  border-color:rgba(164,208,255,.18)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.55) inset, 0 0 18px rgba(115,182,255,.18), 0 12px 26px rgba(3,16,46,.46)!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media::before{
  background:radial-gradient(circle,rgba(186,220,255,.34),rgba(48,103,210,.14) 58%,transparent 72%)!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media::after{
  border-color:rgba(44,174,255,.72)!important;
}

.auth-statbar{gap:12px!important}
.auth-stat,.auth-card{
  box-shadow:none!important;
}
body.dark .auth-stat,body.dark .auth-card{
  box-shadow:0 0 0 1px rgba(110,154,228,.10) inset, 0 12px 24px rgba(0,0,0,.16)!important;
}
.auth-card p,.auth-chip-btn,.auth-muted{letter-spacing:0!important;text-shadow:none!important;filter:none!important}
.auth-card--favorite p,.auth-card--history p,.auth-card--reward p,.auth-card--referral p{font-size:.78rem!important;line-height:1.42!important}
.auth-chip-btn{font-size:.8rem!important;padding:.68rem .8rem!important}

@media (max-width:560px){
  .auth-rank{padding:16px!important;gap:14px!important}
  .auth-rank-copy strong{font-size:1.38rem!important}
  .auth-rank-copy small{font-size:.76rem!important}
  .auth-rank-badge.hero .auth-rank-badge__media{width:92px!important;height:92px!important}
}


/* ===== Final polish: clean day card + RGB dark ring ===== */
.auth-rank{
  background:linear-gradient(135deg,#1144a8 0%,#1d63dc 54%,#4fa4ff 100%)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 18px 38px rgba(24,76,181,.18)!important;
}
.auth-rank::before,
.auth-rank::after{content:none!important}
.auth-rank-copy strong,
.auth-rank-copy small,
.auth-points-line,
#authPoints,
#authNextRank,
.auth-progress,
.auth-progress span{
  text-shadow:none!important;
  filter:none!important;
}
.auth-rank-badge.hero .auth-rank-badge__media{
  width:108px!important;
  height:108px!important;
  padding:10px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f3f8ff 100%)!important;
  border:1px solid rgba(34,122,234,.14)!important;
  box-shadow:0 10px 22px rgba(23,76,181,.14), inset 0 0 0 1px rgba(255,255,255,.72)!important;
  position:relative!important;
  isolation:isolate!important;
}
.auth-rank-badge.hero .auth-rank-badge__media::before{
  content:""!important;
  position:absolute!important;
  inset:-6px!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(154,215,255,.98),rgba(40,149,242,.95),rgba(232,244,255,.96))!important;
  z-index:-2!important;
  opacity:.9!important;
}
.auth-rank-badge.hero .auth-rank-badge__media::after{
  content:""!important;
  position:absolute!important;
  inset:-3px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 0 0 2px rgba(50,152,240,.55) inset!important;
  z-index:-1!important;
  border:none!important;
}
.auth-rank-badge.hero .auth-rank-badge__media img{
  filter:none!important;
  image-rendering:auto!important;
}
body.dark .auth-rank{
  background:linear-gradient(180deg,#08172f 0%,#0b2147 58%,#12346b 100%)!important;
  border:1px solid rgba(137,190,255,.18)!important;
  box-shadow:0 0 0 1px rgba(151,200,255,.07) inset, 0 18px 38px rgba(0,0,0,.44)!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media{
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%)!important;
  border-color:rgba(170,218,255,.16)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.74)!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media::before{
  content:""!important;
  position:absolute!important;
  inset:-9px!important;
  border-radius:50%!important;
  background:conic-gradient(from 0deg, rgba(255,255,255,.98), rgba(163,222,255,.98), rgba(56,141,255,.98), rgba(176,235,255,.98), rgba(255,255,255,.98))!important;
  filter:blur(1px)!important;
  animation:authRgbSpin 5.8s linear infinite!important;
  z-index:-3!important;
  opacity:.98!important;
}
body.dark .auth-rank-badge.hero .auth-rank-badge__media::after{
  content:""!important;
  position:absolute!important;
  inset:-4px!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 50% 50%, rgba(6,18,40,0) 64%, rgba(166,225,255,.42) 74%, rgba(70,150,255,.94) 82%, rgba(232,246,255,.92) 100%)!important;
  box-shadow:0 0 14px rgba(90,170,255,.55), 0 0 28px rgba(43,118,255,.34), 0 0 40px rgba(210,242,255,.22)!important;
  z-index:-2!important;
}
body.dark .auth-rank-copy strong,
body.dark .auth-rank-copy small,
body.dark .auth-points-line,
body.dark #authPoints,
body.dark #authNextRank{ text-shadow:none!important; }
@keyframes authRgbSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}


/* ===== profile rank card polish: thinner frame, no day glare, circular RGB ring ===== */
.auth-rank{
  align-items:center!important;
  gap:16px!important;
  padding:18px 18px 16px!important;
  border-radius:28px!important;
  border:1px solid rgba(30,104,225,.12)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f4f8ff 26%,#1e72ef 68%,#68beff 100%)!important;
  box-shadow:0 18px 34px rgba(22,74,170,.12)!important;
}
.auth-rank::after{display:none!important}
.auth-rank-hero{align-items:center!important;gap:18px!important}
.auth-rank-copy strong,.auth-rank-copy small,.auth-points-line{ text-shadow:none!important; }
.auth-rank-copy strong{font-size:1.22rem!important;letter-spacing:-.01em!important}
.auth-rank-copy small{opacity:.95!important}
.auth-points-line{font-size:1rem!important}
.auth-rank .auth-progress{height:11px!important;background:rgba(255,255,255,.28)!important;box-shadow:none!important}
.auth-rank .auth-progress>span{background:linear-gradient(90deg,#ffffff,#e8f4ff)!important;box-shadow:none!important}
.auth-rank #authRankBadgeWrap{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.auth-rank #authRankBadgeWrap .auth-rank-badge{
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  width:98px!important;
  height:98px!important;
  border-radius:50%!important;
  background:linear-gradient(180deg,#ffffff,#eef5ff)!important;
  box-shadow:0 10px 24px rgba(20,77,178,.12), inset 0 0 0 1px rgba(255,255,255,.92)!important;
  overflow:visible!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:50%;
  padding:1.5px;
  background:conic-gradient(from 0deg,#d8f0ff,#6ec8ff,#1d87ff,#6ec8ff,#ffffff,#6ec8ff,#1d87ff,#6ec8ff,#d8f0ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity:.7;
  filter:none;
  z-index:0;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  border:1px solid rgba(30,114,239,.18);
  background:transparent;
  z-index:0;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:86px!important;
  height:86px!important;
  filter:none!important;
  box-shadow:none!important;
}
body.dark .auth-rank{
  border-color:rgba(134,182,255,.16)!important;
  background:linear-gradient(135deg,#091223 0%,#0e1e3a 34%,#1358d8 70%,#67c8ff 100%)!important;
  box-shadow:0 0 0 1px rgba(132,180,255,.08) inset, 0 20px 36px rgba(0,0,0,.32), 0 0 22px rgba(67,122,255,.10)!important;
}
body.dark .auth-rank-copy strong,
body.dark .auth-rank-copy small,
body.dark .auth-points-line{ text-shadow:0 0 8px rgba(168,218,255,.14)!important; }
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:linear-gradient(180deg,#fdfefe,#edf4ff)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.72) inset, 0 10px 22px rgba(0,0,0,.26), 0 0 22px rgba(78,140,255,.14)!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-5px;
  padding:1px;
  background:conic-gradient(from 0deg,#ffffff,#bfe4ff,#72c9ff,#2b88ff,#ffffff,#8ad6ff,#2b88ff,#ffffff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity:.98;
  filter:drop-shadow(0 0 7px rgba(255,255,255,.22)) drop-shadow(0 0 12px rgba(88,178,255,.28));
  animation:authRgbSpin 4.8s linear infinite;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  inset:7px;
  border-color:rgba(179,226,255,.30);
  box-shadow:0 0 10px rgba(106,187,255,.18);
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{filter:none!important}
@keyframes authRgbSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media (max-width:640px){
  .auth-rank{padding:16px!important;border-radius:24px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{width:88px!important;height:88px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{width:76px!important;height:76px!important}
}


/* ===== final luxury rank card v2: clean day mode + thin RGB ring ===== */
@keyframes otBlueRingSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes otLedPulse{0%{opacity:.72;filter:drop-shadow(0 0 4px rgba(255,255,255,.16)) drop-shadow(0 0 8px rgba(82,173,255,.16))}50%{opacity:1;filter:drop-shadow(0 0 7px rgba(255,255,255,.26)) drop-shadow(0 0 14px rgba(82,173,255,.26))}100%{opacity:.78;filter:drop-shadow(0 0 4px rgba(255,255,255,.16)) drop-shadow(0 0 8px rgba(82,173,255,.16))}}

.auth-rank{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  align-items:center!important;
  gap:18px!important;
  padding:18px 18px 16px!important;
  border-radius:28px!important;
  border:1px solid rgba(34,108,226,.14)!important;
  background:linear-gradient(135deg,#0d3f97 0%,#1860d7 52%,#62bcff 100%)!important;
  box-shadow:0 14px 30px rgba(20,69,158,.18)!important;
}
.auth-rank::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  padding:1px!important;
  background:conic-gradient(from 0deg,rgba(255,255,255,.86),rgba(173,226,255,.96),rgba(54,131,255,.95),rgba(173,226,255,.96),rgba(255,255,255,.86))!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
  -webkit-mask-composite:xor!important;
  mask-composite:exclude!important;
  opacity:.30!important;
  z-index:0!important;
}
.auth-rank::after{display:none!important}
.auth-rank>*{position:relative!important;z-index:1!important}
.auth-rank-hero{align-items:center!important;gap:16px!important}
.auth-rank-copy{gap:5px!important}
.auth-rank-copy strong,
.auth-rank-copy small,
.auth-points-line,
#authPoints,
#authNextRank{
  color:#ffffff!important;
  text-shadow:none!important;
  filter:none!important;
}
.auth-rank-copy strong{font-size:1.24rem!important;font-weight:900!important;letter-spacing:-.01em!important}
.auth-rank-copy small{font-size:.82rem!important;letter-spacing:.22em!important;opacity:.96!important}
.auth-points-line{font-size:1rem!important;font-weight:800!important}
.auth-rank .auth-progress{height:11px!important;background:rgba(255,255,255,.22)!important;box-shadow:none!important;border-radius:999px!important}
.auth-rank .auth-progress>span{background:linear-gradient(90deg,#ffffff 0%,#e3f3ff 100%)!important;box-shadow:none!important;border-radius:999px!important}
.auth-rank #authRankBadgeWrap{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__text{display:none!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  width:102px!important;
  height:102px!important;
  border-radius:50%!important;
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%)!important;
  box-shadow:0 8px 18px rgba(15,50,118,.14)!important;
  overflow:visible!important;
  position:relative!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  content:""!important;
  position:absolute!important;
  inset:-5px!important;
  border-radius:50%!important;
  padding:1.5px!important;
  background:conic-gradient(from 0deg,#ffffff,#bde7ff,#4fb6ff,#277cff,#ffffff,#bde7ff,#4fb6ff,#277cff,#ffffff)!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
  -webkit-mask-composite:xor!important;
  mask-composite:exclude!important;
  opacity:.88!important;
  animation:otBlueRingSpin 5.4s linear infinite, otLedPulse 2.4s ease-in-out infinite!important;
  z-index:0!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  content:""!important;
  position:absolute!important;
  inset:6px!important;
  border-radius:50%!important;
  border:1px solid rgba(43,124,255,.14)!important;
  background:transparent!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.56) inset!important;
  z-index:0!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:84px!important;
  height:84px!important;
  object-fit:contain!important;
  position:relative!important;
  z-index:1!important;
  filter:none!important;
  box-shadow:none!important;
}

body.dark .auth-rank{
  border-color:rgba(114,168,255,.16)!important;
  background:linear-gradient(135deg,#081327 0%,#0e2552 40%,#125ddd 72%,#5dc9ff 100%)!important;
  box-shadow:0 0 0 1px rgba(124,170,255,.08) inset,0 18px 36px rgba(0,0,0,.42),0 0 24px rgba(76,132,255,.16)!important;
}
body.dark .auth-rank::before{
  opacity:.78!important;
  animation:otBlueRingSpin 8.2s linear infinite, otLedPulse 2.6s ease-in-out infinite!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:linear-gradient(180deg,#ffffff 0%,#edf5ff 100%)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.72) inset,0 12px 24px rgba(0,0,0,.28),0 0 16px rgba(86,154,255,.16)!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-6px!important;
  padding:1.5px!important;
  opacity:1!important;
  filter:drop-shadow(0 0 6px rgba(255,255,255,.22)) drop-shadow(0 0 12px rgba(92,184,255,.34))!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  border-color:rgba(182,226,255,.26)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.72) inset,0 0 10px rgba(103,188,255,.18)!important;
}

@media (max-width:640px){
  .auth-rank{padding:16px!important;border-radius:24px!important;gap:14px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{width:92px!important;height:92px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{width:76px!important;height:76px!important}
}


/* ===== static luxury dark rank card override: no spinning, no moving background ===== */
body.dark .auth-rank{
  background:linear-gradient(135deg,#081220 0%,#0d1d36 38%,#10356d 72%,#1f7be8 100%)!important;
  border:1px solid rgba(137,191,255,.18)!important;
  box-shadow:
    0 0 0 1px rgba(138,190,255,.08) inset,
    0 18px 38px rgba(0,0,0,.44),
    0 0 16px rgba(86,154,255,.10)!important;
}
body.dark .auth-rank::before{
  inset:0!important;
  padding:1px!important;
  background:linear-gradient(120deg,rgba(255,255,255,.28),rgba(171,226,255,.30),rgba(57,140,255,.28),rgba(255,255,255,.24))!important;
  opacity:.62!important;
  animation:none!important;
  filter:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:linear-gradient(180deg,#ffffff 0%,#edf5ff 100%)!important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.72) inset,
    0 10px 22px rgba(0,0,0,.30),
    0 0 10px rgba(98,176,255,.10)!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-5px!important;
  padding:1.5px!important;
  background:conic-gradient(from 0deg,
    rgba(255,255,255,.96),
    rgba(192,236,255,.98),
    rgba(104,191,255,.98),
    rgba(46,126,255,.96),
    rgba(104,191,255,.98),
    rgba(192,236,255,.98),
    rgba(255,255,255,.96)
  )!important;
  opacity:.96!important;
  animation:none!important;
  filter:drop-shadow(0 0 5px rgba(255,255,255,.18)) drop-shadow(0 0 10px rgba(93,185,255,.22))!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  border-color:rgba(190,232,255,.24)!important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.70) inset,
    0 0 8px rgba(101,189,255,.12)!important;
}
body.dark .auth-rank-copy strong,
body.dark .auth-rank-copy small,
body.dark .auth-points-line,
body.dark #authPoints,
body.dark #authNextRank{
  text-shadow:none!important;
  filter:none!important;
}

/* ===== final dark rank override: static card + rotating inner RGB ring only ===== */
body.dark .auth-rank{
  background:linear-gradient(180deg,rgba(8,18,34,.96) 0%,rgba(10,24,46,.97) 52%,rgba(13,35,68,.98) 100%)!important;
  border:1px solid rgba(121,181,255,.16)!important;
  box-shadow:
    0 0 0 1px rgba(145,198,255,.05) inset,
    0 18px 42px rgba(0,0,0,.44),
    0 0 18px rgba(78,147,255,.10)!important;
}
body.dark .auth-rank::before{
  inset:0!important;
  padding:1px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(146,212,255,.12),rgba(57,134,255,.10),rgba(255,255,255,.10))!important;
  opacity:.52!important;
  animation:none!important;
  filter:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%)!important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.78) inset,
    0 12px 24px rgba(0,0,0,.34),
    0 0 10px rgba(95,177,255,.10)!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-6px!important;
  padding:1.5px!important;
  background:conic-gradient(
    from 0deg,
    rgba(255,255,255,.98) 0deg,
    rgba(201,240,255,.98) 55deg,
    rgba(118,205,255,.99) 120deg,
    rgba(51,136,255,.98) 190deg,
    rgba(118,205,255,.99) 255deg,
    rgba(201,240,255,.98) 320deg,
    rgba(255,255,255,.98) 360deg
  )!important;
  opacity:1!important;
  animation:otBlueRingSpin 4.6s linear infinite, otLedPulse 2.3s ease-in-out infinite!important;
  filter:drop-shadow(0 0 5px rgba(255,255,255,.22)) drop-shadow(0 0 12px rgba(93,185,255,.28))!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  inset:6px!important;
  border:1px solid rgba(188,231,255,.24)!important;
  background:transparent!important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.74) inset,
    0 0 8px rgba(101,189,255,.12)!important;
}

/* ===== v4 compact account modal + smaller rank hero ===== */
.auth-panel{
  width:min(92vw,500px)!important;
  padding:18px 18px 20px!important;
}
.auth-top{margin-bottom:8px!important}
.auth-top h2{font-size:1.05rem!important;line-height:1.2!important}
.auth-close{width:34px!important;height:34px!important}
.auth-tabs{gap:10px!important;margin:12px 0 14px!important}
.auth-tab{padding:.52rem .86rem!important}
.auth-statbar{gap:10px!important;margin:14px 0 16px!important}
.auth-stat{padding:14px 10px!important;border-radius:18px!important}
.auth-stat strong{font-size:1.7rem!important}

.auth-rank{
  gap:12px!important;
  padding:12px 14px!important;
  border-radius:22px!important;
  margin:8px 0 12px!important;
}
.auth-rank-hero{gap:12px!important;align-items:center!important}
.auth-rank-copy{gap:4px!important}
.auth-rank-copy strong{font-size:1.02rem!important;line-height:1.02!important}
.auth-rank-copy small{font-size:.72rem!important;letter-spacing:.16em!important}
.auth-points-line{font-size:.8rem!important;gap:10px!important;flex-wrap:wrap}
.auth-rank .auth-progress{height:10px!important;margin-top:4px!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{inset:-4px!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{inset:5px!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:54px!important;
  height:54px!important;
}

body.dark .auth-rank{
  box-shadow:
    0 0 0 1px rgba(145,198,255,.05) inset,
    0 12px 26px rgba(0,0,0,.42),
    0 0 14px rgba(78,147,255,.10)!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.78) inset,
    0 8px 16px rgba(0,0,0,.30),
    0 0 8px rgba(95,177,255,.08)!important;
}

@media (max-width:640px){
  .auth-panel{width:100%!important;padding:16px 14px 20px!important}
  .auth-rank{padding:11px 12px!important;border-radius:20px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
  }
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
    width:48px!important;
    height:48px!important;
  }
  .auth-rank-copy strong{font-size:.96rem!important}
  .auth-rank-copy small{font-size:.68rem!important}
  .auth-points-line{font-size:.76rem!important}
}

/* ===== compact account panel + centered rank icon (v5) ===== */
.auth-panel{
  width:min(92vw,500px)!important;
  padding:16px 16px 18px!important;
}
.auth-top{
  margin-bottom:10px!important;
  padding-bottom:8px!important;
}
.auth-top h2{
  font-size:1.02rem!important;
  line-height:1.15!important;
}
.auth-close{
  width:36px!important;
  height:36px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:22px!important;
  border:1px solid rgba(65,105,225,.14)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:none!important;
}
body.dark .auth-close{
  background:rgba(17,33,64,.78)!important;
  border-color:#2a3f67!important;
}

.auth-rank{
  gap:14px!important;
  padding:12px 14px!important;
  border-radius:22px!important;
  margin:8px 0 12px!important;
  min-height:108px!important;
  box-shadow:0 12px 24px rgba(20,69,158,.14)!important;
}
.auth-rank-hero{
  gap:12px!important;
}
.auth-rank-copy{
  gap:3px!important;
}
.auth-rank-copy strong{
  font-size:.92rem!important;
  line-height:1.05!important;
}
.auth-rank-copy small{
  font-size:.64rem!important;
  letter-spacing:.14em!important;
}
.auth-points-line{
  gap:8px!important;
  font-size:.66rem!important;
  line-height:1.2!important;
}
.auth-rank .auth-progress{
  height:9px!important;
  margin-top:6px!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  border-radius:50%!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-3px!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  inset:5px!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:46px!important;
  height:46px!important;
  object-fit:contain!important;
  object-position:center center!important;
  position:relative!important;
  top:0!important;
  left:0!important;
  transform:none!important;
  margin:0 auto!important;
  display:block!important;
}

.auth-statbar{
  gap:10px!important;
  margin:12px 0 14px!important;
}
.auth-stat{
  padding:10px 8px!important;
  border-radius:16px!important;
  min-height:72px!important;
}
.auth-stat strong{
  font-size:.9rem!important;
  line-height:1.05!important;
  margin-bottom:4px!important;
}
.auth-stat span{
  font-size:.56rem!important;
  line-height:1.2!important;
}

.auth-tabs{
  gap:8px!important;
  margin:8px 0 12px!important;
}
.auth-tab{
  padding:.56rem .8rem!important;
  font-size:.72rem!important;
  border-radius:999px!important;
}

.auth-panel label{
  margin:.65rem 0 .28rem!important;
  font-size:.82rem!important;
}
.auth-panel input,
.auth-panel textarea{
  padding:.7rem .86rem!important;
  min-height:50px!important;
  border-radius:15px!important;
  font-size:.78rem!important;
}
.auth-actions{
  gap:8px!important;
}
.auth-btn{
  padding:.72rem .9rem!important;
  min-height:50px!important;
  border-radius:15px!important;
  font-size:.78rem!important;
}

/* tighter mobile fit */
@media (max-width:640px){
  .auth-panel{
    width:min(100vw,480px)!important;
    padding:12px 12px 14px!important;
  }
  .auth-top h2{font-size:.95rem!important}
  .auth-close{width:34px!important;height:34px!important;font-size:20px!important}
  .auth-rank{
    gap:12px!important;
    padding:10px 11px!important;
    border-radius:20px!important;
    min-height:96px!important;
  }
  .auth-rank-hero{gap:10px!important}
  .auth-rank-copy strong{font-size:.84rem!important}
  .auth-rank-copy small{font-size:.58rem!important}
  .auth-points-line{font-size:.6rem!important;gap:6px!important}
  .auth-rank .auth-progress{height:8px!important;margin-top:5px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  }
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{inset:4px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
    width:40px!important;height:40px!important;
  }
  .auth-statbar{gap:8px!important;margin:10px 0 12px!important}
  .auth-stat{padding:8px 6px!important;min-height:66px!important}
  .auth-stat strong{font-size:.76rem!important}
  .auth-stat span{font-size:.5rem!important}
  .auth-tabs{gap:7px!important;margin:8px 0 10px!important}
  .auth-tab{padding:.5rem .74rem!important;font-size:.68rem!important}
  .auth-panel label{font-size:.78rem!important;margin:.58rem 0 .24rem!important}
  .auth-panel input,
  .auth-panel textarea{min-height:46px!important;font-size:.76rem!important;padding:.64rem .82rem!important}
  .auth-btn{min-height:46px!important;font-size:.76rem!important;padding:.68rem .84rem!important}
}

/* ===== v6 final account modal polish: centered rank logo + slightly larger readable type ===== */
.auth-entry-btn .auth-rank-badge__media,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  overflow:hidden!important;
}

.auth-entry-btn .auth-rank-badge__media img,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  margin:0!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center center!important;
}

.auth-entry-btn .auth-rank-badge__media img{
  transform:translate(-50%,-50%)!important;
}

.auth-panel{
  width:min(92vw,506px)!important;
}

.auth-rank{
  gap:14px!important;
  padding:13px 15px!important;
  min-height:112px!important;
}

.auth-rank-hero{
  gap:13px!important;
  align-items:center!important;
}

.auth-rank-copy{
  gap:4px!important;
}

.auth-rank-copy strong{
  font-size:1rem!important;
  line-height:1.04!important;
}

.auth-rank-copy small{
  font-size:.72rem!important;
  letter-spacing:.16em!important;
}

.auth-points-line{
  gap:10px!important;
  font-size:.8rem!important;
  line-height:1.22!important;
}

.auth-rank .auth-progress{
  height:10px!important;
  margin-top:7px!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  min-height:62px!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-4px!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  inset:5px!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:54px!important;
  height:54px!important;
  top:50%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
}

.auth-stat{
  min-height:76px!important;
}

.auth-stat strong{
  font-size:1.06rem!important;
  line-height:1.05!important;
}

.auth-stat span{
  font-size:.64rem!important;
  line-height:1.2!important;
}

.auth-tab{
  font-size:.78rem!important;
}

.auth-panel label{
  font-size:.86rem!important;
}

.auth-panel input,
.auth-panel textarea,
.auth-btn{
  font-size:.82rem!important;
}

@media (max-width:640px){
  .auth-rank{
    padding:11px 12px!important;
    min-height:100px!important;
  }

  .auth-rank-copy strong{
    font-size:.92rem!important;
  }

  .auth-rank-copy small{
    font-size:.64rem!important;
  }

  .auth-points-line{
    font-size:.74rem!important;
    gap:8px!important;
  }

  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
  }

  .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
    width:47px!important;
    height:47px!important;
  }

  .auth-stat strong{
    font-size:.98rem!important;
  }

  .auth-stat span{
    font-size:.6rem!important;
  }

  .auth-tab{
    font-size:.74rem!important;
  }

  .auth-panel label{
    font-size:.82rem!important;
  }

  .auth-panel input,
  .auth-panel textarea,
  .auth-btn{
    font-size:.8rem!important;
  }
}

/* ===== v7 dark readability + smaller user tabs ===== */
.auth-tabs .auth-tab{
  padding:.48rem .80rem!important;
  font-size:.72rem!important;
  line-height:1.12!important;
  letter-spacing:0!important;
}

.auth-card h4{
  font-size:.92rem!important;
  line-height:1.28!important;
}

.auth-card p,
.auth-muted{
  font-size:.80rem!important;
  line-height:1.46!important;
}

body.dark .auth-tabs .auth-tab{
  color:#f5f9ff!important;
  background:linear-gradient(180deg,#122344,#0e1d3a)!important;
  border-color:rgba(150,194,255,.20)!important;
  text-shadow:0 0 8px rgba(205,232,255,.18)!important;
}

body.dark .auth-tabs .auth-tab.active{
  color:#ffffff!important;
  background:linear-gradient(180deg,#2388ff,#0b72ff)!important;
  border-color:rgba(181,224,255,.36)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.10) inset, 0 0 18px rgba(88,156,255,.34), 0 10px 24px rgba(11,114,255,.30)!important;
  text-shadow:0 0 10px rgba(255,255,255,.28)!important;
}

body.dark .auth-card,
body.dark .auth-stat,
body.dark .auth-empty{
  color:#f5f9ff!important;
}

body.dark .auth-card h4,
body.dark .auth-card strong,
body.dark .auth-card .auth-wallet-title,
body.dark .auth-stat strong,
body.dark .auth-empty,
body.dark .auth-top h2,
body.dark .auth-panel label{
  color:#ffffff!important;
  text-shadow:0 0 10px rgba(198,228,255,.22)!important;
}

body.dark .auth-card p,
body.dark .auth-card .auth-muted,
body.dark .auth-stat span,
body.dark .auth-chip-btn,
body.dark .auth-linkbtn,
body.dark .auth-paywall-card p,
body.dark .auth-paywall-note{
  color:#eaf3ff!important;
  text-shadow:0 0 8px rgba(198,228,255,.12)!important;
}

body.dark .auth-linkbtn{
  background:linear-gradient(180deg,#16315f,#112447)!important;
  border:1px solid rgba(150,194,255,.18)!important;
}

body.dark .auth-empty{
  background:linear-gradient(180deg,rgba(15,29,58,.96),rgba(11,22,42,.94))!important;
  border-color:rgba(150,194,255,.18)!important;
}

@media (max-width:640px){
  .auth-tabs .auth-tab{
    padding:.46rem .72rem!important;
    font-size:.68rem!important;
  }

  .auth-card h4{
    font-size:.88rem!important;
  }

  .auth-card p,
  .auth-muted{
    font-size:.78rem!important;
  }
}

/* ===== v8 readability + premium stat cards ===== */
.auth-top{
  position:static!important;
  top:auto!important;
  justify-content:flex-end!important;
  margin-bottom:10px!important;
  padding:0 0 2px!important;
  background:transparent!important;
  border-bottom:none!important;
}
.auth-top h2{
  display:none!important;
}
.auth-close{
  margin-left:auto!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media,
.auth-entry-btn .auth-rank-badge__media{
  background:#fff!important;
  border-radius:50%!important;
  box-shadow:0 0 0 2px rgba(213,173,63,.62), 0 12px 24px rgba(22,57,123,.14)!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after,
.auth-entry-btn .auth-rank-badge__media::before,
.auth-entry-btn .auth-rank-badge__media::after{
  display:none!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img,
.auth-entry-btn .auth-rank-badge__media img{
  filter:none!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}

.auth-statbar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:16px 0 18px!important;
}
.auth-stat{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  text-align:left!important;
  min-height:138px!important;
  padding:16px 14px 14px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%)!important;
  border:1px solid rgba(70,118,226,.14)!important;
  box-shadow:0 16px 34px rgba(34,76,157,.08)!important;
  overflow:hidden!important;
}
.auth-stat::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:4px;
  background:linear-gradient(90deg,#2f7cff,#79b5ff);
}
.auth-stat:nth-child(2)::before{
  background:linear-gradient(90deg,#6c8fff,#b6c8ff);
}
.auth-stat:nth-child(3)::before{
  background:linear-gradient(90deg,#d4a72c,#f2d98a);
}
.auth-stat strong{
  display:block!important;
  font-size:1.9rem!important;
  line-height:.95!important;
  letter-spacing:-.03em!important;
  color:#173058!important;
  font-weight:900!important;
  margin:0 0 8px!important;
}
.auth-stat span{
  display:block!important;
  width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font-size:.9rem!important;
  line-height:1.24!important;
  color:#5b7197!important;
  font-weight:800!important;
}
body.dark .auth-stat{
  background:linear-gradient(180deg,#122241 0%,#0f1c35 100%)!important;
  border-color:rgba(128,169,255,.16)!important;
  box-shadow:none!important;
}
body.dark .auth-stat strong{
  color:#f4f8ff!important;
}
body.dark .auth-stat span{
  color:#d9e7ff!important;
}

@media (max-width:640px){
  .auth-statbar{
    gap:10px!important;
    margin:14px 0 16px!important;
  }
  .auth-stat{
    min-height:126px!important;
    padding:14px 12px 13px!important;
    border-radius:20px!important;
  }
  .auth-stat strong{
    font-size:1.7rem!important;
    margin-bottom:7px!important;
  }
  .auth-stat span{
    font-size:.82rem!important;
    line-height:1.22!important;
  }
}


/* ===== v9 compact readable premium account cards ===== */
.auth-top{
  position:static!important;
  top:auto!important;
  justify-content:flex-end!important;
  margin-bottom:8px!important;
  padding:0 0 2px!important;
  background:transparent!important;
  border-bottom:none!important;
}
.auth-top h2{display:none!important}
.auth-close{
  margin-left:auto!important;
  width:42px!important;
  height:42px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  font-size:24px!important;
}

.auth-rank{
  padding:16px 18px!important;
  border-radius:24px!important;
  margin:6px 0 14px!important;
  box-shadow:0 16px 34px rgba(27,79,184,.17)!important;
}
.auth-rank-hero{gap:14px!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media,
.auth-entry-btn .auth-rank-badge__media{
  width:58px!important;
  height:58px!important;
  background:#fff!important;
  border-radius:50%!important;
  box-shadow:0 0 0 2px rgba(210,170,54,.72), 0 8px 18px rgba(21,56,122,.15)!important;
  padding:0!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after,
.auth-entry-btn .auth-rank-badge__media::before,
.auth-entry-btn .auth-rank-badge__media::after{display:none!important}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img,
.auth-entry-btn .auth-rank-badge__media img{filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
.auth-rank-copy{gap:4px!important}
.auth-rank-copy strong{font-size:1.02rem!important;line-height:1.05!important}
.auth-rank-copy small{font-size:.74rem!important;letter-spacing:.12em!important;opacity:.92!important}
.auth-points-line{gap:8px!important;margin-top:2px!important}
.auth-points-line > span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:.45rem .88rem!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.15)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-size:.82rem!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.auth-progress{height:9px!important;margin-top:6px!important;background:rgba(255,255,255,.18)!important}
.auth-progress > span{background:linear-gradient(90deg,#fff,#e5f3ff)!important}

.auth-statbar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin:12px 0 14px!important;
}
.auth-stat{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  text-align:left!important;
  min-height:112px!important;
  padding:12px 12px 11px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%)!important;
  border:1px solid rgba(85,126,220,.13)!important;
  box-shadow:0 12px 26px rgba(34,76,157,.07)!important;
  overflow:hidden!important;
}
.auth-stat::before{
  content:''!important;
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:3px!important;
  background:linear-gradient(90deg,#2f7cff,#7eb9ff)!important;
}
.auth-stat--favorites::before{background:linear-gradient(90deg,#8ca6ff,#c8d6ff)!important}
.auth-stat--rewards::before{background:linear-gradient(90deg,#d3a42a,#f0d17b)!important}
.auth-stat__label{
  display:block!important;
  width:100%!important;
  font-size:.78rem!important;
  line-height:1.1!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
  color:#6b7fa2!important;
  font-weight:900!important;
  margin:0 0 6px!important;
}
.auth-stat strong{
  display:block!important;
  font-size:2rem!important;
  line-height:.92!important;
  letter-spacing:-.04em!important;
  color:#173058!important;
  font-weight:900!important;
  margin:0!important;
}
.auth-stat__meta{
  display:block!important;
  width:100%!important;
  margin-top:8px!important;
  font-size:.79rem!important;
  line-height:1.2!important;
  color:#6a7ea0!important;
  font-weight:800!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.auth-stat span:not(.auth-stat__label):not(.auth-stat__meta){display:none!important}
.auth-tabs{gap:8px!important;margin:10px 0 14px!important}
.auth-tab{padding:.56rem .8rem!important;font-size:.82rem!important}

body.dark .auth-stat{
  background:linear-gradient(180deg,#122241 0%,#0e1b33 100%)!important;
  border-color:rgba(128,169,255,.15)!important;
  box-shadow:none!important;
}
body.dark .auth-stat__label{color:#aebfe0!important}
body.dark .auth-stat strong{color:#f2f7ff!important}
body.dark .auth-stat__meta{color:#d6e4ff!important}

@media (max-width:560px){
  .auth-panel{padding:14px 12px 18px!important}
  .auth-rank{padding:14px 14px!important;border-radius:22px!important;margin:4px 0 12px!important}
  .auth-rank-hero{gap:11px!important}
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media{width:52px!important;height:52px!important}
  .auth-rank-copy strong{font-size:.94rem!important}
  .auth-rank-copy small{font-size:.68rem!important}
  .auth-points-line{gap:6px!important}
  .auth-points-line > span{min-height:30px!important;padding:.38rem .72rem!important;font-size:.74rem!important;max-width:100%!important}
  .auth-progress{height:8px!important;margin-top:5px!important}
  .auth-statbar{gap:8px!important;margin:10px 0 12px!important}
  .auth-stat{min-height:98px!important;padding:10px 9px 9px!important;border-radius:17px!important}
  .auth-stat__label{font-size:.66rem!important;letter-spacing:.07em!important;margin-bottom:4px!important}
  .auth-stat strong{font-size:1.6rem!important}
  .auth-stat__meta{font-size:.68rem!important;line-height:1.15!important;margin-top:6px!important}
  .auth-tabs{gap:6px!important;margin:8px 0 12px!important}
  .auth-tab{padding:.5rem .72rem!important;font-size:.73rem!important}
}

/* ===== v10 rank no-frame + blue premium dark mode ===== */
.auth-rank #authRankBadgeWrap .auth-rank-badge,
.auth-entry-btn .auth-rank-badge{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media,
.auth-entry-btn .auth-rank-badge__media{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  overflow:visible!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media img,
.auth-entry-btn .auth-rank-badge__media img{
  filter:drop-shadow(0 10px 18px rgba(18,55,125,.18))!important;
}

body.dark .auth-panel{
  background:linear-gradient(180deg,#12305f 0%, #18407a 52%, #1f4c90 100%)!important;
  color:#edf5ff!important;
  border-left:1px solid rgba(162,202,255,.18)!important;
  box-shadow:0 0 0 1px rgba(170,210,255,.10) inset, -16px 0 48px rgba(5,18,44,.34), 0 0 38px rgba(96,162,255,.18)!important;
}

body.dark .auth-top,
body.dark .auth-section,
body.dark .auth-tabs,
body.dark .auth-card,
body.dark .auth-card--soft{
  background:transparent!important;
}

body.dark .auth-close{
  background:rgba(228,241,255,.12)!important;
  border:1px solid rgba(182,212,255,.18)!important;
  color:#f3f8ff!important;
  box-shadow:0 8px 20px rgba(8,22,52,.20)!important;
}

body.dark .auth-tab{
  background:rgba(228,241,255,.10)!important;
  color:#eef6ff!important;
  border-color:rgba(177,207,255,.18)!important;
}
body.dark .auth-tab.active{
  background:linear-gradient(180deg,#5aa4ff,#2d7cf0)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 10px 24px rgba(8,32,78,.22)!important;
}

body.dark .auth-panel input,
body.dark .auth-panel textarea{
  background:rgba(237,245,255,.10)!important;
  border-color:rgba(188,215,255,.18)!important;
  color:#f2f8ff!important;
}
body.dark .auth-panel input::placeholder,
body.dark .auth-panel textarea::placeholder{
  color:rgba(232,243,255,.62)!important;
}
body.dark .auth-panel label,
body.dark .auth-top h2,
body.dark .auth-card h4,
body.dark .auth-muted,
body.dark .auth-card p{
  color:#eef6ff!important;
}
body.dark .auth-muted,
body.dark .auth-card p{
  opacity:.88!important;
}

body.dark .auth-rank{
  background:linear-gradient(135deg,#1d5fd0 0%, #2978ee 54%, #67b6ff 100%)!important;
  border-color:rgba(255,255,255,.18)!important;
  box-shadow:0 18px 40px rgba(7,24,62,.26)!important;
}
body.dark .auth-rank::after{
  box-shadow:none!important;
}

body.dark .auth-stat{
  background:linear-gradient(180deg,rgba(239,246,255,.98),rgba(232,241,255,.95))!important;
  border-color:rgba(112,163,245,.18)!important;
  box-shadow:0 10px 24px rgba(6,26,70,.10)!important;
}
body.dark .auth-stat__label{color:#6f83a8!important}
body.dark .auth-stat strong{color:#173566!important}
body.dark .auth-stat__meta{color:#5f7398!important}

body.dark .auth-btn.secondary{
  background:rgba(231,242,255,.12)!important;
  color:#eef6ff!important;
  border-color:rgba(181,211,255,.16)!important;
}

@media (max-width:560px){
  .auth-rank #authRankBadgeWrap .auth-rank-badge__media,
  .auth-entry-btn .auth-rank-badge__media{
    width:50px!important;
    height:50px!important;
  }
}

/* ===== v11 final dark mode readability fix ===== */
body.dark .auth-panel{
  background:linear-gradient(180deg,#14366a 0%, #18407d 55%, #1e4a8d 100%)!important;
  color:#eef6ff!important;
}

body.dark .auth-section,
body.dark .auth-card,
body.dark .auth-card--soft,
body.dark .auth-empty,
body.dark .auth-paywall-card{
  background:linear-gradient(180deg,rgba(12,33,69,.72),rgba(18,48,96,.62))!important;
  border:1px solid rgba(172,208,255,.16)!important;
  box-shadow:0 10px 24px rgba(4,18,46,.16)!important;
}

body.dark .auth-stat{
  background:linear-gradient(180deg,rgba(238,246,255,.98),rgba(228,239,255,.96))!important;
  border:1px solid rgba(116,166,246,.18)!important;
  box-shadow:0 10px 24px rgba(5,20,52,.12)!important;
}
body.dark .auth-stat::before{
  opacity:1!important;
}
body.dark .auth-stat__label{
  color:#6f84aa!important;
}
body.dark .auth-stat strong{
  color:#183667!important;
}
body.dark .auth-stat__meta,
body.dark .auth-stat span{
  color:#5f769d!important;
}

body.dark .auth-top h2,
body.dark .auth-panel label,
body.dark .auth-card h4,
body.dark .auth-wallet-title,
body.dark .auth-empty,
body.dark .auth-paywall-card h3,
body.dark .auth-rank-copy strong,
body.dark #authPoints,
body.dark #authNextRank{
  color:#f4f9ff!important;
}

body.dark .auth-card p,
body.dark .auth-muted,
body.dark .auth-paywall-card p,
body.dark .auth-paywall-note,
body.dark .auth-linkbtn,
body.dark .auth-chip-btn,
body.dark .auth-rank-copy small,
body.dark .auth-points-line,
body.dark .auth-reset-timer__label,
body.dark .auth-reset-timer__meta{
  color:#d7e7ff!important;
}

body.dark .auth-panel input,
body.dark .auth-panel textarea,
body.dark .auth-select,
body.dark select{
  background:rgba(240,247,255,.12)!important;
  border-color:rgba(183,213,255,.18)!important;
  color:#f4f9ff!important;
}
body.dark .auth-panel input::placeholder,
body.dark .auth-panel textarea::placeholder{
  color:rgba(232,243,255,.70)!important;
}

body.dark .auth-tab{
  background:rgba(233,243,255,.12)!important;
  color:#eff6ff!important;
  border-color:rgba(182,212,255,.16)!important;
}
body.dark .auth-tab.active{
  background:linear-gradient(180deg,#5aa4ff,#2d7cf0)!important;
  color:#fff!important;
}

body.dark .auth-btn.secondary,
body.dark .auth-text-btn,
body.dark .auth-linkbtn{
  color:#eef6ff!important;
}

body.dark .auth-close{
  color:#f4f9ff!important;
  background:rgba(238,246,255,.14)!important;
  border-color:rgba(177,208,255,.18)!important;
}

/* ===== v12 final premium readability fix: day + night cards, recommendations, numbers ===== */
.auth-card,
.auth-card--soft,
.auth-card--favorite,
.auth-card--history,
.auth-card--reward,
.auth-card--wallet,
.auth-card--referral,
.auth-empty,
.auth-paywall-card{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
  border:1px solid rgba(96,138,228,.14)!important;
  box-shadow:0 14px 30px rgba(34,76,157,.08)!important;
}

.auth-card h4,
.auth-card--referral h4,
.auth-wallet-title,
.auth-paywall-card h3,
.auth-empty,
.auth-panel label,
.auth-linkbtn{
  color:#15335f!important;
}

.auth-card p,
.auth-card .auth-muted,
.auth-card--favorite p,
.auth-card--history p,
.auth-card--reward p,
.auth-card--referral p,
.auth-paywall-card p,
.auth-paywall-note,
.auth-empty,
.auth-referral-hint span{
  color:#506887!important;
  opacity:1!important;
}

.auth-referral-hint{
  background:linear-gradient(180deg,#f7fbff 0%,#edf5ff 100%)!important;
  border:1px solid rgba(98,144,236,.16)!important;
  box-shadow:0 14px 28px rgba(35,79,161,.08)!important;
}
.auth-referral-hint strong{
  color:#0f67e8!important;
}
.auth-referral-hint span b,
.auth-card .auth-muted b{
  color:#193d70!important;
}

.auth-chip{
  background:#eef5ff!important;
  color:#1b3d71!important;
  border-color:rgba(79,125,222,.14)!important;
}
.auth-chip.success{
  background:#eaf8f1!important;
  color:#166846!important;
  border-color:rgba(22,104,70,.14)!important;
}
.auth-chip.expired{
  background:#eef2f8!important;
  color:#54657f!important;
  border-color:rgba(84,101,127,.14)!important;
}
.auth-chip-btn,
.auth-btn.secondary,
.auth-linkbtn{
  background:#edf4ff!important;
  color:#183a6a!important;
  border-color:rgba(87,129,223,.14)!important;
}

.auth-stat{
  min-height:102px!important;
}
.auth-stat__label{
  color:#647aa0!important;
}
.auth-stat strong{
  color:#173763!important;
  text-shadow:none!important;
}
.auth-stat__meta,
.auth-stat span{
  color:#587094!important;
}

body.dark .auth-panel{
  background:linear-gradient(180deg,#14366a 0%, #18407d 52%, #1d4a8e 100%)!important;
  color:#eef6ff!important;
}

body.dark .auth-card,
body.dark .auth-card--soft,
body.dark .auth-card--favorite,
body.dark .auth-card--history,
body.dark .auth-card--reward,
body.dark .auth-card--wallet,
body.dark .auth-card--referral,
body.dark .auth-empty,
body.dark .auth-paywall-card,
body.dark .auth-referral-hint{
  background:linear-gradient(180deg,rgba(236,245,255,.16) 0%,rgba(224,238,255,.12) 100%)!important;
  border:1px solid rgba(180,214,255,.16)!important;
  box-shadow:0 14px 30px rgba(4,18,46,.18)!important;
}

body.dark .auth-card h4,
body.dark .auth-card--referral h4,
body.dark .auth-wallet-title,
body.dark .auth-paywall-card h3,
body.dark .auth-empty,
body.dark .auth-linkbtn,
body.dark .auth-panel label,
body.dark .auth-top h2{
  color:#f4f9ff!important;
}

body.dark .auth-card p,
body.dark .auth-card .auth-muted,
body.dark .auth-card--favorite p,
body.dark .auth-card--history p,
body.dark .auth-card--reward p,
body.dark .auth-card--referral p,
body.dark .auth-paywall-card p,
body.dark .auth-paywall-note,
body.dark .auth-referral-hint span,
body.dark .auth-empty,
body.dark .auth-linkbtn,
body.dark .auth-chip-btn{
  color:#dce9ff!important;
  opacity:1!important;
}

body.dark .auth-referral-hint strong{
  color:#ffffff!important;
}
body.dark .auth-referral-hint span b,
body.dark .auth-card .auth-muted b{
  color:#ffffff!important;
}

body.dark .auth-chip{
  background:rgba(235,244,255,.16)!important;
  color:#eef6ff!important;
  border-color:rgba(192,220,255,.18)!important;
}
body.dark .auth-chip.success{
  background:rgba(52,139,99,.18)!important;
  color:#dcf7e8!important;
  border-color:rgba(87,173,133,.20)!important;
}
body.dark .auth-chip.expired{
  background:rgba(138,154,178,.16)!important;
  color:#eef3fb!important;
  border-color:rgba(188,205,227,.15)!important;
}
body.dark .auth-chip-btn,
body.dark .auth-btn.secondary,
body.dark .auth-linkbtn{
  background:rgba(233,243,255,.12)!important;
  color:#f1f7ff!important;
  border-color:rgba(190,220,255,.16)!important;
}

body.dark .auth-stat{
  background:linear-gradient(180deg,#f7fbff 0%,#edf4ff 100%)!important;
  border:1px solid rgba(117,167,246,.20)!important;
  box-shadow:0 10px 24px rgba(6,24,62,.14)!important;
}
body.dark .auth-stat__label{
  color:#5f759b!important;
}
body.dark .auth-stat strong{
  color:#163664!important;
}
body.dark .auth-stat__meta,
body.dark .auth-stat span{
  color:#587096!important;
}

@media (max-width:560px){
  .auth-stat{
    min-height:94px!important;
    padding:10px 10px 9px!important;
    border-radius:16px!important;
  }
  .auth-stat__label{
    font-size:.64rem!important;
    letter-spacing:.06em!important;
  }
  .auth-stat strong{
    font-size:1.5rem!important;
  }
  .auth-stat__meta{
    font-size:.66rem!important;
    line-height:1.15!important;
  }
}


/* ===== v13 referral stat readability + compact labels ===== */
.auth-referral-stats{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.auth-referral-stats .auth-stat{
  min-height:92px!important;
  padding:10px 11px!important;
  border-radius:18px!important;
}
.auth-referral-stats .auth-stat__label{
  margin-bottom:6px!important;
  font-size:.7rem!important;
  letter-spacing:.08em!important;
}
.auth-referral-stats .auth-stat strong{
  font-size:1.9rem!important;
}
.auth-referral-stats .auth-stat__meta{
  margin-top:6px!important;
  font-size:.69rem!important;
  line-height:1.15!important;
}
@media (max-width:560px){
  .auth-referral-stats{gap:8px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .auth-referral-stats .auth-stat{min-height:84px!important;padding:9px 8px!important;border-radius:16px!important;}
  .auth-referral-stats .auth-stat__label{font-size:.6rem!important;letter-spacing:.05em!important;}
  .auth-referral-stats .auth-stat strong{font-size:1.45rem!important;}
  .auth-referral-stats .auth-stat__meta{font-size:.58rem!important;line-height:1.1!important;}
}
body.dark .auth-referral-stats .auth-stat{
  background:linear-gradient(180deg,#f7fbff 0%,#edf4ff 100%)!important;
}


/* ===== FIX4: final mobile header button + drawer readability polish ===== */
.actions .auth-entry-btn,
.track-actions .auth-entry-btn{
  justify-content:flex-start!important;
}

@media (max-width:860px){
  .actions,
  .track-actions{
    align-items:center!important;
  }
  .actions .auth-entry-btn,
  .track-actions .auth-entry-btn{
    min-width:0!important;
    overflow:hidden!important;
  }
  .actions .auth-entry-btn__title,
  .track-actions .auth-entry-btn__title{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .actions .auth-entry-btn__meta,
  .track-actions .auth-entry-btn__meta{
    display:none!important;
  }
}

.auth-entry-btn{
  min-width:0!important;
}
.auth-entry-btn__text{
  min-width:0!important;
}
.auth-entry-btn__title{
  max-width:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.auth-entry-btn .auth-rank-badge.compact,
.auth-rank #authRankBadgeWrap .auth-rank-badge{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  padding:0!important;
}
.auth-entry-btn .auth-rank-badge__media,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
.auth-entry-btn .auth-rank-badge__media img,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  filter:none!important;
  box-shadow:none!important;
  background:transparent!important;
}

.auth-statbar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:14px 0 16px!important;
}
.auth-stat{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:4px!important;
  min-height:118px!important;
  padding:14px 14px 13px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff,#f5f9ff)!important;
  border:1px solid rgba(22,92,210,.12)!important;
  box-shadow:0 16px 34px rgba(19,72,170,.08)!important;
  text-align:left!important;
  overflow:hidden!important;
}
.auth-stat::before{
  content:""!important;
  display:block!important;
  width:64px!important;
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#4e8fff,#9fc5ff)!important;
  margin-bottom:4px!important;
}
.auth-stat--favorites::before{background:linear-gradient(90deg,#7b9cff,#bfd0ff)!important}
.auth-stat--rewards::before{background:linear-gradient(90deg,#f0bd4a,#f6db8e)!important}
.auth-stat__label{
  display:block!important;
  font-size:.72rem!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  color:#7a90b5!important;
}
.auth-stat strong{
  display:block!important;
  font-size:2.1rem!important;
  line-height:1!important;
  font-weight:900!important;
  color:#173566!important;
  margin-top:2px!important;
}
.auth-stat__meta{
  display:block!important;
  font-size:.78rem!important;
  line-height:1.28!important;
  font-weight:700!important;
  color:#5f7398!important;
  margin-top:auto!important;
}
.auth-stat > span:not(.auth-stat__label):not(.auth-stat__meta){
  display:none!important;
}

.auth-tabs{
  gap:8px!important;
  margin:10px 0 14px!important;
}
.auth-tab{
  padding:.62rem .9rem!important;
  border-radius:999px!important;
  font-size:.88rem!important;
  line-height:1.1!important;
  font-weight:900!important;
}

.auth-card--referral-main,
.auth-card--referral,
.auth-card--soft,
.auth-card{
  border-radius:24px!important;
}
.auth-card--referral h4,
.auth-card--soft h4{
  font-size:1.05rem!important;
  color:#173566!important;
}
.auth-card--referral p,
.auth-card--soft p,
.auth-referral-hint span{
  font-size:.88rem!important;
  line-height:1.55!important;
  color:#5d7499!important;
}
.auth-referral-linkrow{
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
}
.auth-referral-linkrow input{
  min-width:0!important;
  font-size:1rem!important;
  padding:.95rem 1rem!important;
}
.auth-referral-stats{
  gap:12px!important;
}
.auth-wallet-title{
  margin:16px 0 10px!important;
  font-size:1rem!important;
  color:#173566!important;
  font-weight:900!important;
}
.auth-empty{
  font-size:1rem!important;
  line-height:1.65!important;
  padding:24px 20px!important;
  border-radius:24px!important;
}

body.dark .auth-stat{
  background:linear-gradient(180deg,#0f2144,#0c1b36)!important;
  border-color:rgba(132,174,255,.18)!important;
  box-shadow:0 0 0 1px rgba(132,174,255,.08) inset, 0 20px 36px rgba(0,0,0,.28)!important;
}
body.dark .auth-stat::before{background:linear-gradient(90deg,#78aaff,#d7ebff)!important}
body.dark .auth-stat--rewards::before{background:linear-gradient(90deg,#f7d978,#fff3be)!important}
body.dark .auth-stat__label{
  color:#afc4e6!important;
}
body.dark .auth-stat strong{
  color:#f2f7ff!important;
}
body.dark .auth-stat__meta,
body.dark .auth-card--referral p,
body.dark .auth-card--soft p,
body.dark .auth-referral-hint span,
body.dark .auth-empty{
  color:#d8e6ff!important;
}
body.dark .auth-wallet-title,
body.dark .auth-card--referral h4,
body.dark .auth-card--soft h4{
  color:#f2f7ff!important;
}
body.dark .auth-tab{
  background:#102144!important;
  border-color:#294171!important;
  color:#dce9ff!important;
}
body.dark .auth-tab.active{
  background:linear-gradient(135deg,#0b72ff,#63c5ff)!important;
  color:#fff!important;
  border-color:transparent!important;
}
body.dark .auth-card--referral-main,
body.dark .auth-card--referral,
body.dark .auth-card--soft{
  background:linear-gradient(180deg,#102144,#0d1b36)!important;
  border-color:rgba(132,174,255,.14)!important;
}

@media (max-width:640px){
  .auth-statbar{
    gap:8px!important;
  }
  .auth-stat{
    min-height:110px!important;
    padding:11px 10px 10px!important;
    border-radius:18px!important;
  }
  .auth-stat__label{
    font-size:.63rem!important;
    letter-spacing:.06em!important;
  }
  .auth-stat strong{
    font-size:1.72rem!important;
  }
  .auth-stat__meta{
    font-size:.67rem!important;
    line-height:1.18!important;
  }
  .auth-tab{
    padding:.54rem .72rem!important;
    font-size:.75rem!important;
  }
  .auth-card--referral p,
  .auth-card--soft p,
  .auth-empty{
    font-size:.84rem!important;
  }
}


/* ===== FIX5: dark referral numbers + clean rank icon ===== */
body.dark .auth-referral-stats{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
body.dark .auth-referral-stats .auth-stat{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  min-height:138px!important;
  padding:14px 13px 12px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#0f213f 0%,#0b1730 100%)!important;
  border:1px solid rgba(151,194,255,.18)!important;
  box-shadow:0 0 0 1px rgba(151,194,255,.07) inset, 0 16px 30px rgba(0,0,0,.28)!important;
  text-align:left!important;
  overflow:hidden!important;
}
body.dark .auth-referral-stats .auth-stat::before{
  content:""!important;
  display:block!important;
  width:72px!important;
  height:5px!important;
  margin:0 0 8px 0!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#9fcbff,#ffffff)!important;
  opacity:1!important;
}
body.dark .auth-referral-stats .auth-stat--rewards::before{
  background:linear-gradient(90deg,#f6d36b,#fff0b0)!important;
}
body.dark .auth-referral-stats .auth-stat__label{
  display:block!important;
  color:#bdd3f4!important;
  font-size:.82rem!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
  line-height:1.1!important;
  margin:0 0 10px 0!important;
}
body.dark .auth-referral-stats .auth-stat strong{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  color:#ffffff!important;
  font-size:3rem!important;
  line-height:.98!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
  margin:0 0 12px 0!important;
  text-shadow:0 0 16px rgba(140,189,255,.16)!important;
}
body.dark .auth-referral-stats .auth-stat__meta{
  display:block!important;
  margin-top:auto!important;
  color:#deebff!important;
  font-size:.88rem!important;
  line-height:1.16!important;
  font-weight:800!important;
}
@media (max-width:640px){
  body.dark .auth-referral-stats .auth-stat{
    min-height:148px!important;
    padding:12px 11px 10px!important;
    border-radius:20px!important;
  }
  body.dark .auth-referral-stats .auth-stat__label{
    font-size:.66rem!important;
    margin-bottom:8px!important;
  }
  body.dark .auth-referral-stats .auth-stat strong{
    font-size:2.25rem!important;
    margin-bottom:10px!important;
  }
  body.dark .auth-referral-stats .auth-stat__meta{
    font-size:.62rem!important;
    line-height:1.12!important;
  }
}

.auth-rank #authRankBadgeWrap,
.auth-rank #authRankBadgeWrap *{
  background:transparent!important;
  box-shadow:none!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  border-radius:50%!important;
  overflow:visible!important;
}
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  background:transparent!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media,
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  background:transparent!important;
  box-shadow:none!important;
  border:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before{
  inset:-4px!important;
  padding:2px!important;
  border-radius:50%!important;
  background:conic-gradient(from 180deg,#ffffff,#9ed3ff,#3d79ff,#9ed3ff,#ffffff)!important;
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))!important;
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px))!important;
  opacity:.95!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  filter:none!important;
}


/* ===== v10 night rank cleanup: remove white square behind rank in dark mode ===== */
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before,
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after{
  display:none!important;
  content:none!important;
  background:none!important;
  box-shadow:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media img{
  background:transparent!important;
  filter:drop-shadow(0 8px 18px rgba(108,178,255,.22))!important;
}


/* ===== v11 final dark rank cleanup: no square behind rank badge ===== */
body.dark .auth-rank #authRankBadgeWrap,
body.dark .auth-rank #authRankBadgeWrap *,
body.dark .auth-rank-badge.hero,
body.dark .auth-rank-badge.hero *,
body.dark .auth-entry-btn,
body.dark .auth-entry-btn *{
  background-color:transparent!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge,
body.dark .auth-rank-badge.hero,
body.dark .auth-entry-btn .auth-rank-badge{
  background:none!important;
  border:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media,
body.dark .auth-rank-badge.hero .auth-rank-badge__media,
body.dark .auth-entry-btn .auth-rank-badge__media{
  background:none!important;
  background-color:transparent!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:50%!important;
  overflow:visible!important;
  isolation:isolate!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::before,
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media::after,
body.dark .auth-rank-badge.hero .auth-rank-badge__media::before,
body.dark .auth-rank-badge.hero .auth-rank-badge__media::after,
body.dark .auth-entry-btn .auth-rank-badge__media::before,
body.dark .auth-entry-btn .auth-rank-badge__media::after{
  display:none!important;
  content:none!important;
  background:none!important;
  border:none!important;
  box-shadow:none!important;
}
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media img,
body.dark .auth-rank-badge.hero .auth-rank-badge__media img,
body.dark .auth-entry-btn .auth-rank-badge__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:transparent!important;
  background-color:transparent!important;
  border:none!important;
  box-shadow:none!important;
}


/* ===== FIX10: final phone header account sizing + profile contrast ===== */
.auth-entry-btn{
  min-width:0!important;
  max-width:none!important;
}
.auth-entry-btn__title{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.actions .auth-entry-btn,
.track-actions .auth-entry-btn{
  max-width:none!important;
}

/* clean, readable profile drawer in light mode */
body:not(.dark) .auth-panel{
  background:linear-gradient(180deg,#fcfeff 0%,#f4f9ff 100%)!important;
  color:#14335f!important;
}
body:not(.dark) .auth-section,
body:not(.dark) .auth-card,
body:not(.dark) .auth-card--soft,
body:not(.dark) .auth-card--favorite,
body:not(.dark) .auth-card--history,
body:not(.dark) .auth-card--reward,
body:not(.dark) .auth-card--wallet,
body:not(.dark) .auth-card--referral,
body:not(.dark) .auth-empty,
body:not(.dark) .auth-referral-hint,
body:not(.dark) .auth-paywall-card{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important;
  border:1px solid rgba(96,138,228,.14)!important;
  box-shadow:0 14px 30px rgba(34,76,157,.08)!important;
}
body:not(.dark) .auth-panel label,
body:not(.dark) .auth-top h2,
body:not(.dark) .auth-card h4,
body:not(.dark) .auth-wallet-title,
body:not(.dark) .auth-paywall-card h3,
body:not(.dark) .auth-linkbtn,
body:not(.dark) .auth-empty,
body:not(.dark) #authPoints,
body:not(.dark) #authNextRank{
  color:#15345f!important;
}
body:not(.dark) .auth-card p,
body:not(.dark) .auth-card .auth-muted,
body:not(.dark) .auth-referral-hint span,
body:not(.dark) .auth-paywall-card p,
body:not(.dark) .auth-paywall-note{
  color:#587094!important;
  opacity:1!important;
}
body:not(.dark) .auth-panel input,
body:not(.dark) .auth-panel textarea,
body:not(.dark) .auth-select,
body:not(.dark) select{
  background:#ffffff!important;
  color:#173763!important;
  border-color:rgba(96,138,228,.18)!important;
}
body:not(.dark) .auth-panel input::placeholder,
body:not(.dark) .auth-panel textarea::placeholder{
  color:#7a8faf!important;
  opacity:1!important;
}
body:not(.dark) .auth-stat{
  background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%)!important;
  border:1px solid rgba(96,138,228,.14)!important;
  box-shadow:0 14px 28px rgba(34,76,157,.08)!important;
}
body:not(.dark) .auth-stat__label{color:#667da3!important}
body:not(.dark) .auth-stat strong{color:#173763!important}
body:not(.dark) .auth-stat__meta,
body:not(.dark) .auth-stat span{color:#587094!important}

/* dark mode must stay dark with light text and strong contrast */
body.dark .auth-panel{
  background:linear-gradient(180deg,#0b1730 0%,#102144 55%,#12305f 100%)!important;
  color:#eef6ff!important;
}
body.dark .auth-section,
body.dark .auth-card,
body.dark .auth-card--soft,
body.dark .auth-card--favorite,
body.dark .auth-card--history,
body.dark .auth-card--reward,
body.dark .auth-card--wallet,
body.dark .auth-card--referral,
body.dark .auth-empty,
body.dark .auth-referral-hint,
body.dark .auth-paywall-card{
  background:linear-gradient(180deg,#102144 0%,#0d1b36 100%)!important;
  border:1px solid rgba(140,184,255,.14)!important;
  box-shadow:0 18px 34px rgba(0,0,0,.26)!important;
}
body.dark .auth-panel label,
body.dark .auth-top h2,
body.dark .auth-card h4,
body.dark .auth-wallet-title,
body.dark .auth-paywall-card h3,
body.dark .auth-linkbtn,
body.dark .auth-empty,
body.dark #authPoints,
body.dark #authNextRank{
  color:#f3f8ff!important;
}
body.dark .auth-card p,
body.dark .auth-card .auth-muted,
body.dark .auth-referral-hint span,
body.dark .auth-paywall-card p,
body.dark .auth-paywall-note{
  color:#d7e5ff!important;
  opacity:1!important;
}
body.dark .auth-panel input,
body.dark .auth-panel textarea,
body.dark .auth-select,
body.dark select{
  background:#15274a!important;
  color:#f4f9ff!important;
  border-color:rgba(169,205,255,.18)!important;
}
body.dark .auth-panel input::placeholder,
body.dark .auth-panel textarea::placeholder{
  color:#b8cdef!important;
  opacity:1!important;
}
body.dark .auth-stat{
  background:linear-gradient(180deg,#102144 0%,#0c1b36 100%)!important;
  border:1px solid rgba(140,184,255,.16)!important;
  box-shadow:0 18px 32px rgba(0,0,0,.24)!important;
}
body.dark .auth-stat__label{color:#afc4e6!important}
body.dark .auth-stat strong{color:#f2f7ff!important}
body.dark .auth-stat__meta,
body.dark .auth-stat span{color:#d6e4ff!important}
body.dark .auth-tab{
  background:#112447!important;
  border-color:rgba(140,184,255,.14)!important;
  color:#e8f1ff!important;
}
body.dark .auth-tab.active{
  background:linear-gradient(135deg,#0b72ff,#63c5ff)!important;
  color:#ffffff!important;
}

/* ===== FIX25: remove white square behind rank in all themes ===== */
.auth-rank #authRankBadgeWrap,
.auth-rank #authRankBadgeWrap .auth-rank-badge,
.auth-rank #authRankBadgeWrap .auth-rank-badge.hero,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media,
.auth-rank-badge.hero,
.auth-rank-badge.hero .auth-rank-badge__media{
  background:transparent!important;
  background-color:transparent!important;
  border:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media,
.auth-rank-badge.hero .auth-rank-badge__media{
  width:84px!important;
  height:84px!important;
  padding:0!important;
  margin:0!important;
  border-radius:0!important;
  overflow:visible!important;
  isolation:isolate!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media::before,
.auth-rank #authRankBadgeWrap .auth-rank-badge__media::after,
.auth-rank-badge.hero .auth-rank-badge__media::before,
.auth-rank-badge.hero .auth-rank-badge__media::after{
  content:none!important;
  display:none!important;
  background:none!important;
  border:none!important;
  box-shadow:none!important;
}

.auth-rank #authRankBadgeWrap .auth-rank-badge__media img,
.auth-rank-badge.hero .auth-rank-badge__media img{
  width:84px!important;
  height:84px!important;
  display:block!important;
  object-fit:contain!important;
  background:transparent!important;
  background-color:transparent!important;
  border:none!important;
  box-shadow:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

body.dark .auth-rank #authRankBadgeWrap,
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge,
body.dark .auth-rank #authRankBadgeWrap .auth-rank-badge__media,
body.dark .auth-rank-badge.hero,
body.dark .auth-rank-badge.hero .auth-rank-badge__media,
body.dark .auth-entry-btn .auth-rank-badge,
body.dark .auth-entry-btn .auth-rank-badge__media{
  background:transparent!important;
  background-color:transparent!important;
  border:none!important;
  box-shadow:none!important;
}


.auth-checkbox{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:12px;align-items:flex-start;margin-top:10px;font-size:.92rem;line-height:1.5;color:#173058}
.auth-checkbox input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;flex:0 0 18px!important;margin:3px 0 0 0!important;padding:0!important;border-radius:4px!important;box-shadow:none!important;transform:none!important;accent-color:#0b72ff;cursor:pointer}
.auth-checkbox span{display:block;min-width:0}
.auth-checkbox a{color:#0b72ff;font-weight:800;text-decoration:none}
.auth-checkbox a:hover{text-decoration:underline}
.auth-checkbox--optional{opacity:.95}
.auth-profile-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 4px}
.auth-status-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:.78rem;font-weight:900;letter-spacing:.02em}
.auth-status-pill--ok{background:#e9fff3;color:#0f5132}
.auth-status-pill--warn{background:#fff6df;color:#7b5b00}
.auth-status-help{font-size:.84rem;color:#5a6b8a}
.auth-btn--danger{background:linear-gradient(180deg,#ff5f73,#d92c45)!important;color:#fff!important;border:none!important;box-shadow:0 12px 24px rgba(217,44,69,.24)!important}
.auth-btn--danger:hover{filter:brightness(.98)}
.auth-link-btn{text-decoration:none!important;display:inline-flex;justify-content:center;align-items:center}
.auth-gdpr-card .auth-actions{margin-top:8px}
body.dark .auth-checkbox{color:#dce8ff}
body.dark .auth-checkbox a{color:#9cc5ff}
body.dark .auth-status-pill--ok{background:rgba(42,179,111,.2);color:#baf4d5}
body.dark .auth-status-pill--warn{background:rgba(255,196,63,.16);color:#ffe29a}
body.dark .auth-status-help{color:#b8c9e3}
@media (max-width:640px){
  .auth-checkbox{font-size:.88rem}
  .auth-profile-meta{align-items:flex-start}
}

@media (max-width:640px){
  .auth-checkbox{grid-template-columns:18px minmax(0,1fr);column-gap:10px;font-size:.88rem}
  .auth-checkbox input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;margin-top:2px!important}
}


/* ===== rank wheel premium overlay ===== */
body.rank-wheel-open{overflow:hidden!important}
.rank-wheel-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(7,18,34,.56);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
  z-index:10060;
}
.rank-wheel-overlay.open{opacity:1;pointer-events:auto}
.rank-wheel-panel{
  position:relative;
  width:min(94vw,680px);
  border-radius:34px;
  background:
    radial-gradient(circle at top right, rgba(130,210,255,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,249,255,.98));
  border:1px solid rgba(165,221,255,.86);
  box-shadow:0 34px 80px rgba(6,35,74,.28), inset 0 1px 0 rgba(255,255,255,.95);
  padding:28px 28px 24px;
  overflow:hidden;
}
.rank-wheel-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,.16), rgba(125,209,255,.08));
  pointer-events:none;
}
.rank-wheel-panel>*{position:relative;z-index:1}
.rank-wheel-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:#0a3561;
  font-size:1.5rem;
  font-weight:900;
  box-shadow:0 10px 24px rgba(22,69,118,.14);
  cursor:pointer;
}
.rank-wheel-head{padding-right:56px}
.rank-wheel-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:#0f5a92;
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  box-shadow:0 10px 22px rgba(14,93,147,.08);
}
.rank-wheel-head h3{
  margin:16px 0 8px;
  font-size:clamp(1.5rem,2.8vw,2.15rem);
  line-height:1.05;
  color:#072d52;
}
.rank-wheel-head p{
  margin:0;
  color:#335f88;
  font-size:1rem;
  line-height:1.55;
}
.rank-wheel-stage{
  position:relative;
  margin:26px auto 18px;
  width:min(100%, 430px);
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
}
.rank-wheel-pointer{
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:18px solid transparent;
  border-right:18px solid transparent;
  border-top:30px solid #1397ff;
  filter:drop-shadow(0 8px 16px rgba(8,77,132,.28));
  z-index:3;
}
.rank-wheel-disc{
  position:relative;
  width:min(100%, 420px);
  aspect-ratio:1/1;
  border-radius:50%;
  border:12px solid rgba(255,255,255,.96);
  box-shadow:
    0 28px 54px rgba(8,45,87,.22),
    inset 0 0 0 12px rgba(163,225,255,.38),
    inset 0 0 90px rgba(255,255,255,.42);
}
.rank-wheel-disc::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%;
  background:conic-gradient(from -90deg, rgba(19,151,255,.16), rgba(255,255,255,.88), rgba(19,151,255,.16), rgba(255,255,255,.9), rgba(19,151,255,.16));
  z-index:-1;
  filter:blur(10px);
}
.rank-wheel-labels{
  position:absolute;
  inset:0;
  border-radius:50%;
}
.rank-wheel-label{
  position:absolute;
  left:50%;
  top:50%;
  width:0;
  height:0;
  transform-origin:center center;
}
.rank-wheel-label span{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100px;
  margin-left:-50px;
  text-align:center;
  color:#08385f;
  font-size:.76rem;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.01em;
  text-shadow:0 1px 0 rgba(255,255,255,.85);
}
.rank-wheel-label small{
  display:block;
  margin-top:4px;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.08em;
  color:#4177a2;
  text-transform:uppercase;
}
.rank-wheel-center{
  position:absolute;
  inset:50%;
  width:164px;
  height:164px;
  margin:-82px 0 0 -82px;
  border-radius:50%;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(230,246,255,.98));
  border:10px solid rgba(255,255,255,.98);
  box-shadow:0 18px 38px rgba(8,50,91,.22), inset 0 1px 0 rgba(255,255,255,.98);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
}
.rank-wheel-center__mini{
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#4d88b3;
}
.rank-wheel-center strong{
  margin-top:8px;
  font-size:1.4rem;
  color:#07375f;
}
.rank-wheel-center small{
  margin-top:6px;
  font-size:.76rem;
  color:#4a7298;
}
.rank-wheel-footer{
  display:grid;
  gap:14px;
}
.rank-wheel-status{
  border-radius:18px;
  padding:14px 16px;
  background:rgba(255,255,255,.74);
  color:#184f7d;
  font-weight:700;
  box-shadow:0 12px 28px rgba(16,78,130,.08);
}
.rank-wheel-prize{
  border-radius:24px;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(235,248,255,.96));
  border:1px solid rgba(172,224,255,.9);
  box-shadow:0 16px 32px rgba(7,58,102,.10);
}
.rank-wheel-prize__kicker{
  color:#138fff;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.rank-wheel-prize h4{
  margin:8px 0 8px;
  font-size:1.22rem;
  color:#072f56;
}
.rank-wheel-prize p{
  margin:0;
  color:#446f95;
  line-height:1.5;
}
.rank-wheel-prize__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.rank-wheel-prize__meta span{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(19,143,255,.10);
  color:#11629b;
  font-weight:800;
  font-size:.82rem;
}
.rank-wheel-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
}
.auth-card--wheel{
  border:1px solid rgba(156,221,255,.88)!important;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,249,255,.98))!important;
}
.auth-card--wallet.booster{
  border:1px solid rgba(159,225,255,.72)!important;
  box-shadow:0 14px 26px rgba(8,72,120,.07)!important;
}
body.dark .rank-wheel-overlay{
  background:rgba(3,9,17,.76);
}
body.dark .rank-wheel-panel{
  background:
    radial-gradient(circle at top right, rgba(52,175,255,.24), transparent 36%),
    linear-gradient(180deg, rgba(9,18,30,.98), rgba(10,22,37,.98));
  border-color:rgba(74,154,220,.42);
  box-shadow:0 36px 90px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.05);
}
body.dark .rank-wheel-close,
body.dark .rank-wheel-kicker,
body.dark .rank-wheel-status,
body.dark .rank-wheel-prize{
  background:rgba(14,27,43,.92);
  color:#d8f3ff;
}
body.dark .rank-wheel-head h3,
body.dark .rank-wheel-center strong{color:#f4fbff}
body.dark .rank-wheel-head p,
body.dark .rank-wheel-center small,
body.dark .rank-wheel-label span{color:#caebff}
body.dark .rank-wheel-label small,
body.dark .rank-wheel-center__mini{color:#81cfff}
body.dark .rank-wheel-center{
  background:linear-gradient(180deg, rgba(10,21,35,.98), rgba(8,18,31,.98));
  border-color:rgba(82,165,230,.22);
}
body.dark .rank-wheel-prize__meta span{
  background:rgba(29,130,202,.18);
  color:#d8f3ff;
}
@media (max-width: 640px){
  .rank-wheel-overlay{padding:14px}
  .rank-wheel-panel{padding:22px 18px 18px;border-radius:28px}
  .rank-wheel-stage{width:min(100%, 330px)}
  .rank-wheel-disc{width:min(100%, 320px);border-width:10px}
  .rank-wheel-label span{width:80px;margin-left:-40px;font-size:.66rem}
  .rank-wheel-label{transform-origin:center center}
  .rank-wheel-center{width:134px;height:134px;margin:-67px 0 0 -67px}
  .rank-wheel-center strong{font-size:1.12rem}
  .rank-wheel-actions{justify-content:stretch}
  .rank-wheel-actions .auth-btn{flex:1 1 100%}
}



.auth-actions--stack{display:grid;grid-template-columns:1fr;gap:10px}
.auth-actions--tight{margin-top:10px}
.auth-code-box{margin-top:14px;padding:16px;border-radius:18px;border:1px solid rgba(65,105,225,.16);background:linear-gradient(180deg,#ffffff,#f5f9ff);box-shadow:0 16px 34px rgba(39,82,173,.08)}
.auth-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.auth-choice-card{appearance:none;border:1px solid rgba(65,105,225,.18);background:linear-gradient(180deg,#ffffff,#f5f9ff);border-radius:18px;padding:16px;text-align:left;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.auth-choice-card:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(39,82,173,.10)}
.auth-choice-card.active{border-color:#0b72ff;box-shadow:0 0 0 3px rgba(11,114,255,.14), 0 14px 30px rgba(39,82,173,.12)}
.auth-choice-card__title{display:block;font-weight:900;color:#173058;font-size:1rem}
.auth-choice-card__meta{display:block;margin-top:4px;color:#60769d;font-size:.9rem}
.auth-select{width:100%;padding:14px 15px;border-radius:14px;border:1px solid rgba(65,105,225,.18);background:#fff;color:#173058}
.auth-paywall-card--minimal{width:min(100%,520px);padding:22px}
.auth-paywall-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-paywall-guest,.auth-paywall-login{min-height:58px;font-weight:900}
body.dark .auth-code-box{background:linear-gradient(180deg,#102144,#0c1730);border-color:#294171;box-shadow:none}
body.dark .auth-choice-card{background:linear-gradient(180deg,#102144,#0c1730);border-color:#294171}
body.dark .auth-choice-card.active{border-color:#6ea7ff;box-shadow:0 0 0 3px rgba(110,167,255,.18), 0 16px 30px rgba(0,0,0,.22)}
body.dark .auth-choice-card__title{color:#eef4ff}
body.dark .auth-choice-card__meta{color:#b7c8e6}
body.dark .auth-select{background:#0f1c37;color:#eef4ff;border-color:#294171}
@media (max-width:640px){
  .auth-choice-grid,.auth-paywall-choice{grid-template-columns:1fr}
}


/* ===== Premium consent sliders ===== */
.auth-switch-card{
  position:relative;
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin-top:12px;
  padding:14px 16px;
  border-radius:22px;
  border:1px solid rgba(226,80,93,.22);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,249,249,.98));
  box-shadow:0 12px 28px rgba(31,73,153,.07), inset 0 0 0 1px rgba(255,255,255,.58);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  cursor:pointer;
}
.auth-switch-card:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(31,73,153,.10), inset 0 0 0 1px rgba(255,255,255,.72);
}
.auth-switch-card > input{
  position:absolute;
  opacity:0;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer;
}
.auth-switch-card__slider{
  position:relative;
  width:64px;
  height:36px;
  border-radius:999px;
  background:linear-gradient(180deg,#ff7c88,#e14b5a);
  box-shadow:inset 0 2px 7px rgba(255,255,255,.28), 0 8px 18px rgba(219,78,91,.20);
  transition:background .24s ease, box-shadow .24s ease, transform .24s ease;
}
.auth-switch-card__thumb{
  position:absolute;
  top:4px;
  left:4px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(180deg,#ffffff,#eef4ff);
  box-shadow:0 4px 12px rgba(16,47,110,.18);
  transition:transform .24s ease;
}
.auth-switch-card__body{
  min-width:0;
  font-size:.96rem;
  line-height:1.5;
  color:#173058;
  font-weight:800;
}
.auth-switch-card__body a{
  color:#0b72ff;
  text-decoration:none;
  font-weight:900;
}
.auth-switch-card__body a:hover{ text-decoration:underline; }
.auth-switch-card > input:checked + .auth-switch-card__slider{
  background:linear-gradient(135deg,#1b88ff,#0b72ff 52%,#54bcff);
  box-shadow:inset 0 2px 8px rgba(255,255,255,.28), 0 10px 20px rgba(12,114,255,.24);
}
.auth-switch-card > input:checked + .auth-switch-card__slider .auth-switch-card__thumb{
  transform:translateX(28px);
}
.auth-switch-card > input:checked ~ .auth-switch-card__body{
  color:#0f2850;
}
.auth-switch-card:has(> input:checked){
  border-color:rgba(11,114,255,.24);
  background:linear-gradient(180deg,#ffffff,rgba(236,246,255,.98));
  box-shadow:0 18px 34px rgba(17,88,207,.12), inset 0 0 0 1px rgba(255,255,255,.78);
}
.auth-switch-card--optional:not(:has(> input:checked)){
  border-color:rgba(232,158,74,.24);
  background:linear-gradient(180deg,#ffffff,#fffaf1);
}
.auth-switch-card > input:focus-visible + .auth-switch-card__slider{
  outline:0;
  box-shadow:0 0 0 3px rgba(11,114,255,.18), inset 0 2px 8px rgba(255,255,255,.28), 0 10px 20px rgba(12,114,255,.20);
}
body.dark .auth-switch-card{
  border-color:rgba(219,91,108,.24);
  background:linear-gradient(180deg,rgba(14,24,43,.96),rgba(20,22,33,.98));
  box-shadow:0 16px 34px rgba(0,0,0,.28), inset 0 0 0 1px rgba(124,160,220,.07);
}
body.dark .auth-switch-card__body{ color:#e6efff; }
body.dark .auth-switch-card__body a{ color:#87c2ff; }
body.dark .auth-switch-card__slider{
  background:linear-gradient(180deg,#cf5061,#9f2034);
  box-shadow:inset 0 2px 7px rgba(255,255,255,.14), 0 8px 20px rgba(182,49,70,.18);
}
body.dark .auth-switch-card__thumb{
  background:linear-gradient(180deg,#ffffff,#e8f0ff);
  box-shadow:0 5px 14px rgba(0,0,0,.36);
}
body.dark .auth-switch-card:has(> input:checked){
  border-color:rgba(74,166,255,.32);
  background:linear-gradient(180deg,rgba(12,26,54,.98),rgba(10,37,79,.96));
  box-shadow:0 0 0 1px rgba(78,154,255,.10) inset, 0 18px 34px rgba(0,0,0,.36), 0 0 18px rgba(63,145,255,.12);
}
body.dark .auth-switch-card:has(> input:checked) .auth-switch-card__slider{
  background:linear-gradient(135deg,#2fa7ff,#1a78ff 52%,#8ad9ff);
}
@media (max-width:640px){
  .auth-switch-card{
    grid-template-columns:64px minmax(0,1fr);
    gap:12px;
    padding:13px 14px;
    border-radius:20px;
  }
  .auth-switch-card__slider{ width:58px; height:34px; }
  .auth-switch-card__thumb{ width:26px; height:26px; }
  .auth-switch-card > input:checked + .auth-switch-card__slider .auth-switch-card__thumb{ transform:translateX(24px); }
  .auth-switch-card__body{ font-size:.92rem; }
}


/* ===== consent slider real-visual fix ===== */
.auth-switch-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 18px!important;
  border-radius:22px!important;
  border:1px solid rgba(225,88,99,.22)!important;
  background:linear-gradient(180deg,#fffdfd 0%,#fff5f6 100%)!important;
  box-shadow:0 14px 30px rgba(32,71,150,.08), inset 0 1px 0 rgba(255,255,255,.78)!important;
  cursor:pointer!important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease!important;
}
.auth-switch-card:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 18px 34px rgba(32,71,150,.11), inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.auth-switch-card > input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  opacity:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  margin:0!important;
  border:none!important;
  outline:none!important;
  cursor:pointer!important;
  z-index:2!important;
}
.auth-switch-card__slider{
  position:relative!important;
  width:66px!important;
  height:38px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#ff8e98 0%,#de4556 100%)!important;
  box-shadow:inset 0 2px 7px rgba(255,255,255,.26), 0 10px 18px rgba(219,78,91,.18)!important;
  transition:background .22s ease, box-shadow .22s ease, transform .22s ease!important;
}
.auth-switch-card__slider::before{
  content:"NE"!important;
  position:absolute!important;
  right:11px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#fff!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  opacity:.92!important;
}
.auth-switch-card__thumb{
  position:absolute!important;
  top:4px!important;
  left:4px!important;
  width:30px!important;
  height:30px!important;
  border-radius:50%!important;
  background:linear-gradient(180deg,#ffffff,#edf4ff)!important;
  box-shadow:0 6px 16px rgba(18,47,110,.18)!important;
  transition:transform .22s ease!important;
}
.auth-switch-card__body{
  min-width:0!important;
  color:#173058!important;
  font-size:.96rem!important;
  line-height:1.52!important;
  font-weight:800!important;
}
.auth-switch-card__body a{
  color:#0b72ff!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.auth-switch-card__body a:hover{text-decoration:underline!important}
.auth-switch-card.is-checked,
.auth-switch-card > input:checked ~ .auth-switch-card__body{
  color:#102a55!important;
}
.auth-switch-card.is-checked{
  border-color:rgba(11,114,255,.24)!important;
  background:linear-gradient(180deg,#ffffff 0%,#edf7ff 100%)!important;
  box-shadow:0 18px 36px rgba(17,88,207,.12), inset 0 1px 0 rgba(255,255,255,.88)!important;
}
.auth-switch-card.is-checked .auth-switch-card__slider,
.auth-switch-card > input:checked + .auth-switch-card__slider{
  background:linear-gradient(135deg,#1c89ff 0%,#0b72ff 56%,#61c4ff 100%)!important;
  box-shadow:inset 0 2px 8px rgba(255,255,255,.26), 0 12px 20px rgba(12,114,255,.24)!important;
}
.auth-switch-card.is-checked .auth-switch-card__slider::before,
.auth-switch-card > input:checked + .auth-switch-card__slider::before{
  content:"DA"!important;
  left:11px!important;
  right:auto!important;
}
.auth-switch-card.is-checked .auth-switch-card__thumb,
.auth-switch-card > input:checked + .auth-switch-card__slider .auth-switch-card__thumb{
  transform:translateX(28px)!important;
}
.auth-switch-card--optional:not(.is-checked){
  border-color:rgba(233,166,74,.24)!important;
  background:linear-gradient(180deg,#fffef9 0%,#fff8ec 100%)!important;
}
.auth-switch-card > input:focus-visible + .auth-switch-card__slider{
  box-shadow:0 0 0 3px rgba(11,114,255,.18), inset 0 2px 8px rgba(255,255,255,.26), 0 12px 20px rgba(12,114,255,.18)!important;
}
body.dark .auth-switch-card{
  border-color:rgba(219,91,108,.24)!important;
  background:linear-gradient(180deg,rgba(16,26,44,.97),rgba(20,21,32,.98))!important;
  box-shadow:0 18px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(118,152,214,.06)!important;
}
body.dark .auth-switch-card__body{color:#e6efff!important}
body.dark .auth-switch-card__body a{color:#87c2ff!important}
body.dark .auth-switch-card__slider{
  background:linear-gradient(180deg,#cf5061 0%,#9f2034 100%)!important;
  box-shadow:inset 0 2px 7px rgba(255,255,255,.12), 0 10px 18px rgba(171,54,72,.18)!important;
}
body.dark .auth-switch-card__thumb{
  background:linear-gradient(180deg,#ffffff,#eaf1ff)!important;
  box-shadow:0 6px 18px rgba(0,0,0,.38)!important;
}
body.dark .auth-switch-card.is-checked{
  border-color:rgba(74,166,255,.34)!important;
  background:linear-gradient(180deg,rgba(11,26,55,.98),rgba(10,38,82,.96))!important;
  box-shadow:0 0 0 1px rgba(78,154,255,.10) inset, 0 18px 34px rgba(0,0,0,.36), 0 0 18px rgba(63,145,255,.12)!important;
}
body.dark .auth-switch-card.is-checked .auth-switch-card__slider{
  background:linear-gradient(135deg,#30a8ff 0%,#1a78ff 56%,#91ddff 100%)!important;
}
@media (max-width:640px){
  .auth-switch-card{
    grid-template-columns:70px minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px 14px!important;
    border-radius:20px!important;
  }
  .auth-switch-card__slider{
    width:60px!important;
    height:34px!important;
  }
  .auth-switch-card__slider::before{
    font-size:.68rem!important;
  }
  .auth-switch-card__thumb{
    width:26px!important;
    height:26px!important;
  }
  .auth-switch-card.is-checked .auth-switch-card__thumb,
  .auth-switch-card > input:checked + .auth-switch-card__slider .auth-switch-card__thumb{
    transform:translateX(26px)!important;
  }
  .auth-switch-card__body{
    font-size:.9rem!important;
  }
}


/* 2026 rebuild: calmer header account controls */
.page-order .actions .auth-entry-btn,
.page-status .track-actions .auth-entry-btn,
.page-thankyou .actions .auth-entry-btn{min-height:44px!important;border-radius:16px!important;padding:.44rem .68rem!important;box-shadow:none!important;border-color:#d8e6fb!important;background:linear-gradient(180deg,#ffffff,#f6faff)!important;color:#10233f!important}
.page-order .actions .auth-entry-btn__meta,
.page-status .track-actions .auth-entry-btn__meta,
.page-thankyou .actions .auth-entry-btn__meta{display:none!important}
.page-order .actions .auth-entry-btn .auth-rank-badge.compact .auth-rank-badge__media,
.page-status .track-actions .auth-entry-btn .auth-rank-badge.compact .auth-rank-badge__media{width:34px!important;height:34px!important}
