* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html, body {
    height: 100%;
    overscroll-behavior: none;
}

@supports (-webkit-touch-callout: none) {
    html, body {
        min-height: -webkit-fill-available;
        min-height: 101dvh;
    }
}

body {
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
    background: var(--nav-bg);
    display: flex;
    justify-content: center;
}

/* =============================================
   Install screen (browser only)
   ============================================= */
.install-screen {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #0a0f18;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.install-glow {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,180,100,0.3) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}
.install-glow--2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(240,150,70,0.2) 0%, transparent 70%);
    filter: blur(30px);
    animation-delay: -2s;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -60%) scale(1.15); }
}

.install-brand {
    margin-top: 28px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(255,180,100,0.9) 0%, #fff 50%, rgba(255,180,100,0.9) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-shimmer 3s ease-in-out infinite;
    position: relative; z-index: 1;
}
@keyframes brand-shimmer {
    0%   { background-position: 100% 0; }
    50%  { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

.install-hint {
    margin-top: 14px;
    font-size: var(--font-sm);
    opacity: 0.55;
    line-height: 1.4;
}

.install-action {
    cursor: pointer; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
}
.install-action:active .install-cube { animation-play-state: paused; transform: scale(0.95); }
.install-action:active .install-brand { opacity: 0.7; }

/* 3D Cube — install screen (scaled-up logo-cube, summer colors) */
.install-cube-wrap {
    perspective: 800px;
    position: relative; z-index: 1;
}
.install-cube {
    width: 110px; height: 110px;
    position: relative;
    transform-style: preserve-3d;
    animation: install-cube-spin 9s infinite linear;
}
@keyframes install-cube-spin {
    from { transform: rotateX(0) rotateY(0); }
    to   { transform: rotateX(-360deg) rotateY(-360deg); }
}
.install-cube__face {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    letter-spacing: -1px;
    overflow: hidden;
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.install-cube__front  { transform: translateZ(55px);                  background: rgba(255,180,100,0.75); }
.install-cube__back   { transform: translateZ(-55px) rotateY(180deg); background: rgba(255,180,100,0.75); }
.install-cube__right  { transform: rotateY(90deg) translateZ(55px);   background: rgba(240,150,70,0.65); }
.install-cube__left   { transform: rotateY(-90deg) translateZ(55px);  background: rgba(240,150,70,0.65); }
.install-cube__top    { transform: rotateX(90deg) translateZ(55px);   background: rgba(220,120,40,0.55); }
.install-cube__bottom { transform: rotateX(-90deg) translateZ(55px);  background: rgba(220,120,40,0.55); }

/* 3D Cube — shared (auth screens, PTR header) */
.logo-wrap {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    perspective: 200px;
}
.logo-cube {
    width: 27px; height: 27px;
    position: relative;
    transform-style: preserve-3d;
    animation: logo-cube-spin 6s infinite linear;
}
.logo-cube__face {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 800;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    letter-spacing: -1px;
    overflow: hidden;
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.logo-cube__front  { transform: translateZ(13.5px);                        background: var(--cube-front); }
.logo-cube__back   { transform: translateZ(-13.5px) rotateY(180deg);       background: var(--cube-front); }
.logo-cube__right  { transform: rotateY(90deg) translateZ(13.5px);         background: var(--cube-side); }
.logo-cube__left   { transform: rotateY(-90deg) translateZ(13.5px);        background: var(--cube-side); }
.logo-cube__top    { transform: rotateX(90deg) translateZ(13.5px);         background: var(--cube-top); }
.logo-cube__bottom { transform: rotateX(-90deg) translateZ(13.5px);        background: var(--cube-top); }

@keyframes logo-cube-spin {
    from { transform: rotateX(0) rotateY(0); }
    to   { transform: rotateX(-360deg) rotateY(-360deg); }
}

/* =============================================
   App shell
   ============================================= */
.app {
    width: 100%;
    max-width: 430px;
    height: 100%;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Gradient header background */
.gradient-bg {
    position: absolute; top: 0; left: 0; right: 0;
    height: 260px;
    background: var(--gradient-bg);
    z-index: 0;
}
.gradient-glow {
    position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: var(--gradient-glow-color);
    filter: blur(40px);
}

/* Status bar spacer */
.status-bar { height: env(safe-area-inset-top, 44px); min-height: 44px; flex-shrink: 0; position: relative; z-index: 1; }

/* =============================================
   Pull-to-refresh
   ============================================= */
.ptr {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: center;
    z-index: 100;
    pointer-events: none;
    perspective: 400px;
    transform: translateY(-60px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}
.ptr.pulling {
    transition: none;
}
.ptr.refreshing {
    transform: translateY(16px);
    opacity: 1;
}
.ptr.refreshing-center {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    transform: none; opacity: 1;
    background: rgba(0,0,0,0.3);
    pointer-events: auto;
    z-index: 500;
}

.ptr-cube {
    width: 32px; height: 32px;
    position: relative;
    transform-style: preserve-3d;
}
.ptr.refreshing .ptr-cube,
.ptr.refreshing-center .ptr-cube {
    animation: install-cube-spin 2.25s infinite linear;
}
.ptr.refreshing-center .ptr-cube {
    width: 60px; height: 60px;
}
.ptr.refreshing-center .ptr-cube__face {
    font-size: 26px; border-radius: 10px;
}
.ptr.refreshing-center .ptr-cube__front  { transform: translateZ(30px); }
.ptr.refreshing-center .ptr-cube__back   { transform: translateZ(-30px) rotateY(180deg); }
.ptr.refreshing-center .ptr-cube__right  { transform: rotateY(90deg) translateZ(30px); }
.ptr.refreshing-center .ptr-cube__left   { transform: rotateY(-90deg) translateZ(30px); }
.ptr.refreshing-center .ptr-cube__top    { transform: rotateX(90deg) translateZ(30px); }
.ptr.refreshing-center .ptr-cube__bottom { transform: rotateX(-90deg) translateZ(30px); }
.ptr-cube__face {
    position: absolute; width: 100%; height: 100%;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    color: rgba(255,255,255,0.7);
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.ptr-cube__front  { transform: translateZ(16px);                  background: rgba(255,180,100,0.75); }
.ptr-cube__back   { transform: translateZ(-16px) rotateY(180deg); background: rgba(255,180,100,0.75); }
.ptr-cube__right  { transform: rotateY(90deg) translateZ(16px);   background: rgba(255,180,100,0.75); }
.ptr-cube__left   { transform: rotateY(-90deg) translateZ(16px);  background: rgba(255,180,100,0.75); }
.ptr-cube__top    { transform: rotateX(90deg) translateZ(16px);   background: rgba(255,180,100,0.75); }
.ptr-cube__bottom { transform: rotateX(-90deg) translateZ(16px);  background: rgba(255,180,100,0.75); }

/* =============================================
   Header
   ============================================= */
.header {
    padding: 0 22px 24px;
    position: relative; z-index: 1;
    flex-shrink: 0;
    animation: fadeDown 0.45s ease forwards;
}

/* TOP ROW */
.header-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.header-top .logo-wrap { flex-shrink: 0; margin-top: 2px; }
.hero-name-block { flex: 1; min-width: 0; }
.greeting-sub {
    font-size: var(--font-xs); color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px;
}
.greeting-name {
    font-size: 26px; color: #fff; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1;
}
.greeting-hint { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 5px; }

.hero-right { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-btns { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.glass-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; cursor: pointer;
}
.status-pro {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #FFD580;
    text-align: center; margin-top: 4px;
}
.hero-uid {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #FFD580;
    text-align: center;
}

/* BOTTOM ROW */
.hero-bottom { display: flex; align-items: stretch; gap: 10px; }
.hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md); padding: 11px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s;
}
.hero-card:active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.28); }
.hero-card-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 5px;
}
.hero-balance { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.6; }
.balance-val   { display: flex; flex-direction: column; }
.balance-line  { display: block; }
.hero-stars {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; padding: 11px 16px;
}
.stars-val { font-size: 22px; font-weight: 800; color: #fff; }
.stars-lbl { font-size: 9px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-code {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    cursor: default;
}
.hero-code:active { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.16); }
.access-code {
    font-size: 22px; font-weight: 800; color: #fff;
    letter-spacing: 0.12em; line-height: 1.2;
}
.access-time {
    font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; line-height: 1.2;
}

/* Wallet top-up modal */
.wallet-modal-title {
    font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name);
    margin-bottom: 16px;
}
.wallet-modal-section { margin-bottom: 4px; }
.wallet-modal-section-title {
    font-size: var(--font-base); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 6px;
}
.wallet-modal-text {
    font-size: var(--font-sm); color: var(--list-item-sub); line-height: 1.5;
    margin-bottom: 6px;
}
.wallet-modal-text--pre { white-space: pre-line; }
.wallet-modal-bullets { margin: 4px 0 8px 4px; }
.wallet-modal-bullet {
    font-size: var(--font-sm); color: var(--list-item-name); line-height: 1.6;
}
.wallet-modal-bullet::before { content: '• '; }
.wallet-modal-link {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 4px;
}
.wallet-modal-divider {
    height: 1px; background: var(--list-divider);
    margin: 14px 0;
}

/* =============================================
   Card (main content area)
   ============================================= */
.card {
    flex: 1;
    min-height: 0;
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    position: relative; z-index: 1;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px var(--card-shadow);
    animation: fadeUp 0.5s ease 0.15s both;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.section-header { padding: 22px 22px 12px; display: flex; align-items: center; justify-content: space-between; }
.section-label  { font-size: var(--font-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--section-label-color); font-weight: 500; }
.see-all        { font-size: var(--font-base); color: var(--see-all-color); font-weight: 600; cursor: pointer; }

/* =============================================
   Services slider
   ============================================= */
.services-viewport {
    overflow: hidden;
    height: 310px;
    position: relative;
    margin: 0 22px;
}
.services-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s ease;
}
.services-track.swiping { transition: none; }
.services-track.slide-1 { transform: translateX(-50%); }
.services-slide {
    width: 50%;
    flex-shrink: 0;
}

/* =============================================
   Services list
   ============================================= */
.list {
    background: var(--list-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.services-slide .list { margin: 0; }

.list-item {
    display: flex; align-items: center;
    padding: 15px 18px;
    background: var(--list-bg);
    cursor: pointer;
    transition: background 0.12s;
    -webkit-user-select: none; user-select: none;
}
.list-item:active, .list-item.pressed { background: var(--list-item-active); }

.icon-wrap {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: var(--accent-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-right: 14px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.list-item.pressed .icon-wrap { background: var(--accent-bg-hover); }

.item-text { flex: 1; }
.item-name { font-size: var(--font-lg); font-weight: 500; color: var(--list-item-name); letter-spacing: -0.01em; }
.item-sub  { font-size: var(--font-sm); color: var(--list-item-sub); margin-top: 1px; }

.divider { height: 1px; background: var(--list-divider); margin: 0 18px 0 74px; }

/* Book button */
.services-dots {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 0;
}
.services-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--nav-inactive);
    opacity: 0.5;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.services-dot--active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

.book-wrap {
    margin: 30px 22px 0; display: flex;
    background: var(--book-gradient);
    border-radius: 50px;
    box-shadow: 0 6px 24px var(--book-shadow);
    overflow: hidden;
}
.book-btn {
    flex: 1; padding: 15px 0;
    background: transparent;
    border: none; border-radius: 0;
    color: #fff; font-size: var(--font-sm); font-weight: 600;
    letter-spacing: 0.01em; cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}
.book-btn:active { opacity: 0.7; }

/* =============================================
   Base button
   ============================================= */
.btn {
    padding: var(--font-base) 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s, opacity 0.15s;
    -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn--outline { background: transparent; color: var(--list-item-name); border: 1px solid var(--list-divider); }
.btn--outline:active { background: var(--list-item-active); }
.btn--danger { background: #e53935; color: #fff; width: 100%; }

/* =============================================
   Bottom navigation
   ============================================= */
.nav-bar {
    flex-shrink: 0;
    padding: 10px 0;
    padding-bottom: 10px;
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    display: flex; align-items: flex-start;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 100;
}
@supports(padding: max(0px)) {
    .nav-bar {
        padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    }
}

.nav-btn {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    color: var(--nav-inactive); transition: color 0.2s;
    font-family: inherit; padding: 0;
}
.nav-btn.active { color: var(--nav-active); }
.nav-label { font-size: var(--font-xs); letter-spacing: 0.03em; }
.nav-btn.active .nav-label { font-weight: 600; }

/* =============================================
   Pages (tabs)
   ============================================= */
.page { display: none; }
.page.active { display: block; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* =============================================
   Settings page
   ============================================= */
.settings-section {
    padding: 22px 22px 12px;
}
.settings-title {
    font-size: var(--font-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--section-label-color);
    font-weight: 500;
    margin-bottom: 14px;
}

.theme-grid {
    display: flex;
    gap: 12px;
}

.theme-card {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid var(--list-divider);
    background: var(--list-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-user-select: none; user-select: none;
}
.theme-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.theme-preview {
    width: 100%;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}
.theme-preview-header {
    height: 50%;
}
.theme-preview-body {
    height: 50%;
}
.theme-preview--dark .theme-preview-header { background: linear-gradient(160deg, #3a6ea5, #1a3a5c); }
.theme-preview--dark .theme-preview-body   { background: #17212B; }
.theme-preview--white .theme-preview-header { background: linear-gradient(160deg, #d4a56a, #b8863a); }
.theme-preview--white .theme-preview-body  { background: #fff; }
.theme-preview--summer .theme-preview-header { background: linear-gradient(160deg, #F2874A, #E07030); }
.theme-preview--summer .theme-preview-body   { background: #FAF8F5; }

.theme-card-label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--list-item-name);
}

.theme-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--list-divider);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.theme-card.selected .theme-check {
    background: var(--accent);
    border-color: var(--accent);
}
.theme-check svg { opacity: 0; transition: opacity 0.2s; }
.theme-card.selected .theme-check svg { opacity: 1; }

/* Language picker */
.lang-grid {
    display: flex;
    gap: 12px;
}

.lang-card {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid var(--list-divider);
    background: var(--list-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-user-select: none; user-select: none;
    font-family: inherit;
}
.lang-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.lang-card-label {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--list-item-name);
}
.lang-card .theme-check { flex-shrink: 0; }
.lang-card.selected .theme-check {
    background: var(--accent);
    border-color: var(--accent);
}
.lang-card.selected .theme-check svg { opacity: 1; }

/* =============================================
   Subpage header (back + title)
   ============================================= */
.subpage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 22px 14px;
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}
.subpage-back {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.subpage-back:active { background: var(--accent-bg-hover); }
.subpage-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--list-item-name);
}

/* =============================================
   News page
   ============================================= */
.news-list {
    padding: 0 22px 20px;
}

.news-item {
    background: var(--list-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.news-time {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--list-item-sub);
    padding: 14px 16px 8px;
}

.news-img-wrap {
    width: 100%;
    position: relative;
    background: var(--list-divider);
    min-height: 120px;
}
.news-img-wrap.loaded { min-height: auto; background: none; }

.news-img {
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.3s;
}
.news-img.loaded { opacity: 1; }

.news-text {
    font-size: var(--font-base);
    color: var(--list-item-name);
    line-height: 1.6;
    padding: 12px 16px 16px;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--list-item-sub);
    font-size: var(--font-base);
}

.news-skeleton {
    background: var(--list-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.news-skeleton-img {
    width: 100%;
    height: 180px;
    background: var(--list-divider);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.news-skeleton-line {
    height: 14px;
    margin: 12px 16px;
    border-radius: 4px;
    background: var(--list-divider);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.news-skeleton-line:last-child { width: 60%; margin-bottom: 16px; }

/* =============================================
   Shop page
   ============================================= */
.shop-content { padding: 0 22px 20px; }

/* Teacher grid */
.shop-teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.shop-teacher-card {
    background: var(--list-bg);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: background 0.12s;
    -webkit-user-select: none; user-select: none;
    position: relative;
}
.shop-teacher-card:active { background: var(--list-item-active); }
.shop-teacher-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--list-divider);
    opacity: 0;
    transition: opacity 0.3s;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.shop-teacher-avatar.loaded {
    opacity: 1;
    animation: none;
}
.shop-teacher-name {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--list-item-name);
    text-align: center;
    line-height: 1.3;
}
.shop-sale-badge {
    position: absolute; top: 6px; right: 6px;
    font-size: 9px; font-weight: 700;
    color: #fff; background: #ff5040;
    padding: 2px 6px; border-radius: 6px;
    text-transform: uppercase;
}
.shop-top-badge {
    position: absolute; top: 6px; left: 6px;
    font-size: 9px; font-weight: 700;
    color: #fff; background: #FFB300;
    padding: 2px 6px; border-radius: 6px;
    text-transform: uppercase;
}

/* Teacher profile */
.shop-profile { animation: fadeUp 0.3s ease both; }
.shop-profile-header {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 18px;
}
.shop-profile-avatar-wrap {
    width: 120px; height: 120px;
    border-radius: var(--radius-md);
    background: var(--list-divider);
    flex-shrink: 0;
    overflow: hidden;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    cursor: pointer;
}
.shop-profile-avatar-wrap.loaded { animation: none; background: none; }
.shop-profile-avatar {
    width: 100%; height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}
.shop-profile-avatar.loaded { opacity: 1; }

/* =============================================
   Activity
   ============================================= */
.activity-tabs {
    display: flex; gap: 0; padding: 0 22px; margin-bottom: 10px;
}
.activity-tab {
    flex: 1; padding: 10px 0; border: none;
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-sm); font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.activity-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.activity-tab:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.activity-tab.active { background: var(--accent); color: #fff; }

.activity-date-filter {
    display: flex; gap: 6px; padding: 0 22px; margin-bottom: 14px; align-items: center;
}
.activity-date-filter input[type="date"] {
    flex: 1; padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--list-divider); background: var(--list-bg);
    color: var(--list-item-name); font-size: var(--font-sm); font-family: inherit;
}
.activity-filter-btn {
    padding: 8px 14px; border: none; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    font-size: var(--font-sm); font-weight: 600; font-family: inherit; cursor: pointer;
}
.activity-filter-reset { background: var(--list-bg); color: var(--list-item-name); }

.activity-content { padding: 0 22px 20px; }

.activity-empty {
    text-align: center; padding: 40px 0;
    color: var(--list-item-sub); font-size: var(--font-sm);
}

.activity-card {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 10px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.activity-card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.activity-card-date { font-size: var(--font-xs); font-weight: 500; color: var(--list-item-name); opacity: 0.7; }
.activity-card-badges { display: flex; gap: 4px; }
.activity-badge {
    background: var(--accent); border-radius: 10px; padding: 2px 10px;
    font-size: 10px; color: #fff; font-weight: 600;
}
.activity-card-body { margin-bottom: 6px; }
.activity-card-name { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.activity-card-descr { font-size: var(--font-sm); color: var(--list-item-sub); margin-top: 2px; }
.activity-card-time { font-size: var(--font-xs); color: var(--list-item-sub); margin-top: 2px; }
.activity-card-summ { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); }
.activity-card-summ.negative { color: var(--balance-negative, #e53935); }
.activity-card-summ.positive { color: #43a047; }

.activity-card-footer {
    display: flex; justify-content: space-between; align-items: center;
}

.activity-cancel-btn {
    padding: 5px 12px;
    border: 1px solid var(--balance-negative, #e53935); border-radius: var(--radius-sm);
    background: transparent; color: var(--balance-negative, #e53935);
    font-size: var(--font-xs); font-weight: 500;
    cursor: pointer; font-family: inherit;
}
.activity-cancel-btn:active { opacity: 0.7; }

/* =============================================
   Booking
   ============================================= */
.booking-content { padding: 0 22px 20px; }

.booking-debug {
    position: fixed; top: 50px; right: 4px;
    max-width: 180px; max-height: 260px; overflow: auto;
    background: rgba(0,0,0,0.55); color: #0f0;
    font-size: 9px; padding: 6px 8px;
    border-radius: 6px; z-index: 10000;
    pointer-events: none; white-space: pre-wrap;
    font-family: monospace; line-height: 1.3;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

.booking-date-info {
    text-align: center; padding: 10px 0 14px;
    font-size: var(--font-sm); font-weight: 500; color: var(--list-item-sub);
}

.booking-section-label {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 10px;
}

.booking-type-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.booking-type-card {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 18px 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: center;
    display: flex; align-items: center; justify-content: center;
}
.booking-type-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.booking-type-card:active { opacity: 0.85; }
.booking-type-card.selected {
    border-color: var(--accent);
    background: var(--accent-bg, rgba(200,155,60,0.08));
}

.booking-type-name {
    font-size: var(--font-base); font-weight: 600; color: var(--list-item-name);
}

/* Scroll picker (iOS-style wheel) */
.picker-headers {
    display: flex; padding: 10px 0 6px;
}
.picker-header-label {
    flex: 1; text-align: center;
    font-size: var(--font-xs); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--list-item-sub);
}

.picker-row {
    display: flex; gap: 20px;
}

.scroll-picker {
    flex: 1; position: relative; overflow: hidden;
}
.scroll-picker-highlight {
    position: absolute; left: 0; right: 0;
    background: var(--list-bg);
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 1;
}
.scroll-picker-list {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative; z-index: 2;
}
.scroll-picker-list::-webkit-scrollbar { display: none; }
.scroll-picker-list { scrollbar-width: none; }

.scroll-picker-item {
    scroll-snap-align: center;
    text-align: center;
    font-size: var(--font-lg); font-weight: 500;
    color: var(--list-item-name);
    transition: opacity 0.15s, transform 0.15s;
    user-select: none;
}
.scroll-picker-item.active {
    font-weight: 700;
}
.scroll-picker-item.disabled {
    opacity: 0.2 !important;
    pointer-events: none;
    text-decoration: line-through;
}
.scroll-picker-pad { pointer-events: none; }

.picker-headers-3 { }
.picker-headers-3 .picker-header-label { flex: 1; }

/* Partner selection */
.partner-search {
    width: 100%; padding: 10px 14px; margin-bottom: 10px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-sm); font-family: inherit;
}
.partner-search::placeholder { color: var(--list-item-sub); }

.partner-list {
    max-height: 185px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

.partner-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px;
    background: var(--list-bg);
    border-bottom: 1px solid var(--list-divider);
    cursor: pointer;
    transition: background 0.15s;
}
.partner-item:last-child { border-bottom: none; }
.partner-item:active { opacity: 0.8; }
.partner-item.selected {
    background: var(--accent);
}
.partner-item.selected .partner-name { color: #fff; }
.partner-item.selected .partner-fav { color: rgba(255,255,255,0.7); }

.partner-name {
    font-size: var(--font-sm); font-weight: 500; color: var(--list-item-name);
}
.partner-fav {
    font-size: var(--font-sm); color: var(--accent);
}

/* Booking payment & result */
/* Booking form fields */
.booking-field-label {
    font-size: var(--font-sm); font-weight: 500; color: var(--list-item-sub);
    margin: 12px 0 4px;
}
.booking-field-input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-base); font-family: inherit;
}
.booking-field-input::placeholder { color: var(--list-item-sub); }

.booking-pay-total {
    text-align: center; font-size: var(--font-2xl); font-weight: 700;
    color: var(--accent); margin: 10px 0 20px;
}
.booking-pay-btn {
    width: 100%; padding: 14px; margin-bottom: 10px;
    border: none; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    font-size: var(--font-base); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.booking-pay-btn:active { opacity: 0.8; }

.booking-success-msg {
    text-align: center; font-size: var(--font-lg); font-weight: 600;
    color: #43a047; padding: 20px 0 14px;
}
.booking-fail-msg {
    text-align: center; font-size: var(--font-lg); font-weight: 600;
    color: var(--balance-negative, #e53935); padding: 20px 0 14px;
}
.booking-summary {
    text-align: center; font-size: var(--font-sm);
    color: var(--list-item-name); line-height: 1.6;
    padding: 10px 16px; margin-bottom: 16px;
    background: var(--list-bg); border-radius: var(--radius-md);
}

.booking-nav-skip {
    width: 100%; padding: 6px; margin-top: 6px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: transparent; color: var(--list-item-sub);
    font-size: var(--font-xs); font-weight: 500;
    cursor: pointer; font-family: inherit;
    text-decoration: underline;
}
.booking-nav-skip:active { opacity: 0.7; }

.booking-nav {
    display: flex; gap: 10px; margin-top: 20px;
}
.booking-nav-btn {
    flex: 1; padding: 14px 0;
    border: none; border-radius: var(--radius-sm);
    font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: opacity 0.2s;
}
.booking-nav-btn:active { opacity: 0.8; }
.booking-nav-next {
    background: var(--accent); color: #fff;
}
.booking-nav-next.disabled {
    background: var(--list-divider); color: var(--list-item-sub);
    cursor: default; opacity: 0.5;
}
.booking-nav-next.disabled:active { opacity: 0.5; }
.booking-nav-back {
    background: var(--list-bg); color: var(--list-item-name);
}

/* =============================================
   Group Booking
   ============================================= */
.group-content { padding: 0 22px 20px; }
.group-empty { text-align: center; padding: 40px 0; color: var(--list-item-sub); font-size: var(--font-sm); }

.group-date-label {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
    padding: 14px 0 6px; opacity: 0.7;
}

.group-card {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.group-card.booked { border-left: 4px solid #43a047; }

.group-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.group-card-name { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.group-card-check { color: #43a047; font-size: var(--font-lg); font-weight: 700; }

.group-card-info { font-size: var(--font-sm); color: var(--list-item-sub); margin-bottom: 2px; }
.group-card-time { font-size: var(--font-sm); font-weight: 500; color: var(--list-item-name); }
.group-card-price { font-size: var(--font-base); font-weight: 700; color: var(--accent); margin-top: 6px; }

.group-book-btn {
    width: 100%; margin-top: 10px; padding: 10px;
    border: none; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.group-book-btn:active { opacity: 0.8; }

/* Group confirm modal */
.group-pay-box { max-width: 320px; }
.group-confirm-details {
    text-align: center; margin-bottom: 14px;
    padding-bottom: 14px; border-bottom: 1px solid var(--list-divider);
}
.group-confirm-coach { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.group-confirm-date { font-size: var(--font-sm); color: var(--list-item-sub); margin-top: 2px; }
.group-confirm-time { font-size: var(--font-sm); font-weight: 500; color: var(--list-item-name); margin-top: 2px; }
.group-confirm-total { font-size: var(--font-lg); font-weight: 700; color: var(--accent); margin-top: 6px; }

.group-confirm-text {
    font-size: var(--font-sm); color: var(--list-item-sub);
    line-height: 1.5; margin-bottom: 16px;
    text-align: center;
}
.group-confirm-btns { display: flex; gap: 8px; }
.group-pay-btn {
    flex: 1; padding: 12px;
    border: none; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.group-pay-btn:active { opacity: 0.8; }
.group-confirm-cancel { background: var(--list-bg); color: var(--list-item-name); }

.book-skeleton {
    flex: 1; height: 48px;
    border-radius: 50px;
    background: var(--list-divider);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.book-btn-sep {
    width: 1px;
    background: rgba(255,255,255,0.2);
}

/* =============================================
   Profile
   ============================================= */
.profile-content { padding: 0 22px 20px; }
.profile-empty { text-align: center; padding: 40px 0; color: var(--list-item-sub); font-size: var(--font-sm); }

.profile-user-card {
    text-align: center; padding: 16px 0 12px;
}
.profile-user-name { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); }
.profile-user-id { font-size: var(--font-xs); color: var(--list-item-sub); margin-top: 2px; }
.profile-user-class { font-size: var(--font-sm); color: var(--accent); font-weight: 500; margin-top: 4px; }

.profile-wallets { display: flex; gap: 8px; margin-bottom: 14px; }
.profile-wallet {
    flex: 1; text-align: center; padding: 14px 8px;
    background: var(--list-bg); border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.profile-wallet-val { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); }
.profile-wallet-val.negative { color: var(--balance-negative, #e53935); }
.profile-wallet-label { font-size: var(--font-xs); color: var(--list-item-sub); margin-top: 4px; }

.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-action-btn {
    flex: 1; min-width: 100px; padding: 10px 8px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-xs); font-weight: 500; cursor: pointer; font-family: inherit;
    text-align: center;
}
.profile-action-btn:active { opacity: 0.8; }

.profile-stats-section {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px;
}
.profile-stats-title {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name); margin-bottom: 10px;
}
.profile-stat-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: var(--font-sm); color: var(--list-item-name);
    border-bottom: 1px solid var(--list-divider);
}
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-type { color: var(--list-item-sub); }
.profile-stat-vals { font-weight: 500; }
.profile-stat-total { font-weight: 700; color: var(--accent); border-top: 1px solid var(--accent); padding-top: 8px; margin-top: 4px; }

.profile-redeem {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px; text-align: center;
}
.profile-redeem-info { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.profile-redeem-note { font-size: var(--font-xs); color: var(--list-item-sub); margin: 6px 0 12px; }
.profile-redeem-btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm);
    background: #43a047; color: #fff; font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.profile-redeem-btn:active { opacity: 0.8; }
.profile-redeem-btn--disabled { background: var(--list-bg); color: var(--list-item-sub); cursor: default; }

.profile-zelle-list { margin-bottom: 8px; }
.profile-zelle-label { font-size: var(--font-xs); color: var(--list-item-sub); margin-bottom: 4px; }
.profile-zelle-name { font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name); padding: 2px 0; }

.profile-delete-btn {
    width: 100%; padding: 12px; margin-top: 24px; border: none;
    border-radius: var(--radius-sm); background: rgba(229,57,53,0.12);
    color: #e53935; font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.profile-delete-btn:active { opacity: 0.7; }
.profile-delete-modal-btn { background: #e53935 !important; color: #fff !important; }

/* =============================================
   Levels
   ============================================= */
.levels-content { padding: 0 22px 20px; }
.levels-empty { text-align: center; color: var(--list-item-sub); padding: 40px 0; font-size: var(--font-sm); }

.levels-status-card {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 16px; margin-bottom: 14px; text-align: center;
}
.levels-status-label { font-size: var(--font-xs); color: var(--list-item-sub); margin-bottom: 4px; }
.levels-status-val { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); }
.levels-status-subtitle {
    font-size: var(--font-sm); color: var(--list-item-sub); margin-top: 8px;
    white-space: pre-line;
}

.levels-section-title {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 8px;
}

.levels-list {
    background: var(--list-bg); border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 14px;
}
.levels-item {
    padding: 12px 16px; cursor: pointer;
    border-bottom: 1px solid var(--list-divider);
    transition: background 0.15s;
}
.levels-item:last-child { border-bottom: none; }
.levels-item:active { opacity: 0.8; }
.levels-item.selected { background: rgba(255,255,255,0.05); }
.levels-item-name {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
}
.levels-item.selected .levels-item-name { color: var(--accent); }
.levels-item-desc {
    font-size: var(--font-xs); color: var(--list-item-sub);
    margin-top: 8px; line-height: 1.5; white-space: pre-line;
}

.levels-change-btn {
    width: 100%; margin-bottom: 14px;
}
.levels-join-btn {
    width: 100%; margin-top: 14px; margin-bottom: 14px;
    background: #43a047; color: #fff; border-color: #43a047;
}
.levels-join-btn:active { opacity: 0.8; }

.levels-benefits {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px;
}
.levels-benefit-line {
    font-size: var(--font-sm); color: var(--list-item-name); line-height: 1.6;
}
.levels-benefit-line:first-child { font-weight: 600; margin-bottom: 4px; }

.levels-price {
    text-align: center; font-size: var(--font-base); font-weight: 700;
    color: #43a047; white-space: pre-line; margin-bottom: 14px;
}

.levels-pending {
    text-align: center; font-size: var(--font-sm); color: var(--list-item-sub);
    padding: 20px 0; font-style: italic;
}

/* =============================================
   Events
   ============================================= */
.events-content { padding: 0 22px 20px; }
.events-empty { text-align: center; color: var(--list-item-sub); padding: 40px 0; font-size: var(--font-sm); }
.events-empty-sub { margin-top: 6px; font-size: var(--font-xs); }

.events-balance {
    text-align: right; font-size: var(--font-xs); color: var(--list-item-sub);
    margin-bottom: 10px;
}
.events-text {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px;
    font-size: var(--font-sm); color: var(--list-item-name); line-height: 1.5;
}
.events-info {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px;
    font-size: var(--font-sm); color: var(--list-item-name); text-align: center;
}
.events-reg-msg {
    margin-top: 8px; font-weight: 600; white-space: pre-line;
    color: #43a047;
}
.events-students {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 14px;
}
.events-students-title {
    font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 6px;
}
.events-student-name {
    font-size: var(--font-sm); color: var(--list-item-sub); padding: 2px 0;
}

.events-join-btn { width: 100%; margin-bottom: 14px; }
.events-join-btn.disabled { opacity: 0.4; pointer-events: none; }

.events-type-grid {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.events-type-card {
    flex: 1; min-width: 80px; padding: 12px 8px;
    background: var(--list-bg); border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm); cursor: pointer; text-align: center;
    transition: border-color 0.15s;
}
.events-type-card.selected { border-color: var(--accent); }
.events-type-card.disabled { opacity: 0.4; pointer-events: none; }
.events-type-card:active { opacity: 0.8; }
.events-type-name { font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name); }
.events-type-avail { font-size: var(--font-xs); color: var(--list-item-sub); margin-top: 4px; }

.events-price-display {
    font-size: var(--font-base); font-weight: 600; color: var(--list-item-name);
    margin-bottom: 10px;
}
.events-teachers { margin-bottom: 14px; }
.events-teachers-label {
    font-size: var(--font-sm); color: var(--list-item-sub); margin-bottom: 8px;
}
.events-teacher-card {
    background: var(--list-bg); border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 6px;
    font-size: var(--font-sm); color: var(--list-item-name); cursor: pointer;
    transition: border-color 0.15s;
}
.events-teacher-card.selected { border-color: var(--accent); }
.events-teacher-card.disabled { opacity: 0.4; pointer-events: none; }
.events-teacher-card:active { opacity: 0.8; }

.events-ticket-picker {
    display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.events-ticket-btn {
    padding: 8px 16px; border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm); background: var(--list-bg);
    color: var(--list-item-name); font-size: var(--font-sm);
    cursor: pointer; font-family: inherit;
}
.events-ticket-btn.selected { border-color: var(--accent); font-weight: 600; }
.events-ticket-input {
    width: 60px; padding: 6px 8px; text-align: center;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-sm); font-family: inherit;
}

/* =============================================
   Watch/Files
   ============================================= */
.watch-content { padding: 0 22px 20px; }
.watch-empty { text-align: center; padding: 40px 0; color: var(--list-item-sub); font-size: var(--font-sm); }

.watch-code-block {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 12px 16px; margin-bottom: 12px;
}
.watch-code-label { font-size: var(--font-xs); color: var(--list-item-sub); text-transform: uppercase; letter-spacing: 0.08em; }
.watch-code-val { font-size: var(--font-sm); font-weight: 600; color: var(--list-item-name); margin-top: 4px; }

.watch-earn-btn, .watch-toggle-hidden {
    padding: 8px 14px; margin-bottom: 10px; margin-right: 8px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-xs); font-weight: 500; cursor: pointer; font-family: inherit;
}

.watch-student-card, .watch-teacher-card {
    background: var(--list-bg); border-radius: var(--radius-md);
    padding: 14px 16px; margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.watch-student-card.hidden { opacity: 0.5; }

.watch-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.watch-card-name { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.watch-card-hide-btn {
    border: none; background: none; color: var(--list-item-sub);
    font-size: var(--font-xs); cursor: pointer; font-family: inherit; text-decoration: underline;
}
.watch-card-info { font-size: var(--font-sm); color: var(--list-item-sub); line-height: 1.6; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.watch-card-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.watch-actions-left, .watch-actions-right { display: flex; gap: 6px; }
.watch-action-btn {
    padding: 8px 14px; border: none; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    font-size: var(--font-sm); font-weight: 600; cursor: pointer; font-family: inherit;
}
.watch-action-btn:active { opacity: 0.8; }
.watch-action-btn.disabled { background: var(--list-divider); color: var(--list-item-sub); cursor: default; opacity: 0.5; }

.watch-timer {
    background: rgba(0,0,0,0.15); border-radius: var(--radius-sm);
    padding: 12px; text-align: center;
}
.watch-timer-display { font-size: var(--font-2xl); font-weight: 700; color: var(--list-item-name); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.watch-timer-btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

.watch-stat-box { max-width: 380px; max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.watch-stat-header { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); margin-bottom: 12px; text-align: center; }

.watch-stat-grid { display: flex; gap: 8px; margin-bottom: 14px; }
.watch-stat-item {
    flex: 1; text-align: center; padding: 10px 6px;
    background: var(--list-bg); border-radius: var(--radius-sm);
}
.watch-stat-item-val { font-size: var(--font-base); font-weight: 700; color: var(--list-item-name); }
.watch-stat-item-label { font-size: 10px; color: var(--list-item-sub); margin-top: 2px; }

.watch-rate-row {
    display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
    padding-bottom: 14px; border-bottom: 1px solid var(--list-divider);
}
.watch-rate-label { font-size: var(--font-xs); color: var(--list-item-sub); white-space: nowrap; }
.watch-action-btn.saved { background: #43a047; }

.watch-stat-year {
    display: flex; justify-content: space-between; align-items: center;
    font-size: var(--font-base); font-weight: 600; color: var(--accent);
    cursor: pointer; padding: 10px 0;
    border-bottom: 1px solid var(--list-divider);
}
.watch-stat-month {
    display: flex; justify-content: space-between; align-items: center;
    font-size: var(--font-sm); font-weight: 500; color: var(--list-item-name);
    cursor: pointer; padding: 8px 0 8px 12px;
}
.watch-stat-chevron { font-size: var(--font-xs); color: var(--list-item-sub); }
.watch-stat-body { padding-left: 4px; }

.watch-stat-row {
    display: flex; justify-content: space-between;
    font-size: var(--font-sm); padding: 8px 0 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.watch-stat-row-date { color: var(--list-item-name); font-weight: 500; }
.watch-stat-row-val { color: var(--list-item-sub); text-align: right; }

/* Comp cards */
.watch-comp-card {
    background: var(--list-bg); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
    border: 1px solid var(--list-divider);
    transition: border-color 0.15s;
}
.watch-comp-card:active { border-color: var(--accent); }
.watch-comp-descr { font-size: var(--font-sm); font-weight: 500; color: var(--list-item-name); }
.watch-comp-count { font-size: var(--font-xs); color: var(--accent); margin-top: 2px; }

.watch-btn-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.watch-groups-table { width: 100%; }
.watch-groups-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--list-divider); font-size: var(--font-sm); color: var(--list-item-name); align-items: center; }
.watch-groups-row span { text-align: center; }
.watch-groups-row span:first-child { text-align: left; }
.watch-groups-hdr { font-size: var(--font-xs); font-weight: 600; color: var(--list-item-sub); text-transform: uppercase; }

/* Earnings overlay */
.earn-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.earn-overlay--visible { opacity: 1; pointer-events: all; }

.earn-screen {
    width: 100%; max-width: 430px;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - env(safe-area-inset-top, 50px) - 10px);
    background: var(--card-bg); border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
}
.earn-overlay--visible .earn-screen { transform: translateY(0); }

.earn-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--list-divider); flex-shrink: 0;
}
.earn-back {
    background: none; border: none; color: var(--list-item-sub); font-size: var(--font-base);
    font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 6px;
    min-height: 44px; min-width: 44px;
}
.earn-title { font-size: var(--font-base); color: var(--list-item-name); font-weight: 600; }

.earn-body {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 16px 48px; flex: 1;
}

.earn-legend { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.earn-leg { display: flex; align-items: center; gap: 5px; font-size: var(--font-xs); color: var(--list-item-sub); }
.earn-ld { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.earn-ld-s { background: var(--list-item-sub); }
.earn-ld-t { background: var(--list-item-name); }

.earn-crow {
    background: var(--list-bg); border: 1px solid var(--list-divider); border-radius: var(--radius-md);
    padding: 13px 14px; margin-bottom: 8px; cursor: pointer; overflow: hidden;
}
.earn-crow--open { border-color: var(--accent); }

.earn-crow-top { display: flex; align-items: center; justify-content: space-between; }
.earn-crow-l { display: flex; align-items: center; gap: 10px; }
.earn-crow-ico { font-size: 18px; width: 28px; text-align: center; }
.earn-crow-name { font-size: var(--font-sm); color: var(--list-item-name); font-weight: 600; }
.earn-crow-sub { font-size: var(--font-xs); color: var(--list-item-sub); margin-top: 2px; }

.earn-pct-cols { display: flex; gap: 10px; }
.earn-pct-col { text-align: right; }
.earn-pct-lbl { font-size: 10px; color: var(--list-item-sub); text-transform: uppercase; letter-spacing: 1px; }
.earn-pct-val { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); line-height: 1.2; }

.earn-mini-bar { height: 3px; border-radius: 100px; background: var(--list-divider); display: flex; margin-top: 10px; overflow: hidden; }
.earn-mb-s { background: var(--list-item-sub); }
.earn-mb-t { background: var(--accent); }

.earn-carr { font-size: var(--font-xs); color: var(--list-item-sub); display: block; text-align: center; margin-top: 6px; transition: transform 0.2s; }
.earn-crow--open .earn-carr { transform: rotate(180deg); }

.earn-detail { display: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--list-divider); }
.earn-crow--open .earn-detail { display: block; }

.earn-drow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--list-divider); }
.earn-drow:last-of-type { border-bottom: none; }
.earn-dl { font-size: var(--font-xs); color: var(--list-item-name); }
.earn-drr { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.earn-ds { font-size: var(--font-xs); font-weight: 600; color: var(--list-item-sub); }
.earn-dd { font-size: 10px; color: var(--list-item-sub); }
.earn-dt { font-size: var(--font-xs); font-weight: 600; color: var(--list-item-name); }
.earn-dt--muted { color: var(--list-item-sub) !important; }
.earn-mt { font-size: 10px; color: var(--list-item-sub); background: var(--list-bg); border: 1px solid var(--list-divider); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

.earn-nb { background: var(--glass-bg); border-left: 2px solid var(--accent); padding: 8px 12px; font-size: var(--font-xs); color: var(--list-item-sub); line-height: 1.5; margin-top: 10px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.watch-hist-label { font-size: var(--font-xs); font-weight: 500; color: var(--list-item-sub); text-transform: uppercase; letter-spacing: 0.08em; margin: 10px 0 4px; }

/* Fullscreen image viewer */
.fullscreen-img-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    animation: block-fadeIn 0.25s ease;
}
.fullscreen-img-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
}
.shop-profile-name {
    font-size: var(--font-xl); font-weight: 600;
    color: var(--list-item-name);
}
/* Offers grid */
.shop-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-offer {
    background: var(--list-bg);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-offer-type {
    font-size: var(--font-xs); font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.shop-offer-price {
    font-size: 20px; font-weight: 700;
    color: var(--list-item-name);
}
.shop-offer-descr {
    font-size: var(--font-sm);
    color: var(--list-item-sub);
    line-height: 1.4;
    flex: 1;
}
.shop-offer-buy {
    width: 100%; padding: 10px;
    border: none; border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: opacity 0.2s;
}
.shop-offer-buy:active { opacity: 0.8; }
.shop-offer-buy.bought { background: #43a047; }
.shop-offer-buy.sold-out { background: var(--list-divider); color: var(--list-item-sub); cursor: default; }
.shop-offer-buy.blocked { background: var(--list-divider); color: var(--list-item-sub); cursor: default; }

/* Shop manage button in header */
.shop-manage-btn {
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--accent);
    font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}

/* Teacher management list */
.shop-manage-item {
    background: var(--list-bg);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}
.shop-manage-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.shop-manage-type {
    font-size: var(--font-xs); font-weight: 700;
    text-transform: uppercase; color: var(--accent);
}
.shop-manage-price { font-size: var(--font-lg); font-weight: 700; color: var(--list-item-name); }
.shop-manage-descr { font-size: var(--font-sm); color: var(--list-item-sub); margin-bottom: 10px; }
.shop-manage-actions { display: flex; gap: 8px; }
.shop-manage-edit, .shop-manage-del {
    padding: 6px 14px; border-radius: 8px;
    border: none; font-size: var(--font-sm); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.shop-manage-edit { background: var(--accent-bg); color: var(--accent); }
.shop-manage-del { background: rgba(255,60,60,0.1); color: #ff5040; }

/* Shop payment modal */
.shop-pay-box { text-align: left; }
.modal-title {
    font-size: var(--font-xl); font-weight: 700;
    color: var(--list-item-name);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.shop-pay-box .modal-text {
    text-align: left;
    margin-bottom: 0;
    font-size: var(--font-base);
    color: var(--list-item-sub);
    white-space: normal;
}
.shop-pay-buttons { display: flex; gap: 10px; margin-top: 18px; }
.shop-pay-btn {
    flex: 1; padding: 14px;
    border: none; border-radius: var(--radius-md);
    background: var(--accent); color: #fff;
    font-size: var(--font-base); font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: transform 0.1s, opacity 0.15s;
    box-shadow: var(--shadow-btn);
}
.shop-pay-btn:active { transform: scale(0.97); opacity: 0.85; }
.shop-pay-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    box-shadow: none;
}
.modal-cancel {
    width: 100%; padding: 13px; margin-top: 10px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-md);
    background: transparent;
    color: var(--list-item-name);
    font-size: var(--font-base); font-weight: 500;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s;
}
.modal-cancel:active { background: var(--list-item-active); }

/* Promo */
.shop-promo-wrap { display: flex; gap: 8px; margin-top: 14px; }
.shop-promo-input {
    flex: 1; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--list-divider);
    background: var(--card-bg); color: var(--list-item-name);
    font-size: var(--font-base); font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.shop-promo-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.shop-promo-apply {
    padding: 12px 18px; border: none; border-radius: var(--radius-sm);
    background: var(--accent-bg); color: var(--accent);
    font-size: var(--font-sm); font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background 0.15s;
}
.shop-promo-apply:active { background: var(--accent-bg-hover); }
.shop-promo-result { margin-top: 10px; font-size: var(--font-sm); font-weight: 500; }

/* Shop edit modal */
.shop-edit-box { text-align: left; max-width: 380px; }
.shop-edit-form { display: flex; flex-direction: column; gap: 4px; }
.shop-edit-label {
    font-size: var(--font-xs); font-weight: 600;
    color: var(--list-item-sub);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 10px;
}
.shop-edit-label:first-child { margin-top: 0; }
.shop-edit-input, .shop-edit-select, .shop-edit-textarea {
    padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--list-divider);
    background: var(--card-bg); color: var(--list-item-name);
    font-size: var(--font-base); font-family: inherit; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-edit-input:focus, .shop-edit-select:focus, .shop-edit-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}
.shop-edit-input--readonly { opacity: 0.5; cursor: default; }
.shop-edit-textarea { resize: vertical; min-height: 60px; }
.shop-edit-actions { display: flex; gap: 10px; margin-top: 20px; flex-direction: column; }

/* Coach status */
.shop-coach-status {
    font-size: var(--font-sm);
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-bottom: 14px;
    padding: 8px 16px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
}

/* Promo hint */
.shop-promo-hint {
    font-weight: 400;
    opacity: 0.6;
}

/* Admin page */
.admin-uid-row {
    display: flex;
    gap: 10px;
}
.admin-uid-row .shop-edit-input { flex: 1; }
.admin-uid-current {
    margin-top: 12px;
    font-size: var(--font-sm);
    color: var(--list-item-sub);
}

.admin-quick-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.admin-quick-btn {
    padding: 10px 6px;
    border: 1px solid var(--list-divider); border-radius: var(--radius-sm);
    background: var(--list-bg); color: var(--list-item-name);
    font-size: var(--font-xs); font-weight: 500;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s;
}
.admin-quick-btn:active { opacity: 0.8; }
.admin-quick-btn.active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
}

.admin-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-sm);
    color: var(--list-item-name);
    cursor: pointer;
    padding: 4px 0;
}

.admin-toggle-row input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px; height: 18px;
}

/* Shop restricted */
.shop-restricted {
    text-align: center;
    padding: 60px 20px;
    color: var(--list-item-sub);
    font-size: var(--font-base);
}

/* =============================================
   Disabled list items
   ============================================= */
.list-item.disabled {
    opacity: 0.4;
    cursor: default;
}
.list-item.disabled:active,
.list-item.disabled.pressed { background: var(--list-bg); }

/* =============================================
   Skeleton list items (before server response)
   ============================================= */
.list-item.skeleton-item {
    pointer-events: none;
}
.list-item.skeleton-item .icon-wrap {
    background: var(--list-divider);
    color: transparent;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.list-item.skeleton-item .item-name,
.list-item.skeleton-item .item-sub {
    background: var(--list-divider);
    color: transparent;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* =============================================
   Idle screen
   ============================================= */
.idle-screen {
    position: fixed; inset: 0;
    background: var(--app-bg);
    z-index: 250;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.5s ease;
}
.idle-screen dotlottie-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    width: 300px;
}
.idle-text {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--list-item-name);
    margin-top: 100px;
    opacity: 0.7;
    white-space: pre-line;
    text-align: center;
    line-height: 1.4;
}
/* =============================================
   Blocking overlay (account suspended / balance)
   ============================================= */
.block-overlay {
    position: fixed; inset: 0;
    background: linear-gradient(160deg, rgba(20,15,10,0.97) 0%, rgba(40,20,10,0.97) 100%);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: block-fadeIn 0.4s ease;
}

@keyframes block-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.block-box {
    max-width: 340px;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
    animation: block-slideUp 0.5s ease 0.1s both;
}

@keyframes block-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.block-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(255,80,60,0.12);
    border: 1px solid rgba(255,80,60,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5040;
}
.block-icon--warn {
    background: rgba(255,180,50,0.12);
    border-color: rgba(255,180,50,0.2);
    color: #ffb032;
}

.block-text {
    font-size: var(--font-base);
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    white-space: pre-line;
}

.block-refresh-btn {
    margin-top: 28px;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.block-refresh-btn:active {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}

/* =============================================
   Negative balance indicator
   ============================================= */
.balance-negative {
    color: #fff !important;
    font-size: var(--font-base) !important;
    font-weight: 700 !important;
    background: var(--balance-negative);
    padding: 1px 6px;
    border-radius: 4px;
    animation: balance-blink 1.5s ease-in-out infinite;
}

@keyframes balance-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* =============================================
   Disabled book button
   ============================================= */
.book-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-lg);
    padding: 32px 26px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-modal), 0 0 0 1px rgba(255,255,255,0.04);
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.terms-doc-box { max-width: 90vw; width: 400px; text-align: left; max-height: 80vh; display: flex; flex-direction: column; }
.terms-doc-body {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    font-size: var(--font-sm); color: var(--list-item-name); line-height: 1.6;
    margin-top: 12px; flex: 1; max-height: 60vh;
}
.terms-doc-body p { margin: 8px 0; }
.terms-doc-body b, .terms-doc-body strong { font-weight: 600; }

.modal-text {
    font-size: var(--font-base);
    color: var(--list-item-name);
    line-height: 1.6;
    margin-bottom: 22px;
    white-space: pre-line;
}
.modal-btn {
    width: 100%;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s, opacity 0.15s;
    box-shadow: var(--shadow-btn);
}
.modal-btn:active { transform: scale(0.97); opacity: 0.85; }

/* =============================================
   Skeleton placeholders
   ============================================= */
.skeleton-text {
    background: rgba(255,255,255,0.15);
    color: transparent;
    border-radius: 4px;
    display: inline-block;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.8; }
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(8px); }  to { opacity: 1; transform: none; } }

/* =============================================
   Notifications
   ============================================= */
.notif-bell-wrap { position: relative; }

.notif-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: #e53935; color: #fff;
    font-size: 10px; font-weight: 700;
    line-height: 16px; text-align: center;
    border-radius: 8px;
    pointer-events: none;
}

.notif-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 199;
}

.notif-panel {
    position: absolute; top: 90px; right: 12px;
    width: calc(100% - 24px); max-width: 380px;
    max-height: 420px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal);
    z-index: 200;
    display: flex; flex-direction: column;
    animation: fadeDown 0.2s ease;
    overflow: hidden;
}

.notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--list-divider);
}
.notif-title {
    font-size: var(--font-base); font-weight: 600;
    color: var(--list-item-name);
}
.notif-clear-btn {
    background: none; border: none;
    font-size: var(--font-xs); font-weight: 500;
    color: var(--accent); cursor: pointer;
    font-family: inherit;
}

.notif-list {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    flex: 1; padding: 4px 0;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--list-item-sub);
    font-size: var(--font-sm);
}

.notif-card {
    padding: 12px 16px;
    border-bottom: 1px solid var(--list-divider);
    transition: background 0.15s;
}
.notif-card.unread {
    background: var(--glass-bg);
    border-left: 3px solid var(--accent);
}

.notif-card-title {
    font-size: var(--font-sm); font-weight: 600;
    color: var(--list-item-name);
    margin-bottom: 2px;
}
.notif-card-body {
    font-size: var(--font-sm);
    color: var(--list-item-sub);
    line-height: 1.4;
}
.notif-card-time {
    font-size: var(--font-xs);
    color: var(--list-item-sub);
    opacity: 0.6;
    margin-top: 4px;
}

/* =============================================
   Auth screen (login + registration)
   ============================================= */
.auth-screen {
    position: fixed; inset: 0;
    z-index: 998;
    background: var(--app-bg);
    color: var(--list-item-name);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-lang-switch {
    display: flex; gap: 6px;
    justify-content: flex-end;
    padding: max(16px, calc(env(safe-area-inset-top) + 8px)) 32px 0;
    width: 100%;
    max-width: 464px;
}

.auth-lang-btn {
    padding: 5px 12px;
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--list-item-sub);
    font-size: var(--font-xs);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-lang-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 32px 40px;
}

/* Login card: center vertically */
#auth-login {
    margin: auto;
}

/* Registration card: flow from top */
#auth-register {
    padding-top: 0;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Sticky header for registration */
.auth-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--app-bg);
    padding: 20px 0 16px;
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
}

.auth-title-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-title-row .logo-wrap {
    position: absolute;
    right: 100%;
    margin-right: 10px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--list-item-name);
}

.auth-subtitle {
    font-size: var(--font-sm);
    color: var(--list-item-sub);
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-subtitle a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-subtitle a:hover { text-decoration: underline; }

.auth-card form { display: flex; flex-direction: column; gap: 12px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field > label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--list-item-name);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm);
    font-size: var(--font-base);
    outline: none;
    transition: border-color 0.15s;
    background: var(--card-bg);
    color: var(--list-item-name);
    font-family: inherit;
}

.auth-field input:focus {
    border-color: var(--accent);
}

.auth-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.auth-phone-wrap:focus-within {
    border-color: var(--accent);
}

.auth-phone-prefix {
    padding: 9px 0 9px 12px;
    font-size: var(--font-base);
    color: var(--list-item-sub);
    user-select: none;
    flex-shrink: 0;
}

.auth-phone-wrap input[type="tel"] {
    border: none;
    background: transparent;
    padding-left: 6px;
    flex: 1;
    min-width: 0;
}

.auth-phone-wrap input[type="tel"]:focus {
    border-color: transparent;
}

.auth-error {
    font-size: var(--font-xs);
    color: var(--balance-negative);
    min-height: 14px;
}

.auth-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-base);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover:not(:disabled) { opacity: 0.85; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-btn-outline {
    background: transparent;
    color: var(--list-item-name);
    border: 1px solid var(--list-divider);
}

.auth-btn-outline:hover:not(:disabled) { background: var(--glass-bg); opacity: 1; }

.auth-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
    display: none;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-loading .auth-spinner { display: block; }
.auth-loading .auth-btn-label { opacity: 0.7; }

.auth-tabs { display: flex; gap: 8px; }

.auth-tab-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    color: var(--list-item-name);
}

.auth-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: flex; flex-direction: column; gap: 10px; }

.auth-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.auth-radio-item input[type="radio"] {
    accent-color: var(--accent);
    flex-shrink: 0;
}

.auth-radio-label {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--list-item-name);
}

/* ── Role hint (shown when tab selected but no sub-role) */
.auth-role-hint {
    font-size: var(--font-xs);
    color: var(--balance-negative);
    min-height: 14px;
    display: none;
}

.auth-role-hint.visible { display: block; }

/* ── Info button + tooltip ────────────────────── */
.auth-info-btn {
    background: none;
    border: none;
    color: var(--list-item-sub);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
    transition: color 0.15s;
}

.auth-info-btn:hover,
.auth-info-btn:focus { color: var(--accent); }

.auth-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -8px;
    width: 260px;
    background: var(--card-bg);
    color: var(--list-item-name);
    font-size: var(--font-xs);
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--list-divider);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}

.auth-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-top-color: var(--list-divider);
}

.auth-checkbox-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.auth-checkbox-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.auth-checkbox-item span {
    font-size: var(--font-sm);
    color: var(--list-item-name);
}

.auth-checkbox-item a { color: var(--accent); }

.auth-disclaimer {
    font-size: 10px;
    color: var(--list-item-sub);
    line-height: 1.3;
    margin-top: 4px;
    padding-left: 26px;
}

.auth-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--card-bg);
    color: var(--list-item-name);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    max-width: 340px;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 9999;
    pointer-events: none;
    box-shadow: var(--shadow-modal);
}

.auth-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.auth-toast.error {
    background: var(--balance-negative);
    color: #fff;
}

.auth-otp-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.auth-otp-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.auth-otp-modal {
    background: var(--card-bg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 32px 24px 40px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(40px);
    transition: transform 0.25s;
}

.auth-otp-overlay.open .auth-otp-modal { transform: translateY(0); }

.auth-otp-title {
    font-size: var(--font-lg);
    font-weight: 600;
    text-align: center;
    color: var(--list-item-name);
}

.auth-otp-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.auth-otp-cell {
    width: 44px; height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid var(--list-divider);
    border-radius: var(--radius-sm);
    outline: none;
    caret-color: transparent;
    transition: border-color 0.15s;
    background: var(--card-bg);
    color: var(--list-item-name);
    font-family: inherit;
}

.auth-otp-cell:focus { border-color: var(--accent); }
.auth-otp-cell.filled { border-color: var(--accent); }
.auth-otp-cell.error  { border-color: var(--balance-negative); }

.auth-otp-error {
    font-size: var(--font-xs);
    color: var(--balance-negative);
    text-align: center;
    min-height: 16px;
    margin-top: 4px;
}

.auth-otp-actions { display: flex; gap: 10px; }
.auth-otp-actions .auth-btn { flex: 1; }

/* ── Terms modal ──────────────────────────────── */
.auth-terms-overlay {
    position: fixed; inset: 0;
    z-index: 1002;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.auth-terms-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.auth-terms-modal {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-terms-header {
    background: var(--app-bg);
    padding: 16px 24px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--list-divider);
    flex-shrink: 0;
}

.auth-terms-close {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: var(--font-base);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.auth-terms-body {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 24px 28px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    color: var(--list-item-name);
    font-size: var(--font-sm);
    line-height: 1.7;
}

.auth-terms-footer {
    flex-shrink: 0;
    padding: 12px 24px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--list-divider);
    background: var(--app-bg);
}

.auth-terms-body h1 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-terms-body h2 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 24px 0 12px;
}

.auth-terms-body h3 {
    font-size: var(--font-base);
    font-weight: 600;
    margin: 20px 0 8px;
}

.auth-terms-body h4,
.auth-terms-body h5 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin: 16px 0 6px;
}

.auth-terms-body p {
    margin-bottom: 10px;
}

.auth-terms-body ul,
.auth-terms-body ol {
    margin: 8px 0 12px 20px;
}

.auth-terms-body li {
    margin-bottom: 4px;
}

.auth-terms-body a {
    color: var(--accent);
}

.auth-terms-body strong {
    font-weight: 600;
}

.auth-terms-loading {
    text-align: center;
    color: var(--list-item-sub);
    padding: 40px 0;
}

/* =============================================
   Rewards page
   ============================================= */
.rewards-page {
    background: var(--app-bg);
    padding: 0;
}
.rewards-page.active {
    display: flex;
    flex-direction: column;
}

/* Hero */
.rw-hero {
    background: var(--gradient-bg);
    padding: 20px 22px 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.rw-hero-glow {
    position: absolute; top: -40px; right: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: var(--gradient-glow-color);
    filter: blur(50px); pointer-events: none;
}
.rw-title {
    font-size: 26px; font-weight: 700; color: #fff;
    letter-spacing: -0.02em; margin-bottom: 16px;
    position: relative; z-index: 1;
}
.rw-title span { opacity: 0.65; }
.rw-info-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0 0 0 6px;
    cursor: pointer; vertical-align: middle; line-height: 1;
    position: relative; top: -1px;
}
.rw-info-tooltip {
    display: none;
    position: fixed;
    width: 220px;
    background: rgba(20,20,35,0.97); color: rgba(255,255,255,0.85);
    font-size: 12px; line-height: 1.5; padding: 10px 14px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-modal);
    text-align: center; z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}
