* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* === Палитра Boss Club === */
    --black: #0A0A0A;
    --black-2: #121212;
    --black-3: #1A1A1A;
    --graphite: #2A2A2A;

    --pink: #FF2D7A;         /* основной малиновый */
    --pink-bright: #FF4D92;
    --pink-soft: #FFB0C8;
    --pink-glow: rgba(255, 45, 122, 0.5);

    --white: #FFFFFF;
    --white-dim: rgba(255, 255, 255, 0.7);
    --white-faint: rgba(255, 255, 255, 0.4);

    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-strong: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-strong: rgba(255, 45, 122, 0.4);

    --mint: #6BE0C8;
    --danger: #FF4D4D;

    --font-display: 'Anton', 'Impact', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --text: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.65);
    --text-faint: rgba(255, 255, 255, 0.4);

    /* Отступы под вырез экрана. В полноэкранном режиме Telegram WebView
       занимает весь экран, поэтому верх уходит под чёлку / Dynamic Island. */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html, body {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text);
    min-height: 100vh;
    user-select: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Радиальные свечения на фоне */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 60%);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--pink-glow) 0%, transparent 60%);
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* ===== Денежный дождь ===== */
#moneyRain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Координатная сетка ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 45, 122, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 45, 122, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

/* ===== Боковой декор: тонкие полосы ===== */
.side-decor {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 44px;
    pointer-events: none;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 60px 0;
    opacity: 0.7;
}

.side-decor-left {
    left: 0;
}

.side-decor-right {
    right: 0;
}

.side-decor span {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--pink) 50%,
        transparent 100%
    );
    box-shadow: 0 0 12px var(--pink-glow);
}

/* Разная длина полос — ритм */
.side-decor span:nth-child(1)  { height: 32px; opacity: 0.4; }
.side-decor span:nth-child(2)  { height: 68px; opacity: 0.8; }
.side-decor span:nth-child(3)  { height: 22px; opacity: 0.35; }
.side-decor span:nth-child(4)  { height: 96px; opacity: 0.9; }
.side-decor span:nth-child(5)  { height: 40px; opacity: 0.5; }
.side-decor span:nth-child(6)  { height: 78px; opacity: 0.85; }
.side-decor span:nth-child(7)  { height: 28px; opacity: 0.4; }
.side-decor span:nth-child(8)  { height: 110px; opacity: 1; }
.side-decor span:nth-child(9)  { height: 46px; opacity: 0.55; }
.side-decor span:nth-child(10) { height: 60px; opacity: 0.7; }
.side-decor span:nth-child(11) { height: 34px; opacity: 0.45; }

/* Слева и справа — зеркалим порядок для асимметрии */
.side-decor-right span:nth-child(1)  { height: 68px; opacity: 0.8; }
.side-decor-right span:nth-child(2)  { height: 32px; opacity: 0.4; }
.side-decor-right span:nth-child(3)  { height: 96px; opacity: 0.9; }
.side-decor-right span:nth-child(4)  { height: 22px; opacity: 0.35; }
.side-decor-right span:nth-child(5)  { height: 78px; opacity: 0.85; }
.side-decor-right span:nth-child(6)  { height: 40px; opacity: 0.5; }
.side-decor-right span:nth-child(7)  { height: 110px; opacity: 1; }
.side-decor-right span:nth-child(8)  { height: 28px; opacity: 0.4; }
.side-decor-right span:nth-child(9)  { height: 60px; opacity: 0.7; }
.side-decor-right span:nth-child(10) { height: 46px; opacity: 0.55; }
.side-decor-right span:nth-child(11) { height: 34px; opacity: 0.45; }

/* На очень узких экранах прячем, чтобы не мешали */
@media (max-width: 380px) {
    .side-decor {
        width: 24px;
        opacity: 0.5;
    }
    .side-decor span {
        width: 1.5px;
    }
}
.app {
    max-width: 480px;
    margin: 0 auto;
    padding: calc(20px + var(--safe-top)) 16px 110px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* В полноэкранном режиме Telegram отдаёт собственный отступ — берём максимум
   из системного и телеграмного. Если переменная не задана, объявление
   отбрасывается и работает правило выше. */
@supports (padding-top: max(0px, 0px)) {
    .app {
        padding-top: calc(20px + max(env(safe-area-inset-top, 0px),
                                        var(--tg-safe-area-inset-top, 0px)));
    }
}

/* ===== BRAND ===== */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 0;
}

