/* =============================================
   Desert Ads — Telegram Web App
   Тема: Пустыня / Золотые пески
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    /* Тёмная пустынная палитра */
    --sand-light: #2C2418;
    --sand: #3D3121;
    --sand-dark: #4E3D2A;
    --sand-deep: #5F4A33;
    --gold: #D4A017;
    --gold-light: #F0C75E;
    --gold-dark: #B8860B;
    --terracotta: #C0653A;
    --terracotta-dark: #8B4513;
    --sky-top: #0d1b2a;
    --sky-bottom: #2C2418;
    --dune-shadow: #A0845C;
    --oasis-green: #6B8E23;
    --oasis-teal: #2E8B57;
    --night-blue: #1a1a3e;
    --white: #FFFFFF;
    --text-primary: #F5E6C8;
    --text-secondary: #D4B978;
    --text-light: #C4A55A;
    --card-bg: rgba(44, 36, 24, 0.92);
    --card-border: rgba(212, 160, 23, 0.4);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0d1b2a 0%, #1b2838 25%, #2C2418 50%, #3D3121 75%, #2C2418 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 80px;
    position: relative;
}

/* ===== Песчаные частицы (анимация) ===== */

.online-badge {
    position: fixed;
    top: 56px;
    right: 12px;
    z-index: 99;
    background: rgba(44, 36, 24, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.online-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(46, 204, 113, 0); }
}

.sand-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sand-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: sandDrift linear infinite;
}

@keyframes sandDrift {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(calc(100vw + 50px)) translateY(-30px);
        opacity: 0;
    }
}

