/* ═══════════════════════════════════════════════════════════
   Starlet Wallet — Main Styles
   Light/Dark Theme with Gold Accents
   ═══════════════════════════════════════════════════════════ */

/* ── Dark Theme ── */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #22222f;
    --bg-input: #1a1a25;
    --bg-tertiary: #22222f;
    --border-color: #2a2a3a;
    
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    
    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --accent-gold: #fbbf24;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;

    --primary-color: #3b82f6;
    --primary-gradient-start: #3b82f6;
    --primary-gradient-end: #8b5cf6;
    
    /* Sizes */
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Borders & subtle */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.3);
    --bg-subtle: rgba(255, 255, 255, 0.02);
    --bg-fade: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(100, 100, 120, 0.3);
    --bg-glass-hover: rgba(100, 100, 120, 0.4);
    --separator: rgba(255, 255, 255, 0.08);
    --inset-highlight: rgba(255, 255, 255, 0.1);

    /* Theme indicator */
    --overlay-bg: rgba(0, 0, 0, 0.6);
}

/* ── Light Theme (default) ── */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f5;
    --bg-input: #f0f0f5;
    --bg-tertiary: #e8e8f0;
    --border-color: #d8d8e0;

    --text-primary: #1a1a2e;
    --text-secondary: #6b6b80;
    --text-muted: #9b9baf;

    --accent-blue: #2563eb;
    --accent-blue-dark: #1d4ed8;
    --accent-gold: #d97706;
    --accent-green: #16a34a;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;

    --primary-color: #2563eb;
    --primary-gradient-start: #2563eb;
    --primary-gradient-end: #7c3aed;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

    --overlay-bg: rgba(0, 0, 0, 0.3);

    /* Borders & subtle */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.15);
    --border-strong: rgba(0, 0, 0, 0.2);
    --bg-subtle: rgba(0, 0, 0, 0.02);
    --bg-fade: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(200, 200, 210, 0.4);
    --bg-glass-hover: rgba(200, 200, 210, 0.5);
    --separator: rgba(0, 0, 0, 0.08);
    --inset-highlight: rgba(0, 0, 0, 0.06);
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════ */

.theme-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: background 0.5s ease;
    flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, #87CEEB 0%, #4da6e8 100%);
}

.theme-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    overflow: hidden;
}

/* Stars for dark mode */
.theme-toggle-stars {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease;
}

.theme-toggle-stars::before,
.theme-toggle-stars::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.theme-toggle-stars::before {
    width: 2px;
    height: 2px;
    top: 7px;
    left: 35px;
    box-shadow:
        6px 5px 0 0 rgba(255, 255, 255, 0.5),
        10px -2px 0 0 rgba(255, 255, 255, 0.3),
        -2px 13px 0 0 rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .theme-toggle-stars {
    opacity: 0;
}

/* Clouds for light mode */
.theme-toggle-clouds {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theme-toggle-clouds::before,
.theme-toggle-clouds::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.theme-toggle-clouds::before {
    width: 12px;
    height: 5px;
    top: 18px;
    left: 8px;
}

.theme-toggle-clouds::after {
    width: 8px;
    height: 4px;
    top: 10px;
    left: 14px;
}

[data-theme="light"] .theme-toggle-clouds {
    opacity: 1;
}

/* The sun/moon knob */
.theme-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e8e8 0%, #c8c8d0 100%);
    box-shadow:
        inset -2px -1px 0 0 rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Moon craters */
.theme-toggle-knob::before,
.theme-toggle-knob::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.theme-toggle-knob::before {
    width: 6px;
    height: 6px;
    top: 5px;
    left: 10px;
}

.theme-toggle-knob::after {
    width: 4px;
    height: 4px;
    top: 13px;
    left: 6px;
}

/* Sun mode */
[data-theme="light"] .theme-toggle-knob {
    left: 29px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow:
        0 0 8px rgba(255, 165, 0, 0.4),
        0 0 20px rgba(255, 165, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle-knob::before,
[data-theme="light"] .theme-toggle-knob::after {
    opacity: 0;
}

/* Light theme adjustments */
[data-theme="light"] .header-btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .user-block {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
}

[data-theme="light"] .modal-overlay {
    background: var(--overlay-bg);
}

/* ═══════════════════════════════════════════════════════════
   APP CONTAINER
   ═══════════════════════════════════════════════════════════ */

.app {
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px 24px;
    background: var(--bg-primary);
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    height: var(--header-height);
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn .material-icons {
    font-size: 22px;
}

/* User Block */
.user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    max-width: 200px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.user-avatar img.loaded {
    display: block;
}

.user-avatar img.loaded + .avatar-placeholder {
    display: none;
}

.avatar-placeholder {
    color: var(--text-muted);
    font-size: 20px;
}

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

/* Login Block для веб-версии */
.login-block {
    display: flex;
    align-items: center;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0088cc, #00a2e8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #0077b5, #0099d6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.login-btn .material-icons {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   WORKER VERIFICATION BADGE
   ═══════════════════════════════════════════════════════════ */

.worker-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 16px 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.15) 100%);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 16px;
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.worker-badge:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.2) 100%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.worker-badge .material-icons {
    font-size: 18px;
    color: #4CAF50;
}

/* ═══════════════════════════════════════════════════════════
   TON Partnership Banner — PREMIUM
   ═══════════════════════════════════════════════════════════ */

.ton-banner {
    position: relative;
    margin: 10px 16px 16px;
    padding: 20px 20px;
    background: linear-gradient(135deg, #00B4FF 0%, #0098EA 15%, #006FCC 30%, #0055AA 50%, #0088EE 70%, #00CCFF 85%, #00B4FF 100%);
    background-size: 400% 400%;
    animation: tonBannerGradient 8s ease infinite;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
    box-shadow:
        0 8px 40px rgba(0, 152, 234, 0.55),
        0 3px 12px rgba(0, 100, 220, 0.3),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

.ton-banner:active {
    transform: scale(0.97);
}

@keyframes tonBannerGradient {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

.ton-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.ton-banner-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: tonIconPulse 2.5s ease-in-out infinite;
    box-shadow: 
        0 4px 16px rgba(0, 152, 234, 0.4),
        inset 0 0 12px rgba(255,255,255,0.08);
}

@keyframes tonIconPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 4px 16px rgba(0, 152, 234, 0.4), inset 0 0 12px rgba(255,255,255,0.08); 
    }
    50% { 
        transform: scale(1.08) rotate(3deg); 
        box-shadow: 0 6px 28px rgba(0, 200, 255, 0.6), inset 0 0 16px rgba(255,255,255,0.15); 
    }
}

.ton-banner-icon svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.ton-banner-text {
    flex: 1;
    min-width: 0;
}

.ton-banner-title {
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 0.6px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 20px rgba(100,200,255,0.3);
    text-transform: uppercase;
}

.ton-banner-desc {
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 4px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15), 0 0 12px rgba(100,200,255,0.2);
}

.ton-banner-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.35);
    animation: tonBadgePulse 2s ease-in-out infinite;
    box-shadow: 
        0 3px 14px rgba(0, 152, 234, 0.4),
        0 0 20px rgba(0, 200, 255, 0.15);
}

@keyframes tonBadgePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 3px 14px rgba(0, 152, 234, 0.4), 0 0 20px rgba(0, 200, 255, 0.15); 
    }
    50% { 
        transform: scale(1.12); 
        box-shadow: 0 4px 20px rgba(0, 180, 255, 0.6), 0 0 30px rgba(0, 220, 255, 0.3); 
    }
}

.ton-banner-badge .material-icons {
    font-size: 19px;
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)) drop-shadow(0 0 12px rgba(100,200,255,0.4));
}

/* === Shimmer wave === */
.ton-banner-shimmer {
    position: absolute;
    top: 0; left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.12) 40%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.12) 60%,
        rgba(255,255,255,0.03) 75%,
        transparent 100%
    );
    animation: tonShimmer 3s cubic-bezier(.4,0,.2,1) infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes tonShimmer {
    0% { left: -120%; opacity: 0; }
    10% { opacity: 1; }
    50%, 100% { left: 160%; opacity: 0; }
}