.brand-logo {
    display: block;
    height: 34px;
    width: auto;
}

/* ===== BAN BANNER ===== */
.ban-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15), rgba(255, 45, 122, 0.1));
    border: 1.5px solid var(--danger);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.2);
}

.ban-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ban-banner-title {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--danger);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.ban-banner-reason {
    font-size: 12px;
    color: var(--text-dim);
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-bright) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    box-shadow:
        0 0 0 2px var(--black),
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 6px 24px var(--pink-glow);
    flex-shrink: 0;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.user-meta {
    min-width: 0;
}

.name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.level-badge {
    font-size: 11px;
    color: var(--pink-soft);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.balance {
    text-align: right;
    flex-shrink: 0;
}

.points {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--pink);
    transition: transform 0.2s;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px var(--pink-glow);
    line-height: 1;
}

.points.bump {
    transform: scale(1.18);
}

.label {
    font-size: 9px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
}

/* ===== LEVEL PROGRESS ===== */
.level-progress {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
}

.level-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.level-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--pink-bright));
    border-radius: 3px;
    transition: width 0.6s ease;
    box-shadow: 0 0 14px var(--pink-glow);
}

/* ===== MAIN ===== */
.main { flex: 1; }

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.view-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 2px;
    white-space: nowrap;
    text-transform: uppercase;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--pink), transparent);
    opacity: 0.6;
}

.view-subtitle {
    font-family: var(--font-display);
    font-size: 14px;
    margin: 22px 0 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hidden { display: none !important; }

/* ===== HERO CARD ===== */
.hero-card {
    background: linear-gradient(135deg, var(--black-2) 0%, var(--black-3) 100%);
    border: 1.5px solid rgba(255, 45, 122, 0.3);
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 45, 122, 0.15);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 45, 122, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 45, 122, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.hero-kicker {
    font-size: 10px;
    color: var(--pink);
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 0.95;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-accent {
    color: var(--pink);
    text-shadow: 0 0 24px var(--pink-glow);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
}

.hero-tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
}

.hero-visual {
    position: relative;
    width: 90px;
    height: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket {
    font-size: 64px;
    filter: drop-shadow(0 0 20px var(--pink-glow)) hue-rotate(-20deg) saturate(1.6);
    position: relative;
    z-index: 1;
    animation: rocketFloat 4s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--pink-glow) 0%, transparent 60%);
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.15); }
}

/* ===== DAILY BONUS ===== */
.daily-bonus-card {
    background: linear-gradient(135deg, rgba(255, 45, 122, 0.15), rgba(255, 45, 122, 0.08));
    border: 1.5px solid rgba(255, 45, 122, 0.4);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 45, 122, 0.12);
}

.daily-bonus-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.daily-bonus-icon {
    font-size: 32px;
    animation: bounce 2.5s ease-in-out infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px var(--pink-glow));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(-8deg); }
}

.daily-bonus-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 3px;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.daily-bonus-sub {
    font-size: 11px;
    color: var(--text-dim);
}

.daily-bonus-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px var(--pink-glow);
    transition: transform 0.1s, box-shadow 0.2s;
    flex-shrink: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.daily-bonus-btn:active { transform: scale(0.95); }

.daily-bonus-btn:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-faint);
    box-shadow: none;
    cursor: default;
}

/* ===== TASKS ===== */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
    border: 1px solid var(--card-border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.task-card:active {
    transform: scale(0.98);
    background: var(--card-bg-strong);
    border-color: var(--card-border-strong);
}

.task-card.completed {
    opacity: 0.5;
    cursor: default;
}

.task-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    box-shadow: 0 4px 16px var(--pink-glow);
}

