:root {
    --bg-deep: #06030c;
    --bg-mid: #120623;
    --purple-300: #d8b4fe;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --purple-700: #7c3aed;
    --text: #f4eeff;
    --text-dim: #9d8fc0;
    --card-bg: rgba(20, 8, 40, 0.55);
    --card-border: rgba(168, 85, 247, 0.25);
}

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

html, body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== ФОН ==================== */
body::before {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        #2a0b5e 0%, #120623 40%, #06030c 100%
    );
    z-index: -3;
}
.bg-glow { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-glow::before, .bg-glow::after {
    content: '';
    position: absolute;
    width: 640px; height: 640px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.4;
    animation: floatBlob 22s ease-in-out infinite;
}
.bg-glow::before { background: #a855f7; top: -220px; left: -180px; }
.bg-glow::after  { background: #7c3aed; bottom: -220px; right: -180px; animation-delay: -11s; }
@keyframes floatBlob {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(70px, 50px) scale(1.15); }
}
.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
            mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
    pointer-events: none;
}
.bg-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-particles span {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(192, 132, 252, 0.7);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.9);
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 0.9; }
    100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* ==================== ЭКРАНЫ ==================== */
.screen {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.hidden { display: none !important; }

/* ==================== КАРТОЧКА ==================== */
.card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(168,85,247,0.08),
        0 20px 60px rgba(124,58,237,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
    animation: cardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 26px; padding: 1px;
    background: linear-gradient(135deg,
        rgba(216,180,254,0.6) 0%, transparent 40%,
        transparent 60%, rgba(124,58,237,0.5) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* ==================== ЛОГОТИП ==================== */
.logo-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-wrap-sm .logo-mark { width: 30px; height: 30px; }
.logo-text {
    font-family: 'Unbounded', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #f4eeff 0%, #c084fc 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text span {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-wrap-sm .logo-text { font-size: 16px; letter-spacing: 2px; }

/* ==================== ЗНАЧОК 18+ ==================== */
.age-badge-wrap {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.age-badge-svg {
    width: 120px; height: 120px;
    filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.55));
}
.badge-ring-outer { animation: spin 20s linear infinite; transform-origin: 60px 60px; }
.badge-ring-dashed { animation: spin 14s linear infinite reverse; transform-origin: 60px 60px; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==================== ТЕКСТ ==================== */
.card h1 {
    font-size: 26px; font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.4px; line-height: 1.2;
}
.subtitle {
    color: var(--text-dim);
    font-size: 14px; line-height: 1.6;
    margin-bottom: 30px;
}

/* ==================== КНОПКИ ==================== */
.buttons {
    display: flex; flex-direction: column;
    gap: 12px; margin-bottom: 22px;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 15px; font-weight: 600;
    font-family: inherit;
    cursor: pointer; border: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.2px;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    box-shadow:
        0 0 20px rgba(168,85,247,0.4),
        0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 36px rgba(168,85,247,0.8),
        0 8px 32px rgba(124,58,237,0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: rgba(168,85,247,0.08);
    color: var(--text-dim);
    border: 1px solid rgba(168,85,247,0.22);
}
.btn-secondary:hover {
    background: rgba(168,85,247,0.15);
    color: var(--text);
    border-color: rgba(168,85,247,0.5);
}
.legal {
    font-size: 11px; color: var(--text-dim);
    opacity: 0.65; line-height: 1.55;
}

/* ==================== БЛОКИРОВКА ==================== */
.card-block { border-color: rgba(239,68,68,0.28); }
.card-block::before {
    background: linear-gradient(135deg,
        rgba(239,68,68,0.55) 0%, transparent 40%,
        transparent 60%, rgba(168,85,247,0.45) 100%);
}
.block-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.block-icon-svg {
    width: 96px; height: 96px;
    filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.7));
    animation: lockShake 3.2s ease-in-out infinite;
}
@keyframes lockShake {
    0%, 88%, 100% { transform: rotate(0deg); }
    90%           { transform: rotate(-6deg); }
    93%           { transform: rotate(6deg); }
    96%           { transform: rotate(-3deg); }
    98%           { transform: rotate(3deg); }
}

/* ==================== ГЛАВНАЯ ==================== */
.main-header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 18px 32px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(168,85,247,0.12);
    background: rgba(6,3,12,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
}
.main-header .logo-wrap { margin-bottom: 0; }
.main-note { font-size: 13px; color: var(--text-dim); }

/* Кнопка "Войти" в шапке */
.btn-login { padding: 10px 20px; font-size: 14px; }

/* Профиль пользователя в шапке */
.user-profile {
    display: flex; align-items: center; gap: 12px;
}
.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(168,85,247,0.5);
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    object-fit: cover;
    box-shadow: 0 0 16px rgba(168,85,247,0.5);
}
.user-name {
    font-size: 14px; font-weight: 600;
    color: var(--text);
}
.user-logout {
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px; font-family: inherit;
    cursor: pointer; transition: all 0.2s ease;
}
.user-logout:hover {
    background: rgba(168,85,247,0.2);
    color: var(--text);
}

.main-hero {
    text-align: center; max-width: 720px;
    margin-top: 80px;
}
.main-hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 52px; font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f4eeff 0%, #c084fc 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ==================== */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(6, 3, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-content {
    position: relative;
    background: rgba(20, 8, 40, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 44px 36px 36px;
    max-width: 420px; width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.1),
        0 24px 80px rgba(124, 58, 237, 0.4);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%; border: none;
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(168, 85, 247, 0.25);
    color: var(--text);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.5);
}
.modal-icon svg { width: 34px; height: 34px; color: #fff; }
.modal-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px; font-weight: 700;
    margin-bottom: 10px;
}
.modal-subtitle {
    color: var(--text-dim);
    font-size: 14px; line-height: 1.6;
    margin-bottom: 28px;
}
.widget-container {
    display: flex; justify-content: center;
    margin-bottom: 20px; min-height: 48px;
}
.modal-legal {
    font-size: 11px; color: var(--text-dim);
    opacity: 0.6; line-height: 1.55;
}