/* ===== Верхняя панель ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(80, 60, 20, 0.95), rgba(100, 80, 40, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.user-level {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.user-level i {
    color: #FFD700;
}

.balance-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-badge i {
    color: #FFD700;
}

/* ===== Основной контент ===== */
.content {
    position: relative;
    z-index: 1;
    padding: 70px 16px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Заголовки страниц ===== */
.page-header {
    text-align: center;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-header h1 i {
    color: var(--gold);
    margin-right: 6px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title i {
    color: var(--gold);
    margin-right: 6px;
}

/* ===== Ежедневный бонус ===== */
.daily-bonus-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #D4A017, #F0C75E);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    color: var(--white);
}

.daily-bonus-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.daily-bonus-info h3 {
    font-size: 15px;
    font-weight: 700;
}

.daily-bonus-info p {
    font-size: 12px;
    opacity: 0.9;
}

.btn-claim {
    margin-left: auto;
    background: var(--white);
    color: var(--gold-dark);
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-claim:hover {
    transform: scale(1.05);
}

.btn-claim:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Прогресс дня ===== */
.daily-progress-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-header i {
    color: var(--gold);
}

.progress-bar-container {
    height: 10px;
    background: var(--sand-light);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-hint {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    text-align: center;
}

/* ===== Карточки рекламы ===== */
.ads-section {
    margin-bottom: 20px;
}

.ad-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.ad-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.ad-card:active {
    transform: scale(0.98);
}

.ad-card.premium {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.15), rgba(240, 199, 94, 0.15));
    border-color: var(--gold);
}

.ad-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.ad-icon.video { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ad-icon.banner { background: linear-gradient(135deg, #3498db, #2980b9); }
.ad-icon.survey { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.ad-icon.install { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.ad-icon.interactive { background: linear-gradient(135deg, #e67e22, #d35400); }
.ad-icon.premium-icon { background: linear-gradient(135deg, #D4A017, #F0C75E); }

.ad-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ad-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.ad-reward {
    margin-left: auto;
    font-weight: 800;
    font-size: 15px;
    color: var(--oasis-teal);
    white-space: nowrap;
}

.premium-reward {
    color: var(--gold-dark) !important;
}

/* ===== КОШЕЛЁК ===== */
.wallet-balance-card {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--sand-deep));
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.wallet-balance-card.wallet-balance-compact {
    padding: 18px 16px;
    border-radius: 14px;
}

.wallet-balance-compact .wallet-icon-big {
    font-size: 26px;
    margin-bottom: 4px;
}

.wallet-balance-compact .wallet-amount {
    font-size: 26px;
}

.wallet-balance-compact .wallet-label {
    font-size: 12px;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.wallet-balance-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.wallet-icon-big {
    font-size: 36px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.wallet-amount {
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.wallet-label {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.wallet-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wallet-stat i {
    font-size: 18px;
    color: var(--gold);
}

.wallet-stat-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.wallet-stat-label {
    font-size: 10px;
    color: var(--text-light);
}

.wallet-actions {
    text-align: center;
    margin-bottom: 20px;
}

.btn-withdraw {
    background: linear-gradient(135deg, var(--oasis-teal), var(--oasis-green));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn-withdraw:active {
    transform: scale(0.97);
}

.withdraw-min {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
}

.wallet-methods {
    margin-bottom: 20px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.method-card:hover {
    background: rgba(212, 160, 23, 0.1);
    transform: translateX(4px);
}

.method-card i:first-child {
    font-size: 20px;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.method-card span {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.method-card i:last-child {
    color: var(--text-light);
    font-size: 12px;
}

/* Транзакции */
.transactions-section {
    margin-bottom: 20px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow);
}

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tx-icon.earn {
    background: rgba(46, 139, 87, 0.15);
    color: var(--oasis-teal);
}

.tx-icon.withdraw {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.tx-info {
    flex: 1;
}

.tx-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.tx-info p {
    font-size: 11px;
    color: var(--text-light);
}

.tx-amount {
    font-weight: 700;
    font-size: 14px;
}

.tx-amount.positive {
    color: var(--oasis-teal);
}

.tx-amount.negative {
    color: #e74c3c;
}

/* ===== СТАТИСТИКА ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* График */
.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.chart-container {
    padding-top: 10px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 140px;
    gap: 8px;
    padding-bottom: 24px;
    position: relative;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.chart-bar-wrapper::after {
    content: attr(data-day);
    position: absolute;
    bottom: -20px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

.chart-bar {
    width: 100%;
    max-width: 30px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 4px;
}

.chart-bar span {
    position: absolute;
    top: -18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Рекорды */
.records-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.record-item:last-child {
    border-bottom: none;
}

.record-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.record-label i {
    color: var(--gold);
    margin-right: 6px;
    width: 16px;
}

.record-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Лидерборд */
.leaderboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--sand-light);
    transition: var(--transition);
}

.leader-item.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leader-item.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.leader-item.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.leader-item.self {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15), rgba(46, 139, 87, 0.05));
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.leader-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.leader-item.gold .leader-rank { background: #FFD700; color: #8B6914; }
.leader-item.silver .leader-rank { background: #C0C0C0; color: #555; }
.leader-item.bronze .leader-rank { background: #CD7F32; color: #fff; }
.leader-item.self .leader-rank { background: var(--oasis-teal); }

.leader-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.leader-score {
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-dark);
}

/* ===== ДОСТИЖЕНИЯ ===== */

.achievements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.achievements-header:active {
    transform: scale(0.98);
}

.ach-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ach-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ach-toggle-icon {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.ach-toggle-icon.rotated {
    transform: rotate(180deg);
}

.achievements-grid.collapsed {
    display: none !important;
}

.achievements-progress {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.ach-progress-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-align: center;
}

.achievement-bar {
    background: linear-gradient(90deg, var(--terracotta), var(--gold)) !important;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.achievement-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-card.locked .ach-icon {
    filter: grayscale(100%);
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(240, 199, 94, 0.05));
}

.achievement-card.unlocked::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    color: var(--oasis-teal);
    font-weight: 800;
}

.ach-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 6px;
}

.achievement-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.achievement-card p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.ach-progress {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--sand-light);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== ПРОФИЛЬ ===== */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.profile-level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid var(--white);
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-rank-title {
    font-size: 13px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 14px;
}

.profile-xp {
    margin-top: 10px;
}

.xp-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 6px;
}

.xp-bar {
    background: linear-gradient(90deg, var(--oasis-teal), var(--oasis-green)) !important;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.profile-stat-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-stat-item i {
    font-size: 20px;
    color: var(--gold);
}

.pstat-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.pstat-label {
    font-size: 11px;
    color: var(--text-light);
}

/* Реферальная система */
.referral-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.referral-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.referral-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ref-input {
    flex: 1;
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.btn-copy {
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--gold-dark);
}

.btn-share {
    width: 100%;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-share:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Настройки */
.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item span {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item span i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

/* Тумблер */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--sand-dark);
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ===== Модальное окно рекламы ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-timer {
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.modal-body {
    padding: 40px 20px;
    text-align: center;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ad-loading-animation {
    font-size: 48px;
    color: var(--gold);
}

.ad-placeholder p {
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-footer {
    padding: 14px 16px;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.btn-skip {
    background: var(--sand);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-skip:not(:disabled):hover {
    background: var(--gold);
    color: var(--white);
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-next-ad {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-next-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

.btn-close-ad {
    background: var(--sand-dark);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-close-ad:hover {
    background: var(--sand-deep);
}

/* ===== Toast уведомление ===== */
.toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, var(--oasis-teal), var(--oasis-green));
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.4);
    white-space: normal;
    max-width: calc(100vw - 32px);
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Нижняя навигация ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(135deg, rgba(44, 36, 24, 0.95), rgba(61, 49, 33, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid var(--gold);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.nav-btn i {
    font-size: 20px;
    transition: var(--transition);
}

.nav-btn span {
    font-size: 10px;
    font-weight: 600;
}

.nav-btn.active {
    color: var(--gold-dark);
}

.nav-btn.active i {
    color: var(--gold);
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(212, 160, 23, 0.5);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
    transition: var(--transition);
}

.nav-btn.active::before {
    width: 60%;
}

/* ===== Адаптивность ===== */
@media (max-width: 380px) {
    .page-header h1 {
        font-size: 20px;
    }
    
    .wallet-amount {
        font-size: 28px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .achievement-card {
        padding: 12px;
    }
    
    .nav-btn span {
        font-size: 9px;
    }
}

/* ===== Скроллбар ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

/* ===== Анимация появления карточек ===== */
.ad-card, .stat-card, .achievement-card, .method-card, .leader-item {
    animation: cardAppear 0.4s ease backwards;
}

.ad-card:nth-child(1), .stat-card:nth-child(1) { animation-delay: 0.05s; }
.ad-card:nth-child(2), .stat-card:nth-child(2) { animation-delay: 0.1s; }
.ad-card:nth-child(3), .stat-card:nth-child(3) { animation-delay: 0.15s; }
.ad-card:nth-child(4), .stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-card:nth-child(8) { animation-delay: 0.4s; }
.ad-card:nth-child(5) { animation-delay: 0.25s; }
.ad-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Пульсация кнопки получения бонуса */
.btn-claim:not(:disabled) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

/* ===== Кнопка «Смотреть рекламу» ===== */
.watch-ad-section {
    text-align: center;
    margin-bottom: 20px;
}

.btn-watch-ad {
    width: 100%;
    background: linear-gradient(135deg, #D4A017, #F0C75E, #D4A017);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, watchPulse 2s infinite;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: var(--radius);
    padding: 24px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 30px rgba(212, 160, 23, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-watch-ad::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotateBg 6s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes watchPulse {
    0%, 100% { box-shadow: 0 6px 30px rgba(212, 160, 23, 0.5); }
    50% { box-shadow: 0 6px 40px rgba(212, 160, 23, 0.8), 0 0 60px rgba(212, 160, 23, 0.3); }
}

.btn-watch-ad:hover {
    transform: translateY(-3px);
}

.btn-watch-ad:active {
    transform: scale(0.97);
}

.btn-watch-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-watch-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.btn-watch-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-watch-reward {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.watch-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

/* ===== Видео в модалке ===== */
.ad-modal-video .modal-body {
    padding: 0;
}

.ad-video-container {
    width: 100%;
    background: #000;
    position: relative;
}

.ad-video-container video {
    width: 100%;
    max-height: 260px;
    display: block;
    object-fit: contain;
    background: #000;
    pointer-events: none;
}

.btn-mute {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.btn-mute:active {
    background: rgba(0,0,0,0.85);
}

/* ===== VIP ===== */
.vip-status-card {
    background: linear-gradient(135deg, #2C2418, #3D3121);
    border: 2px solid rgba(212, 160, 23, 0.3);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.vip-status-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.vip-status-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, #3D3121, #4E3D2A);
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.3);
}

.vip-crown {
    font-size: 42px;
    color: #555;
    margin-bottom: 10px;
    transition: var(--transition);
}

.vip-status-card.active .vip-crown {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.6);
    animation: crownGlow 2s ease infinite;
}

@keyframes crownGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(212, 160, 23, 0.6); }
    50% { text-shadow: 0 0 40px rgba(212, 160, 23, 0.9), 0 0 60px rgba(212, 160, 23, 0.3); }
}

.vip-status-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vip-status-desc {
    font-size: 13px;
    color: var(--text-light);
}

.vip-progress-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.vip-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.vip-progress-header i {
    color: var(--gold);
}

.vip-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)) !important;
}

.vip-referral-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.vip-bonuses-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.vip-bonus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    opacity: 0.45;
    transition: var(--transition);
}

.vip-bonus-item:last-child {
    border-bottom: none;
}

.vip-bonus-item.active {
    opacity: 1;
}

.vip-bonus-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3D3121, #4E3D2A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.vip-bonus-item.active .vip-bonus-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
}

.vip-bonus-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.vip-bonus-info p {
    font-size: 11px;
    color: var(--text-light);
}

/* ===== Ночные звёзды ===== */
.night-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none;
}

.night-stars.active {
    display: block;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5);
    animation: shoot linear forwards;
}

@keyframes shoot {
    0% { opacity: 1; transform: translateX(0) translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateX(300px) translateY(300px); }
}

/* ===== Промокод ===== */
.promo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--shadow);
}

.promo-input-box {
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-light);
}

.promo-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
}

.btn-promo {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-promo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

.btn-promo:active {
    transform: scale(0.96);
}

/* ===== Комбо бейдж ===== */
.modal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-badge {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    animation: comboPulse 1s infinite;
}

@keyframes comboPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== Модалка сундука ===== */
.chest-modal-content {
    text-align: center;
    padding: 30px 20px;
}

.chest-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chest-icon {
    font-size: 64px;
    color: var(--gold);
    animation: chestBounce 1s ease infinite;
}

.chest-icon.opened {
    animation: chestOpen 0.6s ease forwards;
}

@keyframes chestBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes chestOpen {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.3) rotate(-5deg); }
    60% { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.chest-icon.bronze { color: #CD7F32; }
.chest-icon.silver { color: #C0C0C0; }
.chest-icon.gold { color: #FFD700; }

.chest-modal-content h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.chest-modal-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.chest-reward {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    padding: 10px 0;
    animation: rewardPop 0.5s ease;
}

@keyframes rewardPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.btn-chest-open {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    animation: pulse 2s infinite;
}

.btn-chest-open:hover {
    transform: translateY(-2px);
}

/* ===== Бейдж буста X2 ===== */
.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 10px;
    animation: boostPulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(243, 156, 18, 0.5);
}

@keyframes boostPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(243, 156, 18, 0.5); }
    50% { box-shadow: 0 2px 20px rgba(243, 156, 18, 0.8); transform: scale(1.05); }
}

/* ===== Sahara Brand ===== */
.sahara-brand {
    text-align: center;
    padding: 8px 0 4px;
}

.sahara-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #F0C75E, #D4A017, #B8860B, #F0C75E);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
    text-shadow: none;
    margin: 0;
    padding: 0;
}

.sahara-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 6px auto 0;
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Progress Bar Completed ===== */
.progress-bar-fill.completed {
    background: linear-gradient(90deg, #2ecc71, #27ae60) !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.progress-hint i.fa-check-circle {
    color: #2ecc71;
    margin-right: 4px;
}

/* ===== Withdraw Modal ===== */
.withdraw-modal-content {
    max-width: 420px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
}

.withdraw-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.withdraw-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.withdraw-back-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 10px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.withdraw-back-btn:hover {
    color: var(--gold-light);
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.withdraw-amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
}

.withdraw-amount-info strong {
    color: var(--gold-light);
    font-size: 18px;
}

.withdraw-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.withdraw-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.withdraw-input {
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.withdraw-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.withdraw-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.btn-withdraw-confirm {
    background: linear-gradient(135deg, var(--oasis-teal), var(--oasis-green));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    margin-top: 4px;
}

.btn-withdraw-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn-withdraw-confirm:active {
    transform: scale(0.97);
}

/* ===== Transaction Status ===== */
.tx-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tx-status.status-processing {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.tx-status.status-approved {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tx-status.status-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ===== Withdrawal Transaction Highlight ===== */
.tx-withdraw-item {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.06), rgba(241, 196, 15, 0.04));
    border-left: 3px solid #e74c3c;
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    margin-bottom: 2px;
}

.tx-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tx-method-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab-btn {
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--terracotta));
    color: var(--white);
    border-color: var(--gold);
}
.admin-tab-btn i { font-size: 11px; }

.admin-section {
    display: none;
}
.admin-section.active {
    display: block;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.admin-stat-info {
    min-width: 0;
}
.admin-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.admin-stat-label {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 1px;
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.admin-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-card-title i {
    color: var(--gold);
    font-size: 14px;
}

/* Admin Search */
.admin-search-box {
    display: flex;
    gap: 8px;
}

.admin-input {
    flex: 1;
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.admin-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.admin-input-sm {
    width: 70px;
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    text-align: center;
}
.admin-input-sm:focus {
    border-color: var(--gold);
}

.admin-textarea {
    width: 100%;
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    resize: vertical;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.admin-textarea:focus {
    border-color: var(--gold);
}

/* Admin Buttons */
.admin-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.admin-btn:active { transform: scale(0.96); }

.admin-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
}
.admin-btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: var(--white);
}
.admin-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
}
.admin-btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
}
.admin-btn-secondary {
    background: var(--sand-light);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}
.admin-btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
    margin-top: 8px;
}

.admin-btn-sm {
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.admin-btn-sm.admin-btn-success { background: #2ecc71; }
.admin-btn-sm.admin-btn-danger { background: #e74c3c; }
.admin-btn-sm:active { transform: scale(0.9); }

/* Admin User profile */
.admin-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.admin-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.admin-user-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.admin-user-info p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.admin-user-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.admin-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}
.admin-badge-vip {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}
.admin-badge-banned {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.admin-badge-active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.admin-user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.admin-ustat {
    text-align: center;
    padding: 8px;
    background: var(--sand-light);
    border-radius: var(--radius-sm);
}
.admin-ustat-val {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}
.admin-ustat-lbl {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

.admin-user-actions h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.admin-action-row {
    margin-bottom: 12px;
}
.admin-action-group label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: block;
}
.admin-inline-input {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Admin Top Button */
.admin-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.admin-top-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin Edit Fields */
.admin-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.admin-edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.admin-edit-row label {
    font-size: 12px;
    color: var(--text-light);
    min-width: 90px;
    flex-shrink: 0;
}
.admin-edit-row .admin-inline-input {
    flex: 1;
}
.admin-edit-row .admin-input-sm {
    flex: 1;
    min-width: 0;
}

.admin-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Admin Settings */
.admin-settings-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-setting-item:last-child {
    border-bottom: none;
}
.admin-setting-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.admin-setting-desc {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}
.admin-setting-control {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}

/* Admin Promo */
.admin-promo-form {
    margin-bottom: 12px;
}
.admin-promo-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.admin-promo-list {
    max-height: 200px;
    overflow-y: auto;
}
.admin-promo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-promo-code {
    font-weight: 700;
    color: var(--gold);
    font-size: 13px;
    font-family: monospace;
}
.admin-promo-reward {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Admin Filters */
.admin-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.admin-filter-btn {
    background: var(--sand-light);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.admin-filter-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* Admin Withdrawal cards */
.admin-withdraw-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}
.admin-withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.admin-withdraw-user {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.admin-withdraw-amount {
    font-weight: 800;
    font-size: 16px;
    color: #e74c3c;
}
.admin-withdraw-details {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.admin-withdraw-details span {
    display: block;
    margin-bottom: 2px;
}
.admin-withdraw-actions {
    display: flex;
    gap: 8px;
}

/* Admin Events */
.admin-events-list {
    max-height: 300px;
    overflow-y: auto;
}
.admin-event-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: flex-start;
}
.admin-event-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.admin-event-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.admin-event-time {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Admin Chart (simple bar chart) */
.admin-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding: 10px 0;
}
.admin-chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--terracotta), var(--gold));
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    position: relative;
    transition: height 0.5s ease;
}
.admin-chart-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text-light);
    white-space: nowrap;
}
.admin-chart-bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Admin Logs */
.admin-logs-list {
    max-height: 400px;
    overflow-y: auto;
}
.admin-log-item {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 11px;
    align-items: flex-start;
}
.admin-log-time {
    color: var(--text-light);
    white-space: nowrap;
    min-width: 55px;
    font-family: monospace;
    font-size: 10px;
}
.admin-log-type {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.admin-log-type.log-admin {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}
.admin-log-type.log-user {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}
.admin-log-type.log-system {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}
.admin-log-msg {
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Admin Broadcast */
.admin-broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.admin-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

/* Admin Users table */
.admin-users-table {
    max-height: 400px;
    overflow-y: auto;
}
.admin-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 8px;
}
.admin-user-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.admin-user-row-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.admin-user-row-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-row-id {
    font-size: 10px;
    color: var(--text-light);
}
.admin-user-row-right {
    text-align: right;
    flex-shrink: 0;
}
.admin-user-row-balance {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}
.admin-user-row-status {
    font-size: 9px;
    color: var(--text-light);
}