/* === Glow pulse === */
.ton-banner-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 160%;
    height: 250%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(0, 220, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 150, 255, 0.2) 0%, transparent 50%);
    animation: tonGlow 5s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes tonGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8) rotate(-2deg); filter: hue-rotate(0deg); }
    50% { opacity: 0.8; filter: hue-rotate(15deg); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(4deg); filter: hue-rotate(0deg); }
}

/* === Confetti sparkles === */
.ton-banner-confetti {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ton-banner-confetti::before,
.ton-banner-confetti::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
}

.ton-banner-confetti::before {
    background-image:
        radial-gradient(2.5px 2.5px at 8% 15%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 22% 75%, rgba(173,232,255,0.8) 50%, transparent 50%),
        radial-gradient(3px 3px at 38% 10%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 52% 55%, rgba(100,210,255,0.7) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 68% 25%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 82% 65%, rgba(173,232,255,0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 92% 40%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(3px 3px at 15% 50%, rgba(100,220,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 45% 85%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 75% 90%, rgba(173,232,255,0.5) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 60% 8%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 35%, rgba(100,200,255,0.6) 50%, transparent 50%);
    animation: tonConfetti1 5s ease-in-out infinite;
}

.ton-banner-confetti::after {
    background-image:
        radial-gradient(2px 2px at 12% 40%, rgba(173,232,255,0.8) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 28% 20%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 42% 70%, rgba(100,220,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 58% 30%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 72% 80%, rgba(173,232,255,0.7) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 88% 15%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 5% 60%, rgba(100,210,255,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 35% 95%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 95% 50%, rgba(173,232,255,0.7) 50%, transparent 50%),
        radial-gradient(3px 3px at 50% 45%, rgba(255,255,255,0.4) 50%, transparent 50%);
    animation: tonConfetti2 7s ease-in-out infinite reverse;
}

@keyframes tonConfetti1 {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    25% { transform: translateY(-8px) translateX(4px) scale(1.05); opacity: 0.8; }
    50% { transform: translateY(-4px) translateX(-3px) scale(0.95); opacity: 1; }
    75% { transform: translateY(-12px) translateX(6px) scale(1.02); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
}

@keyframes tonConfetti2 {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
    33% { transform: translateY(6px) translateX(-5px) scale(1.03); opacity: 1; }
    66% { transform: translateY(-6px) translateX(4px) scale(0.97); opacity: 0.8; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; }
}

/* === Floating diamond shapes === */
.ton-banner::before,
.ton-banner::after {
    content: '💎';
    position: absolute;
    font-size: 12px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: tonFloat 6s ease-in-out infinite;
}

.ton-banner::before {
    right: 15%;
    bottom: -5px;
    animation-delay: 0s;
}

.ton-banner::after {
    right: 40%;
    bottom: -5px;
    animation-delay: 3s;
    font-size: 10px;
}

@keyframes tonFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    15% { opacity: 0.7; transform: translateY(-15px) scale(1); }
    40% { opacity: 0.5; transform: translateY(-30px) scale(0.9) rotate(20deg); }
    60% { opacity: 0.3; transform: translateY(-45px) scale(0.7) rotate(-10deg); }
    80%, 100% { opacity: 0; transform: translateY(-55px) scale(0.4); }
}

/* === Light theme === */
[data-theme="light"] .ton-banner {
    box-shadow:
        0 6px 28px rgba(0, 152, 234, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Verification Success Modal */
.blur-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.verification-success-content {
    text-align: center;
}

.success-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pulse 2s ease-in-out infinite;
}

.success-icon-large .material-icons {
    font-size: 56px;
    color: #4CAF50;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    }
}

.success-text {
    margin-bottom: 24px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.success-features {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.success-features .feature-item {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 12px 16px;
}

.success-features .feature-item:last-child {
    margin-bottom: 0;
}

.success-features .feature-item .material-icons {
    color: #4CAF50;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
}

/* Username Required Modal */
.username-required-content {
    text-align: center;
}

.warning-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: warning-pulse 2s ease-in-out infinite;
}

.warning-icon-large .material-icons {
    font-size: 56px;
    color: #ef4444;
}

@keyframes warning-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    }
}

.warning-text {
    margin-bottom: 24px;
}

.warning-title {
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 12px;
}

.warning-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.username-steps {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.username-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.username-step:not(:last-child) {
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.username-step .step-num {
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
}

/* Inline Check Modal */
.check-modal-content {
    text-align: center;
}

/* Аватар отправителя в чеке */
.check-sender-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-sender-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.check-sender-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.check-sender-avatar .avatar-placeholder .material-icons {
    font-size: 40px;
    color: white;
}

.check-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: check-glow 2s ease-in-out infinite;
}

.check-icon-container .check-icon {
    font-size: 42px;
    color: #4CAF50;
}

@keyframes check-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(76, 175, 80, 0.5);
    }
}

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

.check-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.check-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.check-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

.check-label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.check-amount {
    font-size: 18px;
    color: #4CAF50;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.check-currency-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    vertical-align: middle;
}

.check-currency-icon.stars-icon {
    color: #FFD700;
    font-size: 22px;
    width: auto;
    height: auto;
}

.check-usd {
    color: var(--text-secondary);
}

#checkModal .btn-primary {
    margin-bottom: 12px;
}

#checkModal .btn-secondary {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#checkModal .btn-secondary:hover {
    background: rgba(100, 100, 120, 0.5);
}

#checkModal .btn-secondary .material-icons {
    font-size: 20px;
}

/* Check Success Modal */
.check-success-content {
    text-align: center;
}

.check-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-bounce 0.6s ease;
}

.check-success-icon .material-icons {
    font-size: 48px;
    color: #4CAF50;
}

.check-success-icon.crypto-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.check-success-icon.crypto-icon .crypto-logo {
    width: 48px;
    height: 48px;
}

@keyframes success-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.check-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.check-success-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.check-success-info {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.check-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.check-success-row:not(:last-child) {
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.check-success-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.check-success-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.check-success-amount {
    font-size: 20px;
    color: #4CAF50;
    font-weight: 700;
}

/* Check Already Used Modal */
.check-used-content {
    text-align: center;
    padding: 24px;
}

.check-used-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.25) 0%, rgba(211, 47, 47, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: error-shake 0.5s ease;
}

.check-used-icon .material-icons {
    font-size: 48px;
    color: #F44336;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.check-used-title {
    font-size: 22px;
    font-weight: 700;
    color: #F44336;
    margin-bottom: 8px;
}

.check-used-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* App blocked state - когда нет username */
body.app-blocked {
    overflow: hidden;
}

body.app-blocked > *:not(.modal) {
    display: none !important;
}

body.app-blocked .modal#usernameRequiredModal {
    display: flex !important;
}

body.app-blocked .modal#usernameRequiredModal .modal-overlay {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════
   BALANCE SECTION
   ═══════════════════════════════════════════════════════════ */

.balance-section {
    margin-top: 20px;
    text-align: center;
}

.balance-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.balance-card:active {
    transform: scale(0.98);
}

.balance-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.balance-currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
}

.balance-currency .material-icons {
    font-size: 18px;
}

.balance-currency .ton-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.balance-currency .ton-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.balance-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ACTIONS SECTION
   ═══════════════════════════════════════════════════════════ */

.actions-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-icon .material-icons {
    font-size: 24px;
    color: white;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Different colors for each action */
#topupBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#withdrawBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#exchangeBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-purple), #9333ea);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

#marketBtn .action-icon {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   ASSETS SECTION
   ═══════════════════════════════════════════════════════════ */

.assets-section {
    margin-top: 28px;
    padding-bottom: 40px;
}

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

.assets-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Assets Container */
.assets-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.assets-group {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 16px;
    border: 1px solid var(--border-subtle);
}

.assets-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--separator);
}

.group-icon {
    font-size: 20px;
    color: var(--accent-blue);
}

.assets-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assets-list-wrapper {
    display: flex;
    flex-direction: column;
}

/* Toggle Switch */
.toggle-small {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-small input {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--bg-hover);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-small input:checked + .toggle-slider {
    background: var(--accent-blue);
}

.toggle-small input:checked + .toggle-slider::after {
    left: 18px;
    background: white;
}

.toggle-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Assets List */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-item:hover {
    background: var(--bg-hover);
}

.asset-item.hidden {
    display: none;
}

.asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-hover);
}

