@keyframes notificationSlideDown{from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); }}@keyframes progressFill{from { transform: scaleX(0); } to { transform: scaleX(1); }}@keyframes checkPop{0% { opacity: 0; transform: translateY(6px) scale(.96); } 60% { transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); }}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px;width:100%}.topbar>h1{flex:1;min-width:0}.topbar__title{min-width:0;flex:1}.topbar h1,.topbar__title h1{margin:0;font-size:clamp(1.5rem,2.5vw,1.9rem);font-weight:700;line-height:1.2}.topbar__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px;width:100%}.stat-card{min-width:0;padding:22px 20px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease}.stat-card:hover{border-color:rgba(94,224,207,.22);box-shadow:var(--shadow-md);transform:translateY(-2px)}.stat-card .value{color:var(--accent-mint);font-family:var(--font-display);font-size:clamp(1.6rem,2.2vw,1.9rem);font-weight:700;line-height:1.1}.stat-card .label{margin-top:6px;color:var(--text-muted);font-size:.82rem;font-weight:600}.section-card{padding:22px;margin-bottom:24px;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);width:100%}.section-card>h2,.section-card>h3{font-size:1.08rem;font-weight:700;margin-bottom:14px}.progress-section{margin:28px 0;padding:24px;border:1px solid var(--border);border-radius:20px;background:var(--bg-surface);box-shadow:var(--shadow-sm);width:100%;min-height:140px;contain:layout}.progress-section__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}.progress-section__heading h2{margin:0 0 4px;font-size:1.25rem}.progress-section__heading p{margin:0;font-size:.86rem;color:var(--text-muted)}.progress-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:320px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg-elevated)}.progress-overview__item{padding:10px 12px;text-align:center}.progress-overview__item+.progress-overview__item{border-left:1px solid var(--border)}.progress-overview__value{display:block;color:var(--text);font-family:var(--font-display);font-size:1.05rem;font-weight:700}.progress-overview__label{display:block;margin-top:2px;color:var(--text-muted);font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.topic-progress{position:relative;display:block;min-width:0;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-elevated);color:var(--text);text-align:left;cursor:pointer;transition:transform 170ms ease,border-color 170ms ease,background-color 170ms ease}.topic-progress:hover{border-color:color-mix(in srgb,var(--topic-color)35%,var(--border));background:var(--bg-surface);transform:translateY(-1px)}.topic-progress:active{transform:translateY(0)}.topic-progress__top{display:flex;align-items:center;gap:12px}.topic-progress__ring{display:grid;width:38px;height:38px;place-items:center;flex:0 0 auto;border-radius:50%;background:conic-gradient(var(--topic-color)calc(var(--progress)* 1%),rgba(154,172,197,.14)0)}.topic-progress__ring::after{width:28px;height:28px;border-radius:50%;background:var(--bg-surface);content:''}.topic-progress__name{min-width:0;flex:1;font-size:.92rem;font-weight:700}.topic-progress__percent{color:var(--topic-color);font-size:.86rem;font-weight:800}.topic-progress__bar{position:relative;height:6px;margin:14px 0 8px;overflow:hidden;border-radius:99px;background:rgba(154,172,197,.14)}.topic-progress__fill{position:absolute;inset:0;width:100%;border-radius:inherit;background:var(--topic-color);transform:scaleX(var(--progress-decimal));transform-origin:left}.progress-section.is-animated .topic-progress__fill{animation:progressFill 700ms cubic-bezier(.2,.8,.2,1)both}.topic-progress__meta{color:var(--text-muted);font-size:.74rem}.topic-progress__empty{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border);color:var(--accent-mint);font-size:.78rem;font-weight:700}.topic-progress__empty span{transition:transform 150ms ease}.topic-progress:hover .topic-progress__empty span{transform:translateX(3px)}.progress-empty,.progress-login{padding:18px;border:1px dashed var(--border);border-radius:12px;color:var(--text-muted);font-size:.88rem;text-align:center;background:var(--bg-elevated)}.progress-login a{color:var(--accent-mint);font-weight:700}.streak-guard{display:flex;align-items:center;gap:12px;margin-top:16px;padding:14px 16px;border:1px solid rgba(94,224,207,.18);border-radius:12px;background:rgba(94,224,207,.06)}.streak-guard__icon{display:grid;place-items:center;color:var(--accent-mint)}.streak-guard__icon svg{display:block;width:22px;height:22px}.streak-guard__content{flex:1;min-width:0}.streak-guard strong,.streak-guard small{display:block}.streak-guard strong{font-size:.84rem}.streak-guard small{margin-top:2px;color:var(--text-muted);font-size:.74rem}.streak-guard__count{color:var(--accent-mint);font:700 .86rem var(--font-mono);white-space:nowrap}#leaderboard-list,#recent-activity{padding:0;margin:0;list-style:none}#leaderboard-list{min-height:320px}#recent-activity li,.leaderboard-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:.92rem}.leaderboard-row:last-child,#recent-activity li:last-child{border-bottom:0}.leaderboard-row .rank{width:44px;color:var(--accent-mint);font-family:var(--font-mono);font-weight:700}.leaderboard-row .name{flex:1;min-width:0;font-weight:600}.leaderboard-row .xp,.compare-table td{color:var(--text-muted)}.status{margin-left:auto;font-size:.78rem;text-transform:capitalize;font-weight:600}.status--solved,.plan-card ul li::before{color:var(--accent-green)}.status--attempted{color:var(--accent-amber)}.type-tabs{display:flex;gap:6px;margin-bottom:20px;padding:4px;border:1px solid var(--border);border-radius:12px;background:var(--bg-surface);width:max-content;max-width:100%;box-shadow:var(--shadow-sm)}.type-tab{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer;font-size:.88rem;font-weight:700;transition:background-color 150ms ease,color 150ms ease,border-color 150ms ease;white-space:nowrap}.type-tab svg{display:block;flex:0 0 auto}.type-tab:hover{color:var(--text);background:var(--bg-elevated)}.type-tab.active{background:rgba(94,224,207,.12);color:var(--accent-mint);border-color:rgba(94,224,207,.18)}.filters-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px;width:100%}.filters-bar input,.filters-bar select{min-height:44px;background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:0 14px;color:var(--text);font-size:.90rem;transition:border-color 150ms ease,box-shadow 150ms ease}.filters-bar input{min-width:220px;flex:1}.filters-bar input:focus,.filters-bar select:focus{border-color:var(--accent-mint);box-shadow:var(--ring);outline:0}.problems-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;width:100%}.problem-card{display:grid;grid-template-columns:auto 1fr auto auto;position:relative;column-gap:8px;align-items:center;padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);box-shadow:var(--shadow-sm);transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease;content-visibility:auto;contain-intrinsic-size:auto 170px}.problem-card:hover{border-color:rgba(94,224,207,.28);box-shadow:var(--shadow-md);transform:translateY(-2px)}.problem-card__number{grid-area:1/1;margin:0 0 12px;color:var(--text-muted);font-size:.76rem;font-weight:800}.problem-card__number:empty{min-width:3.2ch}.problem-card>.tag--bug,.problem-card>.tag--question{grid-area:1/3;margin-bottom:12px;justify-self:end}.problem-card>.tag--free,.problem-card>.tag--premium,.problem-card>.tag--solved{grid-area:1/4;margin-bottom:12px;justify-self:end}.problem-card h3{grid-area:2/1/3/5;margin-bottom:10px;font-size:1rem;font-weight:700;line-height:1.35;color:var(--text)}.problem-card>.diff{grid-area:3/1}.problem-card>.topic{grid-area:3/2;margin-left:6px}.topic{color:var(--text-muted);font-size:.78rem;font-weight:500}.solved-check{display:block;margin-top:10px;color:var(--accent-green);font-size:.82rem;font-weight:600}.problem-card--locked{opacity:.66}.lock-overlay{position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:rgba(7,12,20,.62);color:var(--accent-amber);font-size:.86rem;font-weight:700}.empty-row{grid-column:1/-1;padding:28px;color:var(--text-muted);text-align:center;background:var(--bg-surface);border:1px dashed var(--border);border-radius:12px}.problems-grid__sentinel{grid-column:1/-1;height:1px}.problems-grid .ad-slot--grid{grid-column:1/-1;display:flex;justify-content:center;padding:10px 0}.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;width:100%;max-width:860px}.plan-card{position:relative;padding:28px 24px;border-radius:20px;text-align:center;background:var(--bg-surface)}.plan-card h2{margin:0 0 6px;font-size:1.2rem}.plan-card.featured{border-color:rgba(241,198,106,.38);box-shadow:var(--shadow-md)}.discount-badge{position:absolute;top:-10px;right:18px;padding:4px 12px;border-radius:999px;background:var(--accent-red);color:#fff;font-size:.70rem;font-weight:800}.discount-badge--featured{background:var(--accent-amber);color:#2a1e04}.plan-card .price{margin:12px 0 6px;color:var(--accent-mint);font:700 2.1rem var(--font-display)}.price-old{margin-right:8px;color:var(--text-muted);font-size:1rem;text-decoration:line-through}.price-save{margin:-2px 0 10px;color:var(--accent-green);font-size:.84rem;font-weight:700}.plan-card ul{padding:0;margin:20px 0;color:var(--text-muted);list-style:none;text-align:left}.plan-card ul li{padding:7px 0;font-size:.90rem}.plan-card ul li::before{content:'✓ ';color:var(--accent-green);font-weight:700}.compare-table{width:100%;border-collapse:collapse;margin-top:12px;font-size:.88rem}.compare-table tr{border-bottom:1px solid var(--border)}.compare-table td{padding:12px 8px}.compare-table td:first-child{color:var(--text);font-weight:600}.compare-table td:nth-child(2),.compare-table td:nth-child(3){width:100px;text-align:center}.profile-header-card{display:flex;align-items:center;gap:20px;max-width:560px;padding:24px;border-radius:20px;background:var(--bg-surface)}.profile-header-card__avatar{display:grid;width:96px;height:96px;overflow:hidden;place-items:center;flex:0 0 auto;border-radius:50%;background:linear-gradient(145deg,var(--accent-mint),var(--accent-mint-dim));color:#04201e;box-shadow:0 6px 16px rgba(35,136,128,.20);font:700 1.6rem var(--font-display)}.profile-header-card__avatar .pd-avatar{width:100%;height:100%}.reminder-card{display:flex;align-items:center;gap:18px;flex-wrap:wrap;width:100%}.reminder-card h3{margin-bottom:4px;font-size:1rem}.reminder-card p{margin:0;font-size:.82rem}.reminder-card__status{width:100%;color:var(--accent-mint)!important;font-size:.82rem}.reminder-switch{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;color:var(--text);cursor:pointer;font-size:.84rem;font-weight:700}.reminder-switch input{position:absolute;opacity:0}.reminder-switch__track{display:flex;align-items:center;width:40px;height:24px;padding:3px;border-radius:99px;background:var(--border);transition:background-color 160ms ease}.reminder-switch__track span{display:block;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.2);transform:translateX(0);transition:transform 160ms ease}.reminder-switch input:checked+.reminder-switch__track{background:var(--accent-mint)}.reminder-switch input:checked+.reminder-switch__track span{transform:translateX(16px)}.reminder-switch input:focus-visible+.reminder-switch__track{box-shadow:var(--ring)}.notification-fab{position:fixed;z-index:40;top:20px;right:20px;display:grid;width:44px;height:44px;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--bg-surface);color:var(--text);box-shadow:var(--shadow-md);transition:transform 150ms ease,border-color 150ms ease,color 150ms ease}.notification-fab:hover{transform:translateY(-1px);border-color:rgba(94,224,207,.28);color:var(--accent-mint)}.notification-badge{position:absolute;top:-4px;right:-4px;display:none;min-width:18px;padding:2px 6px;border:2px solid var(--bg-surface);border-radius:999px;background:var(--accent-red);color:white;font-size:.66rem;font-weight:800;line-height:1.2;text-align:center}.install-banner{display:none;position:fixed;z-index:60;left:50%;bottom:16px;transform:translateX(-50%);width:min(calc(100% - 32px),520px);align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(94,224,207,.22);border-radius:14px;background:var(--bg-surface);box-shadow:var(--shadow-lg)}.install-banner__icon{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:10px;background:rgba(94,224,207,.10);color:var(--accent-mint)}.install-banner__icon svg{display:block}.install-banner__text{display:flex;min-width:0;flex:1;flex-direction:column}.install-banner__text strong{color:var(--text);font-size:.92rem}.install-banner__text span{color:var(--text-muted);font-size:.78rem;line-height:1.4}.install-banner__btn{padding:10px 16px;border:0;border-radius:10px;background:var(--accent-mint);color:#04201e;cursor:pointer;font-weight:800;font-size:.86rem;transition:transform 150ms ease,opacity 150ms ease}.install-banner__btn:hover{transform:translateY(-1px)}.install-banner__close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer;font-size:1.3rem}.notifications-page{max-width:640px;padding:20px 16px calc(env(safe-area-inset-bottom,0)+ 20px);margin:auto}.notifications-page__header{display:flex;align-items:center;gap:12px;padding-bottom:20px}.notifications-page__header h1{flex:1;margin:0;font-size:1.3rem}.notifications-page__back{display:grid;width:40px;height:40px;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--bg-elevated);color:var(--text);cursor:pointer}.notifications-page__list{display:flex;flex-direction:column;gap:10px}.notification-empty{padding:24px 16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);color:var(--text-muted);text-align:center}.notification-empty svg{display:block;margin:0 auto 10px;color:var(--accent-mint)}.notification-date-header{padding:6px 4px 4px;color:var(--text-muted);font-size:.70rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.notification-item{padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);cursor:pointer;transition:transform 150ms ease,border-color 150ms ease}.notification-item:hover{border-color:rgba(94,224,207,.24);transform:translateY(-1px)}.notification-item.unread{border-left:3px solid var(--accent-mint)}.notification-item.read{opacity:.72}.notification-item__row{display:flex;align-items:flex-start;gap:12px}.notification-item__body{min-width:0;flex:1}.notification-item__title{color:var(--text);font-size:.92rem;font-weight:700}.notification-item__message{margin-top:3px;color:var(--text-muted);font-size:.82rem;line-height:1.5}.notification-item__time{margin-top:6px;color:var(--text-muted);font-size:.70rem}.notification-item__dot{width:8px;height:8px;flex:0 0 auto;margin-top:6px;border-radius:50%;background:var(--accent-red)}.notification-item__icon{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border-radius:10px;background:rgba(94,224,207,.10);color:var(--accent-mint)}.notification-item__icon svg{display:block}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;width:100%}@media (max-width: 560px){.badge-grid__summary{min-height:2.6em}}.badge-tile{display:grid;justify-items:center;row-gap:6px;padding:18px 12px;text-align:center;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);transition:border-color 150ms ease,transform 150ms ease}.badge-tile:hover{transform:translateY(-1px);border-color:rgba(94,224,207,.20)}.badge-tile__emoji{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font-size:1.4rem;background:rgba(94,224,207,.10);color:var(--accent-mint)}.badge-tile__emoji svg{display:block}.badge-tile--unlocked .badge-tile__emoji{color:var(--accent-amber);background:rgba(241,198,106,.14)}.badge-tile__title{margin:2px 0 0;font-size:.86rem;line-height:1.25;font-weight:700}.badge-tile__desc{margin:0;color:var(--text-muted);font-size:.74rem;line-height:1.4}.badge-tile__date{display:block;margin-top:2px;font-size:.70rem;color:var(--text-muted)}.badge-tile--unlocked{border-color:rgba(241,198,106,.28)}.badge-tile--locked{opacity:.58}.badge-tile--locked .badge-tile__emoji{background:var(--bg-elevated);color:var(--text-muted);filter:grayscale(1)}.badge-tile--locked .badge-tile__title{color:var(--text-muted)}.badge-grid__summary{color:var(--text-muted);font-size:.84rem;margin-bottom:12px}#weekly-chart-container{min-height:260px;width:100%}@media (max-width: 900px){.progress-section__heading{flex-direction:column}.progress-overview{width:100%;min-width:0}.stats-row{grid-template-columns:repeat(3,1fr)}}@media (max-width: 640px){.stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{padding:16px}.stat-card .value{font-size:1.5rem}.progress-section{padding:18px}.progress-overview{grid-template-columns:repeat(2,1fr)}.progress-overview__item:nth-child(3){border-left:0;border-top:1px solid var(--border)}.progress-overview__item:nth-child(4){border-top:1px solid var(--border)}.progress-grid{grid-template-columns:1fr}.type-tabs{width:100%;overflow-x:auto;scrollbar-width:none}.type-tabs::-webkit-scrollbar{display:none}.type-tab{flex:1;justify-content:center}.filters-bar{flex-direction:column}.filters-bar input,.filters-bar select{width:100%;min-width:0}.problems-grid{grid-template-columns:1fr}.profile-header-card{padding:20px;gap:14px}.profile-header-card__avatar{width:72px;height:72px;font-size:1.3rem}.install-banner{width:calc(100% - 24px);bottom:12px}.install-banner__text span{display:none}.badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-fab{top:14px;right:14px}}#weekly-chart-container{min-height:260px}.progress-section{min-height:140px;contain:layout}.install-banner{display:none;position:fixed;bottom:16px}.theme-toggle{transition:transform 160ms ease}
