:root {
    --bg: #09090b;
    --bg-surface: #111114;
    --card-bg: #121216;
    --card-bg-hover: #17171c;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(255, 255, 255, 0.18);
    
    /* Monochrome Palette */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent-white: #ffffff;
    --accent-gray: #27272a;
    --accent-silver: #d4d4d8;
    
    /* Radiuses */
    --radius-full: 9999px;
    --radius-xl: 20px;
    --radius-lg: 15px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Springs & Easing */
    --spring: cubic-bezier(0.32, 1.4, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ========== APP CONTAINER ========== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 115px 16px;
}

/* ========== OBSIDIAN MATTE CARDS ========== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s var(--ease-smooth), border-color 0.2s ease;
}

/* ========== PROFILE HEADER ========== */
.profile-card {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.avatar-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.avatar-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.avatar {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #1c1c20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.badge-premium {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    border: 2px solid #000000;
}

.user-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name-row h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.user-status {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.lang-pill-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    padding: 2px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.lang-pill-switch:active {
    transform: scale(0.95);
}

.lang-btn {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.lang-segment-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}

.lang-seg-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-seg-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.pro-tag-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    outline: none;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.pro-tag-btn:active {
    transform: scale(0.94);
}

.pro-tag-btn.is-active-pro {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    color: #000000;
    border: none;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
    font-weight: 800;
}

.badge-premium.is-pro-avatar {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%) !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
    font-size: 10px !important;
}

.pro-active-status-box {
    margin-bottom: 16px;
}
.pro-active-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.12);
}
.pro-crown-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
    flex-shrink: 0;
}
.pro-active-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffd700;
}
.pro-active-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.pro-status-chip {
    margin-left: auto;
    background: #ffd700;
    color: #000000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.account-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.account-status-card.is-pro {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 152, 0, 0.06) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.account-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.account-status-icon {
    font-size: 24px;
}
.account-card-left h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}
.account-status-card.is-pro .account-card-left h3 {
    color: #ffd700;
}
.account-card-left p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: var(--text-secondary);
}
.account-status-action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.account-status-card.is-pro .account-status-action-btn {
    background: #ffd700;
    color: #000000;
    border: none;
    font-weight: 800;
}

/* ========== STATS ROW ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-pill {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    background: #141418;
}

.stat-pill:active {
    transform: scale(0.97);
}

.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.stat-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

/* ========== SECTIONS ========== */
.section-block {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.tag-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* ========== MONOCHROME FEATURES GRID ========== */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.liquid-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-lg);
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.liquid-card:active {
    transform: scale(0.97);
    background: #1a1a20;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.icon-orb {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 6px;
}

.pill-badge.pro-badge {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(255, 170, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.38);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 800;
}

.pill-badge.pro-badge svg {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    animation: starPulse 2.4s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.18) rotate(6deg); opacity: 1; }
}

.liquid-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.liquid-card p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.35;
}

.card-action-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.liquid-card:active .card-action-hint {
    color: #ffffff;
    transform: translateX(3px);
}

/* ========== SETTINGS VIEW ========== */
.page-title-block {
    margin-bottom: 18px;
    padding: 8px 4px;
}

.page-title-block h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.page-title-block p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.settings-group {
    padding: 6px 18px;
    background: #141418;
    border-radius: var(--radius-xl);
}

.liquid-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.switch-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-label-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.switch-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.switch-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 -18px;
}

/* ========== iOS 18 TOGGLES ========== */
.liquid-glass-toggle {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
    cursor: pointer;
}

.liquid-glass-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.liquid-glass-toggle .slider {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: background 0.3s var(--ease-smooth), border-color 0.3s ease;
}

.liquid-glass-toggle .thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s var(--spring), background 0.3s ease;
}

.liquid-glass-toggle input:checked + .slider {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.liquid-glass-toggle input:checked + .slider .thumb {
    transform: translateX(22px);
    background: #000000;
}

/* ========== SLEEP SCHEDULE CARD ========== */
.sleep-schedule-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    margin: 4px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    display: block;
}

.schedule-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.time-picker-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    gap: 8px;
}

.time-picker-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.time-picker-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.stepper-time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px 4px;
    gap: 2px;
}

.digit-stepper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    user-select: none;
}