.task-body {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.task-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-reward {
    font-size: 11px;
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.task-status {
    padding: 7px 12px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--white);
    background: var(--pink);
    box-shadow: 0 4px 12px var(--pink-glow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.task-status.done {
    background: rgba(107, 224, 200, 0.15);
    color: var(--mint);
    box-shadow: none;
    border: 1px solid rgba(107, 224, 200, 0.3);
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
    position: relative;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(255, 45, 122, 0.12), rgba(255, 45, 122, 0.04));
    border: 1.5px solid rgba(255, 45, 122, 0.35);
    box-shadow: 0 8px 30px rgba(255, 45, 122, 0.1);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 16px var(--pink-glow);
}

.card-text {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
    color: var(--text-dim);
}

.card-text b {
    color: var(--pink);
    font-weight: 800;
}

.ref-link-box {
    display: flex;
    gap: 8px;
}

.ref-link-box input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    font-size: 12px;
    outline: none;
    min-width: 0;
    font-family: var(--font-body);
}

.copy-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px var(--pink-glow);
    transition: transform 0.1s;
    font-size: 12px;
    letter-spacing: 2px;
}

.copy-btn:active { transform: scale(0.95); }

/* ===== PROFILE ===== */
.profile-header {
    background: linear-gradient(135deg, rgba(255, 45, 122, 0.15), rgba(255, 45, 122, 0.05));
    border: 1.5px solid rgba(255, 45, 122, 0.35);
    border-radius: 22px;
    padding: 26px 20px;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 45, 122, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 45, 122, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-bright) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--white);
    margin: 0 auto 14px;
    box-shadow:
        0 0 0 3px var(--black),
        0 0 0 4px rgba(255, 255, 255, 0.15),
        0 0 50px var(--pink-glow),
        0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--white);
    position: relative;
    z-index: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.profile-level {
    font-size: 12px;
    color: var(--pink);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-balance {
    font-size: 14px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

.profile-balance span:first-child {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--pink);
    text-shadow: 0 0 24px var(--pink-glow);
    margin-right: 6px;
    letter-spacing: 1px;
}

.profile-balance-label {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-tile {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: border-color 0.2s;
}

.stat-tile:active {
    border-color: var(--card-border-strong);
}

.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 4px 16px var(--pink-glow);
    font-weight: 900;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 9px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ===== FRIENDS / HISTORY ===== */
.friends-list, .history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-item, .history-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border: 1px solid var(--card-border);
}

.friend-item .friend-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.friend-item .friend-rank {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
    text-align: center;
}

.friend-item .friend-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--pink-bright));
    color: var(--white);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px var(--black),
        0 2px 12px var(--pink-glow);
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ===== АВАТАРЫ-КАРТИНКИ ===== */
/* Круглые контейнеры обрезают картинку по кругу; фон остаётся для буквы
   и эмодзи у старых пользователей. */
.avatar,
.profile-avatar,
.friend-item .friend-avatar {
    overflow: hidden;
}

.avatar img,
.profile-avatar img,
.friend-item .friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* У аватаров с ушками круг рисует сама картинка, поэтому контейнер ничего
   не обрезает — иначе ушки срезаются по углам. */
.avatar.has-image,
.profile-avatar.has-image,
.friend-item .friend-avatar.has-image {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.avatar.has-image img,
.profile-avatar.has-image img,
.friend-item .friend-avatar.has-image img {
    object-fit: contain;
    border-radius: 0;
}

.friend-item > span:last-child {
    color: var(--pink);
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 1px;
}

.history-item .amount {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--mint);
    letter-spacing: 0.5px;
}

.history-item .date {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
}

.history-item .reason {
    font-size: 10px;
    color: var(--text-dim);
    text-align: right;
    max-width: 140px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== EMPTY & SKELETON ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.empty-icon {
    font-size: 46px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.empty-sub {
    font-size: 13px;
    color: var(--text-dim);
}

.skeleton-card {
    height: 82px;
    border-radius: 16px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 45, 122, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border: 1px solid var(--card-border);
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ===== УРОВНИ И БАЛАНС ===== */
.levels-section {
    margin-bottom: 22px;
}

.levels-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.levels-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    padding: 5px 0;
}

.levels-row b {
    color: var(--white);
    font-size: 14px;
    white-space: nowrap;
}

.levels-bar {
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 12px 0 10px;
}

.levels-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--pink), var(--pink-bright));
    box-shadow: 0 0 16px var(--pink-glow);
    transition: width 0.4s ease;
}