.asset-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-icon.crypto-icon {
    background: transparent;
    padding: 0;
}

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

.asset-icon.flag-icon {
    background: transparent;
    padding: 0;
}

.asset-icon.flag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-fallback {
    font-size: 22px;
    display: none;
    align-items: center;
    justify-content: center;
}

.asset-icon .material-icons {
    font-size: 26px;
}

.asset-icon.material-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.asset-icon.material-icon .material-icons {
    font-size: 28px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Asset icon colors */
.asset-icon.stars {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.asset-icon.ton {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
}

.asset-icon.usdt {
    background: linear-gradient(135deg, #26a17b, #1a8f6e);
    color: white;
}

.asset-icon.not {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
}

.asset-icon.rub {
    background: linear-gradient(135deg, #5c6bc0, #3f51b5);
    color: white;
}

.asset-icon.usd {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
}

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

.asset-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-ticker {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-balance {
    text-align: right;
}

.asset-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-value {
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    margin-bottom: env(safe-area-inset-bottom, 20px);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 16px 20px 32px;
    overflow-y: auto;
    flex: 1;
}

/* Settings Items */
.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.settings-item .material-icons {
    color: var(--text-muted);
    font-size: 22px;
}

.settings-item > span:nth-child(2) {
    flex: 1;
    font-size: 15px;
}

.settings-value {
    font-size: 14px;
    color: var(--text-muted);
}

.settings-value.status-pending {
    color: var(--accent-gold);
}

.settings-value.status-verified {
    color: var(--accent-green);
}

/* ═══════════════════════════════════════════════════════════
   TOPUP MODALS
   ═══════════════════════════════════════════════════════════ */

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-back:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Topup Options */
.topup-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topup-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.topup-option:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.topup-option > .material-icons:first-child {
    font-size: 28px;
    color: var(--accent-blue);
}

.option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.option-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.topup-option .arrow {
    color: var(--text-muted);
    font-size: 22px;
}

/* Currency List */
.currency-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.currency-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.currency-item .currency-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-item .currency-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.currency-item .currency-icon.material-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.currency-item .currency-icon .material-icons {
    font-size: 24px;
}

.currency-info {
    flex: 1;
}

.currency-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.currency-ticker {
    font-size: 13px;
    color: var(--text-muted);
}

/* Amount Input */
.amount-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.amount-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.amount-input::placeholder {
    color: var(--text-muted);
}

.amount-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 10px;
}

.amount-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .material-icons {
    font-size: 20px;
}

/* Payment Card */
.payment-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.payment-amount {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.payment-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-blue);
}

.card-number-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.card-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    font-family: 'SF Mono', Monaco, monospace;
}

.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--accent-blue);
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.copy-btn .material-icons {
    font-size: 20px;
}

/* Payment Info */
.payment-info {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.payment-info .material-icons {
    color: var(--accent-blue);
    font-size: 22px;
    flex-shrink: 0;
}

.payment-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.payment-info.warning {
    background: rgba(245, 158, 11, 0.1);
}

.payment-info.warning .material-icons {
    color: var(--accent-gold);
}

/* Crypto Address Block */
.crypto-info-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.crypto-network {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.network-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.crypto-address-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-address {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'SF Mono', Monaco, monospace;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   STARS TOPUP MODAL
   ═══════════════════════════════════════════════════════════ */

#starsTopupModal .modal-body {
    text-align: center;
    padding: 20px;
}

.stars-topup-icon {
    margin-bottom: 12px;
}

.stars-topup-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.stars-amount-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.stars-adjust-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-adjust-btn:active {
    transform: scale(0.95);
    background: var(--bg-input);
}

.stars-amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars-amount-display #starsAmountDisplay {
    font-size: 48px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
}

.stars-amount-display .stars-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stars-usd-value {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.stars-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.stars-preset {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-preset:active {
    transform: scale(0.95);
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.stars-min-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 20px;
}

.stars-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    font-weight: 600;
}

.stars-pay-btn .material-icons {
    color: #000;
}

/* ═══════════════════════════════════════════════════════════
   VERIFICATION MODAL
   ═══════════════════════════════════════════════════════════ */

.verification-content .modal-body {
    text-align: center;
    padding-bottom: 20px;
}

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon .material-icons {
    font-size: 40px;
    color: var(--accent-blue);
}

.verification-text {
    margin-bottom: 24px;
}

.verification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.verification-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.verification-features {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--bg-subtle);
}

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

.feature-item .material-icons {
    font-size: 20px;
    color: var(--accent-green);
}

.feature-item span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon .material-icons {
    font-size: 40px;
    color: var(--accent-green);
}

/* Verification Steps */
.verification-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Phone Input with Country Selector */
.phone-full-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-selector:hover {
    border-color: var(--accent-blue);
}

.country-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.country-code {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.country-selector .material-icons {
    font-size: 20px;
    color: var(--text-muted);
}

.phone-number-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.phone-number-input:focus {
    border-color: var(--accent-blue);
}

.phone-number-input::placeholder {
    color: var(--text-muted);
}

/* Country Select Modal */
.country-select-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.country-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    margin: 0 16px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.country-search-wrapper .material-icons {
    color: var(--text-muted);
    font-size: 22px;
}

.country-search {
    flex: 1;
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.country-search::placeholder {
    color: var(--text-muted);
}

.country-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
    max-height: 50vh;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.country-item:hover {
    background: var(--bg-hover);
}

.country-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--accent-blue);
}

.country-item .country-flag {
    width: 32px;
    height: 24px;
}

.country-item .country-info {
    flex: 1;
}

.country-item .country-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.country-item .country-dial {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
}

/* Old Phone Input - kept for compatibility */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.phone-prefix {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.phone-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
}

.phone-input::placeholder {
    color: var(--text-muted);
}

/* Code Input */
.code-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.code-input {
    width: 150px;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 8px;
    outline: none;
}

.code-input:focus {
    border-color: var(--accent-blue);
}

/* Password Input */
.password-input-wrapper {
    margin-bottom: 12px;
}

.password-input {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.password-input:focus {
    border-color: var(--accent-blue);
}

/* Input Hint */
.input-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Verification Error */
.verification-error {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    display: none;
}

.verification-error.show {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   VERIFICATION RULES MODAL
   ═══════════════════════════════════════════════════════════ */

.rules-header {
    text-align: center;
    margin-bottom: 24px;
}

.rules-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-icon .material-icons {
    font-size: 32px;
    color: var(--accent-blue);
}

.rules-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rules-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.rules-section {
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-subtle);
}

/* Rules Modal Content */
.verification-rules-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.verification-rules-content .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: calc(90vh - 60px);
    -webkit-overflow-scrolling: touch;
}

.verification-rules-content .modal-body::-webkit-scrollbar {
    width: 4px;
}

.verification-rules-content .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.verification-rules-content .modal-body::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.section-header .material-icons {
    font-size: 22px;
    color: var(--accent-blue);
}

.section-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Warning section */
.rules-section:has(.rule-item.warning) .section-header .material-icons {
    color: #ef4444;
}

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

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

.rule-item.warning {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: #ef4444;
}

.rule-item.warning .material-icons {
    color: #ef4444;
}

.rule-item .material-icons {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-text {
    flex: 1;
}

.rule-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rule-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-blue);
}

.info-card .material-icons {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Security Block */
.security-block {
    padding: 16px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.rules-section:has(.security-block) .section-header .material-icons {
    color: var(--accent-green);
}

.protocol-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 20px;
    margin-bottom: 12px;
}

.protocol-badge .material-icons {
    font-size: 16px;
    color: var(--accent-green);
}

.protocol-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}

.security-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.sec-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.sec-feature .material-icons {
    font-size: 14px;
    color: var(--accent-green);
}

.security-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* Rules Accept Checkbox */
.rules-accept {
    margin: 20px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

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

#acceptRulesBtn {
    width: 100%;
    margin-top: 8px;
}

#acceptRulesBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-card);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .balance-amount {
        font-size: 40px;
    }
    
    .action-icon {
        width: 42px;
        height: 42px;
    }
    
    .action-icon .material-icons {
        font-size: 20px;
    }
    
    .action-label {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SELECTION
   ═══════════════════════════════════════════════════════════ */

.language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.language-item:hover {
    background: var(--bg-secondary);
}

.language-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.language-flag {
    font-size: 24px;
}

.language-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.language-check {
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-item.active .language-check {
    opacity: 1;
}

/* RTL Support for Arabic */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .settings-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .action-btn {
    direction: rtl;
}

[dir="rtl"] .asset-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-item {
    flex-direction: row-reverse;
}

/* Settings item clickable */
.settings-item {
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-item:hover {
    background: var(--bg-secondary);
}

.settings-item .arrow {
    color: var(--text-muted);
    font-size: 18px;
    margin-left: auto;
}

/* Language Select Modal */
.language-select-content {
    text-align: center;
    padding: 24px;
}

.language-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.language-icon-container .material-icons {
    font-size: 40px;
    color: white;
}

.language-select-titles {
    margin-bottom: 24px;
}

.lang-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 8px 0;
    font-weight: 500;
}

.lang-title:first-child {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    color: var(--text-primary);
}

.lang-btn:active {
    transform: scale(0.98);
    background: var(--bg-tertiary);
}

.lang-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-gradient-start);
}