.stepper-arrow {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 4px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.stepper-arrow:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.stepper-arrow:active {
    transform: scale(0.85);
}

.digit-viewport {
    height: 28px;
    line-height: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

.digit-display {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    will-change: transform, opacity;
    user-select: none;
}

.stepper-colon {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 1px;
    margin-bottom: 2px;
    user-select: none;
}

.time-picker-arrow {
    color: var(--text-secondary);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    user-select: none;
}

.btn-apply-schedule {
    width: 100%;
    margin-top: 4px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* ========== CONNECTION GUIDE BOX ========== */
.guide-box {
    margin-top: 14px;
    padding: 16px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.guide-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.guide-title-left h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.guide-title-left p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.guide-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.guide-arrow.open {
    transform: rotate(180deg);
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-content.hidden {
    display: none;
}

.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.step-text b {
    color: #ffffff;
}

.step-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
    font-family: monospace;
}

.perms-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.perm-tag {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* ========== MAIL PAGE VIEW ========== */
.mail-empty-state {
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    background: #141418;
}

.mail-hero-orb {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 14px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    animation: floatOrb 3.5s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.mail-hero-orb .mail-orb-glow {
    position: absolute;
    inset: -4px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.mail-hero-orb .mail-icon-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mail-empty-state h2 {
    font-size: 18px;
    font-weight: 700;
}

.mail-empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.45;
}

.hologram-mail-card {
    padding: 18px;
    margin-bottom: 20px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mail-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.security-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
}

.address-box {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 14px;
}

.address-box:active {
    border-color: rgba(255, 255, 255, 0.3);
}

.address-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.copy-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.mail-actions-row {
    display: flex;
    gap: 10px;
}

.liquid-btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    flex: 1;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.liquid-btn:active {
    transform: scale(0.96);
}

.liquid-btn.primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    width: 100%;
}

.liquid-btn.secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.liquid-btn.danger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
}

.inbox-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-item-card {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--spring);
}

.inbox-item-card:active {
    transform: scale(0.985);
    background: #17171c;
    border-color: rgba(255, 255, 255, 0.16);
}

.inbox-open-hint {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
}

/* ===== ПРОСМОТР ПИСЬМА ===== */
.letter-subject-title {
    white-space: normal;
    line-height: 1.3;
}

.letter-from-label {
    color: var(--text-muted);
}

.letter-date-line {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.letter-body-content {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.letter-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.letter-loading {
    padding: 24px 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.letter-link {
    color: #7dd3fc;
    text-decoration: underline;
    word-break: break-all;
}

.letter-links-title {
    margin: 18px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.letter-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.letter-link-btn {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    background: rgba(125, 211, 252, 0.10);
    border: 1px solid rgba(125, 211, 252, 0.28);
    color: #7dd3fc;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: background 0.2s ease, transform 0.15s var(--spring);
}

.letter-link-btn:active {
    transform: scale(0.98);
    background: rgba(125, 211, 252, 0.18);
}

.letter-copy-btn {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s var(--spring);
}

.letter-copy-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.inbox-item-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
}

.inbox-from {
    font-weight: 700;
    color: #ffffff;
}

.inbox-date {
    color: var(--text-muted);
}

.inbox-subject {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.inbox-body {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.empty-inbox-state {
    text-align: center;
    padding: 24px 10px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== PRO MODAL STYLES ========== */
.modal-icon-badge.pro-crown-top-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 152, 0, 0.12) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.45) !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25) !important;
}

.modal-crown-svg,
.pro-crown-svg {
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
    display: block;
}

.title-crown-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
}

.title-crown-wrap svg {
    filter: drop-shadow(0 1px 4px rgba(255, 215, 0, 0.5));
}

.inline-crown-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.inline-crown-svg {
    vertical-align: -2px;
    margin-right: 3px;
    filter: drop-shadow(0 1px 3px rgba(255, 215, 0, 0.4));
}

.pro-benefits-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
}

.benefit-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.benefit-icon-badge svg {
    display: block;
}

.benefit-icon-ai {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

.benefit-icon-translate {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
}

.benefit-icon-clean {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.4);
}

.benefit-icon-speed {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.benefit-icon-voice {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}

.benefit-icon-diamond {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(56, 189, 248, 0.4);
}

.benefit-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
    min-width: 0;
}

.benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.1px;
}

.benefit-desc {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: normal;
    word-break: break-word;
}

.pro-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.pro-plan-card {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pro-plan-card:active {
    transform: scale(0.96);
}

.pro-plan-card.featured {
    background: #1a1a20;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.plan-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.plan-badge.glow {
    color: #000000;
    background: #ffffff;
}

.plan-price {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.plan-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.plan-btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

/* ========== LIQUID ACTION MODAL SHEET ========== */
.liquid-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 250;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.liquid-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.liquid-modal-sheet {
    width: 100%;
    max-width: 480px;
    padding: 18px 18px 34px 18px;
    border-radius: 26px 26px 0 0;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9);
    animation: modalSlideUp 0.3s var(--spring);
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px auto;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.modal-title-group {
    flex: 1;
}

.modal-title-group h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-title-group p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 14px 38px 14px 14px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-input-wrapper input:focus {
    border-color: #ffffff;
}

.input-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.modal-tips {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

/* ========== APPLE iOS FROSTED MATTE GLASS DOCK ========== */
.liquid-dock-wrapper {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 390px;
    z-index: 100;
}

.dock-pill-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 66px;
    border-radius: 34px;
    /* Liquid glass: тонкая полупрозрачная заливка + вибрантность фона */
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.05) 24%,
            rgba(255, 255, 255, 0.02) 62%,
            rgba(255, 255, 255, 0.05) 100%),
        rgba(26, 26, 32, 0.38);
    backdrop-filter: blur(44px) saturate(210%) brightness(1.08);
    -webkit-backdrop-filter: blur(44px) saturate(210%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 50px -12px rgba(0, 0, 0, 0.70),
        0 8px 20px -6px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.32);
    padding: 0 8px;
    overflow: hidden;
    isolation: isolate;
}

/* Верхний зеркальный блик — тонкая световая дуга по краю стекла */
.dock-pill-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.0) 9%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

/* Нижний мягкий контакт-градиент для глубины/парения */
.dock-pill-bar::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 45%;
    background: radial-gradient(130% 100% at 50% 130%, rgba(0, 0, 0, 0.30), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.liquid-lens {
    position: absolute;
    width: 76px;
    height: 52px;
    border-radius: 26px;
    top: 50%;
    left: 17%;
    transform: translate(-50%, -50%);
    /* Активная «капля» стекла — ярче и чище фона */
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.24) 0%,
        rgba(255, 255, 255, 0.09) 100%);
    backdrop-filter: blur(10px) saturate(180%) brightness(1.18);
    -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.28),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.55),
        inset 0 -1px 2px rgba(0, 0, 0, 0.16);
    pointer-events: none;
    z-index: 2;
    transition: left 0.45s var(--spring), transform 0.45s var(--spring);
}