.rw-info-tooltip.rw-info-tooltip--visible { display: block; }

/* Tab switcher */
.rw-tabs {
    display: flex; padding: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 50px; margin-bottom: 18px;
    position: relative; z-index: 1;
}
.rw-tab {
    flex: 1; padding: 9px 0; border: none; background: none;
    border-radius: 50px; font-size: var(--font-sm); font-weight: 500;
    font-family: inherit; cursor: pointer;
    color: rgba(255,255,255,0.55);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.rw-tab--active {
    background: rgba(255,255,255,0.92); color: #1A1A1A;
    font-weight: 600; box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

/* Stars card */
.rw-stars-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px; padding: 18px 18px 14px;
    position: relative; z-index: 1;
}
.rw-card-label {
    font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 4px;
}
.rw-stars-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.rw-stars-num { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.rw-star-icon  { font-size: 24px; color: #FFD580; }
.rw-card-sub   { font-size: var(--font-sm); color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.rw-progress-label {
    display: flex; justify-content: space-between; margin-bottom: 6px;
    font-size: 11px; color: rgba(255,255,255,0.65);
}
.rw-progress-pct { color: #FFD580; font-weight: 700; }
.rw-progress-track {
    height: 5px; background: rgba(255,255,255,0.18);
    border-radius: 99px; overflow: hidden;
}
.rw-progress-fill {
    height: 100%; background: linear-gradient(90deg,#FFD580,#FFAA40);
    border-radius: 99px; position: relative;
    transition: width 0.6s ease;
}
.rw-progress-fill::after {
    content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%;
    background: #FFD580; box-shadow: 0 0 5px #FFD580;
}
.rw-milestones {
    display: flex; justify-content: space-between; margin-top: 8px;
}
.rw-milestone { font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }
.rw-milestone--done { color: #FFD580; font-weight: 600; }

/* Body */
.rw-body {
    flex: 1; padding: 22px 22px 110px;
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    margin-top: -2px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.rw-section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 14px;
}
.rw-section-title { font-size: var(--font-xl); font-weight: 700; color: var(--list-item-name); letter-spacing: -0.01em; }
.rw-section-sub   { font-size: var(--font-sm); color: var(--list-item-sub); }

/* Tier cards */
.rw-tiers { display: flex; flex-direction: column; gap: 10px; }
.rw-tier {
    background: var(--list-bg); border-radius: 16px;
    display: flex; align-items: center;
    padding: 14px; gap: 13px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.rw-tier--unlocked { border: 1.5px solid rgba(255,213,128,0.25); }
.rw-tier--locked   { opacity: 0.6; }
.rw-tier-badge {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.rw-tier-badge--accent { background: var(--accent-bg); }
.rw-tier-badge--dim    { background: rgba(0,0,0,0.05); }
.rw-tier-info { flex: 1; min-width: 0; }
.rw-tier-name { font-size: var(--font-base); font-weight: 600; color: var(--list-item-name); }
.rw-tier-desc { font-size: 11px; color: var(--list-item-sub); margin-top: 2px; }
.rw-tier-lock { color: var(--list-item-sub); font-size: 16px; flex-shrink: 0; }
.rw-coming-soon {
    position: absolute; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; padding-right: 14px;
}
.rw-coming-tag {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #fff;
    background: var(--list-item-sub); border-radius: 8px; padding: 3px 7px;
}

/* Dev screen */
.rw-dev-screen {
    flex: 1; padding: 40px 32px 110px;
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    margin-top: -2px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.rw-dev-icon {
    width: 72px; height: 72px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; margin-bottom: 20px;
    background: var(--accent-bg);
}
.rw-dev-title { font-size: var(--font-xl); font-weight: 700; color: var(--list-item-name); margin-bottom: 8px; letter-spacing: -0.01em; }
.rw-dev-sub   { font-size: var(--font-base); color: var(--list-item-sub); line-height: 1.5; white-space: pre-line; }
.rw-dev-badge {
    margin-top: 24px; padding: 8px 18px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #fff;
    background: var(--accent);
}
