@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url('fonts/Manrope-var-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400 800; font-display: swap; src: url('fonts/Manrope-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+20BD,U+2122,U+2212; }
/*
 * Kedr Camp Loyalty — Personal Cabinet
 * 3 tier themes via CSS custom properties
 * Brand: Terracotta , Deep Forest , Cloud White , Sage , Gold
 */

/* ── Base variables ─────────────────────────────────────────────────── */

:root {
    --tier-guest-accent: #6B8E63;
    --tier-friend-accent: #B8860B;
    --tier-family-accent: #2E4A2E;
    --tier-guest-tint: #EDF2EB;
    --tier-friend-tint: #F7F0DE;
    --tier-family-tint: #E8ECE5;
    --tier-accent: var(--tier-guest-accent);
    --tier-tint: var(--tier-guest-tint);
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-18: 18px;
    --space-24: 24px;
    --space-32: 32px;
    --radius-0: 0;
    --radius-2: 2px;
    --radius-4: 4px;
    --radius-6: 6px;
    --radius-pill: 999px;
    --bg: var(--page);
    --surface-1: var(--surface);
    --surface-2: var(--action-tint);
    --ink: #2C2C2C;
    --ink-60: var(--muted);
    --ink-40: var(--muted);
    --ink-12: var(--line);
    --ink-06: var(--line);
    --accent-primary: var(--action);
    --accent-warm: var(--control-line);
    --accent-warm-30: var(--line);
    --accent-warm-15: var(--action-tint);
    --accent-cool: var(--action);
    --accent-deep: var(--action);
    --gold: var(--action);
    --cta: var(--action);
    --cta-press: var(--action-press);
    --success: #4F7A45;
    --warning: #8F5D1A;
    --danger: #A24A3F;
    --info: #4D6F7A;
    --shadow-none: none;
    --ring-focus: var(--focus-ring);
    --motion-fast: 120ms;
    --motion-base: 200ms;
    --motion-emph: 320ms;
    --motion-still: 0ms;
    --ease-default: cubic-bezier(.2,.8,.2,1);
    --ease-emph: cubic-bezier(.16,1,.3,1);
    --font-body: var(--font);
    --font-serif: var(--font);
    --bg-primary: var(--bg);
    --bg-card: var(--surface-1);
    --bg-card-hover: var(--surface-2);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-60);
    --text-tertiary: var(--ink-40);
    --text-hint: var(--ink-60);
    --accent: var(--action);
    --accent-light: var(--action-tint);
    --accent-soft: var(--action-tint);
    --accent-border: var(--line);
    --balance-color: var(--action);
    --balance-sub: var(--ink-60);
    --hero-bg: var(--surface-1);
    --hero-border: var(--ink-12);
    --tier-gradient: var(--accent-deep);
    --tier-glow: transparent;
    --progress-fill: var(--accent-cool);
    --btn-primary-bg: var(--cta);
    --btn-primary-color: var(--on-action);
    --btn-secondary-border: var(--accent-warm);
    --btn-secondary-text: var(--accent-deep);
    --card-bg: var(--surface-1);
    --earn-color: var(--accent-cool);
    --earn-icon-bg: var(--accent-warm-15);
    --earn-btn-bg: var(--accent-warm-15);
    --badge-bg: var(--accent-warm-15);
    --badge-border: var(--accent-warm);
    --positive: var(--success);
    --negative: var(--danger);
    --logo-stroke: var(--brand);
    --logo-fill: var(--brand);
    --logo-text: var(--action);
    --radius: var(--radius-6);
    --radius-sm: var(--radius-6);
    --transition: 200ms cubic-bezier(.2,.8,.2,1);
    --font-display: var(--font);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1160px;
    --overlay: rgba(44, 44, 44, .45);
    --bg-input: var(--surface-2);
    --bg-divider: var(--ink-06);
    --bg-tab-bar: var(--surface-1);
    --status-success: var(--success);
    --status-danger: var(--danger);
    --status-warning: var(--warning);
    --tab-inactive: var(--ink-40);
    --tab-active: var(--accent-deep);
    --r-card: var(--radius-6);
    --r-btn: var(--radius-6);
    --r-input: var(--radius-6);
    --r-badge: var(--radius-6);
    --r-tag: var(--radius-4);
    --r-progress: var(--radius-2);
    --tg-bg: var(--bg);
    --cloud-white: var(--ink);
    --page: #F1F0EC;
    --surface: #FFFFFF;
    --muted: #5E5C57;
    --line: #E2E0DA;
    --control-line: #CFCCC4;
    --track: #E4E2DC;
    --action: #2E4A2E;
    --action-press: #223823;
    --action-tint: #E8ECE5;
    --brand: #C4956A;
    --nature: #6B8E63;
    --warning-tint: #F5EBDD;
    --danger-tint: #F6E7E4;
    --info-tint: #E6EDEF;
    --on-action: #FFFFFF;
    --text-title: 26px;
    --text-hero: 46px;
    --text-body: 15px;
    --text-small: 13px;
    --text-caption: 12px;
    --text-strong: 16px;
    --control-height: 48px;
    --rail-width: 248px;
    --content-max: 1160px;
    --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--action);
    --space-1: 4px;
    --space-3: 12px;
    --space-5: 20px;
    --radius-label: 4px;
    --control-height-compact: 44px;
    --icon: 24px;
    --icon-row: 22px;
    --icon-button: 20px;
    --icon-link: 18px;
    --icon-label: 15px;
}

/* Legacy class themes — kept for backward compat, overridden by applyTierTheme() */
.theme-guest {}
.theme-friend {}
.theme-family {}

/* Fixed brand header — visible on every tab, sticks below Telegram header */
.brand-header-fixed {
    position: sticky;
    top: 0;
    z-index: 9;
    text-align: center;
    padding: 14px 0 6px;
    background: var(--bg);
    font: 13px/1 var(--font-display);
    color: var(--gold);
    letter-spacing: 0.2px;
}

/* Tier logo — Кедр Кэмп shield-patch, без круглой рамки (рельефная нашивка) */
.tier-logo {
    display: block;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-top .tier-card-body { margin-bottom: 0; }
.hero-top .member-name { margin-top: 0; }

/* ── Reset & base ───────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 16px;
    padding-bottom: 32px;
    -webkit-font-smoothing: antialiased;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── Loading ────────────────────────────────────────────────────── */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-secondary, var(--muted));
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top-color: var(--accent, var(--accent-cool));
    border-radius: var(--radius-pill);
    animation: none;
    margin-bottom: 16px;
}

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

/* ── Brand logo ────────────────────────────────────────────────── */

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Кедр Кэмп shield-patch — без круглой рамки и фона, чтобы был виден рельеф нашивки */
.brand-logo-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.brand-logo-img.small {
    width: 140px;
    height: 140px;
}

.brand-mark {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--accent, var(--accent-cool));
    text-transform: none;
    text-align: center;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* ── Empty/error states ─────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state h2 {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary, var(--muted));
    font-size: 13px;
    line-height: 1.6;
}

.empty-state .empty-hint {
    margin-top: 18px;
    font-size: 12px;
    opacity: 0.6;
}

/* ── Browser login screen ──────────────────────────────────────── */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 24px;
}

.login-card {
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.login-title {
    font-family: var(--font);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary, var(--ink));
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary, var(--muted));
    margin-bottom: 32px;
}

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

.login-input {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--line);
    color: var(--text-primary, var(--surface-1));
    font-family: var(--font);
    font-size: 16px;
    text-align: center;
    letter-spacing: 1.5px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.login-input:focus {
    border-color: var(--accent, var(--accent-cool));
    background: var(--line);
}

.login-input::placeholder {
    color: var(--text-secondary, var(--muted));
    letter-spacing: 0;
    font-size: 15px;
}

.login-button {
    padding: 14px;
    border-radius: var(--radius);
    border: none;
    background: var(--accent, var(--accent-cool));
    color: var(--surface-1);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.login-button:active {
    opacity: 0.85;
    transform: scale(0.98);
}

.login-hint {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary, var(--muted));
    line-height: 1.5;
}

.login-hint strong {
    color: var(--text-primary, var(--control-line));
}

.login-hint a {
    color: var(--accent, var(--accent-cool));
    text-decoration: none;
    font-weight: 500;
}

/* ── Tier card → hero (variant C) ────────────────────────────────── */

.tier-card {
    background: var(--surface-1);
    border: 1px solid var(--ink-12);
    border-radius: var(--r-card);
    padding: 16px;
    margin: 10px 0;
    position: relative;
}

.tier-card::before { content: none; }

.tier-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.tier-card-logo { display: none; }
.tier-card-brand { display: none; }

.tier-card-body {
    margin-bottom: 0;
    flex: 1;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: var(--action-tint);
    border: 1px solid var(--accent-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-deep);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.member-name {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
}

.tier-name {
    font-family: var(--font);
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.2px;
    color: var(--gold);
    margin-top: 2px;
}

.tier-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--ink-06);
}

.points-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.points-value {
    font-family: var(--font);
    font-style: normal;
    font-size: 24px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0;
}