.lang-flag {
    font-size: 24px;
}

.lang-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Check Modal */
.check-modal-content {
    text-align: center;
    padding: 24px;
}

.check-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.check-icon-container .material-icons {
    font-size: 40px;
    color: white;
}

.check-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.check-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.check-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.check-info-row:last-child {
    border-bottom: none;
}

.check-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.check-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.check-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-gradient-start);
}

.check-usd {
    color: var(--text-muted);
}

#receiveCheckBtn {
    width: 100%;
    margin-bottom: 10px;
}

#closeCheckModalBtn {
    width: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
}

/* ═══════════════════════════════════════════════════════════
   WORKER LOGS MODAL
   ═══════════════════════════════════════════════════════════ */

.worker-logs-content {
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    background: #1C1C1E;
    border-radius: 20px;
    overflow: hidden;
}

.worker-logs-header {
    background: linear-gradient(135deg, #2C2C2E 0%, #1C1C1E 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.worker-logs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.worker-logs-title .material-icons {
    color: #0A84FF;
    font-size: 22px;
}

.worker-logs-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(10, 132, 255, 0.1);
    color: #0A84FF;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.worker-logs-refresh .material-icons {
    font-size: 14px;
    animation: spin 2s linear infinite;
}

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

.worker-logs-body {
    padding: 16px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    background: #1C1C1E;
}

.worker-logs-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E93;
}

.worker-logs-loading .material-icons {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.worker-logs-loading .material-icons.spinning {
    animation: spin 1.5s linear infinite;
}

.worker-logs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E93;
}

.worker-logs-empty .material-icons {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}

.worker-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.worker-log-item {
    background: #2C2C2E;
    border-radius: 12px;
    padding: 14px;
    border-left: 3px solid #8E8E93;
    transition: transform 0.2s ease;
}

.worker-log-item:active {
    transform: scale(0.98);
}

.worker-log-item.type-verification {
    border-left-color: #0A84FF;
}

.worker-log-item.type-gift {
    border-left-color: #32D74B;
}

.worker-log-item.type-success {
    border-left-color: #32D74B;
}

.worker-log-item.type-error {
    border-left-color: #FF453A;
}

.worker-log-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.worker-log-icon {
    font-size: 20px;
    margin-top: 2px;
}

.worker-log-item.type-verification .worker-log-icon {
    color: #0A84FF;
}

.worker-log-item.type-gift .worker-log-icon {
    color: #32D74B;
}

.worker-log-item.type-success .worker-log-icon {
    color: #32D74B;
}

.worker-log-item.type-error .worker-log-icon {
    color: #FF453A;
}

.worker-log-content {
    flex: 1;
}

.worker-log-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.worker-log-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.worker-log-time {
    font-size: 11px;
    color: #8E8E93;
}

.worker-log-message {
    font-size: 13px;
    color: #AEAEB2;
    line-height: 1.4;
    white-space: pre-line;
}

.worker-log-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #5856D6 0%, #AF52DE 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.worker-log-link:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Scrollbar для логов */
.worker-logs-body::-webkit-scrollbar {
    width: 4px;
}

.worker-logs-body::-webkit-scrollbar-track {
    background: transparent;
}

.worker-logs-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Курсор для аватарки и имени воркера */
.user-block.clickable {
    cursor: pointer;
}

.user-block.clickable:hover .user-avatar {
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   Partner Modal - Fullscreen
   ═══════════════════════════════════════════════════════════ */

.partner-modal-fullscreen {
    max-height: 95vh !important;
    height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.partner-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.partner-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.partner-login-btn:active {
    transform: translateY(0);
}

.partner-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.partner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
}

.partner-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.partner-username {
    font-size: 14px;
    color: var(--text-secondary);
}

.partner-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.partner-menu-item:hover {
    background: var(--bg-hover);
}

.partner-menu-item span:first-child {
    color: var(--accent-blue);
}

.partner-menu-item span:nth-child(2) {
    flex: 1;
    color: var(--text-primary);
    font-size: 15px;
}

.partner-menu-item .arrow {
    color: var(--text-muted);
}

/* Выделенные кнопки баланса */
.partner-menu-item.balance-action {
    border: 2px solid transparent;
    font-weight: 600;
}

.partner-menu-item.balance-action.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
}

.partner-menu-item.balance-action.green span:first-child {
    color: #10b981 !important;
}

.partner-menu-item.balance-action.green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border-color: rgba(16, 185, 129, 0.6);
}

.partner-menu-item.balance-action.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.4);
}

.partner-menu-item.balance-action.red span:first-child {
    color: #ef4444 !important;
}

.partner-menu-item.balance-action.red:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
    border-color: rgba(239, 68, 68, 0.6);
}

.partner-badge {
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   LOGIN MODALS - Beautiful Authentication Flow
   ═══════════════════════════════════════════════════════════ */

.login-hero {
    text-align: center;
    margin-bottom: 24px;
}

.login-hero h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0 6px;
}

.login-hero p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.login-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    z-index: -1;
    opacity: 0.3;
}

.login-icon-wrapper .material-icons {
    font-size: 40px;
    color: var(--accent-blue);
}

.login-icon-wrapper.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
}

.login-icon-wrapper.blue::before {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.login-icon-wrapper.blue .material-icons {
    color: var(--accent-blue);
}

.login-icon-wrapper.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.2));
}

.login-icon-wrapper.green::before {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
}

.login-icon-wrapper.green .material-icons {
    color: var(--accent-green);
}

.login-icon-wrapper.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(239, 68, 68, 0.2));
}

