/* Yellow Interactive Design System. All dimensions also support Arabic RTL. */
:root[data-theme="dark"]{
  --bg:#12161d;--surface:#18202a;--sunken:#1f2a37;--line:#2b3848;--line2:#384656;--muted:#9aa8b8;
  --accent:#ffc800;--accent-soft:rgba(255,200,0,0.16);--accent-ink:#1c1917;
  --duo-yellow:#ffc800;--duo-yellow-deep:#cca000;--duo-yellow-light:#ffd933;
  --duo-orange:#ff9600;--duo-orange-deep:#cc7a00;--duo-orange-light:#ffa826;
  --duo-blue:#1cb0f6;--duo-blue-deep:#1899d6;
}
body{line-height:1.65;font-family:var(--f-body)}
html:not([lang="ar"]){--f-body:"Nunito",system-ui,sans-serif;--f-display:"Nunito",system-ui,sans-serif}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}

/* Tactile 3D Buttons (Refined depth) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:40px;padding:8px 18px;border-radius:14px;
  font-weight:800;font-size:14px;letter-spacing:0.01em;
  border:2px solid var(--line2);background:var(--surface);color:#ffffff;
  box-shadow:0 2.5px 0 #121820;cursor:pointer;
  transform:translateY(0);
  transition:transform .08s ease,box-shadow .08s ease,background-color .12s ease;
  user-select:none;
}
.btn:hover:not([disabled]){background:#253342;border-color:#435468}
.btn:active:not([disabled]){transform:translateY(2px);box-shadow:0 0 0 transparent}
.btn[disabled]{opacity:.45;box-shadow:0 1.5px 0 #121820;cursor:not-allowed;transform:none}
.btn.sm{min-height:32px;padding:4px 12px;font-size:12.5px;border-radius:11px;box-shadow:0 2px 0 #121820}
.btn.sm:active:not([disabled]){transform:translateY(1.5px);box-shadow:0 0 0 transparent}

/* Primary Yellow Button */
.btn.pri,button.btn.pri{
  background:var(--duo-yellow);color:#1c1917;border-color:var(--duo-yellow-deep);
  box-shadow:0 2.5px 0 var(--duo-yellow-deep);font-weight:800;
}
.btn.pri:hover:not([disabled]){background:var(--duo-yellow-light);border-color:var(--duo-yellow-deep)}
.btn.pri:active:not([disabled]){transform:translateY(2px);box-shadow:0 0 0 transparent}

/* Streak Orange Button */
.btn.orange,.btn-orange{
  background:var(--duo-orange)!important;color:#ffffff!important;
  border-color:var(--duo-orange-deep)!important;box-shadow:0 2.5px 0 var(--duo-orange-deep)!important;
  font-weight:800;
}
.btn.orange:hover:not([disabled]),.btn-orange:hover:not([disabled]){background:var(--duo-orange-light)!important}
.btn.orange:active:not([disabled]),.btn-orange:active:not([disabled]){transform:translateY(2px)!important;box-shadow:0 0 0 transparent!important}