.points-unit {
    font: 400 13px/1.45 var(--font-body);
    font-style: normal;
    color: var(--ink-60);
}

.points-earned {
    font-size: 13px;
    color: var(--ink-60);
    text-align: right;
    align-self: flex-end;
    margin-left: 0;
}
.points-earned b { color: var(--ink); font-weight: 500; }

/* tier-info-btn — унификация с .info-icon (SVG #kedr-info уже кружок, внешний border не нужен) */
.tier-info-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink-60);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.tier-info-btn svg { width: 16px; height: 16px; display: block; }
.tier-info-btn:active { opacity: 0.7; }

/* ── Card borders (premium touch) ──────────────────────────────── */

.progress-bars,
.benefit-card,
.stat-card,
.rewards-list,
.history-list,
.history-full,
.referral-card,
.promo-card,
.weather-card,
.house-section,
.booking-card,
.badge-card,
.reward-card {
    border: 1px solid var(--line);
}

/* ── Sections ───────────────────────────────────────────────────── */

.section {
    margin-bottom: 16px;
}

.section-title {
    font: 500 13px/1.45 var(--font-body);
    color: var(--ink-60);
    text-transform: none;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    padding: 0 2px 8px;
    border-bottom: 1px solid var(--ink-06);
}

/* ── Progress bars (variant C) ──────────────────────────────────── */

.progress-bars {
    background: var(--surface-1);
    border: 1px solid var(--ink-12);
    border-radius: var(--r-card);
    padding: 14px;
}

/* Progress-section inside hero: no own bg, just top margin */
#progress-section.progress-section,
.tier-card #progress-section {
    margin-top: 14px;
    padding: 0;
    background: none;
    border: 0;
}

.progress-item {
    margin-bottom: 10px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--ink-60);
}
.progress-label .progress-target { color: var(--ink-60); }
#progress-main-text { color: var(--ink); font-weight: 500; }

.progress-bar {
    height: 6px;
    background: var(--ink-06);
    border-radius: var(--r-progress);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--r-progress);
    transition: width 0.6s ease;
    min-width: 2px;
}

.progress-hint {
    font-size: 13px;
    color: var(--ink-60);
    text-align: center;
    margin-top: 8px;
    opacity: 1;
}

/* ── Max tier badge ─────────────────────────────────────────────── */

.max-tier-badge {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.max-tier-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: var(--accent);
}

.max-tier-badge p {
    color: var(--accent);
    font-weight: 500;
}

/* ── Benefits grid ──────────────────────────────────────────────── */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    margin: 0 auto 8px;
    color: var(--accent);
}

.benefit-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.benefit-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Stats grid (variant C) ─────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-card {
    background: var(--surface-1);
    border: 1px solid var(--ink-12);
    border-radius: var(--r-card);
    padding: 12px 8px;
    text-align: center;
}

.stat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cool);
    margin: 0 auto 4px;
}
.stat-icon svg { width: 16px; height: 16px; }

.stat-value {
    font: 500 16px/1 var(--font-body);
    color: var(--ink);
}

.stat-label {
    font: 500 13px/1.45 var(--font-body);
    text-transform: none;
    letter-spacing: 0.4px;
    color: var(--ink-60);
    margin-top: 2px;
}

/* ── Rewards list ───────────────────────────────────────────────── */

.rewards-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft, var(--line));
}

.reward-item:last-child {
    border-bottom: none;
}

.reward-item:not(.affordable) {
    opacity: 0.75;
}

.reward-item.affordable {
    opacity: 1;
}

.reward-name {
    font: 400 16px/1.3 var(--font-display);
    color: var(--text-primary);
}

.reward-desc {
    font: 13px/1.4 var(--font-display);
    color: var(--text-secondary);
    margin-top: 4px;
}

.reward-cost {
    font: 700 16px/1 var(--font-display);
    color: var(--balance-color, var(--accent-primary));
    white-space: nowrap;
    margin-left: 12px;
}

/* ── History list ───────────────────────────────────────────────── */

.history-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.history-item:last-child {
    border-bottom: none;
}

.history-desc {
    font: 400 15px/1.3 var(--font-body);
    color: var(--text-primary);
}

.book-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: var(--accent, var(--gold));
    color: var(--surface-1);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-6);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--motion-fast) var(--ease-default);
    /* shadow removed (SSOT plat) */
}
.book-cta-btn:hover { transform: translateY(-1px); /* shadow removed (SSOT plat) */ }
.book-cta-btn:active { transform: translateY(0); }
.book-cta-btn svg { stroke: var(--surface-1); }

/* ── Earn points (activity claims) ────────────────────────────────────── */

.earn-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.earn-type-card:hover { background: var(--bg-card-hover); }
.earn-type-icon {
    width: 24px;
    font-size: 18px;
    text-align: center;
    margin-right: 12px;
    flex-shrink: 0;
    /* inline icon, no background */
}
.earn-type-info { flex: 1; }
.earn-type-name { font: 400 15px/1.3 var(--font-body); color: var(--text-primary); }
.earn-type-desc { font: 300 13px/1.45 var(--font-body); color: var(--text-hint, var(--muted)); margin-top: 2px; }
.earn-type-points {
    font: 700 15px/1 var(--font-body);
    color: var(--earn-color, var(--accent));
    white-space: nowrap;
}

/* Activity claim bottom sheet */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sheet-panel {
    width: 100%;
    max-width: var(--max-width);
    background: var(--bg-card);
    border-radius: var(--radius-6) var(--radius-6) 0 0;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}
.sheet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.sheet-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
}
.activity-points-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: var(--radius-6);
    margin-bottom: 12px;
}
.activity-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}
.activity-review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}
.activity-review-link:hover { opacity: 0.8; }
.activity-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.activity-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-card-hover);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 14px;
    outline: none;
    box-sizing: border-box;
}
.activity-input:focus { border-color: var(--accent); }
.activity-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.activity-note {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}
.activity-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
}
.activity-result.success { background: var(--line); color: var(--accent-cool); }
.activity-result.error { background: var(--line); color: var(--danger); }

.history-booking {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.history-date {
    font: 300 13px/1.45 var(--font-body);
    color: var(--text-hint, var(--muted));
    margin-top: 2px;
}

.history-amount {
    font: 700 16px/1 var(--font-display);
    white-space: nowrap;
    margin-left: 12px;
}

.history-amount.positive {
    color: var(--positive);
}

.history-amount.negative {
    color: var(--negative);
}

/* ── Referral card ──────────────────────────────────────────────── */

.referral-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.referral-compact { padding: 12px 16px; text-align: left; }
.referral-compact .referral-code-row {
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.referral-compact .btn-sm { padding: 6px 8px; min-height: auto; }

.referral-code-row {
    margin-bottom: 6px;
}

.referral-code-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.referral-code-value {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 8px;
    white-space: nowrap;
}

.referral-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 8px 0 12px;
}

.referral-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.referral-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:active {
    background: var(--accent-soft);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Section link ("Все →") ──────────────────────────────────────── */

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-link {
    font: 400 13px/1.45 var(--font-body);
    color: var(--accent);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* ── Legal footer ──────────────────────────────────────────────── */

.legal-footer {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--line);
    z-index: 99;
}
.legal-footer a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    opacity: 0.7;
}
.legal-footer a:hover { opacity: 1; }
.legal-dot { color: var(--text-secondary); opacity: 0.7; font-size: 13px; }

/* ── Bottom navigation (variant C) ──────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--surface-1);
    border-top: 1px solid var(--ink-12);
    padding: 8px 0 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    background: none;
    border: none;
    color: var(--ink-40);
    cursor: pointer;
    transition: color var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.nav-btn.active {
    color: var(--accent-deep);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 13px;
    font-weight: 500;
}

/* Add bottom padding for nav bar */
body {
    padding-bottom: 80px !important;
}

/* ── Tab header ─────────────────────────────────────────────────── */

.tab-header {
    margin-bottom: 16px;
}

.tab-header h2 {
    font: 400 22px/1.2 var(--font-display);
    color: var(--text-primary);
}

.tab-subtitle {
    font: 300 13px/1 var(--font-body);
    color: var(--text-tertiary, var(--muted));
    margin-top: 4px;
}

/* ── Filter bar ─────────────────────────────────────────────────── */

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--control-line);
    background: transparent;
    color: var(--text-hint, var(--accent-deep));
    font: 400 13px/1.45 var(--font-body);
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--surface-1);
    border-color: var(--accent);
}

/* ── Rewards catalog (full page) ────────────────────────────────── */

.catalog-section {
    margin-bottom: 20px;
}

.catalog-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reward-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.reward-card.affordable {
    opacity: 1;
    border-left: 3px solid var(--accent);
}

.reward-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.reward-cost-badge {
    font: 700 16px/1 var(--font-display);
    color: var(--balance-color, var(--accent-primary));
    white-space: nowrap;
}

.reward-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reward-tag {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: var(--radius-6);
    background: var(--accent-soft);
    color: var(--accent);
}

.reward-tag.dimmed {
    background: var(--line);
    color: var(--text-secondary);
}