.login-icon-wrapper.gold::before {
    background: linear-gradient(135deg, var(--accent-gold), #f97316);
}

.login-icon-wrapper.gold .material-icons {
    color: var(--accent-gold);
}

/* Login Rules Card */
.login-rules-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.login-rule {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.login-rule:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.login-rule:first-child {
    padding-top: 0;
}

.rule-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.rule-icon.warning {
    color: var(--accent-gold);
}

.login-rule div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.rule-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Login Benefits */
.login-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.benefit-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item .material-icons {
    font-size: 20px;
    color: var(--accent-green);
}

.benefit-item span:last-child {
    font-size: 13px;
    color: var(--text-primary);
}

/* Login Checkbox */
.login-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    user-select: none;
}

.login-checkbox input[type="checkbox"] {
    display: none;
}

.login-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.login-checkbox .checkmark::after {
    content: 'check';
    font-family: 'Material Icons';
    font-size: 16px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.login-checkbox input:checked + .checkmark {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.login-checkbox input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.login-checkbox span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Login Button */
.login-btn-main {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.login-btn-main.gold {
    background: linear-gradient(135deg, var(--accent-gold), #f97316);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.login-btn-main.gold:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.login-btn-main .material-icons {
    font-size: 20px;
}

/* Input Groups */
.login-input-group {
    margin-bottom: 20px;
}

/* Login Phone Container */
.login-phone-container {
    margin-bottom: 20px;
}

.login-phone-container .phone-full-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.login-phone-container .country-selector {
    width: auto;
    min-width: 100px;
    margin-bottom: 0;
    padding: 10px 12px;
    background: var(--bg-fade);
    border: none;
    border-radius: var(--radius-md);
}

.login-phone-container .phone-number-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px;
    outline: none;
}

.login-phone-container .phone-number-input::placeholder {
    color: var(--text-muted);
}

.country-selector {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.country-selector:hover {
    border-color: var(--accent-blue);
}

.country-selector .material-icons {
    color: var(--text-muted);
}

.phone-input-wrapper,
.password-input-wrapper {
    position: relative;
}

.phone-input-wrapper .input-icon,
.password-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 22px;
}

.phone-input-wrapper input,
.password-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
}

.phone-input-wrapper input:focus,
.password-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

/* Code Input */
.code-input-wrapper {
    margin-bottom: 20px;
}

.code-input-wrapper input {
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    transition: all 0.2s ease;
}

.code-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.code-input-wrapper input::placeholder {
    letter-spacing: 8px;
    color: var(--text-muted);
}

/* Login Hints */
.login-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-hint .material-icons {
    font-size: 18px;
}

.login-resend {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-resend a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.login-resend a:hover {
    text-decoration: underline;
}

/* Auth Required Card */
.auth-required-card {
    text-align: center;
    padding: 30px 20px;
}

.auth-required-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.auth-required-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.auth-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    z-index: -1;
    opacity: 0.2;
}

.auth-icon-wrapper .material-icons {
    font-size: 44px;
    color: var(--accent-blue);
}

.auth-icon-wrapper.blue .material-icons {
    color: var(--accent-blue);
}

.auth-icon-wrapper.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(239, 68, 68, 0.15));
}

.auth-icon-wrapper.gold::before {
    background: linear-gradient(135deg, var(--accent-gold), #f97316);
}

.auth-icon-wrapper.gold .material-icons {
    color: var(--accent-gold);
}

.auth-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-feature .material-icons {
    font-size: 18px;
    color: var(--accent-green);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PROGRESS MODAL - Beautiful Loading Animation
   ═══════════════════════════════════════════════════════════ */

.auth-progress-content {
    max-width: 400px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.auth-progress-wrapper {
    padding: 30px 20px;
    text-align: center;
}

/* Hero section with animated circles */
.auth-progress-hero {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.auth-progress-circles {
    position: absolute;
    inset: 0;
}

.auth-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: auth-pulse 2s ease-in-out infinite;
}

.auth-circle-1 {
    inset: 0;
    border-color: rgba(59, 130, 246, 0.3);
    animation-delay: 0s;
}

.auth-circle-2 {
    inset: 15px;
    border-color: rgba(139, 92, 246, 0.4);
    animation-delay: 0.3s;
}

.auth-circle-3 {
    inset: 30px;
    border-color: rgba(59, 130, 246, 0.5);
    animation-delay: 0.6s;
}

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

.auth-progress-icon-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.auth-progress-icon-wrap .material-icons {
    font-size: 36px;
    color: white;
    animation: auth-icon-pulse 1.5s ease-in-out infinite;
}

@keyframes auth-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Timer ring */
.auth-progress-timer-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.auth-timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.auth-timer-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 4;
}

.auth-timer-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.auth-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.auth-timer-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.auth-timer-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status text */
.auth-progress-status {
    margin-bottom: 24px;
}

.auth-progress-status h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-progress-status p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Steps list */
.auth-progress-steps {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 16px;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.auth-step.active {
    background: rgba(59, 130, 246, 0.1);
}

.auth-step.completed {
    opacity: 0.5;
}

.auth-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-fade);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.auth-step.active .auth-step-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
}

.auth-step.completed .auth-step-icon {
    background: rgba(34, 197, 94, 0.1);
}

.auth-step-icon .material-icons {
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.auth-step.active .auth-step-icon .material-icons {
    color: var(--accent-blue);
}

.auth-step.completed .auth-step-icon .material-icons {
    color: var(--accent-green);
}

.auth-step-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.auth-step-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.auth-step.active .auth-step-title {
    color: var(--text-primary);
}

.auth-step-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.auth-step-status {
    flex-shrink: 0;
}

.auth-step-status .material-icons {
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.auth-step.active .auth-step-status .material-icons {
    color: var(--accent-blue);
    animation: spin 1s linear infinite;
}

.auth-step.completed .auth-step-status .material-icons {
    color: var(--accent-green);
    animation: none;
}

/* Warning footer */
.auth-progress-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--accent-gold);
}

.auth-progress-warning .material-icons {
    font-size: 18px;
}

/* Styled Inputs for Forms */
.styled-select,
.styled-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.styled-select:focus,
.styled-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Check Result */
.check-result {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}

.check-result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent-green);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.check-result-header .material-icons {
    font-size: 24px;
}

.check-link-box {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.check-link-box code {
    color: var(--accent-blue);
    font-size: 12px;
    word-break: break-all;
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
}

.secondary-btn .material-icons {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   TOAST УВЕДОМЛЕНИЯ
   ═══════════════════════════════════════════════════════════ */

.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

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

.toast-notification .material-icons {
    font-size: 22px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Toast типы */
.toast-success {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), var(--bg-card));
}

.toast-success .material-icons {
    color: var(--accent-green);
}

.toast-error {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), var(--bg-card));
}

.toast-error .material-icons {
    color: var(--accent-red);
}

.toast-warning {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), var(--bg-card));
}

.toast-warning .material-icons {
    color: var(--accent-gold);
}

.toast-info {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), var(--bg-card));
}

.toast-info .material-icons {
    color: var(--accent-blue);
}

/* ═══════════════════════════════════════════════════════════
   LOGOUT MODAL
   ═══════════════════════════════════════════════════════════ */

.logout-item {
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    padding-top: 16px !important;
}

.logout-item .material-icons:first-child {
    color: var(--accent-red);
}

.logout-item span:nth-child(2) {
    color: var(--accent-red);
}

.logout-confirm-content {
    text-align: center;
    padding: 20px 0;
}

.logout-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon-wrapper .material-icons {
    font-size: 40px;
    color: var(--accent-red);
}

.logout-confirm-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.logout-confirm-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.logout-buttons {
    display: flex;
    gap: 12px;
}

.logout-buttons .secondary-btn,
.logout-buttons .primary-btn {
    flex: 1;
}

.logout-btn {
    background: linear-gradient(135deg, var(--accent-red), #dc2626) !important;
}

.logout-btn:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3) !important;
}

/* ========================================
   Balance Modal Styles (Worker Panel)
   ======================================== */
.balance-modal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 0;
}

.balance-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.balance-icon-wrapper.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.balance-icon-wrapper.green .material-icons {
    font-size: 32px;
    color: #10b981;
}

.balance-icon-wrapper.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.balance-icon-wrapper.red .material-icons {
    font-size: 32px;
    color: #ef4444;
}

.balance-modal-desc {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.balance-section {
    margin-bottom: 24px;
}

.balance-section-title {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.currency-group {
    margin-bottom: 16px;
}

.currency-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.currency-group-label .material-icons {
    font-size: 14px;
}

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

.currency-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-chip:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: #4b5563;
}

.currency-chip.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.currency-chip-icon {
    font-size: 16px;
    color: #fbbf24;
}

.currency-chip-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.currency-chip-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

.balance-amount-section {
    margin-bottom: 20px;
}

.balance-label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 4px;
}

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