/* Tactile Chips */
.chip{
  min-height:36px;padding:7px 14px;border-radius:14px;
  border:2px solid var(--line2);background:var(--surface);color:#ffffff;
  box-shadow:0 2px 0 #121820;font-weight:700;font-size:13px;cursor:pointer;
  transition:transform .08s ease,box-shadow .08s ease,background-color .12s ease;
}
.chip:hover{background:var(--sunken);border-color:#435468}
.chip[aria-pressed="true"]{
  background:var(--accent-soft);border-color:var(--duo-yellow);color:var(--duo-yellow);
  box-shadow:0 2px 0 var(--duo-yellow-deep);
}
.chip:active{transform:translateY(1.5px);box-shadow:0 0 0 transparent}

/* Cards & Sunk containers */
.panel{border-radius:18px;border:2px solid var(--line);box-shadow:0 3px 0 #10151c;background:var(--surface)}
.sunk{border-radius:16px;border:2px solid var(--line);box-shadow:0 2.5px 0 #10151c;background:var(--sunken)}
.pad{padding:24px}.kpi{border-radius:14px;padding:20px;border:2px solid var(--line);box-shadow:0 2.5px 0 #10151c}
.kpi b{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.plan li{padding-block:16px}.plan .n{background:var(--accent-soft);color:var(--accent);font-weight:800}
.duo-hero-game{display:flex;align-items:center;flex-wrap:wrap;gap:20px;background:linear-gradient(135deg,rgba(255,200,0,0.07) 0%,rgba(20,24,33,0.95) 100%);border:2px solid rgba(255,200,0,0.3);box-shadow:0 4px 0 #10151c;border-radius:20px}
.game-bee-avatar{filter:drop-shadow(0 4px 10px rgba(255,200,0,0.25));animation:duoFloat 4s ease-in-out infinite}
.big-flame{font-size:26px;filter:drop-shadow(0 0 8px rgba(255,150,0,0.5))}
.ww-dialog{border:2px solid var(--line2);border-radius:18px;box-shadow:0 3px 0 #10151c;padding:28px}
#main{min-width:0}#main>div{max-width:100%}
#main h2{line-height:1.3;font-weight:800}#main .cloze{line-height:2}
h1,h2,h3,.eyebrow{font-weight:800;letter-spacing:-0.01em}
textarea{line-height:1.8}select{max-width:100%}
input[type="text"],input[type="email"],input[type="password"],input[type="url"],select,textarea{
  border-radius:14px;border:2px solid var(--line2);background:#141b24;color:#ffffff;
  padding:10px 14px;font-size:14px;transition:border-color .15s ease,box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--duo-blue);outline:none;box-shadow:0 0 0 3px rgba(28,176,246,0.25);
}
:focus-visible{outline:2px solid var(--duo-yellow);outline-offset:3px}

/* Mascot & Speech Bubble */
.duo-speech{display:flex;align-items:flex-start;gap:16px;margin-bottom:12px}
.duo-mascot{font-size:46px;line-height:1;filter:drop-shadow(0 3px 0 rgba(0,0,0,0.25));user-select:none;flex-shrink:0}
.duo-bubble{
  position:relative;background:var(--surface);border:2px solid var(--line2);
  border-bottom:3px solid var(--line);border-radius:18px;padding:14px 18px;
  font-size:15px;line-height:1.5;color:#ffffff;flex:1;font-weight:600;
}
.duo-bubble::before{
  content:"";position:absolute;inset-inline-start:-10px;top:18px;width:0;height:0;
  border-style:solid;border-width:8px 10px 8px 0;border-color:transparent var(--line2) transparent transparent;
}
.duo-bubble::after{
  content:"";position:absolute;inset-inline-start:-7px;top:19px;width:0;height:0;
  border-style:solid;border-width:7px 8px 7px 0;border-color:transparent var(--surface) transparent transparent;
}
[dir="rtl"] .duo-bubble::before, :lang(ar) .duo-bubble::before{
  border-width:8px 0 8px 10px;
  border-color:transparent transparent transparent var(--line2);
}
[dir="rtl"] .duo-bubble::after, :lang(ar) .duo-bubble::after{
  border-width:7px 0 7px 8px;
  border-color:transparent transparent transparent var(--surface);
}

/* Progress Bar (Yellow Gradient) */
.duo-progress-wrap{display:flex;align-items:center;gap:12px;width:100%}
.duo-progress-bar{flex:1;height:16px;background:#18222e;border-radius:9999px;overflow:hidden;position:relative;border:2px solid #2b3848}
.duo-progress-fill{
  height:100%;background:linear-gradient(180deg,#ffe066 0%,#ffc800 100%);
  border-radius:9999px;box-shadow:inset 0 -2px 0 #cca000,inset 0 2px 0 rgba(255,255,255,0.4);
  transition:width 320ms cubic-bezier(0.34,1.56,0.64,1);
}
.duo-progress-count{font-weight:800;font-size:13px;color:var(--muted);min-width:32px}

/* Badges & Choice Cards */
.duo-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:9999px;font-size:12px;font-weight:800;letter-spacing:0.02em}
.duo-badge.yellow,.duo-badge.gold{background:rgba(255,200,0,0.16);color:var(--duo-yellow);border:1.5px solid var(--duo-yellow)}
.duo-badge.orange{background:rgba(255,150,0,0.16);color:var(--duo-orange);border:1.5px solid var(--duo-orange)}
.duo-badge.blue{background:rgba(28,176,246,0.16);color:var(--duo-blue);border:1.5px solid var(--duo-blue)}
.duo-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:14px}
.duo-choice-card{
  display:flex;flex-direction:column;justify-content:space-between;padding:18px;
  border-radius:20px;border:2px solid var(--line2);border-bottom:3.5px solid var(--line);
  background:var(--surface);box-shadow:0 3px 0 #10151c;gap:12px;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.duo-choice-card:hover{border-color:var(--duo-yellow);transform:translateY(-2px);box-shadow:0 5px 0 #10151c}
.duo-choice-card.highlight{border-color:var(--duo-yellow);border-bottom:3.5px solid var(--duo-yellow-deep);background:rgba(255,200,0,0.06)}
.duo-choice-card.highlight-orange{border-color:var(--duo-orange);border-bottom:3.5px solid var(--duo-orange-deep);background:rgba(255,150,0,0.06)}
.big-btn{min-height:44px;font-size:15px;font-weight:800;width:100%}
.duo-link{color:var(--duo-yellow);font-weight:800;text-decoration:underline}
.duo-footer-bar{padding-top:16px;border-top:2px solid var(--line)}
@media(min-width:1100px){
  #app.has-sidebar, #app:has(.top){display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start}
  #app.onboarding-mode, #app:not(:has(.top)){display:block;width:100%;max-width:1120px;margin:0 auto;padding-inline:16px}
  #app.onboarding-mode #main, #app:not(:has(.top)) #main{max-width:100%;padding:32px 0 80px;margin:0 auto}
  .top{height:100dvh;overflow-y:auto;position:sticky;top:0;border-bottom:0;border-inline-end:1px solid var(--line);background:var(--bg,#12161d)}
  .top>.wrap{padding:22px 14px 28px;max-width:none;display:flex;flex-direction:column;gap:14px}
  
  .brand{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:12px}
  .brand-top-row{display:flex;flex-direction:column;gap:12px;width:100%}
  .brand-title{display:flex;flex-direction:column;gap:3px}
  .brand-title h1{font-size:18px;line-height:1.3;display:flex;align-items:center;gap:8px;margin:0}
  .brand-title .eyebrow{font-size:10px;line-height:1.5;color:var(--muted);display:block}
  
  #hdrGame{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:5px;width:100%}
  #hdrGame .stat-capsule{justify-content:center;padding:5px 4px;font-size:11.5px;border-radius:10px}
  
  .brand-controls-row{display:flex;flex-direction:column;gap:7px;width:100%;padding-top:4px;border-top:1px solid rgba(255,255,255,0.06)}
  .hdr-actions{display:flex;align-items:center;gap:6px;width:100%;flex-wrap:nowrap}
  .hdr-actions select{flex:1 1 auto;width:auto!important;min-width:0;font-size:11.5px!important;padding:4px 6px;border-radius:10px;border:1px solid var(--border,#232f40);background:rgba(0,0,0,0.3);color:var(--ink)}
  .hdr-actions button[data-go="settings"]{flex:0 0 auto;padding:4px 8px;font-size:11.5px;display:inline-flex;align-items:center;gap:0.4em;white-space:nowrap}
  
  .brand .status{font-size:10.5px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0.8}
  .brand .status::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#48c774;flex-shrink:0}
  
  .tabs{display:flex;flex-direction:column;gap:5px;overflow:visible;padding:0}
  .tab{min-height:38px;padding:8px 10px;border:1px solid transparent;border-radius:10px;text-align:start;white-space:normal;font-size:12.5px;width:100%}
  .tab[aria-selected="true"]{background:var(--accent-soft,rgba(255,200,0,0.12));border-color:rgba(255,200,0,0.4);color:#fff}
  .tab:hover{background:var(--sunken,#1c2636)}
  
  #main.wrap{width:100%;max-width:1160px;padding:32px 36px 80px}
}

@media(max-width:1099px){
  .top{position:relative;background:var(--bg,#12161d);border-bottom:1px solid var(--line);max-width:100%;overflow-x:clip}
  .top>.wrap{padding:10px 14px 4px;max-width:100%;min-width:0;box-sizing:border-box}
  .brand{display:flex;flex-direction:column;gap:8px;padding-block:4px;min-width:0;max-width:100%}
  .brand-top-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px;min-width:0}
  .brand-title h1{font-size:18px;margin:0;display:flex;align-items:center;gap:6px}
  .brand-title .eyebrow{display:none}
  
  #hdrGame{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
  #hdrGame .stat-capsule{padding:4px 8px;font-size:12px;border-radius:10px}
  
  .brand-controls-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;padding-top:2px;min-width:0}
  .hdr-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
  .hdr-actions select{width:auto;max-width:105px;font-size:11px!important;padding:3px 6px;border-radius:7px}
  .hdr-actions .btn{padding:3px 7px;font-size:11.5px}
  
  .brand .status{font-size:10.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px;display:inline-flex;align-items:center;gap:4px;opacity:0.8}
  .brand .status::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#48c774;flex-shrink:0}
  
  .tabs{display:flex;gap:7px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:6px 2px;max-width:100%;min-width:0;box-sizing:border-box}
  .tabs::-webkit-scrollbar{display:none}
  .tab{padding:6px 11px;border-radius:10px;font-size:12px;min-height:34px;flex-shrink:0}
  #main{padding-top:18px}.pad{padding:18px}
}

/* Accessible Compact UI Menu */
.ww-ui-menu-wrap{position:relative;display:inline-block}
.ww-ui-btn{font-weight:800;letter-spacing:0.04em;padding:4px 9px;min-width:34px;text-align:center;font-size:12px;border-radius:8px}
.ww-ui-dropdown{position:absolute;top:calc(100% + 5px);inset-inline-end:0;background:var(--surface,#1e2430);border:1px solid var(--line,#2d3748);border-radius:10px;box-shadow:0 10px 25px rgba(0,0,0,0.45);padding:4px;display:flex;flex-direction:column;gap:2px;min-width:130px;z-index:1000}
.ww-ui-dropdown.hidden{display:none!important}
.ww-ui-menu-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:7px;background:transparent;border:none;color:var(--ink,#f5f2ff);font-size:13px;font-weight:600;cursor:pointer;width:100%;text-align:start}
.ww-ui-menu-item:hover,.ww-ui-menu-item:focus-visible{background:var(--sunken,#2a3344);outline:none}
.ww-ui-menu-item[aria-checked="true"]{color:var(--accent,#f59e0b);font-weight:700}
.ww-ui-menu-item .ww-check{font-size:13px;font-weight:900;margin-inline-start:8px;color:var(--accent,#f59e0b)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;left:0!important;top:0!important}
.duo-ob-langs{display:flex;align-items:center;gap:6px}

@media(prefers-reduced-motion:reduce){.btn,.chip,.tab{transition:none}}

/* Gamification Capsules */
.stat-capsule{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:12px;font-size:12.5px;font-weight:800;line-height:1;border:1.5px solid rgba(255,255,255,0.08);background:rgba(18,24,38,0.75);backdrop-filter:blur(8px);user-select:none;transition:transform .15s,box-shadow .15s,border-color .15s}
.stat-capsule:hover{transform:translateY(-1px)}
.stat-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.35))}
.stat-flame-icon{width:26px;height:26px;filter:drop-shadow(0 2px 8px rgba(255,106,61,0.65));transition:transform .2s cubic-bezier(0.34,1.56,0.64,1)}
.stat-streak:hover .stat-flame-icon{transform:scale(1.2) rotate(-4deg)}
.stat-streak{color:#ff7e47;border-color:rgba(255,94,54,0.35);background:rgba(255,94,54,0.1)}
.stat-streak.stat-active{color:#ff9600;border-color:rgba(255,120,0,0.5);box-shadow:0 0 12px rgba(255,106,61,0.25)}
.stat-freeze{color:#38bdf8;border-color:rgba(56,189,248,0.35);background:rgba(56,189,248,0.09)}
.stat-freeze:hover .stat-icon{transform:scale(1.12)}
.stat-xp{color:var(--accent,#ffc800);border-color:rgba(255,200,0,0.35);background:rgba(255,200,0,0.09)}
.stat-xp:hover .stat-icon{transform:scale(1.15) rotate(5deg)}
.stat-num{font-variant-numeric:tabular-nums;display:inline-flex;align-items:baseline}
.stat-sep{opacity:0.55;font-size:11px;margin:0 1px}

/* 3D Navigation Tab Items */
.tab{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border,#232f40);background:rgba(0,0,0,0.22);color:var(--muted,#8e9bab);font-weight:700;user-select:none;transition:all .18s cubic-bezier(0.16,1,0.3,1);cursor:pointer}
.nav-3d-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;flex-shrink:0;transition:transform .2s ease;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3))}
.tab:hover{color:#fff;background:#1c2636;border-color:#2d3c52;transform:translateY(-1px)}
.tab:hover .nav-3d-icon{transform:scale(1.12)}
.tab[aria-selected="true"]{color:#fff;background:var(--accent-soft,rgba(255,200,0,0.12));border-color:rgba(255,200,0,0.45);box-shadow:0 4px 16px rgba(255,200,0,0.14)}
.tab[aria-selected="true"] .tab-label{color:var(--accent,#ffc800)}
.tab[aria-selected="true"] .nav-3d-icon{transform:scale(1.15);filter:drop-shadow(0 3px 6px rgba(255,200,0,0.45))}
.tab .cnt{background:var(--orange,#ff9600);color:#fff;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:8px;margin-inline-start:2px}

/* Hero Focus Stats (Dual Cards) */
.ww-focus-stats{display:flex;align-items:center;gap:14px;flex-shrink:0}
.ww-hero-stat{display:flex;align-items:center;gap:14px;padding:10px 18px;border-radius:18px;background:rgba(18,24,38,0.75);backdrop-filter:blur(10px);border:1.5px solid rgba(255,255,255,0.08);box-shadow:0 6px 20px rgba(0,0,0,0.28);transition:transform .2s cubic-bezier(0.16,1,0.3,1),box-shadow .2s,border-color .2s;user-select:none}
.ww-hero-stat:hover{transform:translateY(-2px)}
.ww-hero-streak{border-color:rgba(255,94,54,0.35);background:linear-gradient(135deg,rgba(255,94,54,0.12) 0%,rgba(18,24,38,0.8) 100%)}
.ww-hero-streak:hover{box-shadow:0 10px 28px rgba(255,94,54,0.28);border-color:rgba(255,94,54,0.6)}
.ww-flame-wrapper{position:relative;display:flex;align-items:center;justify-content:center;width:70px;height:70px;flex-shrink:0}
.ww-flame-hero{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(255,106,61,0.7));transition:transform .25s cubic-bezier(0.34,1.56,0.64,1);animation:flameBreathe 3s ease-in-out infinite}
.ww-hero-streak:hover .ww-flame-hero{transform:scale(1.15) rotate(-3deg)}
@keyframes flameBreathe{0%,100%{transform:scale(1);filter:drop-shadow(0 6px 18px rgba(255,106,61,0.65))}50%{transform:scale(1.05) translateY(-2px);filter:drop-shadow(0 8px 24px rgba(255,140,0,0.8))}}
.ww-hero-stat-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.ww-hero-stat-main{display:flex;align-items:center;gap:8px;line-height:1}
.ww-hero-streak-num{font-size:34px;font-weight:900;color:#ff8a3d;font-variant-numeric:tabular-nums;letter-spacing:-0.5px;text-shadow:0 2px 12px rgba(255,94,54,0.45)}
.ww-hero-freeze-tag{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:800;color:#38bdf8;background:rgba(56,189,248,0.15);border:1px solid rgba(56,189,248,0.35);padding:2px 6px;border-radius:99px}
.ww-hero-freeze-tag img{vertical-align:middle}
.ww-hero-stat-label{font-size:11.5px;font-weight:700;color:var(--muted,#8e9bab);text-transform:uppercase;letter-spacing:0.5px}

.ww-hero-goal{border-color:rgba(255,200,0,0.35);background:linear-gradient(135deg,rgba(255,200,0,0.1) 0%,rgba(18,24,38,0.8) 100%)}
.ww-hero-goal:hover{box-shadow:0 10px 28px rgba(255,200,0,0.22);border-color:rgba(255,200,0,0.55)}
.ww-goal-ring-wrapper{position:relative;width:54px;height:54px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ww-goal-gem-icon{position:absolute;width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(255,200,0,0.4));pointer-events:none;transition:transform .2s cubic-bezier(0.34,1.56,0.64,1)}
.ww-hero-goal:hover .ww-goal-gem-icon{transform:scale(1.18) rotate(6deg)}
.ww-hero-goal-num{font-size:26px;font-weight:900;color:var(--accent,#ffc800);font-variant-numeric:tabular-nums;letter-spacing:-0.5px}
.ww-hero-goal-sep{font-size:16px;font-weight:700;color:var(--muted,#8e9bab);margin:0 1px}
.ww-hero-goal-target{font-size:18px;font-weight:800;color:var(--muted,#8e9bab);font-variant-numeric:tabular-nums}
.ww-hero-goal-unit{font-size:12px;font-weight:800;color:var(--accent,#ffc800);margin-inline-start:4px}

@media(min-width:1100px) and (max-width:1320px){
  .ww-focus{align-items:flex-start}
  .ww-focus-stats{flex-direction:column;gap:10px;align-items:stretch}
  .ww-hero-stat{padding:8px 12px;gap:10px}
  .ww-flame-wrapper{width:48px;height:48px}
  .ww-flame-hero{width:48px;height:48px}
  .ww-goal-ring-wrapper{width:46px;height:46px}
  .ww-goal-ring-wrapper svg{width:46px;height:46px}
  .ww-hero-streak-num{font-size:24px}
  .ww-hero-goal-num{font-size:20px}
}
@media(max-width:560px){
  .ww-focus-stats{flex-direction:row;gap:8px;width:100%}
  .ww-hero-stat{flex:1 1 0;min-width:0;padding:8px 10px;gap:8px;border-radius:14px}
  .ww-flame-wrapper{width:44px;height:44px}
  .ww-flame-hero{width:44px;height:44px}
  .ww-goal-ring-wrapper{width:44px;height:44px}
  .ww-goal-ring-wrapper svg{width:44px;height:44px}
  .ww-hero-streak-num{font-size:22px}
  .ww-hero-goal-num{font-size:18px}
  .ww-hero-stat-label{font-size:9.5px}
}

@media(max-width:600px){
  .brand .status{display:none!important}
  .brand-controls-row{justify-content:flex-end!important}
}


/* ==================== PART A: FULL-SCREEN CELEBRATION TAKEOVER ==================== */
.ww-celebration-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 99999999;
  background: #181E27;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 200ms ease;
  pointer-events: auto;
}
.ww-celebration-overlay.fading {
  opacity: 0;
  pointer-events: none;
}
.ww-celebration-poster,
.ww-celebration-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.ww-celebration-poster{opacity:1;transition:opacity .16s ease}
.ww-celebration-video{opacity:0;transition:opacity .16s ease}
.ww-celebration-overlay.playing .ww-celebration-poster{opacity:0}
.ww-celebration-overlay.playing .ww-celebration-video{opacity:1}
.ww-telemetry-consent{position:fixed;z-index:1000000;inset-inline:16px;bottom:16px;max-width:530px;margin:auto;padding:16px;background:#1d2230;border:1px solid #7352ac;border-radius:15px;box-shadow:0 12px 36px #0008;color:#f5f2ff}
.ww-telemetry-consent p{margin:0 0 12px;line-height:1.5}
.ww-telemetry-consent div{display:flex;justify-content:flex-end;gap:9px}
.ww-telemetry-consent button{padding:8px 14px;border:1px solid #7352ac;border-radius:9px;background:#22283a;color:#fff;cursor:pointer}
.ww-telemetry-consent button[data-consent="yes"]{background:#a780ee;color:#16111e;font-weight:800}

/* ==================== RESULTS PAGE MODAL (NO NAHLA IMAGE OR VIDEO AT TOP) ==================== */
.ww-duo-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999999;
  background: radial-gradient(circle at 50% 30%, #1f2d3d 0%, #181E27 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ww-duo-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ww-duo-modal-overlay.theme-orange {
  background: radial-gradient(circle at 50% 25%, #2d1c0a 0%, #181E27 100%);
}
.ww-duo-modal-overlay.theme-green {
  background: radial-gradient(circle at 50% 25%, #0f2c1b 0%, #181E27 100%);
}
.ww-duo-modal-overlay.theme-purple {
  background: radial-gradient(circle at 50% 25%, #25133d 0%, #181E27 100%);
}

.ww-duo-close-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10000000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
html[dir="rtl"] .ww-duo-close-btn {
  right: auto;
  left: 22px;
}
.ww-duo-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.08);
}

.ww-duo-modal-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 60px 24px 120px 24px;
  transform: scale(0.94) translateY(18px);
  transition: transform .32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ww-duo-modal-overlay.is-visible .ww-duo-modal-card {
  transform: scale(1) translateY(0);
}

.ww-duo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ww-duo-badge.badge-xp {
  background: rgba(88, 204, 2, 0.18);
  border: 1.5px solid rgba(88, 204, 2, 0.45);
  color: #58cc02;
}
.ww-duo-badge.badge-gold {
  background: rgba(255, 200, 0, 0.16);
  border: 1.5px solid rgba(255, 200, 0, 0.5);
  color: #ffc800;
}

.ww-duo-streak-display { margin: 4px 0; }
.ww-duo-streak-count {
  font-size: clamp(68px, 15vw, 96px);
  font-weight: 950;
  line-height: 1;
  color: #ff9600;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 32px rgba(255, 150, 0, 0.6);
}

.ww-duo-title {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 4px 0;
  line-height: 1.15;
}
.ww-duo-subtitle {
  font-size: clamp(15px, 3.2vw, 18px);
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.5;
  margin: 0 auto 12px;
}

.ww-duo-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 8px auto 14px;
}
.ww-duo-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ww-duo-stat-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.ww-duo-stat-val {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ww-duo-calendar-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 14px 16px;
  margin: 6px auto 12px;
}
.ww-duo-cal-days {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.ww-duo-cal-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ww-duo-cal-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.ww-duo-cal-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}
.ww-duo-cal-circle.is-active {
  background: #ff9600;
  border-color: #ffb733;
  box-shadow: 0 4px 16px rgba(255, 150, 0, 0.55);
}
.ww-duo-cal-circle.is-frozen {
  background: #1cb0f6;
  border-color: #5cd0ff;
  box-shadow: 0 4px 16px rgba(28, 176, 246, 0.55);
}
.ww-duo-cal-caption {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 8px;
}

.ww-duo-takeover-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 94px;
  background: rgba(24, 30, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 10000000;
}
.ww-duo-footer-inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
}

.ww-duo-btn-duo, .ww-duo-btn-continue {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .12s ease, transform .08s ease;
}
.ww-duo-btn-green, .ww-duo-btn-continue {
  background: #58cc02;
  border-bottom: 5px solid #46a302;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(88, 204, 2, 0.35);
}
.ww-duo-btn-orange {
  background: #ff9600 !important;
  border-bottom: 5px solid #cc7800 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 150, 0, 0.35) !important;
}
.ww-duo-btn-purple {
  background: #a855f7 !important;
  border-bottom: 5px solid #7e22ce !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35) !important;
}
.ww-duo-btn-duo:hover, .ww-duo-btn-continue:hover {
  filter: brightness(1.08);
}
.ww-duo-btn-duo:active, .ww-duo-btn-continue:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.ww-duo-subtitle{font-size:14px;color:var(--muted,#8e9bab);margin:0 0 20px;line-height:1.5;max-width:320px}

.ww-duo-calendar-card{background:rgba(0,0,0,0.3);border:1.5px solid rgba(255,255,255,0.08);border-radius:18px;padding:16px 14px 12px;width:100%;margin-bottom:16px}
.ww-duo-cal-days{display:flex;justify-content:space-between;gap:6px;width:100%;margin-bottom:12px}
.ww-duo-cal-col{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1}
.ww-duo-cal-lbl{font-size:11px;font-weight:800;color:var(--muted,#8e9bab);text-transform:uppercase}
.ww-duo-cal-col.is-today .ww-duo-cal-lbl{color:#ff9600}
.ww-duo-cal-circle{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;color:var(--muted,#8e9bab);border:1.5px solid transparent;transition:transform .2s}
.ww-duo-cal-circle.is-active{background:linear-gradient(135deg,#ff9600,#ff6a3d);color:#fff;border-color:#ffc800;box-shadow:0 4px 14px rgba(255,106,61,0.45);transform:scale(1.05)}
.ww-duo-cal-circle.is-frozen{background:linear-gradient(135deg,#0284c7,#38bdf8);color:#fff;border-color:#7dd3fc;box-shadow:0 4px 14px rgba(56,189,248,0.4)}
.ww-duo-cal-caption{font-size:11.5px;color:var(--muted,#8e9bab);line-height:1.5;margin:0;padding-top:8px;border-top:1px solid rgba(255,255,255,0.06)}

.ww-duo-milestone-box{width:100%;background:rgba(255,200,0,0.07);border:1px solid rgba(255,200,0,0.25);border-radius:14px;padding:10px 14px;margin-bottom:20px;font-size:12.5px;color:#ffda52}
.ww-duo-milestone-progress{display:flex;align-items:center;justify-content:center;gap:8px}
.ww-duo-milestone-progress b{color:#fff;font-size:14px}
.ww-duo-milestone-achieved{font-weight:700;color:#ffc800;line-height:1.4}

.ww-duo-btn-continue{width:100%;min-height:48px;font-size:16px;font-weight:800;border-radius:14px;box-shadow:0 6px 20px rgba(255,200,0,0.3);letter-spacing:0.5px}

/* Enhanced Massive Streak Number in Today Card */
.ww-hero-streak-num{font-size:56px!important;font-weight:900!important;color:#ff9600!important;line-height:0.95!important;font-variant-numeric:tabular-nums;letter-spacing:-1.5px;text-shadow:0 4px 22px rgba(255,120,0,0.65)!important}
@media(max-width:560px){
  .ww-hero-streak-num{font-size:46px!important}
}

/* RTL Hero Greeting Alignment */
html[dir="rtl"] .ww-greeting{flex-direction:row;text-align:right}
html[dir="rtl"] .ww-greeting-text{text-align:right}
html[dir="rtl"] .ww-greeting-text h2{text-align:right;margin-block:6px!important}
html[dir="rtl"] .ww-greeting-text p{text-align:right;margin:0}
html[dir="rtl"] .ww-kicker{text-align:right}

/* ===================== NAHLA FLOATING PET & BUBBLE (RTL / LOGICAL PROPERTIES) ===================== */
:root {
  --nahla-dir: 1;
}
html[dir="rtl"] {
  --nahla-dir: -1;
}

/* Direction-neutral float animation */
@keyframes nahlaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Dedicated layout slot / safe clearance so Nahla floating pet does NOT overlap body text */
main, #main {
  padding-block-end: 110px!important;
}

.nahla-pet-container {
  position: fixed!important;
  bottom: 24px!important;
  inset-inline-end: 28px!important;
  inset-inline-start: auto!important;
  z-index: 9999!important;
  display: flex!important;
  flex-direction: column!important;
  align-items: flex-end!important;
  user-select: none!important;
  pointer-events: none!important;
}

html[dir="rtl"] .nahla-pet-container {
  inset-inline-end: 28px!important;
  inset-inline-start: auto!important;
  align-items: flex-start!important;
}

.nahla-bubble {
  background: #fff!important;
  color: #1e1b18!important;
  padding: 8px 14px!important;
  border-radius: 18px!important;
  border-end-end-radius: 4px!important;
  font-size: 13.5px!important;
  font-weight: 700!important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35)!important;
  margin-block-end: 8px!important;
  max-width: 210px!important;
  position: relative!important;
}

html[dir="rtl"] .nahla-bubble {
  direction: rtl!important;
  text-align: right!important;
  font-family: var(--f-ar)!important;
  border-radius: 18px!important;
  border-end-end-radius: 4px!important;
  margin-inline-start: 12px!important;
}

.nahla-bubble::after {
  content: ''!important;
  position: absolute!important;
  bottom: -6px!important;
  inset-inline-end: 20px!important;
  inset-inline-start: auto!important;
  width: 12px!important;
  height: 12px!important;
  background: #fff!important;
  clip-path: polygon(0 0, 100% 0, 100% 100%)!important;
}

html[dir="rtl"] .nahla-bubble::after {
  inset-inline-end: 20px!important;
  inset-inline-start: auto!important;
  clip-path: polygon(0 0, 100% 0, 0 100%)!important;
}

@media(max-width: 600px) {
  main, #main {
    padding-block-end: 130px!important;
  }
  .nahla-pet-container {
    bottom: 14px!important;
    inset-inline-end: 14px!important;
    inset-inline-start: auto!important;
  }
  html[dir="rtl"] .nahla-pet-container {
    bottom: 14px!important;
    inset-inline-end: 14px!important;
    inset-inline-start: auto!important;
  }
  .nahla-pet-avatar {
    width: 72px!important;
    height: 72px!important;
  }
  .nahla-bubble {
    font-size: 11.5px!important;
    padding: 6px 11px!important;
    max-width: 160px!important;
  }
}


/* ===================== GAME NUMBERS & DUOLINGO BOLD TYPOGRAPHY ===================== */
:root {
  --font-display: "Nunito", system-ui, sans-serif;
  --f-game: "Nunito", system-ui, sans-serif;
}

:lang(en),
:lang(de),
html[lang="en"],
html[lang="de"] {
  --font-display: "Nunito", system-ui, sans-serif;
  --f-game: "Nunito", system-ui, sans-serif;
}

/* Scoped strictly so it CANNOT leak into Arabic */
:lang(ar),
html[lang="ar"],
html[dir="rtl"] {
  --font-display: var(--f-ar);
  --f-game: var(--f-ar);
}

:is(:lang(en), :lang(de), html[lang="en"], html[lang="de"]) :is(
  .stat-num,
  .ww-hero-streak-num,
  .ww-hero-goal-num,
  .ww-duo-streak-count,
  .ww-duo-title,
  .ww-recall-summary strong,
  .kpi b,
  .ww-metric-main b,
  .tab .cnt,
  .ww-progress-label b,
  .ww-duo-stat-val,
  .ww-state-streak-num,
  .ww-state-headline
) {
  font-family: var(--font-display) !important;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

:is(:lang(en), :lang(de), html[lang="en"], html[lang="de"]) .ww-duo-streak-count {
  font-weight: 900 !important;
}
:is(:lang(en), :lang(de), html[lang="en"], html[lang="de"]) .ww-duo-title {
  font-weight: 900 !important;
}
:is(:lang(en), :lang(de), html[lang="en"], html[lang="de"]) .stat-num {
  font-weight: 800 !important;
}

/* Arabic UI preserves its font stack completely untouched */
:is(:lang(ar), html[lang="ar"], html[dir="rtl"]) :is(
  .stat-num,
  .ww-hero-streak-num,
  .ww-hero-goal-num,
  .ww-duo-streak-count,
  .ww-duo-title,
  .ww-recall-summary strong,
  .kpi b,
  .ww-metric-main b,
  .tab .cnt,
  .ww-progress-label b,
  .ww-duo-stat-val,
  .ww-state-streak-num,
  .ww-state-headline
) {
  font-family: var(--f-ar) !important;
}

.ww-duo-streak-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ww-duo-streak-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  line-height: 1;
}

.ww-duo-streak-icon {
  height: 1em;
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
}

.ww-duo-streak-count {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: #ff9600;
  text-shadow: 0 4px 24px rgba(255, 120, 0, 0.6);
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
}

.stat-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
}

.stat-capsule .stat-emoji-icon,
.stat-capsule .stat-icon {
  height: 1em;
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
}

.stat-capsule .stat-num {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: none;
}

.ww-duo-stat-val {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  line-height: 1;
}

.ww-stat-icon-inline {
  height: 1em;
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
}

.ww-badge-icon {
  height: 1em;
  width: auto;
  object-fit: contain;
  flex: none;
  display: inline-block;
  vertical-align: -0.12em;
  margin-inline-end: 0.25em;
}

.ww-duo-flame-hero-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ww-duo-flame-hero-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(255, 106, 61, 0.7));
  animation: flamePulse 2.4s ease-in-out infinite;
}

.stat-capsule .stat-num {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  transform: translateY(1px);
}

.ww-hero-streak-num {
  font-size: 60px!important;
  font-weight: 900!important;
  color: #ff9600!important;
  line-height: 0.92!important;
  letter-spacing: -1.5px!important;
  text-shadow: 0 4px 22px rgba(255, 120, 0, 0.65)!important;
}

@media(max-width: 560px) {
  .ww-hero-streak-num {
    font-size: 48px!important;
  }
  .ww-duo-streak-count {
    font-size: 58px!important;
  }
}

/* ===================== NAHLA EMOTIONAL STATE WIDGETS ===================== */
/* 5 Duolingo-style notification banners shown on the dashboard hero area    */

.ww-nahla-state-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  width: 100%;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: default;
  animation: bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes bannerSlideIn {
  from { opacity:0; transform:translateY(-10px) scale(0.97); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}

/* streak number pill shared across all states */
.ww-state-streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 99px;
  padding: 4px 10px 4px 8px;
  flex-shrink: 0;
}
.ww-state-streak-pill img { width: 22px; height: 22px; object-fit: contain; }
.ww-state-streak-num {
  font-family: var(--f-game) !important;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  transform: translateY(1.5px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* warning badge (!) */
.ww-state-warn-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: #ff4b4b; color: #fff;
  font-size: 11px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(255,75,75,0.5);
}

.ww-state-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ww-state-headline {
  font-family: var(--f-game) !important;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ww-state-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  color: #fff;
}

.ww-state-emoji { font-size: 42px; line-height: 1; flex-shrink: 0; }

/* ── STATE 1: Last Chance (angry red) ── */
.ww-nahla-state--danger {
  background: linear-gradient(135deg, #7b1a1a 0%, #c0392b 100%);
  border: 1.5px solid rgba(255, 75, 75, 0.5);
  box-shadow: 0 6px 24px rgba(192,57,43,0.4);
  animation: dangerPulse 2s ease-in-out infinite, bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes dangerPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(192,57,43,0.35); }
  50%      { box-shadow: 0 8px 32px rgba(255,75,75,0.65); }
}

/* ── STATE 2: Getting Late (sad purple) ── */
.ww-nahla-state--late {
  background: linear-gradient(135deg, #3b2270 0%, #6c3fa0 100%);
  border: 1.5px solid rgba(150,100,220,0.45);
  box-shadow: 0 6px 24px rgba(108,63,160,0.4);
}

/* ── STATE 3: Frozen (ice cyan) ── */
.ww-nahla-state--frozen {
  background: linear-gradient(135deg, #0a2d40 0%, #0e5f7a 100%);
  border: 1.5px solid rgba(56,189,248,0.5);
  box-shadow: 0 6px 24px rgba(56,189,248,0.3);
}

/* ── STATE 4: Ghost / ignored ── */
.ww-nahla-state--ghost {
  background: linear-gradient(135deg, #1a1f2b 0%, #2d3349 100%);
  border: 1.5px solid rgba(150,160,190,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  opacity: 0.9;
}

/* ── STATE 5: Pleading / miss you (warm orange) ── */
.ww-nahla-state--miss {
  background: linear-gradient(135deg, #a04a00 0%, #e07020 100%);
  border: 1.5px solid rgba(255,160,60,0.45);
  box-shadow: 0 6px 24px rgba(224,112,32,0.4);
}

/* RTL tweaks */
html[dir="rtl"] .ww-nahla-state-banner { flex-direction: row-reverse; }
html[dir="rtl"] .ww-state-text { text-align: right; }


.ww-state-nahla-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}


/* ── STATE 0: Repair banner (rich violet/magenta) ── */
.ww-nahla-state--repair {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #9333ea 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.65);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.45);
  animation: repairGlow 2.5s ease-in-out infinite, bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes repairGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(147, 51, 234, 0.4); }
  50%      { box-shadow: 0 8px 32px rgba(192, 132, 252, 0.75); }
}

.ww-state-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Freeze Equip Sound & Animation ── */
.ww-freeze-equip-pulse {
  animation: freezeEquipPulse 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}
@keyframes freezeEquipPulse {
  0%   { transform: scale(1); filter: brightness(1); }
  35%  { transform: scale(1.22); filter: brightness(1.7) drop-shadow(0 0 16px #38bdf8); }
  65%  { transform: scale(0.95); filter: brightness(1.2) drop-shadow(0 0 8px #0ea5e9); }
  100% { transform: scale(1); filter: brightness(1); }
}
.ww-frost-ripple {
  position: absolute;
  inset: -10px;
  border: 2px solid #38bdf8;
  border-radius: 999px;
  pointer-events: none;
  animation: frostRippleExpand 0.9s ease-out forwards;
}
@keyframes frostRippleExpand {
  0%   { opacity: 0.95; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.65); }
}

/* ── Modal: Streak Repair Box ── */
.ww-duo-repair-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(147,51,234,0.18), rgba(192,132,252,0.1));
  border: 1.5px solid rgba(192,132,252,0.45);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  margin-top: 10px;
}
.ww-duo-repair-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ww-duo-repair-info b {
  font-size: 13px;
  color: #f3e8ff;
  line-height: 1.3;
}
.ww-duo-repair-info span {
  font-size: 11px;
  color: #d8b4fe;
}
.ww-duo-repair-btn {
  background: #a855f7 !important;
  border-color: #9333ea !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(168,85,247,0.4) !important;
  flex-shrink: 0;
}

/* ── Modal: Weekend Amulet Box ── */
.ww-duo-amulet-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 10px;
  width: 100%;
}
.ww-duo-amulet-icon {
  font-size: 26px;
  line-height: 1;
}
.ww-duo-amulet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ww-duo-amulet-info b {
  font-size: 13px;
  color: #f1f5f9;
}
.ww-duo-amulet-info span {
  font-size: 11px;
  color: #94a3b8;
}
.ww-duo-cal-circle.is-amulet {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

/* Custom Sleek Scrollbar */
#toast,.nahla-bubble{pointer-events:none}
.ww-gateway{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:32px;align-items:stretch}
.ww-gateway-story{padding:24px 0;min-width:0}
.ww-gateway-brand{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:22px;font-weight:800;color:var(--accent)}
.ww-gateway-brand .note{font-size:13px;color:var(--muted);font-weight:500}
.ww-gateway-hero{display:flex;align-items:center;gap:12px;margin:32px 0}
.ww-gateway-hero h1{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:12px 0;letter-spacing:-.025em}
.ww-gateway-hero p{color:var(--muted);line-height:1.7;margin:0}
.ww-gateway-bee{flex:0 0 132px}
.ww-gateway-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ww-gateway-features > :last-child:nth-child(odd){grid-column:1 / -1}
.ww-gateway-feature{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;transition:background .2s,border-color .2s}
.ww-gateway-feature:hover{border-color:var(--accent)}
.ww-gateway-feature summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}
.ww-gateway-feature summary>span:first-child{font-size:24px}
.ww-gateway-feature summary>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0;font-size:13px}
.ww-gateway-feature b{font-size:24px;font-variant-numeric:tabular-nums;line-height:1.2;text-align:start}
.ww-gateway-feature p,.ww-gateway-offline{font-size:13px;line-height:1.7;color:var(--muted)}
.ww-gateway-offline{margin-top:24px}
.ww-gateway-access{gap:16px!important;border-radius:22px;padding:28px!important;box-shadow:none!important;min-width:0}
.ww-gateway-access h2{font-size:26px;margin:8px 0 0}
.ww-gateway-access .note{margin:0;font-size:13px;line-height:1.6}
.ww-gateway-access .row{gap:8px;flex-wrap:wrap}
.ww-gateway-meanings summary{cursor:pointer;color:var(--muted);font-size:13px}
.ww-gateway-meanings .row{margin-top:12px}
.ww-password{position:relative;display:flex}
.ww-password input{width:100%;min-width:0;padding-inline-end:48px}
.ww-password button{position:absolute;inset-inline-end:2px;top:2px;bottom:2px;width:44px;background:transparent;border:0;color:var(--text);cursor:pointer}
.ww-gateway-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ww-gateway .btn{min-height:44px;justify-content:center;box-shadow:none;transition:transform .2s,background .2s}
.ww-gateway .btn:active{transform:scale(.97)}
.btn,.chip,.opt,.tab{transition:scale .18s ease,transform .18s ease}
:is(.btn,.chip,.opt,.tab):active:not(:disabled){scale:.96}
@media(prefers-reduced-motion:reduce){:is(.btn,.chip,.opt,.tab):active:not(:disabled){scale:1!important;transform:none!important}}
.ww-gateway-feature summary>img{object-fit:contain;flex:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.ww-gateway :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ww-gateway-guest{border-top:1px solid var(--line);padding-top:18px;display:grid;gap:10px;text-align:center}
.ww-gateway-shell>.duo-footer-bar{display:none}
@media(min-width:761px){
  .ww-gateway-shell{min-height:calc(100vh - 80px);display:flex;flex-direction:column;justify-content:center}
  .ww-gateway-access{display:flex;flex-direction:column;justify-content:center}
}
@media(max-width:760px){.ww-gateway{grid-template-columns:minmax(0,1fr);gap:16px}.ww-gateway-story{padding:8px 0}.ww-gateway-hero{margin:20px 0}.ww-gateway-bee{flex-basis:84px}.ww-gateway-bee svg{width:84px;height:84px}.ww-gateway-access{padding:20px!important}.ww-gateway-feature{padding:12px}.ww-gateway-feature summary{gap:8px}}
@media(prefers-reduced-motion:reduce){.ww-gateway *{animation:none!important;transition:none!important}}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 0, 0.25) transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 200, 0, 0.45);
}

/* Guest CTA Pill in Header */
#hdrAccount.guest-pill {
  border-color: rgba(255, 200, 0, 0.35);
  background: rgba(255, 200, 0, 0.08);
  color: #ffc800;
  transition: all 0.15s ease;
}
#hdrAccount.guest-pill:hover {
  background: rgba(255, 200, 0, 0.18);
  border-color: #ffc800;
  transform: translateY(-1px);
}


/* User 3D Brand & Video Animations */
.brand-logo-img{width:36px;height:36px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 6px rgba(255,200,0,0.35))}
.ww-gateway-logo-img{width:132px;height:132px;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(255,200,0,0.45));animation:floatBee 3.5s ease-in-out infinite}
@keyframes floatBee{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
/* User 3D Video & Brand Assets */
.ww-duo-flame-hero-wrap{display:flex;justify-content:center;align-items:center;margin-bottom:8px}
.nav-3d-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;flex-shrink:0}


/* ==================== 4-SPOT EQUAL SIZING & BRAND ICONS ==================== */
/* Fix 1: Sidebar Day Streak Box */
.ww-hero-streak {
  font-size: 60px;
}
@media(max-width: 560px) {
  .ww-hero-streak {
    font-size: 48px;
  }
}
.ww-flame-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 1em;
  font-size: inherit;
  flex: none;
}
.ww-flame-hero {
  height: 0.73em; /* Match the font's painted digit height. */
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(255, 106, 61, 0.65));
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: flameBreathe 3s ease-in-out infinite;
}
.ww-hero-streak-num {
  font-size: 1em !important;
  font-weight: 900 !important;
  color: #ff9600 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px !important;
  text-shadow: 0 4px 22px rgba(255, 120, 0, 0.65) !important;
}

/* Fix 2: Sidebar Daily Goal XP Box */
.ww-hero-goal {
  font-size: 26px;
}
.ww-goal-ring-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  flex: none;
}
.ww-goal-gem-icon {
  position: absolute;
  height: 0.73em; /* equal to digit 0 cap-height */
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 200, 0, 0.45));
  pointer-events: none;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ww-hero-goal-num {
  font-size: 1em !important;
  font-weight: 900 !important;
  color: var(--accent, #ffc800);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* Fix 3: Celebration Streak Page */
.ww-duo-streak-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  line-height: 1;
  font-size: 68px;
  direction: ltr !important; /* flame sits to the right of number in English/German and Arabic */
}
.ww-duo-streak-icon {
  height: 0.72em; /* equal to big 7 cap-height */
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
}
.ww-duo-streak-count {
  font-size: 1em;
  font-weight: 900;
  line-height: 1;
  color: #ff9600;
  text-shadow: 0 4px 24px rgba(255, 120, 0, 0.6);
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
}
@media(max-width: 560px) {
  .ww-duo-streak-row {
    font-size: 58px;
  }
}

/* Fix 4: Settings Button */
.btn-settings-gear-icon {
  height: 0.75em; /* equal to Settings label cap-height */
  width: auto;
  object-fit: contain;
  flex: none;
  display: block;
}

/* The flame shares the numeral's row rather than centering against its caption. */
.ww-hero-streak .ww-hero-stat-main{direction:ltr;gap:10px;justify-content:center}
.ww-hero-streak .ww-hero-stat-info{align-items:center}
.ww-hero-streak .ww-flame-wrapper{width:auto;height:1em;margin:0}
.ww-hero-streak .ww-flame-hero{height:.73em;width:auto;max-width:none}
.ww-hero-streak .ww-hero-stat-label{text-align:center}
@media(max-width:560px){.ww-hero-streak .ww-hero-stat-main{gap:6px}}


/* ===================== ACCOUNT UX STYLING ===================== */
.ww-account-nav {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.ww-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  max-width: 130px;
  transition: all 0.15s ease;
  user-select: none;
}
.ww-user-badge:hover, .ww-user-badge:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}
.ww-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #a780ee);
  color: #16111e;
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  line-height: 1;
}
.ww-user-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-signin-btn {
  padding: 3px 9px !important;
  font-size: 11.5px !important;
  font-weight: 700;
  background: rgba(167, 128, 238, 0.16);
  color: var(--accent, #c5a3ff) !important;
  border: 1px solid rgba(167, 128, 238, 0.38);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.ww-signin-btn:hover {
  background: rgba(167, 128, 238, 0.3);
}
.ww-google-btn-box {
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
.ww-google-btn-box > div {
  display: flex;
  justify-content: center;
}
.ww-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, box-shadow 0.15s;
}
.ww-google-btn span {
  color: inherit !important;
  font-weight: 600 !important;
}
.ww-google-btn:hover {
  background: #f8f9fa !important;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}
.ww-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media(max-width:560px) {
  .ww-user-badge {
    padding: 2px 5px;
    max-width: 80px;
    gap: 4px;
  }
  .ww-user-avatar {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .ww-user-name {
    font-size: 11px;
    max-width: 50px;
  }
  .ww-signin-btn {
    padding: 2px 6px !important;
    font-size: 11px !important;
  }
}