.reward-order-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--surface-1);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.reward-order-btn:active { background: var(--accent-hover); }
/* Унифицированный цвет — все «Заказать» одинаково, независимо от типа оплаты.
   Было три разных оттенка (.partial зелёный, .cash коричневый) — путало гостей. */
.reward-order-btn.partial,
.reward-order-btn.cash { background: var(--accent-deep); }
.reward-order-btn:disabled {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--ink-12);
    cursor: default;
}

.reward-phone {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Reward order confirmation panel */
.reward-confirm-panel {
    margin-top: 12px;
    padding: 16px;
    background: var(--action-tint);
    border-radius: var(--radius);
    border: 1px solid var(--accent-soft);
}
.rcp-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.rcp-name {
    font-size: 15px;
    margin-bottom: 8px;
}
.rcp-payment {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 14px;
    line-height: 1.6;
}
.rcp-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rcp-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.rcp-confirm {
    background: var(--accent);
    color: var(--surface-1);
}
.rcp-confirm:active { background: var(--accent-hover); }
.rcp-cancel {
    background: var(--line);
    color: var(--text-secondary);
}
.rcp-cancel:active { background: var(--line); }
.rcp-status {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.rcp-status.success { color: var(--accent); }
.rcp-status.error { color: var(--danger); }

/* ── Reviews tab cards ─────────────────────────────────────────── */

.review-type-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.rtc-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rtc-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.rtc-info { flex: 1; }
.rtc-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.rtc-hint {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.rtc-points {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    white-space: nowrap;
}
.rtc-link {
    display: block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
}
.rtc-link:active { opacity: 0.7; }
.rtc-claim-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.rtc-claim-btn:active { background: var(--accent-soft); }

/* Activity platform sections inside sheet */
.activity-platform {
    padding: 14px;
    background: var(--line);
    border-radius: var(--radius-6);
    margin-bottom: 10px;
}
.activity-platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.activity-platform-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--cloud-white, var(--bg));
}
.activity-platform-link {
    color: var(--accent, var(--accent-cool));
    font-size: 13px;
    text-decoration: none;
}
.activity-platform .activity-input {
    margin-bottom: 8px;
}
.activity-platform .activity-submit {
    width: 100%;
    margin-bottom: 0;
}
.activity-platform .activity-result {
    margin-top: 6px;
}

/* Platform buttons row */
.rtc-platforms {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.rtc-platform-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: var(--accent-soft, var(--line));
    color: var(--accent, var(--accent-cool));
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}
.rtc-platform-btn:active { opacity: 0.7; }
.rtc-actions {
    display: flex;
    gap: 8px;
}
.rtc-claim-sm {
    flex: 1;
    width: auto;
    font-size: 12px;
    padding: 8px 6px;
}

/* ── History full page ──────────────────────────────────────────── */

.history-full {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.history-full .history-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.history-full .history-item:last-child {
    border-bottom: none;
}

.history-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    flex-shrink: 0;
}
/* Emoji-based history icons (earn = green, burn = red) */
.hi-emoji {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.hi-earn {
    background: var(--line);
}
.hi-burn {
    background: var(--line);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.btn-load-more {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--bg-card);
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.btn-load-more:active {
    opacity: 0.7;
}

/* ── Weather widget ─────────────────────────────────────────────── */

.weather-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.weather-icon { font-size: 32px; }
.weather-temp { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.weather-desc { font-size: 13px; color: var(--text-secondary); }

.weather-forecast {
    display: flex;
    gap: 8px;
}

.forecast-day {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
}

.forecast-name { font-size: 13px; color: var(--text-secondary); text-transform: capitalize; }
.forecast-icon { font-size: 20px; margin: 4px 0; }
.forecast-temps { font-size: 12px; color: var(--text-primary); }

/* ── Benefits hint ────────────────────────────────────────────── */

.benefits-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
}

/* ── Directions ───────────────────────────────────────────────── */

.directions-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.directions-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.directions-address svg {
    flex-shrink: 0;
    color: var(--accent);
}

.directions-buttons {
    display: flex;
    gap: 10px;
}

.btn-direction {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.15s;
}

.btn-direction:active {
    opacity: 0.7;
}

/* ── Booking wizard ────────────────────────────────────────────── */

.booking-wizard { margin-bottom: 20px; }

.bw-step { display: none; }
.bw-step.active { display: block; }

.bw-form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--line);
}

.bw-field { margin-bottom: 14px; }
.bw-field label {
    display: block;
    font: 300 13px/1.45 var(--font-body);
    color: var(--text-tertiary, var(--muted));
    margin-bottom: 6px;
}

.bw-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
}
.bw-input:focus { border-color: var(--accent); }

.bw-btn {
    width: 100%;
    margin-top: 4px;
    padding: 14px;
}
.bw-btn.bw-btn-secondary {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 1px solid var(--btn-primary-bg);
    margin-top: 8px;
}
.bw-btn.bw-btn-secondary:active { background: var(--line); }

.bw-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--line);
    color: var(--danger);
    font-size: 13px;
}

.bw-rooms { display: flex; flex-direction: column; gap: 10px; }

.bw-room-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bw-room-card:active { border-color: var(--accent); }
.bw-room-card.unavailable { opacity: 0.4; pointer-events: none; }

.bw-room-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.bw-room-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.bw-room-detail { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.bw-room-unavail { font-size: 13px; color: var(--negative); }

.bw-summary {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.8;
}

.bw-total {
    margin-top: 10px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.bw-balance-badge {
    margin-top: 8px;
    padding: 8px 14px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.bw-points-row {
    display: flex;
    gap: 8px;
}
.bw-points-row .bw-input { flex: 1; }

.bw-all-points-btn {
    padding: 12px 18px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.bw-all-points-btn:active { opacity: 0.7; }

.bw-back {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
}

/* ── Bookings ──────────────────────────────────────────────────── */

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: background var(--transition);
}

.booking-card:active {
    background: var(--bg-card-hover);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.booking-house {
    font: 700 15px/1 var(--font-body);
    color: var(--text-primary);
}

.booking-status {
    font: 700 13px/1.45 var(--font-body);
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.status-active { background: var(--action-tint); color: var(--accent-cool); }
.status-upcoming { background: var(--action-tint); color: var(--gold); }
.status-past { background: var(--line); color: var(--text-secondary); }

.booking-dates {
    font: 300 13px/1.45 var(--font-body);
    color: var(--text-tertiary, var(--muted));
    margin-bottom: 4px;
}

.booking-nights {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 8px;
}

.booking-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── Badges ─────────────────────────────────────────────────────── */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.badge-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    transition: transform var(--transition);
}

.badge-card.earned {
    border: 1px solid var(--accent-soft);
}

.badge-card.locked {
    opacity: 0.5;
}

.badge-icon {
    margin-bottom: 8px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* fallback для unicode emoji */
}
.badge-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.badge-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.3; }
.badge-date { font-size: 13px; color: var(--accent); margin-top: 6px; }

/* Badge preview (cabinet) */
.badges-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-mini {
    font-size: 24px;
    opacity: 0.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
}

.badge-mini.earned {
    opacity: 1;
}

.badge-mini img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.badge-mini-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* ── House info ────────────────────────────────────────────────── */

.house-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.house-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
}

.house-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.house-amenity {
    font-size: 13px;
    color: var(--text-primary);
    padding: 4px 0;
}

.house-instruction {
    margin-bottom: 14px;
}

.house-instruction:last-child {
    margin-bottom: 0;
}

.instr-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.instr-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Promo code ────────────────────────────────────────────────── */

.promo-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.promo-input-row {
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-card-hover);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    text-transform: none;
    letter-spacing: 1px;
}

.promo-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.btn-promo {
    padding: 10px 16px;
    background: var(--accent);
    color: var(--surface-1);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--transition);
}

.btn-promo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promo-result {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.promo-loading { background: var(--line); color: var(--text-secondary); }
.promo-success { background: var(--line); color: var(--accent-cool); }
.promo-error { background: var(--line); color: var(--accent-primary); }

/* ── Tab loader ─────────────────────────────────────────────────── */

.tab-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    opacity: 0.5;
}

/* (login-brand moved to .brand-mark above) */

/* ── Primary button ────────────────────────────────────────────── */

.btn-primary {
    display: inline-block;
    padding: 14px 24px;
    margin-top: 12px;
    background: var(--btn-primary-bg, var(--accent));
    color: var(--btn-primary-color, var(--bg));
    border-radius: var(--r-btn, 12px);
    font: 700 15px/1 var(--font-body);
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ── About-sheet sections (INFO.about) ──────────────────────────── */

.about-section {
    margin: 16px 0;
    padding: 12px 14px;
    background: var(--line);
    border-left: 3px solid var(--accent-deep);
    border-radius: 6px;
}
.about-section h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--accent-deep);
}
.about-section ul { padding-left: 20px; margin: 4px 0; }
.about-section li { margin: 3px 0; font-size: 14px; line-height: 1.45; }
.about-section p { margin: 6px 0; font-size: 14px; line-height: 1.5; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 360px) {
    body { padding: 12px; padding-bottom: 80px !important; }
    .tier-card { padding: 16px 14px; }
    .points-value { font-size: 32px; }
    .member-name { font-size: 20px; }
    .benefits-grid { gap: 6px; }
    .benefit-card { padding: 10px 6px; }
    .filter-btn { padding: 6px 12px; }
    .badges-grid { grid-template-columns: 1fr; }
    .weather-forecast { gap: 4px; }
    .forecast-day { padding: 6px 2px; }
    .nav-label { font-size: 13px; }
    .login-title { font-size: 20px; }
}