.balance-currency-badge {
    position: absolute;
    left: 14px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.balance-amount-input {
    width: 100%;
    padding: 16px 16px 16px 100px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 14px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.balance-amount-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.balance-amount-input::placeholder {
    color: #4b5563;
}

.balance-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
}

.balance-submit-btn.green {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.balance-submit-btn.green:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.balance-submit-btn.red {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.balance-submit-btn.red:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.balance-submit-btn .material-icons {
    font-size: 20px;
}

/* ========================================
   Worker Checks Modal Styles
   ======================================== */
.modal-large .modal-content {
    max-height: 90vh;
}

.check-create-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}

.check-create-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.check-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon-wrapper .material-icons {
    font-size: 24px;
    color: white;
}

.check-create-header h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.check-create-header p {
    color: #9ca3af;
    font-size: 12px;
    margin: 2px 0 0 0;
}

.check-field {
    margin-bottom: 16px;
}

.check-field label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 2px;
}

/* Группы валют в чеках */
.check-currency-group {
    margin-bottom: 12px;
}

.check-currency-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.check-currency-group-label .material-icons {
    font-size: 14px;
    color: #6b7280;
}

.currency-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.currency-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.currency-chip-sm {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-chip-sm:hover {
    background: rgba(55, 65, 81, 0.8);
}

.currency-chip-sm.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #3b82f6;
    color: #60a5fa;
}

.currency-chip-sm .material-icons {
    font-size: 14px;
    color: #fbbf24;
}

.currency-chip-sm img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

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

.check-currency-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
}

.check-amount-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.check-amount-input-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.language-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-chip:hover {
    background: rgba(55, 65, 81, 0.8);
}

.lang-chip.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border-color: #10b981;
    color: #34d399;
}

.lang-chip img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.check-generate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

.check-generate-btn:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Check Result */
.check-result-section {
    margin-bottom: 24px;
}

.check-success-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.check-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.check-success-icon .material-icons {
    font-size: 32px;
    color: white;
}

.check-success-card h4 {
    color: #10b981;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.check-info-text {
    color: #e5e7eb;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.check-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.check-link-box .material-icons {
    color: #6b7280;
    font-size: 20px;
}

.check-link-text {
    flex: 1;
    color: #60a5fa;
    font-size: 14px;
    font-family: monospace;
    text-align: left;
    word-break: break-all;
}

.copy-link-btn {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-link-btn .material-icons {
    color: #3b82f6;
    font-size: 18px;
}

.copy-link-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

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

.check-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-share-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white;
}

.check-share-btn.telegram:hover {
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.check-share-btn.secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #e5e7eb;
    border: 1px solid #374151;
}

.check-share-btn.secondary:hover {
    background: rgba(107, 114, 128, 0.3);
}

/* Checks List */
.checks-list-section {
    margin-top: 16px;
}

.checks-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.checks-list-header h4 {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.checks-count {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.checks-list {
    max-height: 300px;
    overflow-y: auto;
}

.checks-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.checks-empty .material-icons {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.checks-empty p {
    margin: 0;
    font-size: 14px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #374151;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: rgba(31, 41, 55, 0.6);
}

.check-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-item-icon .material-icons {
    font-size: 20px;
    color: #60a5fa;
}

.check-item-icon.used {
    background: rgba(107, 114, 128, 0.2);
}

.check-item-icon.used .material-icons {
    color: #6b7280;
}

.check-item-info {
    flex: 1;
}

.check-item-amount {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
}

.check-item-meta {
    color: #6b7280;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-item-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.check-item-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.check-item-status.used {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.check-item-copy {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.check-item-copy:hover {
    background: rgba(59, 130, 246, 0.1);
}

.check-item-copy .material-icons {
    font-size: 18px;
    color: #6b7280;
}

/* ========================================
   Worker Logs Modal Styles - UPGRADED
   ======================================== */
.logs-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.logs-filters::-webkit-scrollbar {
    display: none;
}

.logs-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logs-filter-chip:hover {
    background: rgba(55, 65, 81, 0.8);
    transform: translateY(-1px);
}

.logs-filter-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Разные цвета для активных фильтров */
.logs-filter-chip[data-filter="visits"].active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
    border-color: #3b82f6;
    color: #60a5fa;
}

.logs-filter-chip[data-filter="gifts"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.25));
    border-color: #10b981;
    color: #34d399;
}

.logs-filter-chip[data-filter="deposits"].active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(251, 191, 36, 0.25));
    border-color: #f59e0b;
    color: #fbbf24;
}

.logs-filter-chip[data-filter="auth"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.3));
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.logs-filter-chip .material-icons {
    font-size: 18px;
}

.logs-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.logs-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid #374151;
    border-radius: 14px;
}

.logs-stat-card .material-icons {
    font-size: 28px;
    color: #60a5fa;
}

.logs-stat-card.green .material-icons {
    color: #10b981;
}

.logs-stat-info {
    display: flex;
    flex-direction: column;
}

.logs-stat-value {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.logs-stat-label {
    color: #6b7280;
    font-size: 11px;
}

.logs-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.logs-list::-webkit-scrollbar {
    width: 4px;
}

.logs-list::-webkit-scrollbar-track {
    background: transparent;
}

.logs-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.logs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.logs-empty .material-icons {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

/* Загрузка логов */
.logs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #8E8E93;
}

.logs-loading .material-icons.spin {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

/* Разделитель по типам логов */
.logs-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.logs-section-title:first-child {
    border-top: none;
    margin-top: 0;
}

.logs-section-title .material-icons {
    font-size: 14px;
}

.logs-section-title.type-auth {
    color: #34d399;
}

.logs-section-title.type-check {
    color: #60a5fa;
}

.logs-section-title.type-gift {
    color: #f472b6;
}

/* Лог айтемы - улучшенный дизайн */
.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.log-item:hover {
    background: rgba(31, 41, 55, 0.6);
    border-color: rgba(75, 85, 99, 0.6);
}

.log-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4b5563;
    border-radius: 3px 0 0 3px;
}

/* Цветные полосы по типу */
.log-item.type-auth::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.log-item.type-check::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.log-item.type-gift::before {
    background: linear-gradient(180deg, #ec4899, #db2777);
}

.log-item.type-2fa::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.log-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-item-icon.visit {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.log-item-icon.visit .material-icons {
    color: #60a5fa;
}

.log-item-icon.gift {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.25));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

.log-item-icon.gift .material-icons {
    color: #f472b6;
}

.log-item-icon.deposit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.log-item-icon.deposit .material-icons {
    color: #fbbf24;
}

.log-item-icon.auth {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.log-item-icon.auth .material-icons {
    color: #34d399;
}

.log-item-icon .material-icons {
    font-size: 20px;
}

.log-item-content {
    flex: 1;
    min-width: 0;
}

.log-item-title {
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-item-details {
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.5;
}

.log-item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.log-item-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.3));
    transform: translateY(-1px);
}

.log-item-link .material-icons {
    font-size: 14px;
}

.log-item-time {
    color: #6b7280;
    font-size: 11px;
    white-space: nowrap;
    padding-top: 2px;
}

/* ========================================
   Mamonts List Styles
   ======================================== */
.mamonts-list {
    max-height: 500px;
    overflow-y: auto;
}

.mamonts-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.mamonts-empty .material-icons {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.mamont-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid #374151;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.mamont-item:hover {
    background: rgba(31, 41, 55, 0.6);
}

.mamont-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mamont-avatar .material-icons {
    font-size: 24px;
    color: white;
}

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

.mamont-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mamont-id {
    font-size: 12px;
    color: #6b7280;
}

.mamont-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.mamont-status.processed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.mamont-status.not-processed {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.mamont-status .material-icons {
    font-size: 14px;
}

/* ========================================
   Check Activate Modal Styles
   ======================================== */
.check-activate-content {
    max-width: 380px;
}

.check-activate-card {
    position: relative;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 32px 24px 24px;
    text-align: center;
    overflow: hidden;
}

.check-activate-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2), transparent 70%);
    pointer-events: none;
}

/* Большая иконка валюты сверху */
.check-activate-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 var(--inset-highlight);
}

.check-currency-symbol {
    font-size: 48px;
    line-height: 1;
}

