:root {
  --shell-sky: radial-gradient(ellipse at 15% 8%, #49357a, transparent 48%), linear-gradient(145deg,#20224b,#11162d 72%);
  --shell-panel: linear-gradient(160deg,#303053a6,#0f1325);
  --shell-edge: 1px solid #c4b5fd42;
  --shell-action: linear-gradient(110deg,#7852be,#52469d);
}
#boot-screen, #login-modal { background:var(--shell-sky); }
#boot-screen {
  position:fixed; inset:0; z-index:20000; display:grid; align-content:center;
  justify-items:center; gap:20px; color:#f4edff;
}
#boot-screen img { border-radius:24px; box-shadow:0 14px 48px #080b2c80; }
.boot-track { width:144px; height:4px; overflow:hidden; background:#ffffff24; border-radius:8px; }
.boot-track::after { content:""; display:block; height:100%; width:45%; border-radius:inherit;
  background:#c4abff; animation:boot-travel 1.1s ease-in-out infinite alternate; }
@keyframes boot-travel { to { transform:translateX(-122%); } }
#content-area { padding-top:0; padding-bottom:calc(92px + env(safe-area-inset-bottom)); }
#home-container .home-shell { width:100%; padding:0 0 calc(110px + env(safe-area-inset-bottom)); }
#home-container .home-shell > :not(.home-intro) { width:min(calc(100% - 28px),1152px); margin-inline:auto; }
#content-area .home-intro { display:grid; justify-content:stretch; gap:18px; padding:14px max(14px,calc((100% - 1152px)/2)) 0; background:none; border:0; box-shadow:none; overflow:visible; z-index:2; }
#content-area .home-intro::after { content:none; }
#content-area .home-intro::before { content:""; position:absolute; inset:0 0 22%; z-index:-1; border-radius:0 0 50% 50% / 0 0 16% 16%; background:radial-gradient(ellipse at 15% 0%,#9a7ad3,transparent 58%),linear-gradient(115deg,#7150ac,#514397 60%,#354678); }
#content-area .home-intro .goal-spotlight { min-width:0; border:var(--shell-edge); border-radius:24px; background:var(--shell-panel); box-shadow:0 12px 30px #090b263d; }
#content-area .middle-layout-wrapper { display:flex; flex-direction:column; }
#content-area .stats-column { order:0; }
#content-area .modules-column { height:auto; min-height:0; padding:14px; }
#content-area #shortcuts-container { display:flex; flex-flow:row nowrap; overflow-x:auto; gap:8px; padding:4px; scroll-snap-type:x proximity; }
#shortcuts-container .shortcut-card { flex:0 0 90px; flex-direction:column; justify-content:flex-start; gap:6px; padding:6px; min-height:0; background:transparent; border:0; text-align:center; scroll-snap-align:start; }
#shortcuts-container .shortcut-icon { width:38px; height:38px; border-radius:12px; }
#shortcuts-container .shortcut-title { font-size:.75rem; line-height:1.45; }
#home-account { position:relative; z-index:1; }
#home-account { flex:1 0 100%; }
#home-account .header-content { width:100%; max-width:none; padding:0 0 12px; border-bottom:1px solid #ffffff30; }
#home-account .dropdown-menu { z-index:5; color:#f5f1ff; background:#252743; }
#bottom-nav {
  width:min(calc(100% - 24px),520px); margin:auto; bottom:calc(8px + env(safe-area-inset-bottom));
  padding:5px; gap:4px; border:var(--shell-edge); border-radius:22px;
  background:#20213bf5; box-shadow:0 8px 28px #090c2299;
}
#bottom-nav .nav-btn { flex:1 1 0; min-width:0;border-radius:16px; color:#c8c6db; }
#bottom-nav .nav-btn.active { background:#494066; color:white; }
#bottom-nav .nav-btn.active::before { display:none; }
#fab-cash-submit { bottom:calc(80px + env(safe-area-inset-bottom)); }
#login-modal .login-box, #custom-dialog-modal .dialog-box, #cash-submit-modal > .modal-content {
  background:var(--shell-panel); border:var(--shell-edge); color:#f6f2ff;
  border-radius:26px; box-shadow:0 20px 65px #070a2373;
}
#login-modal .login-box { width:min(420px,92vw); padding:clamp(22px,5vw,38px); }
#login-modal .login-icon { background:var(--shell-action); color:white; }
#login-modal .login-head p, #dialog-message { color:#d6d2e6; }
#login-modal .btn, #dialog-confirm-btn { background:var(--shell-action); color:white; border-radius:14px; }
#retry-users[hidden] { display:none; }
#custom-dialog-modal { background:#0d1025ae; backdrop-filter:blur(7px); }
#custom-dialog-modal .dialog-icon { background:#443a66; color:#e5d4ff; }
#bottom-nav :focus-visible, #login-modal :focus-visible, #custom-dialog-modal :focus-visible { outline:3px solid #d5bcff; outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .boot-track::after { animation:none; width:100%; } }
#discount-carousel-viewport .discount-card { display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:start; }
#discount-carousel-viewport .discount-top-row { display:grid; justify-items:start; min-width:0; }
.offer-picture { position:relative; flex:0 0 84px; height:90px; display:grid; place-items:center; border-radius:16px; background:#f6f3fc; color:#665d78; font-size:.72rem; overflow:hidden; }
.offer-picture img { position:absolute; inset:0; width:100%; height:100%; padding:5px; object-fit:contain; }
#discount-modal { background:#0c1026bf; backdrop-filter:blur(8px); }
#discount-modal .custom-modal-content { border:var(--shell-edge); border-radius:26px; background:var(--shell-panel); box-shadow:0 24px 70px #08091d99; }
#discount-modal .discount-mobile-header { padding:18px; border-radius:18px; background:radial-gradient(circle at 10% 0%,#795991,transparent 58%),linear-gradient(115deg,#4e4077,#35365b); }
#discount-modal .price-summary-value.final { color:#9df3d6; }
.offer-copy { display:inline-flex; align-items:center; gap:10px; padding:6px 10px; border:1px solid #bc9dff55; border-radius:10px; background:#453963; color:#f4edff; font:inherit; }
.offer-copy bdi { direction:ltr; user-select:all; -webkit-user-select:all; }
.offer-copy span { font-size:.75rem; color:#dccbff; }
#discount-carousel-viewport .discount-badge { border:2px solid #fff2cd; padding:6px 14px; border-radius:999px; font-size:.92rem; line-height:1.4; }
#shortcuts-container .shortcut-card { flex-basis:102px; gap:9px; padding:12px 7px; border:1px solid #bba4ff55; border-radius:18px; background:linear-gradient(150deg,#383453,#22263e); }
#shortcuts-container .shortcut-card:hover { border-color:#cbb6ff; }
#spotlight-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
#spotlight-metrics .sales-report-item { grid-row:1; grid-column:auto; min-width:0; text-align:start; }
#spotlight-target .sales-report-item { min-width:9em; padding:12px 18px; margin-bottom: 10px; border-radius:18px; background:radial-gradient(ellipse at top left,#8463ad,transparent 65%),linear-gradient(120deg,#584782,#393763); border:1px solid #debeff88; box-shadow:0 8px 22px #100c2940; }
#spotlight-target .sales-report-label { color:#f0deff; }
#spotlight-target .sales-report-value { color:white; font-size:clamp(1.15rem,3vw,1.65rem); font-weight:900; }
@media(max-width:520px) { .goal-spotlight .spotlight-top { flex-wrap:wrap; } #spotlight-target { flex:1 0 100%; } #spotlight-target .sales-report-item { display:flex; flex-flow:row wrap; align-items:center; justify-content:space-between; } #spotlight-metrics { gap:6px; } #spotlight-metrics .sales-report-item { padding:10px; overflow-wrap:anywhere; } }
#home-account #header-datetime { color:white; }
#home-account .dropdown-menu { width:min(290px,calc(100vw - 36px)); padding:8px; border:var(--shell-edge); border-radius:22px; background:linear-gradient(155deg,#383052,#191f39); box-shadow:0 18px 44px #08091d80; }
#home-account .dropdown-header { background:radial-gradient(ellipse at top,#53426d,transparent 80%); border-radius:16px; }
#home-account .dropdown-info-box { border-radius:12px; background:#181a3180; }
#home-account .dropdown-btn { border-radius:12px; }
.target-achievement { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; padding:6px 12px; border-radius:14px; border:1px solid #bba4ff66; color:#f3edff; background:linear-gradient(115deg,#3e355d,#292c49); font-weight:700; }
.target-achievement span { color:#bff4df; }
.target-achievement[data-tone="down"] span { color:#ffd3ad; }
@media(max-width:600px) {
  #spotlight-target .target-achievement { flex-basis:100%; justify-content:space-between; }
  .goal-route .milestone-track { width:max-content; padding-inline:max(0px,calc(50% - 43px)); }
  .goal-route .milestone { scroll-snap-align:center; }
  #spotlight-metrics .sales-average-item { padding-top:32px; }
}
#home-container #new-notification-shortcut { position:fixed; left:14px; bottom:calc(82px + env(safe-area-inset-bottom)); z-index:999; width:auto; display:inline-flex; align-items:center; gap:8px; padding:10px 14px; color:white; background:#43365f; border:var(--shell-edge); border-radius:22px; box-shadow:0 8px 22px #0b0c2166; }
#new-notification-shortcut::before { content:""; width:9px; height:9px; border-radius:50%; background:#ff586e; box-shadow:0 0 0 3px #ff586e24; }
#shortcut-dock { position:absolute; inset:auto auto 100% 0; width:min(89%,410px); display:grid; grid-template-rows:0fr; transition:grid-template-rows .3s ease; }
#shortcut-dock[hidden] { display:none; }
#shortcut-dock.open { grid-template-rows:1fr; }
#shortcut-handle { position:absolute; bottom:100%; left:14px; width:48px; height:30px; display:grid; place-items:center; border:var(--shell-edge); border-bottom:0; border-radius:16px 16px 0 0; background:#302b49; color:#e6d7ff; cursor:pointer; }
#shortcut-handle svg { width:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; animation:shortcut-nudge 1.8s ease-in-out infinite; }
#shortcut-dock.open svg:not(.shortcut-icon svg) { animation:none; }
#shortcut-dock.open #shortcut-handle svg { transform:rotate(180deg); }
@keyframes shortcut-nudge { 50% { transform:translateY(-3px); } }
#shortcut-tray { min-height:0; overflow:hidden; }
#shortcut-tray .modules-column { min-height:0; height:auto; padding:10px; border:var(--shell-edge); border-radius:19px 19px 8px 8px; background:linear-gradient(155deg,#302b49,#20213b); }
#shortcut-tray .section-title { margin:0 6px 5px; font-size:.8rem; }
#shortcut-tray #shortcuts-container { display:flex; flex-flow:row nowrap; gap:6px; overflow-x:auto; padding:3px; overscroll-behavior-x:contain; }
#shortcut-tray .shortcut-card { flex-basis:82px; padding:6px; gap:4px; }
#fab-cash-submit { transition:opacity .24s ease, transform .28s ease; }
#fab-cash-submit.tray-open { opacity:0; transform:translateY(10px) scale(.92); pointer-events:none; }
#month-progress-content { margin-top:14px; padding-top:12px; border-top:1px solid #cab5ff30; font-size:.75rem; color:#d9d4ef; }
.month-summary { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
.month-summary small { margin-inline-start:auto; color:#cbbbec; }
#month-progress-content progress { display:block; width:100%; height:4px; margin-top:8px; border:0; border-radius:4px; overflow:hidden; background:#ffffff20; accent-color:#b79bf2; }
#month-progress-content progress::-webkit-progress-bar { background:#ffffff20; }
#month-progress-content progress::-webkit-progress-value { background:#b79bf2; border-radius:4px; }
@media(prefers-reduced-motion:reduce) { #fab-cash-submit { transition:none; } }
@media(prefers-reduced-motion:reduce) { #shortcut-dock { transition:none; } #shortcut-handle svg { animation:none; } }