/* Desktop: center content, limit width, add breathing room */
@media (min-width: 600px) {
    body {
        padding: 24px 32px;
        padding-bottom: 90px !important;
    }
    .bottom-nav {
        max-width: var(--max-width);
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-6) var(--radius-6) 0 0;
    }
    .tier-card { padding: 24px; }
    .points-value { font-size: 38px; }
    .member-name { font-size: 32px; }
    .login-title { font-size: 38px; }
    .onboard-overlay { padding: 60px 40px; }
    .onboard-title { font-size: 20px; }
    .onboard-emoji { font-size: 64px; }
}

/* ── Info icons ────────────────────────────────────────────────── */

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    /* Reset for <button class="info-icon"> — keep visual identical to <span> */
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: 0;
}

.info-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.info-icon:active { opacity: 0.8; }
.info-icon:focus { outline: none; }
.info-icon:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-pill);
}

/* ── Bottom sheet ──────────────────────────────────────────────── */

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: var(--line);
    z-index: 100;
    transition: background 0.3s ease;
}

.sheet-overlay.active {
    background: var(--overlay);
}

.sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-6) var(--radius-6) 0 0;
    padding: 12px 20px 32px;
    max-height: 65vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.sheet-overlay.active .sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 2px;
    margin: 0 auto 16px;
    opacity: 0.35;
}

.sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sheet-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sheet-body p { margin: 0 0 10px; }
.sheet-body p:last-child { margin-bottom: 0; }

.sheet-body .sheet-example {
    background: var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 13px;
}

.sheet-body .sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.sheet-body .sheet-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--line);
}

.sheet-body .sheet-table td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--line);
}

.sheet-body .sheet-table tr:last-child td {
    border-bottom: none;
    color: var(--accent);
}

.sheet-body .sheet-steps {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    counter-reset: step;
}

.sheet-body .sheet-steps li {
    counter-increment: step;
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 13px;
}

.sheet-body .sheet-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--surface-1);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Inline hints ──────────────────────────────────────────────── */

.section-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}

/* ── Onboarding ────────────────────────────────────────────────── */

.onboard-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.onboard-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 300px;
}

.onboard-slide.active { display: flex; }

.onboard-emoji { font-size: 56px; margin-bottom: 8px; }

.onboard-logo { margin-bottom: 8px; }
.onboard-logo-img { width: 100px; height: 84px; object-fit: contain; }

.onboard-title {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.onboard-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.onboard-dots {
    display: flex;
    gap: 8px;
    margin: 32px 0 24px;
}

.onboard-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--text-secondary);
    opacity: 0.3;
    transition: opacity 0.2s, background 0.2s;
}

.onboard-dot.active {
    opacity: 1;
    background: var(--accent);
}

.onboard-btn {
    padding: 14px 48px;
    background: var(--accent);
    color: var(--surface-1);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.onboard-btn:active { opacity: 0.8; }

.onboard-skip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    font-family: var(--font);
}

/* ═══ CTA (variant C) ═══ */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 10px;
}
.quick-action-btn {
    background: var(--cta);
    border: 0;
    border-radius: var(--radius-6);
    height: 46px;
    padding: 0 14px;
    color: var(--surface-1);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--motion-fast) var(--ease-default), transform var(--motion-fast) var(--ease-default);
    -webkit-tap-highlight-color: transparent;
}
.quick-action-btn:active { transform: scale(0.97); background: var(--cta-press); }
.quick-action-btn.secondary {
    background: transparent;
    border: 1px solid var(--accent-deep);
    color: var(--accent-deep);
}

/* ═══ Tier strip (variant C) ═══ */
.tier-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 12px;
}
.tier-mini {
    border-radius: var(--r-card);
    padding: 10px 6px 12px;
    text-align: center;
    border: 1px solid var(--ink-12);
    position: relative;
    cursor: pointer;
}
.tier-mini.guest  { background: var(--action-tint); border-color: var(--accent-warm-30); }
.tier-mini.friend { background: var(--action-tint); border-color: var(--accent-warm); }
.tier-mini.family { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--surface-1); }
.tier-mini:not(.current) { opacity: 0.5; }
.tier-mini.current { outline: 2px solid var(--gold); outline-offset: -2px; }
.tier-mini.current::before {
    content: "Ваш уровень";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--surface-1);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: var(--radius-6);
    white-space: nowrap;
    text-transform: none;
    line-height: 1.2;
    /* shadow removed (SSOT plat) */
}
.tier-mini .name {
    font-size: 13px;
    color: var(--ink-60);
    text-transform: none;
    letter-spacing: 0.4px;
    font-weight: 500;
}
.tier-mini.family .name { color: var(--overlay); }
.tier-mini .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    margin-right: 4px;
    vertical-align: 1px;
}
.tier-mini.guest  .dot { background: var(--accent-cool); }
.tier-mini.friend .dot { background: var(--gold); }
.tier-mini.family .dot { background: var(--gold); }
.tier-mini .pct {
    font-size: 18px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1;
    color: var(--ink);
}
.tier-mini.family .pct { color: var(--gold); }
.tier-mini .lab {
    font-size: 13px;
    color: var(--ink-60);
    margin-top: 2px;
}
.tier-mini.family .lab { color: var(--overlay); }

/* ── Как копить и тратить (3 строки, кабинет) ──────────────────── */
.howto-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.howto-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.howto-line b { color: var(--text-primary); font-weight: 600; }
.howto-icon { flex: 0 0 auto; width: 18px; text-align: center; }

/* ═══ Phase 3: Expiry Warning ═══ */
.expiry-warning {
    background: var(--line);
    border-left: 3px solid var(--warning);
    border-radius: 0 8px 8px 0;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--warning);
}

/* ═══ Phase 3: Compact Weather ═══ */
.weather-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card, var(--action-tint));
    border-radius: var(--radius-6);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary, var(--ink-40));
    -webkit-tap-highlight-color: transparent;
}
.weather-compact .weather-icon { font-size: 18px; }
.weather-compact-text { flex: 1; display: flex; gap: 4px; align-items: center; }
.weather-tomorrow { color: var(--text-tertiary, var(--muted)); font-size: 12px; }
.weather-expand-icon { color: var(--text-tertiary, var(--muted)); font-size: 13px; }
.weather-forecast-full {
    display: flex;
    gap: 8px;
    padding: 12px 0 0;
    overflow-x: auto;
}

/* ═══ Phase 3: Profile Tab ═══ */
.profile-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    background: var(--bg-card, var(--action-tint));
    margin: 12px 16px 16px;
    border-radius: var(--radius-6);
}
.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: var(--accent-light, var(--line));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--cloud-white, var(--bg));
}
.profile-tier-line {
    font-size: 13px;
    color: var(--text-secondary, var(--ink-40));
    margin-top: 2px;
}
.profile-streak {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 8px 16px 0;
    background: var(--line);
    border-radius: var(--radius-6);
    font-size: 13px;
    color: var(--warning);
}
.streak-fire { font-size: 16px; }

/* Profile badges horizontal scroll */
.profile-badges-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.profile-badges-scroll::-webkit-scrollbar { display: none; }
.badge-item {
    width: 56px;
    text-align: center;
    flex-shrink: 0;
}
.badge-item .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-6);
    background: var(--accent-light, var(--line));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 4px;
}
.badge-item .badge-icon.locked {
    opacity: 0.25;
    filter: grayscale(100%);
}
.badge-item .badge-icon.earned {
    background: var(--action-tint);
    border: 1px solid var(--accent, var(--accent-cool));
}
.badge-item .badge-name {
    font: 400 13px/1.45 var(--font-body);
    color: var(--text-tertiary, var(--muted));
}

.badges-quote {
    font: 13px/1.3 var(--font-display);
    color: var(--balance-color, var(--accent-primary));
    text-align: center;
    margin-bottom: 12px;
}

/* Profile privileges card */
.profile-privs-card {
    padding: 12px 16px;
    background: var(--bg-card, var(--action-tint));
    border-radius: var(--radius-6);
}
.privs-current {
    font-size: 13px;
    color: var(--cloud-white, var(--bg));
    line-height: 1.5;
}
.privs-next {
    font-size: 12px;
    color: var(--accent, var(--accent-cool));
    margin-top: 8px;
}

/* Profile divider */
.profile-divider {
    height: 8px;
    background: var(--action-tint);
    margin: 16px 0;
}