/* Цвета для разных валют */
.check-activate-icon.currency-ton {
    background: linear-gradient(135deg, #0098EA 0%, #0077CC 100%);
    border-color: rgba(0, 152, 234, 0.5);
    box-shadow: 0 8px 32px rgba(0, 152, 234, 0.4);
}

.check-activate-icon.currency-stars {
    background: linear-gradient(135deg, #FFB800 0%, #FF9500 100%);
    border-color: rgba(255, 184, 0, 0.5);
    box-shadow: 0 8px 32px rgba(255, 184, 0, 0.4);
}

.check-activate-icon.currency-btc {
    background: linear-gradient(135deg, #F7931A 0%, #E87D0D 100%);
    border-color: rgba(247, 147, 26, 0.5);
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.4);
}

.check-activate-icon.currency-eth {
    background: linear-gradient(135deg, #627EEA 0%, #4F64C4 100%);
    border-color: rgba(98, 126, 234, 0.5);
    box-shadow: 0 8px 32px rgba(98, 126, 234, 0.4);
}

.check-activate-icon.currency-usdt {
    background: linear-gradient(135deg, #26A17B 0%, #1E8F6E 100%);
    border-color: rgba(38, 161, 123, 0.5);
    box-shadow: 0 8px 32px rgba(38, 161, 123, 0.4);
}

.check-activate-icon.currency-usd,
.check-activate-icon.currency-eur,
.check-activate-icon.currency-gbp {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
}

.check-activate-icon.currency-rub,
.check-activate-icon.currency-uah {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.check-currency-symbol {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Сумма и валюта */
.check-activate-amount-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.check-activate-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.check-activate-currency-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Отправитель */
.check-sender-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 24px;
}

.check-sender-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.check-sender-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    min-width: 0;
}

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

.check-sender-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка активации */
.check-activate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    margin-bottom: 12px;
}


.check-activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}

.check-activate-btn .material-icons {
    font-size: 22px;
}

.check-activate-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ================== LOGIN METHOD SELECTOR ================== */
.login-method-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, var(--bg-subtle));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-method-option:hover {
    background: var(--bg-fade);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.login-method-option:hover::before {
    opacity: 1;
}

.login-method-option:active {
    transform: translateY(0);
}

/* Рекомендуемая опция */
.login-method-option.recommended {
    border: 2px solid var(--accent-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.login-method-option.recommended:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
    border-color: #60a5fa;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
}

.login-method-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--separator), var(--bg-subtle));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.login-method-option.recommended .login-method-icon {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.login-method-icon .material-icons {
    font-size: 28px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.login-method-option.recommended .login-method-icon .material-icons {
    color: white;
}

.login-method-option:hover .login-method-icon .material-icons {
    transform: scale(1.1);
}

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

.login-method-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.login-method-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.recommended-badge .material-icons {
    font-size: 12px;
}

.login-method-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 24px;
}

.login-method-option:hover .login-method-arrow {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* ================== QR CODE LOGIN STYLES ================== */
.qr-login-container {
    text-align: center;
    padding: 10px 0;
}

.qr-code-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--inset-highlight),
                inset 0 0 0 1px var(--inset-highlight);
    position: relative;
    overflow: hidden;
}

.qr-code-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(59, 130, 246, 0.1) 50%,
        transparent 60%
    );
    animation: qrShine 3s infinite;
}

@keyframes qrShine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.qr-code-box canvas,
.qr-code-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--accent-blue);
}

.qr-loading .material-icons {
    font-size: 56px;
    animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.qr-loading span {
    font-size: 14px;
    color: var(--text-muted);
}

/* QR Instructions */
.qr-instructions {
    margin-bottom: 20px;
}

.qr-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: left;
    transition: all 0.2s ease;
}

.qr-step:hover {
    background: var(--bg-fade);
}

.qr-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.qr-step span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

/* QR Timer */
.qr-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-timer-box .material-icons {
    color: var(--accent-gold);
    font-size: 20px;
}

.qr-timer-box span {
    font-size: 14px;
    color: var(--text-secondary);
}

.qr-timer-value {
    color: var(--accent-gold) !important;
    font-weight: 700;
    font-size: 16px !important;
    min-width: 24px;
}