.levels-hint {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-faint);
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    font-size: 13px;
}

.level-row.done {
    opacity: 0.6;
}

.level-row.current {
    background: rgba(255, 45, 122, 0.12);
    border-color: var(--card-border-strong);
    box-shadow: 0 0 20px rgba(255, 45, 122, 0.18);
}

.level-emoji {
    flex-shrink: 0;
    width: 22px;
    font-size: 18px;
    text-align: center;
}

.level-name {
    flex: 1;
    font-weight: 700;
    color: var(--white);
}

.level-need {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
}

.level-status {
    min-width: 84px;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    color: var(--text-faint);
    white-space: nowrap;
}

.level-row.current .level-status {
    color: var(--pink-bright);
}

.level-row.done .level-status {
    color: var(--mint);
}

/* --- максимальный уровень и его награда --- */
.level-row.max {
    background: linear-gradient(90deg, rgba(255, 216, 107, 0.13), rgba(255, 45, 122, 0.08));
    border-color: rgba(255, 216, 107, 0.34);
}

.level-row.max .level-status {
    color: #FFD86B;
}

.level-reward {
    position: relative;
    margin-top: 2px;
    padding: 14px 15px 6px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(140deg,
        rgba(255, 216, 107, 0.11),
        rgba(255, 45, 122, 0.13) 55%,
        rgba(150, 90, 255, 0.13));
    border: 1px solid rgba(255, 216, 107, 0.3);
}

.level-reward::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -25%;
    width: 60%;
    height: 220%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(16deg);
    pointer-events: none;
}

.level-reward.locked {
    opacity: 0.82;
}

.level-reward-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.level-reward-title {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.6px;
    color: #FFE9A8;
}

.level-reward-state {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}

.level-reward.unlocked .level-reward-state {
    background: rgba(107, 224, 200, 0.16);
    color: var(--mint);
}

.level-reward-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 9px 0;
}

.level-reward-item + .level-reward-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.level-reward-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.level-reward-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.level-reward-icon.premium {
    background: linear-gradient(140deg, rgba(255, 216, 107, 0.24), rgba(255, 45, 122, 0.18));
    border-color: rgba(255, 216, 107, 0.38);
    box-shadow: 0 0 16px rgba(255, 180, 61, 0.25);
}

.level-reward-icon.task {
    color: var(--pink-bright);
}

.level-reward-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.level-reward-body b {
    font-size: 13.5px;
    letter-spacing: 0.2px;
    color: var(--white);
}

.level-reward-body span {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-dim);
}

/* ===== ЭКРАН «ОТКРОЙ ЧЕРЕЗ TELEGRAM» ===== */
.gate {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 6, 8, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gate-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
    background: linear-gradient(180deg, #1A1016, #0F0F0F);
    border: 1px solid var(--card-border-strong);
    border-radius: 24px;
    padding: 28px 22px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gate-icon {
    font-size: 44px;
}

.gate-title {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1.5px;
    margin: 8px 0 12px;
    color: var(--pink);
}

.gate-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.gate-btn {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--pink-bright), var(--pink));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--pink-glow);
}

.gate-btn:active {
    transform: scale(0.98);
}

.gate-hint {
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--text-faint);
    word-break: break-all;
}

/* ===== TABS ===== */
.tabs {
    position: fixed;
    bottom: calc(16px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 22px;
    padding: 6px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 45, 122, 0.15);
    border: 1px solid var(--card-border);
    max-width: 460px;
    width: calc(100% - 32px);
    z-index: 10;
}

.tab {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: var(--text);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tab:disabled {
    cursor: not-allowed;
    opacity: 0.25;
}

.tab-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.25s;
    border: 1px solid transparent;
}

.tab-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tab.active {
    opacity: 1;
}

.tab.active .tab-icon-wrap {
    background: var(--pink);
    color: var(--white);
    box-shadow: 0 0 20px var(--pink-glow);
    transform: scale(1.08);
}

.tab.active .tab-label {
    color: var(--pink);
}

/* ===== КНОПКА ИГРЫ В МЕНЮ ===== */
/* Геометрия как у остальных вкладок, но вместо кружка — сам геймпад:
   розовый на тёмной панели, при выборе подсвечивается. */