.lens-reflection {
    display: none;
}

.lens-chromatic-ring {
    display: none;
}

.dock-tab {
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    flex: 1;
    padding: 8px 0;
    transition: transform 0.35s var(--spring);
}

.tab-icon {
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.35s var(--spring), color 0.25s ease;
}

.tab-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: -0.2px;
    transition: color 0.25s ease, transform 0.35s var(--spring);
}

.dock-tab.active {
    transform: translateY(-1px);
}

.dock-tab.active .tab-icon {
    color: #ffffff;
    transform: scale(1.12);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.35));
}

.dock-tab.active .tab-label {
    color: #ffffff;
    font-weight: 700;
}

/* ========== ADMIN STYLES ========== */
.admin-broadcast-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #141418;
}

.admin-broadcast-card textarea,
.admin-pro-form input,
.admin-pro-form select {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.admin-broadcast-card textarea:focus,
.admin-pro-form input:focus,
.admin-pro-form select:focus {
    border-color: #ffffff;
}

.admin-pro-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #141418;
    margin-bottom: 14px;
}

.admin-pro-row {
    display: flex;
    gap: 8px;
}

.admin-users-list {
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #141418;
}

.admin-user-row {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-name {
    font-weight: 700;
    color: #ffffff;
}

.admin-user-id {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-quick-pro-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.user-quick-pro-btn:active {
    transform: scale(0.92);
}

/* ========== ULTRA SMOOTH PAGE TRANSITIONS ========== */
.page {
    display: none;
    opacity: 0;
    will-change: opacity, transform;
}

.page.active {
    display: block;
    animation: pageSilkFade 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageSilkFade {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.988);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== LIQUID DROP TOAST (Dynamic Island & Liquid Physics - MONOCHROME) ========== */
.liquid-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate3d(-50%, -100px, 0) scale(0.35, 2);
    transform-origin: 50% 0%;
    z-index: 99999;
    pointer-events: none;
    will-change: transform, opacity, filter;
    opacity: 0;
}

.liquid-toast.hidden {
    display: none !important;
}

.toast-content {
    background: rgba(14, 14, 18, 0.92) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.75),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.6) !important;
    padding: 7px 18px 7px 9px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: -0.1px !important;
    white-space: nowrap !important;
}