/* Birthday date picker */
.birthday-hint {
    font-size: 13px;
    color: var(--text-secondary, var(--ink-40));
    margin: 0 0 12px;
    line-height: 1.5;
}
.birthday-hint b { color: var(--accent, var(--accent-cool)); }
.bd-date-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-6);
    border: 1px solid var(--line);
    background: var(--bg-input, var(--action-tint));
    color: var(--cloud-white, var(--bg));
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.bd-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
}
.birthday-warn {
    font-size: 13px;
    color: var(--warning);
    margin: 0 0 12px;
}
.birthday-save-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-6);
    font-size: 15px;
    font-weight: 600;
}
.birthday-save-btn:disabled { opacity: 0.5; }
.birthday-result {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-6);
    font-size: 13px;
}
.birthday-result.error {
    background: var(--line);
    color: var(--danger);
}
/* Birthday locked card */
.birthday-set-card {
    background: var(--bg-card, var(--action-tint));
    border: 1px solid var(--action-tint);
    border-radius: var(--radius-6);
    padding: 16px;
    text-align: center;
}
.birthday-set-date {
    font-size: 20px;
    font-weight: 600;
    color: var(--cloud-white, var(--bg));
    margin-bottom: 6px;
}
.birthday-set-perks {
    font-size: 12px;
    color: var(--text-secondary, var(--ink-40));
    line-height: 1.5;
}
/* Birthday booking badge */
.birthday-badge {
    background: var(--line) !important;
    color: var(--accent-primary) !important;
}

/* Profile menu links */
.profile-menu {
    margin: 0 16px 16px;
}
.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font: 400 15px/1 var(--font-body);
    color: var(--text-secondary, var(--ink-40));
    -webkit-tap-highlight-color: transparent;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-icon { font-size: 18px; }
.profile-menu-arrow {
    margin-left: auto;
    color: var(--text-tertiary, var(--muted));
    font-size: 15px;
}

/* ═══ Phase 3: Back button for full-screen views ═══ */
.back-btn {
    background: none;
    border: none;
    color: var(--accent, var(--accent-cool));
    font-size: 15px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
}

/* ═══ Phase 4: Promo hint ═══ */
.promo-hint {
    font-size: 12px;
    color: var(--text-tertiary, var(--muted));
    margin: 0 0 8px;
}

/* ═══ Phase 4: Gift Certificates ═══ */
.gift-card {
    padding: 4px 0;
}
.gift-hint {
    font-size: 13px;
    color: var(--text-secondary, var(--ink-40));
    margin: 0 0 12px;
    line-height: 1.5;
}
.gift-field { margin-bottom: 12px; }
.gift-field label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, var(--ink-40));
    margin-bottom: 4px;
}
.gift-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-6);
    border: 1px solid var(--line);
    background: var(--bg-input, var(--action-tint));
    color: var(--cloud-white, var(--bg));
    font-size: 16px;
    box-sizing: border-box;
}
.gift-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-6);
    font-size: 15px;
    font-weight: 600;
}
.gift-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-6);
    font-size: 13px;
}
.gift-result.success {
    background: var(--line);
    border: 1px solid var(--action-tint);
    color: var(--cloud-white, var(--bg));
}
.gift-result.error {
    background: var(--line);
    color: var(--danger);
}
.gift-code-display { text-align: center; margin: 8px 0; }
.gift-code-label { font-size: 12px; color: var(--text-secondary, var(--ink-40)); }
.gift-code-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font);
    letter-spacing: 2px;
    margin: 8px 0;
}
.gift-copy-btn {
    padding: 8px 16px;
    border-radius: var(--radius-6);
    border: 1px solid var(--accent, var(--accent-cool));
    background: transparent;
    color: var(--accent, var(--accent-cool));
    font-size: 12px;
    cursor: pointer;
}
.gift-code-hint {
    font-size: 12px;
    color: var(--text-tertiary, var(--muted));
    margin-top: 8px;
}

/* ═══ Phase 5: Multiplier badges in booking form ═══ */
.bw-multipliers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.multiplier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-6);
    background: var(--earn-btn-bg, var(--line));
    color: var(--earn-color, var(--accent-cool));
    font-size: 12px;
    font-weight: 500;
}

/* ═══ Phase 3: Tab bar updates ═══ */
.bottom-nav .nav-btn svg {
    stroke-width: 1.8;
}
.nav-label {
    font-size: 13px;
}

/* Contact links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card, var(--action-tint));
    border-radius: var(--radius-6);
    color: var(--cloud-white, var(--bg));
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s;
}
.contact-link:active {
    opacity: 0.7;
}
.contact-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.contact-text {
    flex: 1;
}

/* Feedback form */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feedback-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card, var(--action-tint));
    border: 1px solid var(--line);
    border-radius: var(--radius-6);
    color: var(--cloud-white, var(--bg));
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    box-sizing: border-box;
}
.feedback-input:focus {
    border-color: var(--accent, var(--accent-cool));
}
.feedback-input::placeholder {
    color: var(--text-secondary, var(--ink-40));
}
.feedback-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.feedback-file-label {
    display: block;
    padding: 10px 14px;
    background: var(--bg-card, var(--action-tint));
    border: 1px dashed var(--line);
    border-radius: var(--radius-6);
    color: var(--text-secondary, var(--ink-40));
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}
.feedback-submit {
    margin-top: 4px;
}
.feedback-result {
    padding: 10px 14px;
    border-radius: var(--radius-6);
    font-size: 13px;
    text-align: center;
}
.feedback-result.success {
    background: var(--line);
    color: var(--accent-cool);
}
.feedback-result.error {
    background: var(--line);
    color: var(--danger);
}

/* PWA Install Banner */
.pwa-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--action-tint);
    border-top: 1px solid var(--action-tint);
    font-size: 13px;
    color: var(--ink-40);
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
}
.pwa-banner-btn {
    padding: 6px 14px;
    border-radius: var(--radius-6);
    background: var(--action);
    color: var(--bg);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.pwa-banner-close {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--accent-deep);
    font-size: 16px;
    cursor: pointer;
}

/* ═══ Tier info button — duplicate removed 2026-05-13 (Sub-batch 1 А.5b)
   Definition kept above at L469. Old override made it invisible on light hero. */
.tier-info-btn:hover { color: var(--ink); }

/* ═══ Info sheet (tooltip modal) ═══ */
.info-tier-list { display: flex; flex-direction: column; gap: 16px; }
.info-tier-item {
    padding: 12px;
    border-radius: var(--radius-6);
    background: var(--bg-input, var(--action-tint));
    border: 1px solid var(--border-soft, var(--line));
}
.info-tier-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.info-tier-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.info-tier-cond { font-size: 12px; color: var(--accent); }
.info-note { font-size: 12px; color: var(--text-secondary); margin-top: 12px; line-height: 1.5; }
.info-mult-list { display: flex; flex-direction: column; gap: 12px; }
.info-mult-item { display: flex; gap: 10px; align-items: flex-start; }
.info-mult-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-mult-item div { font-size: 13px; line-height: 1.5; }

/* ═══ Booking card enhancements ═══ */
.booking-points-due {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.booking-thanks {
    margin-top: 8px;
    padding: 10px;
    border-radius: var(--radius-6);
    background: var(--line);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.booking-review-btn {
    display: block;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--btn-primary-bg, var(--action));
    color: var(--bg);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.status-tomorrow {
    background: var(--line);
    color: var(--warning);
}

/* ═══ History tab ═══ */
.history-more-wrap {
    text-align: center;
    padding: 16px;
}
.history-empty { padding: 40px 16px; }

/* ═══ Phone+OTP auth (фаза 2) ═══ */
.auth-container {
    max-width: 360px;
}
.auth-container label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: var(--text-secondary, var(--overlay));
    margin: 16px 0 6px;
}
.auth-container input[type="tel"],
.auth-container input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--accent-border, var(--action-tint));
    border-radius: var(--radius-6);
    background: var(--bg-input, var(--action-tint));
    color: var(--text-primary, var(--ink));
    box-sizing: border-box;
    font-family: var(--font);
}
.auth-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring-focus);
}
.phone-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary, var(--ink));
    background: var(--bg-input, var(--action-tint));
    border: 1px solid var(--accent-border, var(--action-tint));
    border-radius: var(--radius-6);
    user-select: none;
    flex-shrink: 0;
}
.phone-input-row input[type="tel"] {
    flex: 1;
    min-width: 0;
}
.auth-hint {
    color: var(--text-secondary, var(--overlay));
    font-size: 14px;
    margin: 8px 0 24px;
    line-height: 1.4;
}
.primary-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: var(--c-forest, var(--action));
    color: var(--bg);
    border: none;
    border-radius: var(--radius-6);
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.15s;
}
.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.primary-btn:active {
    opacity: 0.85;
}
.link-btn {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: var(--text-secondary, var(--overlay));
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font);
}
.auth-error {
    color: var(--danger);
    font-size: 13px;
    margin: 12px 0 0;
    min-height: 18px;
    text-align: left;
}
.auth-fallback {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-secondary, var(--overlay));
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid var(--c-ink-12, var(--line));
}
.auth-fallback summary {
    cursor: pointer;
    padding: 8px 0;
    color: var(--text-primary, var(--ink));
    list-style: none;
    font-weight: 500;
}
.auth-fallback summary::-webkit-details-marker { display: none; }
.auth-fallback summary::before {
    content: none;
    display: inline-block;
    transition: transform 0.15s;
}
.auth-fallback[open] summary::before {
    transform: rotate(90deg);
}
.auth-fallback .login-form {
    margin-top: 8px;
}
.auth-legal {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-tertiary, var(--overlay));
    text-align: center;
}
.auth-legal a {
    color: var(--accent, var(--gold));
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════ */
/* Profile redesign V3 — pilot finding #5 (05.05.2026)                  */
/* ════════════════════════════════════════════════════════════════════ */

/* Mini-card ⓘ button (top-right corner) */
.profile-mini-card { position: relative; }
.profile-mini-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    color: var(--gold);
    -webkit-tap-highlight-color: transparent;
}
.profile-mini-info-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--gold);
}