.tab-game {
    flex: 1;
}

.tab-game .tab-icon-wrap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.tab-game-icon {
    display: block;
    width: 34px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(255, 45, 122, 0.45));
    transition: transform 0.25s, filter 0.25s;
}

.tab-game.active .tab-icon-wrap {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.tab-game.active .tab-game-icon {
    transform: scale(1.14);
    filter: drop-shadow(0 0 14px rgba(255, 45, 122, 0.95));
}

.tab-game:disabled .tab-game-icon {
    filter: grayscale(1);
}

/* ===== ИГРА «ЛОВИ GLAM» ===== */
#view-game {
    padding-bottom: 24px;
}

.game-hero {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 22px 18px;
    text-align: center;
    margin-bottom: 16px;
}

.game-hero-glow {
    position: absolute;
    top: -70px;
    left: 50%;
    width: 230px;
    height: 230px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--pink-glow), transparent 70%);
    pointer-events: none;
}

.game-hero-emoji {
    font-size: 44px;
    position: relative;
}

.game-hero-title {
    position: relative;
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: 2px;
    margin: 8px 0 6px;
    color: var(--white);
}

.game-hero-text {
    position: relative;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 300px;
    margin: 0 auto;
}

.game-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.game-stat {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
}

.game-stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
    color: var(--pink);
}

.game-stat-sep {
    color: var(--text-faint);
    margin: 0 2px;
}

.game-stat-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-faint);
    margin-top: 6px;
}

.game-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.game-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 12px;
}

.game-rule-icon {
    font-size: 16px;
}

.game-start-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--pink-bright), var(--pink));
    color: var(--white);
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--pink-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-start-btn:active {
    transform: scale(0.97);
}

.game-start-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-faint);
    box-shadow: none;
    cursor: not-allowed;
}

/* --- экран раунда --- */
#gamePlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #1A0A12 0%, #0A0A0A 60%);
}

.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 8px;
}

.game-hud-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 64px;
}

.game-hud-right {
    align-items: flex-end;
}

.game-hud-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-faint);
}

.game-hud-value {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
    color: var(--white);
}

.game-hud-value.boosted {
    color: #FFD54A;
    text-shadow: 0 0 18px rgba(255, 213, 74, 0.7);
}

.game-hud-lives {
    display: flex;
    gap: 4px;
    font-size: 18px;
}

.game-life.lost {
    opacity: 0.35;
}

.game-timer {
    height: 4px;
    margin: 0 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.game-timer-fill {
    height: 100%;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pink), var(--pink-bright));
    transition: width 0.2s linear, background 0.3s;
}

.game-timer-fill.warning {
    background: linear-gradient(90deg, #FF8C1A, var(--danger));
}

.game-freeze-badge {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(143, 232, 255, 0.16);
    border: 1px solid rgba(143, 232, 255, 0.5);
    color: #B8F0FF;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(143, 232, 255, 0.8);
    pointer-events: none;
}

#gameCanvas {
    flex: 1;
    width: 100%;
    display: block;
    touch-action: none;
    cursor: pointer;
}

.game-combo-flash {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 40px;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.game-combo-flash.show {
    animation: game-flash-pop 0.7s ease-out;
}

@keyframes game-flash-pop {
    0%   { opacity: 0; transform: translateX(-50%) scale(0.6); }
    25%  { opacity: 1; transform: translateX(-50%) scale(1.15); }
    70%  { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.05); }
}

/* --- экран результата --- */
#gameResult {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.game-result-card {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(180deg, #1A1016, #0F0F0F);
    border: 1px solid var(--card-border-strong);
    border-radius: 24px;
    padding: 26px 20px 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.game-result-crown {
    font-size: 46px;
}

.game-result-title {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
    margin: 6px 0 14px;
    color: var(--pink);
}

.game-result-score {
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    color: var(--white);
}

.game-result-unit {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-faint);
    margin-top: 6px;
}

.game-result-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
}

.game-result-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 14px;
}

.game-result-row b {
    color: var(--white);
}

.game-close-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: transparent;
    color: var(--text-dim);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open { display: flex; }