/* Black & White Monochrome SVG Box */
.toast-svg-box {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.toast-svg-box svg {
    display: block;
}

/* Liquid Drop Falling Animation (Капля падает вниз) */
.liquid-toast.liquid-drop-in {
    animation: liquidDropIn 0.55s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

@keyframes liquidDropIn {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -85px, 0) scale(0.35, 2.2);
        filter: blur(10px);
    }
    38% {
        opacity: 1;
        transform: translate3d(-50%, 16px, 0) scale(1.25, 0.75);
        filter: blur(0);
    }
    65% {
        transform: translate3d(-50%, -5px, 0) scale(0.94, 1.06);
    }
    85% {
        transform: translate3d(-50%, 2px, 0) scale(1.02, 0.98);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, 0, 0) scale(1, 1);
        filter: blur(0);
    }
}

/* Liquid Pull Up Animation (Капля втягивается обратно наверх) */
.liquid-toast.liquid-drop-out {
    animation: liquidDropOut 0.42s cubic-bezier(0.55, 0, 0.1, 1) forwards !important;
}

@keyframes liquidDropOut {
    0% {
        opacity: 1;
        transform: translate3d(-50%, 0, 0) scale(1, 1);
        filter: blur(0);
    }
    30% {
        opacity: 1;
        transform: translate3d(-50%, 8px, 0) scale(1.2, 0.85);
    }
    100% {
        opacity: 0;
        transform: translate3d(-50%, -95px, 0) scale(0.3, 2.3);
        filter: blur(12px);
    }
}

/* ========== LOADER ========== */
.liquid-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    transition: opacity 0.3s ease;
}

.liquid-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* ==================== WELCOME SPLASH SCREEN (MONOCHROME LUXURY / SBER STYLE) ==================== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050507;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.splash-screen.splash-leave {
    opacity: 0;
    transform: scale(1.06);
    filter: blur(16px);
    pointer-events: none;
}

.splash-screen.hidden {
    display: none !important;
}

/* Ambient Monochrome Radial Lighting */
.splash-ambient-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 70%);
    filter: blur(60px);
    animation: ambient-drift 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ambient-drift {
    0% { transform: scale(0.85) translateY(-15px); opacity: 0.5; }
    100% { transform: scale(1.15) translateY(15px); opacity: 0.9; }
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
    max-width: 330px;
    width: 100%;
}

/* Avatar Container & Sleek Monochrome Rings */
.splash-avatar-container {
    position: relative;
    width: 108px;
    height: 108px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splash-avatar-entrance 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes splash-avatar-entrance {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(35px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.splash-pulse-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.splash-ring-1 {
    inset: -6px;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.95)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: 50%;
    animation: ring-rotate 4.5s linear infinite;
}

.splash-ring-2 {
    inset: -15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: ring-pulse 3.2s ease-in-out infinite;
}

@keyframes ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.25; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

.splash-avatar-frame {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #0d0d10;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.splash-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.splash-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #2a2a30, #131317);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.splash-badge-online {
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #050507;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
    z-index: 4;
    animation: badge-pop 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badge-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Greeting Text Group */
.splash-greeting-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: splash-text-entrance 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splash-text-entrance {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-welcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
}

.chip-sparkle {
    font-size: 10px;
    color: #ffffff;
}

.splash-greeting-text {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 7px 0;
    line-height: 1.2;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-sub-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 32px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Progress Shimmer Bar */
.splash-progress-track {
    width: 150px;
    height: 3.5px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
    animation: splash-bar-fade 0.7s 0.4s ease both;
}

@keyframes splash-bar-fade {
    0% { opacity: 0; transform: scaleX(0.7); }
    100% { opacity: 1; transform: scaleX(1); }
}

.splash-progress-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    border-radius: 9999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), #ffffff, rgba(255, 255, 255, 0.25), transparent);
    animation: splash-shimmer-sweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes splash-shimmer-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