/* ==================== МОБИЛЬНЫЕ ==================== */
@media (max-width: 480px) {
    .card { padding: 36px 24px; border-radius: 22px; }
    .card h1 { font-size: 22px; }
    .age-badge-svg { width: 104px; height: 104px; }
    .main-hero h1 { font-size: 34px; }
    .main-header { padding: 14px 20px; }
    .logo-text { font-size: 17px; }
    .btn-login span { display: none; }
    .user-name { display: none; }
}
/* ==================== ОСНОВНОЙ ЭКРАН (не центрированный) ==================== */
.screen-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 84px 16px 120px;
}

.pages {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.page { display: none; animation: pageIn 0.3s ease; }
.page.active { display: block; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero {
    text-align: center;
    padding: 40px 16px;
}
.hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f4eeff 0%, #c084fc 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== ПУСТЫЕ СОСТОЯНИЯ ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}
.empty-state svg {
    width: 64px; height: 64px;
    color: rgba(168, 85, 247, 0.5);
    margin-bottom: 20px;
}
.empty-state h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state p { font-size: 14px; }

/* ==================== НИЖНЕЕ МЕНЮ (Telegram-style) ==================== */
.bottom-nav {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: rgba(20, 8, 40, 0.72);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 999px;
    padding: 8px;
    display: flex;
    gap: 4px;
    z-index: 50;
    box-shadow:
        0 20px 60px rgba(124, 58, 237, 0.4),
        0 0 0 1px rgba(168, 85, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
}

.bottom-nav-item svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.bottom-nav-item.active {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    box-shadow:
        0 4px 20px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bottom-nav-item.active svg { transform: scale(1.05); }

.bottom-nav-item:not(.active):hover {
    color: var(--text);
    background: rgba(168, 85, 247, 0.08);
}

@media (max-width: 520px) {
    .bottom-nav-item span { display: none; }
    .bottom-nav-item { padding: 14px 10px; }
    .bottom-nav-item svg { width: 22px; height: 22px; }
}

/* ==================== ПРОФИЛЬ ==================== */
.profile-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px 24px;
}

.profile-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(168, 85, 247, 0.5);
    box-shadow:
        0 0 0 6px rgba(168, 85, 247, 0.1),
        0 0 32px rgba(168, 85, 247, 0.5);
    margin-bottom: 16px;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.profile-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-username {
    color: var(--purple-400);
    font-size: 14px;
    font-weight: 500;
}

.profile-phone {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

/* ==================== СТАТИСТИКА ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 8px 0 24px;
}

.stat-card {
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.stat-card:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

.stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(124, 58, 237, 0.15));
    color: var(--purple-300);
    margin-bottom: 2px;
}
.stat-icon svg { width: 18px; height: 18px; }

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== СЕКЦИИ ПРОФИЛЯ ==================== */
.profile-section {
    background: rgba(20, 8, 40, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.section-head h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.section-badge {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.section-sub {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Реферальный код */
.ref-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(168, 85, 247, 0.08);
    border: 1px dashed rgba(168, 85, 247, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
}

.ref-code-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ref-code {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--purple-300);
    letter-spacing: 3px;
}

.ref-copy {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ref-copy:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
    transform: scale(1.05);
}
.ref-copy svg { width: 18px; height: 18px; }

/* Список рефералов */
.ref-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 12px;
}

.ref-item-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

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

.ref-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-item-username {
    font-size: 12px;
    color: var(--purple-400);
}

.ref-item-date {
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Пустое мини */
.empty-mini {
    text-align: center;
    padding: 20px 12px;
    color: var(--text-dim);
    font-size: 13px;
}
.empty-mini svg {
    width: 40px; height: 40px;
    color: rgba(168, 85, 247, 0.35);
    margin-bottom: 10px;
}

/* Скелетон */
.profile-skeleton {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 8, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

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

/* ==================== КНОПКА ВЫХОДА В ШАПКЕ ==================== */
.user-logout {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* Мобильные правки */
@media (max-width: 480px) {
    .screen-main { padding: 76px 12px 120px; }
    .hero h1 { font-size: 32px; }
    .profile-head { padding: 20px 12px 20px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-name { font-size: 19px; }
    .stat-card { padding: 12px 4px; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 10px; }
    .ref-code { font-size: 15px; letter-spacing: 2px; }
}