/* Achievements link row */
.profile-ach-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 13px 16px;
    background: var(--surface-1);
    border-radius: var(--r-card, 6px);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.profile-ach-link:active { background: var(--bg-card-hover, var(--action-tint)); }
.profile-ach-icon { font-size: 18px; }
.profile-ach-text { flex: 1; font-weight: 500; }
.profile-ach-count { font-size: 13px; color: var(--c-ink-60, var(--overlay)); }
.profile-ach-arrow { color: var(--c-ink-40, var(--overlay)); font-size: 14px; }
.profile-ach-link .info-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 22px;
    height: 22px;
}
.profile-ach-link .info-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--gold);
    opacity: 0.6;
}

/* Menu group label */
.profile-menu-group-label {
    font: 700 13px/1.45 var(--font-body);
    letter-spacing: 1.4px;
    text-transform: none;
    color: var(--gold);
    opacity: 0.85;
    margin: 14px 16px 6px 4px;
}
.profile-menu-group-label:first-child { margin-top: 0; }

/* Override profile-menu inner items: white card with rounded corners */
.profile-menu { margin: 0; }
.profile-menu-item {
    background: var(--surface-1);
    border-radius: var(--r-card, 6px);
    border-bottom: none !important;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 500;
}
.profile-menu-item:last-child { border-bottom: none !important; }
.profile-menu-item:active { background: var(--bg-card-hover, var(--action-tint)); }

/* Birthday spoiler in menu */
.profile-menu-spoiler {
    background: var(--surface-1);
    border-radius: var(--r-card, 6px);
    overflow: hidden;
    margin-bottom: 8px;
}
.profile-menu-spoiler .spoiler-head {
    margin: 0;
    cursor: pointer;
    border-bottom: none !important;
}
.profile-menu-spoiler .spoiler-head:active { background: var(--bg-card-hover, var(--action-tint)); }
.bd-spoiler-title { flex: 1; }
.bd-filled-meta {
    margin-left: auto;
    font-size: 13px;
    color: var(--c-ink-60, var(--overlay));
    margin-right: 6px;
}
.spoiler-arrow {
    color: var(--c-ink-40, var(--overlay));
    font-size: 14px;
    margin-left: 6px;
}
.spoiler-hint {
    padding: 0 16px 12px;
    font-size: 12px;
    color: var(--c-ink-60, var(--overlay));
    line-height: 1.4;
    margin-top: -4px;
}
.spoiler-body {
    padding: 12px 16px 16px;
    border-top: 1px dashed var(--c-ink-12, var(--line));
}
.spoiler-body .birthday-hint {
    font-size: 12px;
    color: var(--c-ink-60, var(--overlay));
    line-height: 1.4;
    padding: 0;
    margin: 0 0 12px;
}
.spoiler-body .birthday-hint b { color: var(--ink); font-weight: 700; }
.spoiler-body .birthday-warn {
    font-size: 12px;
    color: var(--c-ink-60, var(--overlay));
    font-style: normal;
    margin: 0 0 14px;
    padding: 0;
    background: none;
    border: none;
}
.spoiler-body .bd-date-input { margin-bottom: 10px; }
.spoiler-body .birthday-save-btn,
.spoiler-body button.btn-primary {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}
.spoiler-body .birthday-set-card {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
.profile-menu-spoiler.is-filled .spoiler-arrow,
.profile-menu-spoiler.is-filled .spoiler-hint,
.profile-menu-spoiler.is-filled .spoiler-body { display: none; }

/* ── S6: Tier emblems + Badge images (13.05.2026) ─────────────────── */
.badge-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.badge-emoji,
.badge-emoji-locked {
    font-size: 32px;
    line-height: 1;
    display: block;
}

.badge-emoji-locked {
    opacity: 0.4;
}

.tier-emblem {
    width: 100px;
    height: 116px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 6px;
}

@media (max-width: 360px) {
    .tier-emblem { width: 84px; height: 98px; }
    .badge-img { width: 48px; height: 48px; }
}

/* Shared typography, including form controls. */
body { font-size: var(--text-body); line-height: 1.45; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font-family: var(--font); }
h1, h2 { font-size: var(--text-title); line-height: 1.15; font-weight: 700; }
@media (min-width: 960px) { :root { --text-title: 30px; --text-hero: 56px; } }

/* Ясный: shared controls and sprite sizing. */
.ui-icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
button .ui-icon, .btn-primary .ui-icon, .btn-secondary .ui-icon { width: 20px; height: 20px; }
.info-icon { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--action); }
.info-icon svg { width: 18px; height: 18px; }
button, input, select, textarea { font-size: 16px; }
button { cursor: pointer; white-space: normal; }
.btn-primary, .primary-btn, .quick-action-btn, .bw-btn-primary, .btn-promo, .onboard-btn, .rcp-confirm, .btn-claim {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; height: auto; padding: 12px 18px; border: 1px solid var(--action);
    border-radius: 6px; background: var(--action); color: var(--on-action); font-size: 16px; font-weight: 700;
}
.btn-secondary, .bw-btn-secondary, .rcp-cancel, .btn-load-more {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; height: auto; padding: 12px 18px; border: 1px solid var(--control-line);
    border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 700;
}
.back-btn, .link-btn, .section-link, .booking-review-btn { color: var(--action); background: transparent; border: 0; min-height: 44px; font-size: 15px; font-weight: 600; }
button:hover { filter: brightness(.96); }
button:active { transform: none; }
.btn-primary:active, .primary-btn:active, .quick-action-btn:active { background: var(--action-press); }
button:disabled { opacity: .45; cursor: default; filter: none; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.btn-icon, .sheet-close, .tier-info-btn { min-width: 44px; min-height: 44px; }
input, select, textarea { min-height: 48px; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface); color: var(--ink); }
@media (max-width: 959px) { .btn-primary, .primary-btn, .quick-action-btn, .btn-secondary { width: 100%; } .btn-icon { width: auto; } }