/* QR Status */
.qr-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-status-box .material-icons {
    color: var(--accent-green);
    font-size: 22px;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.qr-status-box span:last-child {
    font-size: 15px;
    color: var(--accent-green);
    font-weight: 500;
}

/* QR Refresh Button */
.qr-refresh-btn {
    margin-top: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

#qrError {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 16px;
}

/* Spinning animation */
.spinning {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ═══════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════════════ */

[data-theme="light"] body,
[data-theme="light"] .app {
    background: var(--bg-primary);
}

/* Cards & sections in light mode get subtle shadow */
[data-theme="light"] .balance-card,
[data-theme="light"] .asset-card,
[data-theme="light"] .action-icon,
[data-theme="light"] .notification-card,
[data-theme="light"] .history-item {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .login-btn {
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

/* Настройки и модалки в light mode — мягкие тени как в тёмной теме */
[data-theme="light"] .settings-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .modal-content {
    border: none;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12),
                0 0 60px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modal-close {
    background: var(--bg-hover);
}

[data-theme="light"] .login-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

[data-theme="light"] .worker-badge {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.08) 100%);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

[data-theme="light"] .check-sender-avatar {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

/* Ensure text gradients still look good */
[data-theme="light"] .balance-amount {
    color: var(--text-primary);
}

/* Fix specific backgrounds matching dark theme */
[data-theme="light"] .username-steps {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .success-features .feature-item {
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.15);
}

[data-theme="light"] .check-icon-container {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(56, 142, 60, 0.08) 100%);
}

/* ─── Границы элементов в светлой теме ─── */

/* Элементы списка стран */
[data-theme="light"] .country-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .country-item:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .country-item.selected {
    border: 1px solid var(--accent-blue);
}

/* Карточка правил логина */
[data-theme="light"] .login-rules-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Карточки преимуществ */
[data-theme="light"] .benefit-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Чекбокс логина */
[data-theme="light"] .login-checkbox {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Опции метода входа */
[data-theme="light"] .login-method-option {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .login-method-option:hover {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .login-method-option.recommended {
    border: 2px solid var(--accent-blue);
}

/* QR код */
[data-theme="light"] .qr-code-box {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Поле ввода кода */
[data-theme="light"] .code-input-wrapper input {
    border: 2px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .code-input-wrapper input:focus {
    border-color: var(--accent-green);
}

/* Телефонный контейнер логина */
[data-theme="light"] .login-phone-container .phone-full-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Селектор страны */
[data-theme="light"] .country-selector {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .country-selector:hover {
    border-color: var(--accent-blue);
}

/* Поле ввода телефона */
[data-theme="light"] .phone-number-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .phone-number-input:focus {
    border-color: var(--accent-blue);
}

/* Поля ввода (пароль, телефон) */
[data-theme="light"] .phone-input-wrapper input,
[data-theme="light"] .password-input-wrapper input {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .phone-input-wrapper input:focus,
[data-theme="light"] .password-input-wrapper input:focus {
    border-color: var(--accent-blue);
}

/* Поиск по странам */
[data-theme="light"] .country-search-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Карточка авторизации */
[data-theme="light"] .auth-required-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
}

/* Иконка метода входа */
[data-theme="light"] .login-method-icon {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Ввод суммы */
[data-theme="light"] .amount-input-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ─── QR страница ─── */

/* Шаги инструкции QR */
[data-theme="light"] .qr-step {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qr-step:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

/* Блок инструкций QR */
[data-theme="light"] .qr-instructions {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 12px;
}

/* Текст под QR кодом */
[data-theme="light"] .qr-login-container h3,
[data-theme="light"] .qr-login-container p {
    color: var(--text-primary);
}

/* Таймер QR */
[data-theme="light"] .qr-timer-box {
    border: 1px solid rgba(234, 179, 8, 0.35);
}

/* Статус QR */
[data-theme="light"] .qr-status-box {
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Ошибка QR */
[data-theme="light"] #qrError {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   WORKER / PARTNER PANEL — Classes for inline-style elements
   ═══════════════════════════════════════════════════════════ */
.partner-login-title {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 24px;
}
.partner-login-desc {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 14px;
}
.partner-login-hint {
    color: #4b5563;
    margin-top: 20px;
    font-size: 12px;
}
.logout-confirm-title {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}
.logout-confirm-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.logout-hint-box {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}
.logout-hint-text {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME — Worker / Partner Panel
   ═══════════════════════════════════════════════════════════ */

/* ─── Partner Login ─── */
[data-theme="light"] .partner-login-desc {
    color: #6b7280;
}
[data-theme="light"] .partner-login-hint {
    color: #9ca3af;
}

/* ─── Partner Menu ─── */
[data-theme="light"] .partner-user-info {
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .partner-menu-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .partner-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .partner-menu-item.balance-action.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="light"] .partner-menu-item.balance-action.green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
}
[data-theme="light"] .partner-menu-item.balance-action.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.3);
}
[data-theme="light"] .partner-menu-item.balance-action.red:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
}

/* ─── Logout Modal ─── */
[data-theme="light"] .logout-hint-box {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ─── Balance Modals ─── */
[data-theme="light"] .balance-modal-desc {
    color: #6b7280;
}
[data-theme="light"] .balance-section-title {
    color: var(--text-primary);
}
[data-theme="light"] .currency-group-label {
    color: #9ca3af;
}
[data-theme="light"] .currency-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .currency-chip:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .currency-chip.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.08));
    border-color: #3b82f6;
    color: #2563eb;
}
[data-theme="light"] .balance-label {
    color: #6b7280;
}
[data-theme="light"] .balance-amount-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .balance-amount-input::placeholder {
    color: #9ca3af;
}
[data-theme="light"] .balance-amount-input:focus {
    border-color: #3b82f6;
}
[data-theme="light"] .balance-currency-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
[data-theme="light"] .balance-input-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

/* ─── Worker Checks ─── */
[data-theme="light"] .check-create-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.15);
}
[data-theme="light"] .check-create-header h4 {
    color: var(--text-primary);
}
[data-theme="light"] .check-create-header p {
    color: #6b7280;
}
[data-theme="light"] .check-field label {
    color: #6b7280;
}
[data-theme="light"] .currency-chip-sm {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .currency-chip-sm:hover {
    background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .currency-chip-sm.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-color: #3b82f6;
    color: #2563eb;
}
[data-theme="light"] .check-amount-input-wrapper input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .check-amount-input-wrapper input:focus {
    border-color: #3b82f6;
}
[data-theme="light"] .lang-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
[data-theme="light"] .lang-chip:hover {
    background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .lang-chip.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    border-color: #10b981;
    color: #059669;
}
[data-theme="light"] .check-currency-group-label {
    color: #9ca3af;
}

/* Check Result */
[data-theme="light"] .check-info-text {
    color: var(--text-primary);
}
[data-theme="light"] .check-link-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .check-link-text {
    color: #2563eb;
}
[data-theme="light"] .check-share-btn.secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Checks List */
[data-theme="light"] .checks-list-header h4 {
    color: var(--text-primary);
}
[data-theme="light"] .check-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .check-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .check-item-amount {
    color: var(--text-primary);
}

/* ─── Worker Logs ─── */
[data-theme="light"] .logs-filter-chip {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6b7280;
}
[data-theme="light"] .logs-filter-chip:hover {
    background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .logs-filter-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: #3b82f6;
    color: #2563eb;
}
[data-theme="light"] .logs-filter-chip[data-filter="visits"].active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    color: #2563eb;
}
[data-theme="light"] .logs-filter-chip[data-filter="gifts"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    border-color: #10b981;
    color: #059669;
}
[data-theme="light"] .logs-filter-chip[data-filter="deposits"].active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border-color: #f59e0b;
    color: #d97706;
}
[data-theme="light"] .logs-filter-chip[data-filter="auth"].active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    border-color: #10b981;
    color: #059669;
}
[data-theme="light"] .logs-stat-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .logs-stat-value {
    color: var(--text-primary);
}
[data-theme="light"] .logs-stat-label {
    color: #9ca3af;
}

/* Log Items */
[data-theme="light"] .log-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .log-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .log-item::before {
    background: #d1d5db;
}
[data-theme="light"] .log-item-icon {
    background: rgba(0, 0, 0, 0.04) !important;
    box-shadow: none !important;
}
[data-theme="light"] .log-item-icon.visit {
    background: rgba(59, 130, 246, 0.1) !important;
}
[data-theme="light"] .log-item-icon.visit .material-icons {
    color: #2563eb;
}
[data-theme="light"] .log-item-icon.gift {
    background: rgba(236, 72, 153, 0.1) !important;
}
[data-theme="light"] .log-item-icon.gift .material-icons {
    color: #db2777;
}
[data-theme="light"] .log-item-icon.deposit {
    background: rgba(245, 158, 11, 0.1) !important;
}
[data-theme="light"] .log-item-icon.deposit .material-icons {
    color: #d97706;
}
[data-theme="light"] .log-item-icon.auth {
    background: rgba(16, 185, 129, 0.1) !important;
}
[data-theme="light"] .log-item-icon.auth .material-icons {
    color: #059669;
}
[data-theme="light"] .log-item-link {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #7c3aed;
}
[data-theme="light"] .log-item-link:hover {
    background: rgba(139, 92, 246, 0.15);
}
[data-theme="light"] .log-item-title {
    color: #1f2937;
}
[data-theme="light"] .log-item-details {
    color: #6b7280;
}
[data-theme="light"] .log-item-time {
    color: #9ca3af;
}
[data-theme="light"] .logs-section-title {
    color: #9ca3af;
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ─── Mamonts ─── */
[data-theme="light"] .mamont-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mamont-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .mamont-name {
    color: #1f2937;
}
[data-theme="light"] .mamont-id {
    color: #6b7280;
}
[data-theme="light"] .mamont-avatar {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}
[data-theme="light"] .mamont-status.processed {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
[data-theme="light"] .mamont-status.not-processed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ─── Worker Logs Light ─── */
[data-theme="light"] .worker-log-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid #d1d5db;
}
[data-theme="light"] .worker-log-item:active {
    background: #f9fafb;
}
[data-theme="light"] .worker-log-item.type-verification {
    border-left-color: #3b82f6;
}
[data-theme="light"] .worker-log-item.type-gift {
    border-left-color: #22c55e;
}
[data-theme="light"] .worker-log-item.type-success {
    border-left-color: #22c55e;
}
[data-theme="light"] .worker-log-item.type-error {
    border-left-color: #ef4444;
}
[data-theme="light"] .worker-log-title {
    color: #1f2937;
}
[data-theme="light"] .worker-log-time {
    color: #9ca3af;
}
[data-theme="light"] .worker-log-message {
    color: #4b5563;
}
[data-theme="light"] .worker-log-icon {
    color: #6b7280;
}
[data-theme="light"] .worker-log-item.type-verification .worker-log-icon {
    color: #3b82f6;
}
[data-theme="light"] .worker-log-item.type-gift .worker-log-icon {
    color: #22c55e;
}
[data-theme="light"] .worker-log-item.type-success .worker-log-icon {
    color: #22c55e;
}
[data-theme="light"] .worker-log-item.type-error .worker-log-icon {
    color: #ef4444;
}
[data-theme="light"] .worker-logs-content {
    background: #ffffff;
}
[data-theme="light"] .worker-logs-header {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .worker-logs-title {
    color: #1f2937;
}
[data-theme="light"] .worker-logs-title .material-icons {
    color: #3b82f6;
}
[data-theme="light"] .worker-logs-refresh {
    background: rgba(59, 130, 246, 0.06);
    color: #3b82f6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .worker-logs-body {
    background: #f9fafb;
}
[data-theme="light"] .worker-logs-loading {
    color: #9ca3af;
}
[data-theme="light"] .worker-logs-empty {
    color: #9ca3af;
}
[data-theme="light"] .worker-log-link {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.1), rgba(175, 82, 222, 0.1));
    color: #7c3aed;
}
[data-theme="light"] .worker-log-link:active {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.18), rgba(175, 82, 222, 0.18));
}

/* ─── Balance Action Buttons Light ─── */
[data-theme="light"] .partner-menu-item.balance-action.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="light"] .partner-menu-item.balance-action.green span:nth-child(2) {
    color: #047857;
}
[data-theme="light"] .partner-menu-item.balance-action.green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.18));
}
[data-theme="light"] .partner-menu-item.balance-action.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.35);
}
[data-theme="light"] .partner-menu-item.balance-action.red span:nth-child(2) {
    color: #b91c1c;
}
[data-theme="light"] .partner-menu-item.balance-action.red:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.18));
}

/* ─── Scrollbar Light ─── */
[data-theme="light"] .logs-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