.modal-content {
    background: linear-gradient(180deg, var(--black-3) 0%, var(--black) 100%);
    border-radius: 24px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 400px;
    border: 1.5px solid rgba(255, 45, 122, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 45, 122, 0.15);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px;
    box-shadow: 0 0 40px var(--pink-glow);
    font-family: var(--font-display);
    color: var(--white);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 16px;
}

.modal-reward {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 10px;
    background: rgba(255, 45, 122, 0.15);
    border: 1px solid rgba(255, 45, 122, 0.4);
    color: var(--pink);
    font-family: var(--font-display);
    font-size: 14px;
    margin-bottom: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-action-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px var(--pink-glow);
    transition: transform 0.1s;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.modal-action-btn:active { transform: scale(0.97); }

.modal-check-btn {
    width: 100%;
    padding: 15px;
    border: 1.5px solid rgba(107, 224, 200, 0.5);
    border-radius: 14px;
    background: transparent;
    color: var(--mint);
    font-family: var(--font-display);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.modal-check-btn:active {
    transform: scale(0.97);
    background: rgba(107, 224, 200, 0.1);
}

.modal-check-btn:disabled {
    opacity: 0.4;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-faint);
}

.modal-close-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--pink);
    color: var(--white);
    padding: 13px 24px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    box-shadow: 0 10px 40px var(--pink-glow);
    max-width: 90vw;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
    box-shadow: 0 10px 40px rgba(255, 77, 77, 0.5);
}

/* ===== NEWS ===== */
.news-section {
    margin-bottom: 22px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card {
    background: linear-gradient(135deg, rgba(255, 45, 122, 0.1), rgba(255, 45, 122, 0.04));
    border: 1.5px solid rgba(255, 45, 122, 0.3);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, border-color 0.2s;
}

.news-card:active {
    transform: scale(0.99);
    border-color: rgba(255, 45, 122, 0.5);
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pink);
    box-shadow: 0 0 12px var(--pink-glow);
}

.news-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 1.5px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px var(--pink-glow);
}

.news-title {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--white);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.2;
    padding-left: 10px;
}

.news-announce {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    padding-left: 10px;
}

.news-date {
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
    padding-left: 10px;
    font-weight: 600;
}

/* ===== CREATE TASK ===== */
.create-task-section {
    margin-top: 24px;
}

.create-task-info {
    background: linear-gradient(135deg, rgba(255, 45, 122, 0.12), rgba(255, 45, 122, 0.04));
    border: 1.5px solid rgba(255, 45, 122, 0.3);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
}

.create-task-badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px var(--pink-glow);
}

.create-task-info p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.create-task-cost {
    font-size: 14px !important;
    color: var(--text) !important;
    margin-bottom: 0 !important;
}

.create-task-cost b {
    color: var(--pink);
    font-weight: 800;
    font-size: 16px;
}

.create-task-open-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px var(--pink-glow);
    transition: transform 0.1s;
    text-transform: uppercase;
}

.create-task-open-btn:active {
    transform: scale(0.97);
}

.create-task-open-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-faint);
    box-shadow: none;
    cursor: default;
}

.my-requests {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    position: relative;
}

.request-item.pending {
    border-left: 3px solid var(--gold);
}
.request-item.approved {
    border-left: 3px solid var(--mint);
}
.request-item.rejected {
    border-left: 3px solid var(--danger);
    opacity: 0.7;
}

.request-item-title {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--white);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.request-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-dim);
}

.request-status {
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.request-status.pending {
    background: rgba(255, 216, 158, 0.15);
    color: var(--gold);
}
.request-status.approved {
    background: rgba(107, 224, 200, 0.15);
    color: var(--mint);
}
.request-status.rejected {
    background: rgba(255, 77, 77, 0.15);
    color: var(--danger);
}

.request-comment {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 6px;
    font-style: italic;
}

/* Модалка создания */
#createTaskModal .modal-content {
    max-width: 420px;
}

#createTaskModal input,
#createTaskModal textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    resize: vertical;
}

#createTaskModal textarea {
    min-height: 70px;
}

#createTaskModal input:focus,
#createTaskModal textarea:focus {
    border-color: var(--pink);
}

#createTaskModal .modal-title {
    text-align: center;
}