/* Ясный: one navigation tree, bottom on mobile and left rail on desktop. */
body { max-width: none; margin: 0; padding: 0 0 calc(84px + env(safe-area-inset-bottom)); }
.screen { max-width: var(--content-max); margin: 0 auto; padding: 20px 16px; min-width: 0; }
.loading, .empty-state { max-width: 560px; margin: auto; }
.brand-header-fixed { display: flex; position: sticky; top: 0; min-height: 56px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--action); font: 700 16px/1.4 var(--font); text-align: left; }
.brand-title { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; }
.brand-title svg, .rail-brand svg { color: var(--brand); }
.header-initial { float: right; margin-top: 11px; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--action-tint); display: inline-grid; place-items: center; }
.bottom-nav { position: fixed; inset: auto 0 0; width: 100%; max-width: none; transform: none; margin: 0; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); gap: 0; z-index: 20; }
.nav-btn { flex: 1; min-width: 0; min-height: 52px; height: auto; padding: 4px 0; gap: 3px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
.nav-btn.active { color: var(--action); background: transparent; }
.bottom-nav .nav-btn svg { width: 24px; height: 24px; }
.nav-label { font-size: 13px; line-height: 1.3; white-space: normal; }
.rail-brand, .rail-footer { display: none; }
@media (max-width: 959px) { #bottom-nav.nav-on-subscreen { display: none !important; } }
@media (min-width: 960px) {
    body { padding: 0; }
    .screen { margin-left: var(--rail-width); padding: 36px 48px; max-width: calc(var(--content-max) + 96px); }
    #brand-header { display: none !important; }
    .bottom-nav { inset: 0 auto 0 0; width: var(--rail-width); height: 100vh; height: 100dvh; flex-direction: column; padding: 24px 12px; border-top: 0; border-right: 1px solid var(--line); align-items: stretch; }
    .nav-btn { flex: none; flex-direction: row; justify-content: flex-start; min-height: 44px; padding: 10px 12px; gap: 12px; border-radius: 6px; }
    .nav-label { font-size: 15px; }
    .nav-btn.active { background: var(--action-tint); }
    .bottom-nav .nav-btn svg { width: 22px; height: 22px; }
    .rail-brand { display: flex; align-items: center; gap: 8px; padding: 0 12px 28px; color: var(--action); font-size: 16px; font-weight: 700; }
    .rail-footer { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
    .rail-footer a { color: var(--action); min-height: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 6px; }
    .rail-footer a:hover { background: var(--action-tint); }
    .rail-member-name { font-weight: 700; }
    .rail-member-tier { color: var(--muted); }
    #browser-login, #error, #not-found { margin: auto; max-width: 600px; }
}

/* Ясный: home, with all existing information retained in reading order. */
.cabinet-identity { margin-bottom: 20px; }
.hero-top { gap: 12px; margin: 0; }
.hero-top .avatar { display: none; }
.hero-top .tier-emblem { order: -1; width: 52px; height: 52px; object-fit: contain; margin: 0; }
.tier-emblem, .profile-mini-card .tier-logo { border: 2px solid var(--tier-accent); border-radius: var(--radius-pill); padding: 4px; background: var(--tier-tint); }
.member-name { font: 700 var(--text-title)/1.15 var(--font); color: var(--ink); letter-spacing: -.02em; }
.tier-name, #profile-tier-name, .rail-member-tier { font: 600 15px/1.45 var(--font); color: var(--action); background: var(--tier-tint); border-left: 3px solid var(--tier-accent); padding: 2px 6px; width: fit-content; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.home-layout > * { min-width: 0; margin: 0; }
.tier-card, .home-layout > .section, .booking-card, .profile-mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.tier-card-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding: 0; margin-top: 0; border-top: 0; }
.points-value { font: 800 var(--text-hero)/1 var(--font); letter-spacing: -.035em; color: var(--ink); }
.points-unit { color: var(--muted); font-size: 14px; }
.points-earned { font: 400 14px/1.45 var(--font); text-align: left; color: var(--muted); }
.points-earned br { display: none; }
.tier-card #progress-section { margin: 18px 0; border: 0; padding: 0; }
.progress-bar { background: transparent; height: 10px; overflow: visible; }
.progress-fill { display: flex; gap: 4px; height: 10px; background: transparent; }
.progress-cell { flex: 1; min-width: 0; background: var(--track); border-radius: 2px; }
.progress-cell.filled { background: var(--tier-accent); }
.progress-hint, .progress-label { font-size: 14px; color: var(--muted); }
.quick-actions { margin: 18px 0 0; }
.expiry-warning { background: var(--warning-tint); color: var(--warning); border-radius: 4px; padding: 12px; margin: 12px 0; }
.section-title { font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: var(--ink); border-bottom: 0; padding-bottom: 0; }
.tab-header h2 { font: 700 26px/1.15 var(--font); letter-spacing: -.02em; }
.house-photo { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.next-booking h3 { font-size: 18px; display: inline; margin-right: 8px; }
.next-booking p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.badge-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.badge-row .badge-card { flex: 0 0 80px; width: 80px; border: 0; padding: 0; background: transparent; }
.badge-row .badge-img, .badge-row .badge-fallback { width: 64px; height: 64px; }
.badge-img { object-fit: contain; }
.badge-card.locked .badge-img { filter: grayscale(1); opacity: .4; }
.badge-name { font-size: 12px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.badge-name .ui-icon { width: 12px; height: 12px; }
.badge-desc, .badge-date { font-size: 12px; color: var(--muted); }
.badge-row .badge-desc, .badge-row .badge-date { display: none; }
.badge-fallback { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: var(--radius-pill); background: var(--track); color: var(--action); }
.stats-grid { display: flex; flex-direction: column; gap: 0; }
.stat-card { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.stat-icon { margin: 0; }.stat-label { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.4; }.stat-value { grid-column: 3; grid-row: 1; font-size: 15px; color: var(--action); }
.tier-mini.family { background: var(--surface); color: var(--ink); border-color: var(--line); }
.tier-mini:not(.current) { opacity: 1; }
.tier-mini, .tier-mini.guest, .tier-mini.friend { background: var(--surface); border-color: var(--line); }
.tier-mini.current { background: var(--tier-tint); border-color: var(--tier-accent); outline-color: var(--tier-accent); }
.tier-mini.current::before { background: var(--tier-tint); border: 1px solid var(--tier-accent); color: var(--ink); letter-spacing: normal; }
.tier-mini .name, .tier-mini.family .name, .tier-mini.family .pct { color: var(--ink); }
.tier-mini.family .lab { color: var(--muted); }
.tier-mini.guest .dot { background: var(--tier-guest-accent); }
.tier-mini.friend .dot { background: var(--tier-friend-accent); }
.tier-mini.family .dot { background: var(--tier-family-accent); }
@media (min-width: 960px) {
    .home-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
    .home-layout > .tier-card, .home-layout > .section { padding: 24px; }
    .home-layout > * { grid-column: 1 / -1; }
    .home-layout > #next-booking-section { grid-column: 1; }
    .home-layout > #badges-preview-section { grid-column: 2; }
    .home-layout.without-booking > #badges-preview-section { grid-column: 1 / -1; }
    .house-photo { aspect-ratio: auto; height: 220px; }
    .quick-actions { display: flex; flex-wrap: wrap; }
    .badge-row .badge-img, .badge-row .badge-fallback { width: 72px; height: 72px; }
}

/* Ясный: bookings list and four wizard steps. */
#bookings-tab .booking-wizard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.bw-form-card, .bw-summary, .bw-points-section { background: var(--surface); border: 0; padding: 0; }
.bw-form-card { display: grid; gap: 16px; }
.bw-field label { display: block; font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
.bw-input { width: 100%; min-width: 0; padding: 12px; }
.bw-room { background: var(--surface); border: 1px solid var(--control-line); border-radius: 6px; padding: 16px; }
.bw-room-name { font-size: 16px; font-weight: 700; }
.bw-room-price { color: var(--action); font-size: 20px; font-weight: 700; }
.bw-room.unavailable { color: var(--muted); background: var(--page); opacity: 1; }
.bw-summary, .bw-total { line-height: 1.6; font-size: 15px; }
.bw-points-row { flex-wrap: wrap; gap: 8px; }
.bw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-card { margin-bottom: 12px; }
.booking-header, .booking-meta { flex-wrap: wrap; gap: 8px; }
.booking-dates { font-size: 15px; line-height: 1.6; }
.booking-status, .multiplier-badge, .bw-balance-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 13px; line-height: 1.45; font-weight: 700; background: var(--action-tint); color: var(--action); }
.multiplier-badge .ui-icon { width: 15px; height: 15px; }
.status-upcoming { color: var(--action); background: var(--action-tint); }
.status-active { color: var(--action); background: var(--action-tint); }
.status-past { color: var(--muted); background: var(--page); }
.status-tomorrow { color: var(--warning); background: var(--warning-tint); }
.booking-thanks, .booking-points-due { font-size: 14px; line-height: 1.5; color: var(--muted); }
.bw-error { color: var(--danger); background: var(--danger-tint); }
@media (min-width: 960px) {
    #bookings-tab { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
    #bookings-tab[style*="block"] { display: grid !important; }
    #bookings-tab > .tab-header { grid-column: 1 / -1; }
    #bookings-tab .booking-wizard { grid-column: 1; padding: 24px; }
    #bookings-tab .bookings-list, #bookings-tab .bookings-empty { grid-column: 2; grid-row: 2; }
    .bw-rooms-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
    .booking-card { padding: 24px; }
}

/* Ясный: shop filters, catalog and the inline order confirmation. */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; background: transparent; padding: 0; }
.filter-btn { min-height: 44px; padding: 8px 14px; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.filter-btn.active { background: var(--action-tint); border-color: var(--action); color: var(--action); }
.reward-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; min-width: 0; }
.reward-card-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.reward-name { font-size: 16px; line-height: 1.4; font-weight: 700; }
.reward-cost-badge { color: var(--action); background: var(--action-tint); border-radius: 4px; padding: 4px 8px; font-size: 15px; }
.reward-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.reward-tag { background: var(--page); color: var(--muted); border-radius: 4px; font-size: 13px; }
.reward-order-btn { min-height: 48px; padding: 12px 18px; background: var(--action); color: var(--on-action); border: 1px solid var(--action); border-radius: 6px; font-size: 16px; font-weight: 700; }
.reward-card.unaffordable { opacity: 1; }
.reward-confirm-panel { margin-top: 16px; padding: 16px 0 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); }
.rcp-title, .rcp-name { font-size: 16px; line-height: 1.45; font-weight: 700; }
.rcp-payment, .rcp-status { font-size: 14px; line-height: 1.5; }
.rcp-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.rcp-status.error { background: var(--danger-tint); color: var(--danger); }
@media (min-width: 960px) {
    .rewards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
    .reward-card { padding: 24px; margin: 0; }
}

/* Ясный: a single chronological list, amounts remain aligned. */
.history-full, .history-list { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; }
.history-item { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; }
.history-item:last-child { border-bottom: 0; }
.history-icon, .hi-emoji { width: 22px; height: 22px; background: transparent; border-radius: 0; color: var(--action); }
.history-icon .ui-icon { width: 22px; height: 22px; }
.hi-earn { color: var(--action); }.hi-burn { color: var(--muted); }
.history-info { flex: 1; min-width: 0; }
.history-desc { font-size: 15px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.history-date, .history-booking { font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.history-amount { flex: none; max-width: 40%; text-align: right; font-size: 15px; line-height: 1.45; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.positive { color: var(--action); }.negative { color: var(--danger); }
#history-more-btn, #btn-load-more-full { margin: 16px 0; }
@media (min-width: 960px) { .history-full, .history-list { padding: 0 24px; } }

/* Ясный: member identity, every profile action and the complete badge collection. */
.profile-mini-card { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.profile-mini-card .tier-logo { width: 52px; height: 52px; }
.profile-mini-info { flex: 1; min-width: 0; }.profile-name { font: 700 var(--text-title)/1.15 var(--font); }
.profile-tier-line { font-size: 14px; line-height: 1.5; color: var(--muted); }
.profile-streak { background: var(--action-tint); color: var(--action); border-radius: 6px; padding: 12px 16px; }
#profile-badges-section { background: var(--surface); padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.badges-grid, #profile-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 16px; overflow: visible; }
.badges-grid .badge-card { min-width: 0; width: auto; border: 0; padding: 8px; background: transparent; text-align: center; }
.badges-grid .badge-img { width: 88px; height: 88px; max-width: 100%; }
.badges-grid .badge-icon { width: auto; height: auto; font-size: inherit; }
.badge-card.locked { opacity: 1; }
.profile-ach-link { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-height: 56px; padding: 8px 16px; }
.profile-divider { display: none; }
.profile-menu { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-top: 12px; padding: 8px 16px; }
.profile-menu-item { display: flex; align-items: center; min-height: 56px; height: auto; padding: 12px 0; gap: 12px; font-size: 15px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.profile-menu-item > span:nth-child(2) { flex: 1; min-width: 0; }
.profile-menu-group-label { color: var(--muted); font-size: 13px; padding: 20px 0 4px; letter-spacing: normal; }
.profile-menu-icon, .profile-ach-icon { color: var(--action); width: 22px; flex: none; }
.profile-menu-arrow, .profile-ach-arrow, .spoiler-arrow { color: var(--action); }
.profile-menu-item--danger { color: var(--danger); }
.spoiler-hint, .bd-filled-meta { font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (min-width: 960px) {
    #profile-tab[style*="block"] { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
    #profile-tab > * { grid-column: 1; margin: 0; }
    #profile-tab > .profile-menu { grid-column: 2; grid-row: 1 / span 7; }
    #profile-tab > .modal-overlay { grid-column: auto; }
}

/* Ясный: sign-in, sheets, sub-screens and one-time dialogs. */
[hidden] { display: none !important; }
.screen, .section, .sheet, .sheet-body, .modal-card, .profile-menu { overflow-wrap: anywhere; }
.login-screen { min-height: 70vh; padding: 12px 0; }
.login-card { max-width: 440px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.login-title { font-size: 26px; line-height: 1.2; }.brand-logo-img { width: 120px; height: 120px; }
.auth-hint, .auth-legal, .auth-consent-row, .auth-timer { font-size: 14px; line-height: 1.5; color: var(--muted); }
.auth-consent-row { min-height: 44px; padding: 8px 0; align-items: flex-start; }
.auth-consent-row input { min-height: auto; flex: none; margin-top: 4px; }
.auth-error { color: var(--danger); }
.auth-input, .login-input, .otp-input { width: 100%; background: var(--surface); color: var(--ink); min-height: 48px; }
.auth-fallback summary { min-height: 44px; }
.sheet-overlay, .sheet-backdrop, .modal-overlay, .onboard-overlay { background: var(--overlay); }
.sheet, .sheet-panel, .modal-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px 6px 0 0; padding: 24px 16px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.sheet-body { font-size: 15px; line-height: 1.5; }.sheet-body p { margin: 12px 0; }.sheet-body ul, .sheet-body ol { padding-left: 24px; }
.sheet-body table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: 14px; }
.sheet-body td, .sheet-body th { white-space: normal; min-width: 100px; padding: 8px; border: 1px solid var(--line); }
.sheet-body a { color: var(--action); overflow-wrap: anywhere; }
.sheet-title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.level-emblems { display: flex; flex-wrap: wrap; gap: 16px; }.level-emblems figure { flex: 1; text-align: center; min-width: 100px; font-size: 13px; }.level-emblems img { width: 52px; height: 52px; margin: auto; }
.sheet-close { background: transparent; border: 0; color: var(--action); }
.gift-card, .promo-card, .contacts-card, .feedback-form, .house-section { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.gift-hint, .promo-hint, .feedback-hint, .instr-text, .house-amenity, .activity-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-link { min-height: 56px; padding: 12px 0; font-size: 15px; color: var(--action); border-bottom: 1px solid var(--line); }
.contact-icon { width: 22px; }.contact-text { min-width: 0; overflow-wrap: anywhere; }
.feedback-file-label { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.feedback-input, .feedback-textarea, .gift-input, .promo-input { width: 100%; min-width: 0; }
.feedback-textarea { min-height: 140px; padding: 12px; }.promo-input-row { flex-wrap: wrap; }
.onboard-overlay { padding: 24px 16px; justify-content: center; color: var(--ink); background: var(--page); }
.onboard-title { font-size: 26px; line-height: 1.2; }.onboard-text { font-size: 15px; line-height: 1.5; max-width: 540px; }
.onboard-emoji .ui-icon { width: 52px; height: 52px; color: var(--action); }.onboard-slide { max-width: 540px; }
.tab-loader { color: var(--muted); font-size: 14px; padding: 24px; }
@media (min-width: 960px) {
    .sheet, .sheet-panel { position: relative; bottom: auto; left: auto; right: auto; width: min(720px, calc(100% - 48px)); margin: 5vh auto; border-radius: 6px; padding: 24px; max-height: 90vh; max-height: 90dvh; }
    .modal-card { border-radius: 6px; padding: 24px; }
    .gift-card, .promo-card, .contacts-card, .feedback-form { max-width: 720px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none; transition: none !important; scroll-behavior: auto !important; } }

/* Legal documents are standalone: no application rail or mobile navigation spacing. */
body.legal-body { max-width: 860px; padding: 24px 20px; margin: 0 auto; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.6; }
.legal-body h1 { font-size: 26px; line-height: 1.3; color: var(--ink); margin: 20px 0 12px; border-bottom: 2px solid var(--action); padding-bottom: 12px; }
.legal-body h2 { font-size: 20px; line-height: 1.4; color: var(--action); margin: 24px 0 12px; }
.legal-body h3 { font-size: 16px; margin: 20px 0 8px; }
.legal-body p { margin: 10px 0; overflow-wrap: anywhere; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 8px 0; }.legal-body li { margin: 6px 0; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 8px; text-align: left; overflow-wrap: anywhere; }
.legal-body th { background: var(--action-tint); color: var(--action); }
.legal-body .header, .legal-body .footer { color: var(--muted); font-size: 13px; text-align: center; margin: 16px 0; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }.legal-body a { color: var(--action); }
@page { size: A4; margin: 2cm 2.5cm; }
@media print {
    body.legal-body { max-width: none; padding: 0; margin: 0; font-size: 11pt; }
    .legal-body .no-print { display: none; }
    .legal-body h1 { font-size: 18pt; }.legal-body h2 { font-size: 14pt; }.legal-body h3 { font-size: 12pt; }
    .legal-body table { font-size: 10pt; }.legal-body tr { break-inside: avoid; }
}

.nav-label { font-size: 11px; } .badge-name { font-size: 12px; }
@media (min-width: 960px) { .nav-label { font-size: 15px; } }
.auth-container .auth-consent-row { display: flex; gap: 10px; }
.auth-container .auth-consent-row input { margin-top: 4px; }
.catalog-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.catalog-category { grid-column: 1 / -1; font-size: 16px; }
[role="button"] { cursor: pointer; }
@media (min-width: 960px) {
    .catalog-section { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
    .sheet-backdrop { align-items: center; }
}
/* Long values and enlarged system text wrap within their own card. */
.referral-compact .referral-code-row, .referral-stats, .weather-compact, .weather-compact-text { flex-wrap: wrap; }
.referral-compact .referral-code-row .btn-sm { min-height: 44px; }
.referral-code-value { margin-left: 0; font-size: 16px; letter-spacing: normal; white-space: normal; overflow-wrap: anywhere; }
.referral-compact { padding: 0; border: 0; }
.points-earned { align-self: auto; }
.history-amount, .reward-cost-badge, .stat-value { white-space: normal; overflow-wrap: anywhere; }
.tier-info-btn { width: 44px; height: 44px; min-width: 44px; }
.section-link .ui-icon { width: 18px; height: 18px; }
.pwa-banner-close { width: 44px; min-height: 44px; }
@media (max-width: 359px) { .screen { padding: 16px 12px; }.stat-card { grid-template-columns: 22px minmax(0, 1fr); }.stat-value { grid-column: 2; grid-row: 2; } }
.auth-fallback summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.auth-fallback summary::-webkit-details-marker { display: none; }
