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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Stars Theme */
body.stars-theme {
    background: radial-gradient(circle at center, #000a1b 1%, #000000 70%);
}

body.stars-theme .main-menu,
body.stars-theme .login-screen,
body.stars-theme .loading-screen,
body.stars-theme .success-screen,
body.stars-theme .receipt-screen,
body.stars-theme .gifts-screen,
body.stars-theme .comments-screen,
body.stars-theme .scammer-test-screen {
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 50, 150, 0.4),
        0 0 0 1px rgba(100, 150, 255, 0.1);
}

body.stars-theme .main-menu::before,
body.stars-theme .login-screen::before,
body.stars-theme .loading-screen::before,
body.stars-theme .success-screen::before,
body.stars-theme .receipt-screen::before,
body.stars-theme .gifts-screen::before,
body.stars-theme .comments-screen::before,
body.stars-theme .scammer-test-screen::before {
    background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.6), transparent);
}

body.stars-theme .main-header {
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 50, 150, 0.3);
}

body.stars-theme .main-header h1 {
    background: linear-gradient(135deg, #64a5ff, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(100, 165, 255, 0.5);
}

body.stars-theme .header-left .theme-btn,
body.stars-theme .header-left .language-btn,
body.stars-theme .header-left .zoom-btn,
body.stars-theme .header-right .autograph-btn,
body.stars-theme .header-right .change-password-btn {
    background: linear-gradient(135deg, #64a5ff, #4285f4);
    box-shadow: 0 8px 25px rgba(100, 165, 255, 0.4);
}

body.stars-theme .header-left .theme-btn:hover,
body.stars-theme .header-left .language-btn:hover,
body.stars-theme .header-left .zoom-btn:hover,
body.stars-theme .header-right .autograph-btn:hover,
body.stars-theme .header-right .change-password-btn:hover {
    box-shadow: 0 12px 35px rgba(100, 165, 255, 0.5);
}

body.stars-theme .exit-btn {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

body.stars-theme .exit-btn:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

/* Enhanced Pixel Theme with Dynamic Background and 8-bit Aesthetics */
body.pixel-theme {
    background: transparent; /* Let the canvas background show through */
    font-family: 'Orbitron', 'Courier New', monospace;
    position: relative;
}

/* Scanlines effect for pixel theme */
body.pixel-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 128, 0.03) 2px,
        rgba(0, 255, 128, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
    animation: scanlines 2s linear infinite;
}

/* CRT flicker effect */
body.pixel-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, rgba(0, 255, 128, 0.1) 0%, transparent 1%) 0 0/8px 8px,
        radial-gradient(circle, rgba(255, 64, 255, 0.1) 0%, transparent 1%) 4px 4px/8px 8px;
    pointer-events: none;
    z-index: 1;
    animation: crt-flicker 0.15s linear infinite alternate;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes crt-flicker {
    0% { opacity: 1; }
    100% { opacity: 0.95; }
}

@keyframes pixel-glow {
    0%, 100% { 
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    50% { 
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
    }
}

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

@keyframes pixel-checkmark-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Pixel theme checkmark animation - 8-bit style */
body.pixel-theme .checkmark {
    filter: drop-shadow(0 0 10px #00ff80) drop-shadow(0 0 20px #00ff80);
    animation: pixel-checkmark-scale 0.3s ease-in-out 0.9s both;
}

body.pixel-theme .checkmark__circle,
body.pixel-theme .checkmark__check {
    stroke: #00ff80;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px #00ff80);
}

/* Pixel theme success screen */
body.pixel-theme .success-text {
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pixel-glow 2s ease-in-out infinite;
}

body.pixel-theme .loading-text {
    color: #ff40ff;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pixel-glow 2s ease-in-out infinite;
}

body.pixel-theme .dot {
    background: linear-gradient(135deg, #00ff80, #40ff40);
    box-shadow: 
        0 0 10px #00ff80,
        0 0 20px #00ff80,
        0 0 30px #00ff80;
    border-radius: 0; /* Square pixels */
}

body.pixel-theme .main-header {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95), rgba(51, 0, 102, 0.95));
    border: 3px solid #00ff80;
    border-radius: 0;
    box-shadow: 
        0 0 20px rgba(0, 255, 128, 0.4),
        inset 0 0 20px rgba(0, 255, 128, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1001; /* Higher z-index for pixel theme header */
}

body.pixel-theme .main-header h1 {
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pixel-glow 3s ease-in-out infinite;
}

body.pixel-theme .header-left .theme-btn,
body.pixel-theme .header-left .language-btn,
body.pixel-theme .header-left .zoom-btn,
body.pixel-theme .header-right .autograph-btn,
body.pixel-theme .header-right .change-password-btn,
body.pixel-theme .exit-btn {
    background: linear-gradient(135deg, #330066, #660099);
    border: 3px solid #ff40ff;
    border-radius: 0;
    color: #ff40ff;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 15px rgba(255, 64, 255, 0.4),
        inset 0 0 15px rgba(255, 64, 255, 0.1);
    transition: all 0.2s ease;
}

body.pixel-theme .exit-btn {
    border-color: #ff4040;
    color: #ff4040;
    box-shadow: 
        0 0 15px rgba(255, 64, 64, 0.4),
        inset 0 0 15px rgba(255, 64, 64, 0.1);
}

body.pixel-theme .header-left .theme-btn:hover,
body.pixel-theme .header-left .language-btn:hover,
body.pixel-theme .header-left .zoom-btn:hover,
body.pixel-theme .header-right .autograph-btn:hover,
body.pixel-theme .header-right .change-password-btn:hover {
    box-shadow: 
        0 0 25px rgba(255, 64, 255, 0.6),
        inset 0 0 25px rgba(255, 64, 255, 0.2);
    animation: pixel-pulse 0.5s ease-in-out infinite;
}

body.pixel-theme .exit-btn:hover {
    box-shadow: 
        0 0 25px rgba(255, 64, 64, 0.6),
        inset 0 0 25px rgba(255, 64, 64, 0.2);
    animation: pixel-pulse 0.5s ease-in-out infinite;
}

body.pixel-theme .main-menu,
body.pixel-theme .login-screen,
body.pixel-theme .loading-screen,
body.pixel-theme .success-screen,
body.pixel-theme .receipt-screen,
body.pixel-theme .gifts-screen,
body.pixel-theme .comments-screen,
body.pixel-theme .scammer-test-screen {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95), rgba(51, 0, 102, 0.95));
    backdrop-filter: blur(10px);
    border: 3px solid #00ff80;
    border-radius: 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 128, 0.4),
        inset 0 0 30px rgba(0, 255, 128, 0.1);
    z-index: 100; /* Lower z-index than header */
}

body.pixel-theme .main-menu::before,
body.pixel-theme .login-screen::before,
body.pixel-theme .loading-screen::before,
body.pixel-theme .success-screen::before,
body.pixel-theme .receipt-screen::before,
body.pixel-theme .gifts-screen::before,
body.pixel-theme .comments-screen::before,
body.pixel-theme .scammer-test-screen::before {
    background: linear-gradient(90deg, transparent, #00ff80, transparent);
    height: 3px;
}

body.pixel-theme .btn {
    background: linear-gradient(135deg, #330066, #660099);
    border: 3px solid #ff40ff;
    border-radius: 0;
    color: #ff40ff;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 15px rgba(255, 64, 255, 0.4),
        inset 0 0 15px rgba(255, 64, 255, 0.1);
}

body.pixel-theme .btn-primary {
    background: linear-gradient(135deg, #006600, #00cc00);
    border-color: #00ff80;
    color: #00ff80;
    box-shadow: 
        0 0 15px rgba(0, 255, 128, 0.4),
        inset 0 0 15px rgba(0, 255, 128, 0.1);
}

body.pixel-theme .btn:hover {
    animation: pixel-pulse 0.3s ease-in-out infinite;
    box-shadow: 
        0 0 25px rgba(255, 64, 255, 0.6),
        inset 0 0 25px rgba(255, 64, 255, 0.2);
}

body.pixel-theme .btn-primary:hover {
    box-shadow: 
        0 0 25px rgba(0, 255, 128, 0.6),
        inset 0 0 25px rgba(0, 255, 128, 0.2);
}

body.pixel-theme input,
body.pixel-theme select {
    background: linear-gradient(135deg, #1a0033, #330066);
    border: 3px solid #ff40ff;
    border-radius: 0;
    color: #ff40ff;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    box-shadow: 
        0 0 15px rgba(255, 64, 255, 0.2),
        inset 0 0 15px rgba(255, 64, 255, 0.1);
}

body.pixel-theme input:focus,
body.pixel-theme select:focus {
    border-color: #00ff80;
    color: #00ff80;
    box-shadow: 
        0 0 25px rgba(0, 255, 128, 0.4),
        inset 0 0 25px rgba(0, 255, 128, 0.1);
}

body.pixel-theme input::placeholder {
    color: rgba(255, 64, 255, 0.6);
}

body.pixel-theme .user-info {
    border: 3px solid #00ff80;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.8), rgba(51, 0, 102, 0.8));
}

body.pixel-theme .user-avatar {
    border: 3px solid #00ff80;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
}

body.pixel-theme .username {
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pixel-glow 2s ease-in-out infinite;
}

body.pixel-theme .progress-fill {
    background: linear-gradient(90deg, #00ff80, #40ff40);
    box-shadow: 
        0 0 20px rgba(0, 255, 128, 0.5),
        inset 0 0 10px rgba(0, 255, 128, 0.3);
}

body.pixel-theme .progress-text {
    color: #00ff80;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    animation: pixel-glow 2s ease-in-out infinite;
}

/* All other pixel theme text elements */
body.pixel-theme h1,
body.pixel-theme h2,
body.pixel-theme h3,
body.pixel-theme .menu-section h2,
body.pixel-theme .screen-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ff80;
    animation: pixel-glow 2s ease-in-out infinite;
}

body.pixel-theme .login-header h2 {
    color: #ff40ff;
    animation: pixel-glow 2s ease-in-out infinite;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.header-right {
    justify-content: flex-end;
}

.main-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
    text-align: center;
    flex: 1;
}

.theme-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.language-btn, .zoom-btn, .autograph-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.change-password-btn {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

.exit-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.theme-btn:hover, .language-btn:hover, .zoom-btn:hover, .autograph-btn:hover, .change-password-btn:hover, .exit-btn:hover {
    transform: translateY(-3px);
}

.theme-btn:hover {
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.language-btn:hover, .zoom-btn:hover, .autograph-btn:hover {
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.5);
}

.change-password-btn:hover {
    box-shadow: 0 12px 35px rgba(156, 39, 176, 0.5);
}

.exit-btn:hover {
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.5);
}

.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 100px;
}

/* Fixed Zoom Scale for Main Containers - Center Origin */
.content.zoomed {
    transform-origin: center center; /* Fixed zoom centering */
    transition: transform 0.3s ease;
}

.login-screen, .loading-screen, .success-screen, .main-menu, .receipt-screen,
.gifts-screen, .comments-screen, .scammer-test-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 550px; /* Reduced width */
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.login-screen::before, .loading-screen::before, .success-screen::before, .main-menu::before,
.receipt-screen::before, .gifts-screen::before, .comments-screen::before, .scammer-test-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent);
}

/* Login Screen */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
}

.websocket-input {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.websocket-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.websocket-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.login-icon {
    font-size: 20px;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeIn 0.5s ease-in-out;
}

.loading-animation {
    margin-bottom: 30px;
}

.dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
}

/* Success Screen */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    animation: checkmark-scale 0.3s ease-in-out 0.9s both;
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.5));
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.success-text {
    font-size: 18px;
    color: #4CAF50;
    text-align: center;
    font-weight: 600;
}

/* Main Menu */
.main-menu {
    animation: fadeIn 0.5s ease-in-out;
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent);
}

.avatar-container {
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.avatar-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #4CAF50, #45a049, #4CAF50);
    background-size: 200% 200%;
    animation: gradient-rotate 3s ease infinite;
    z-index: -1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.user-details {
    flex: 1;
}

.username {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.balance-info {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-icon {
    font-size: 20px;
}

.currency-icon.starcoin {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.currency-icon.diamond {
    color: #00BFFF;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.currency-amount {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.level-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* FIXED LEVEL STAR - Only star with number inside */
.level-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.level-star::before {
    content: '⭐';
    position: absolute;
    font-size: 32px;
    z-index: 0;
}

.level-star span {
    position: relative;
    z-index: 1;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    text-shadow: none;
}

.xp-bar {
    position: relative;
    flex: 1;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 15px;
    transition: width 0.6s ease;
    width: 0%;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.menu-section h2 {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-buttons .btn {
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.menu-item h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* Daily Task Section */
.daily-task-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(69, 160, 73, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.daily-task-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-fast {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-fast:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5);
}

/* Comments Screen - FIXED */
.comments-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header h2 {
    font-size: 28px;
    color: #2196F3;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.comments-content {
    max-height: 60vh;
    overflow-y: auto;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: flex-start;
}

.comment-avatar-container {
    flex-shrink: 0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

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

.comment-author {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

.comment-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-delete-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-delete-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
    transform: scale(1.1);
}

.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    font-size: 16px;
}

.comments-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 5px;
}

/* Scammer Test Screen - FIXED WITH PROPER SPACING AND SCROLLBAR */
.scammer-test-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 650px; /* Increased width */
    max-height: 120vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.scammer-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.scammer-test-header h2 {
    font-size: 24px;
    color: #FF9800;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
    margin: 0;
}

.scammer-test-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    padding-right: 8px; /* Space for scrollbar */
}

/* Custom scrollbar for scammer test content */
.scammer-test-content::-webkit-scrollbar {
    width: 8px;
}

.scammer-test-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 4px;
}

.scammer-test-content::-webkit-scrollbar-thumb {
    background: rgba(255, 152, 0, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.scammer-test-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 152, 0, 0.5);
}

/* Firefox scrollbar */
.scammer-test-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 152, 0, 0.3) rgba(26, 26, 46, 0.3);
}

.scammer-test-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.scammer-username-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scammer-username-input:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
    transform: translateY(-1px);
}

.scammer-username-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.scammer-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: slideIn 0.3s ease-out;
    flex-shrink: 0;
}

.scammer-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scammer-avatar-container {
    position: relative;
}

.scammer-user-avatar {
    width: 80px; /* Increased size */
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FF9800;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.4);
}

.scammer-username {
    font-size: 20px; /* Increased size */
    font-weight: 700;
    color: #FF9800;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

/* Security Meter Container - Proper spacing */
.security-meter-container {
    display: flex;
    justify-content: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0; /* Added proper margin */
}

.security-meter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.security-meter-svg {
    width: 320px; /* Increased width */
    height: 70px;  /* Increased height */
    overflow: visible;
}

/* Updated Linear Meter Styles */
.meter-background {
    fill: rgba(255, 255, 255, 0.2);
    stroke: none;
}

.meter-green {
    fill: #4CAF50;
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.5));
}

.meter-yellow {
    fill: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.meter-red {
    fill: #f44336;
    filter: drop-shadow(0 0 6px rgba(244, 67, 54, 0.5));
}

/* White indicator bar styling */
#securityNeedle {
    fill: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    transition: x 0.5s ease-in-out;
}

.security-label {
    text-align: center;
    font-size: 16px; /* Increased size */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-status {
    font-size: 28px; /* Increased size */
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 8px currentColor);
}

/* Scammer Description - Proper spacing */
.scammer-description {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 25px; /* Added proper margin */
}

.scammer-description h4 {
    font-size: 18px; /* Increased size */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 600;
}

.description-text {
    font-size: 15px; /* Increased size */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6; /* Better line height */
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Delete Comment Dialog */
.delete-comment-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.delete-comment-dialog h3 {
    color: #f44336;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.delete-comment-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Autograph Screen - REMOVED MODAL OVERLAY BACKGROUND */
.autograph-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.autograph-modal {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    animation: none;
}

.autograph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.autograph-header h2 {
    font-size: 24px;
    color: #2196F3;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
    margin: 0;
}

.autograph-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.autograph-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.username-input, .greeting-select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.username-input:focus, .greeting-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
    transform: translateY(-1px);
}

.username-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.greeting-select option {
    background: #1a1a2e;
    color: white;
}

.autograph-status {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.status-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.status-log::-webkit-scrollbar {
    width: 6px;
}

.status-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.status-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Change Mood Screen - FIXED */
.change-mood-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.mood-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-header h2 {
    font-size: 28px;
    color: #4CAF50;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mood-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.nav-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.mood-display {
    flex: 1;
    text-align: center;
}

.mood-image-container {
    position: relative;
    width: 280px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(76, 175, 80, 0.3);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.mood-image-container:hover {
    border-color: #4CAF50;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
    transform: scale(1.02);
}

.mood-image {
    width: 100%;
    height: 100%;

    transition: transform 0.3s ease;
}

.mood-image-container:hover .mood-image {
    transform: scale(1.05);
}

.mood-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.mood-number {
    color: #4CAF50;
    font-family: 'Courier New', monospace;
}

.mood-name {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 10px;
}

.mood-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.btn-apply {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

/* Change Password Screen - FIXED */
.change-password-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.password-header h2 {
    font-size: 28px;
    color: #9C27B0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.password-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fixed spacing for password inputs */
.input-group-spaced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-input:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.15);
    transform: translateY(-1px);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Download Confirmation Dialog */
.download-confirm-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.download-confirm-dialog h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.download-confirm-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.dialog-buttons-triple {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-info {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5);
}

/* Help Dialog */
.help-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.help-dialog h3 {
    color: #FF9800;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.help-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.5);
}

.btn-start {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-radius: 16px;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-small {
    padding: 12px 16px;
    font-size: 14px;
}

.icon {
    font-size: 18px;
}

/* Progress */
.progress-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 8px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.progress-text {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.progress-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Gifts Screen - FIXED */
.gifts-screen {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.gifts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gifts-header h2 {
    font-size: 28px;
    color: #4CAF50;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    margin: 0;
}

.gifts-controls {
    margin-bottom: 20px;
    text-align: center;
}

.open-all-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.open-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5);
}

.gifts-list {
    max-height: 450px;
    overflow-y: auto;
    flex: 1;
}

.gift-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gift-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gift-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gift-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gift-sender {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-level {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
}

.open-gift-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-gift-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Receipt Screen */
.receipt-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fadeIn 0.5s ease-in-out;
}

.receipt {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', monospace;
    position: relative;
}

.receipt::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.receipt-line {
    border-top: 2px dashed #333;
    margin: 15px 0;
}

.receipt-content {
    margin-bottom: 20px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
}

.receipt-close {
    width: 100%;
    margin-top: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.receipt-close:hover {
    background: #45a049;
}

/* Footer */
.panel-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.notification {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.notification.success::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.notification.error::before {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.notification.info::before {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.notification.warning::before {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.2s ease-in-out;
}

.region-dialog, .warning-dialog, .gift-result-dialog, .theme-dialog, .language-dialog, .zoom-dialog {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    text-align: center;
}

.region-dialog h3, .warning-dialog h3, .gift-result-dialog h3, .theme-dialog h3, .language-dialog h3, .zoom-dialog h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.region-dialog p, .warning-dialog p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.region-buttons, .dialog-buttons, .theme-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Zoom Dialog */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.zoom-btn-control {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn-control:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

#zoomLevel {
    font-size: 28px;
    font-weight: bold;
    color: #2196F3;
    min-width: 80px;
}

.zoom-presets {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.zoom-preset {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.zoom-preset:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.zoom-preset.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #2196F3;
}

.zoom-dialog-footer {
    text-align: center;
    margin-top: 20px;
}

/* Fixed Language Dialog - Responsive button container */
.language-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.region-choice-btn, .theme-choice-btn, .language-choice-btn {
    min-width: 135px;
    padding: 20px 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-choice-btn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    min-width: auto;
}

.region-choice-btn .icon, .theme-choice-btn .icon, .language-choice-btn .icon {
    font-size: 32px;
}

.language-choice-btn .icon {
    font-size: 24px;
}

/* Theme Dialog Specific Styles */
.current-theme, .current-language {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-theme p, .current-language p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.current-theme span, .current-language span {
    color: #4CAF50;
    font-weight: 700;
}

.theme-choice-btn.active, .language-choice-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.theme-dialog-footer, .language-dialog-footer {
    text-align: center;
    margin-top: 20px;
}

/* Warning Dialog */
.warning-dialog {
    border-color: rgba(255, 152, 0, 0.3);
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FF9800;
}

.warning-dialog strong {
    color: #FF9800;
}

.dialog-buttons .btn {
    min-width: 120px;
}

/* Gift Result Dialog */
.gift-result-content {
    text-align: center;
    margin-bottom: 30px;
}

.gift-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.gift-item-name {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 12px;
}

.gift-success-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Canvas Background */
canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        padding-top: 90px;
    }

    .login-screen, .loading-screen, .success-screen, .main-menu, .receipt-screen, 
    .gifts-screen, .autograph-modal, .comments-screen, .change-mood-screen, .change-password-screen,
    .scammer-test-screen {
        padding: 25px;
        border-radius: 20px;
        max-width: 100%;
    }

    .scammer-test-screen {
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
    }

    .autograph-modal, .comments-modal, .scammer-test-screen {
        max-height: 90vh;
        max-width: 95%;
    }

    .main-header h1 {
        font-size: 22px;
    }

    .header-left, .header-right {
        gap: 10px;
    }

    .theme-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .balance-info {
        justify-content: center;
    }

    .level-info {
        width: 100%;
        justify-content: center;
    }

    .region-buttons, .dialog-buttons, .theme-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .dialog-buttons-triple {
        flex-direction: column;
        gap: 12px;
    }

    .region-choice-btn, .theme-choice-btn {
        min-width: auto;
        width: 100%;
    }

    .language-choice-btn {
        width: 100%;
    }

    .daily-task-buttons {
        grid-template-columns: 1fr;
    }

    .mood-selector {
        flex-direction: column;
        gap: 20px;
    }

    .mood-image-container {
        width: 150px;
        height: 150px;
    }

    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .notification-container {
        top: 80px;
    }

    .mood-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .main-header h1 {
        order: 1;
        width: 100%;
        text-align: center;
        flex: none;
    }

    .header-left {
        order: 2;
        flex: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-right {
        order: 3;
        flex: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .password-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .password-modal, .autograph-modal, .comments-modal, .scammer-test-screen {
        max-width: 400px;
        padding: 25px;
    }

    .download-confirm-dialog, .help-dialog {
        max-width: 400px;
        padding: 25px;
    }

    .zoom-controls {
        gap: 15px;
    }

    .zoom-presets {
        gap: 10px;
    }

    .zoom-preset {
        padding: 10px 16px;
        font-size: 14px;
    }

    .comment-item {
        flex-direction: column;
        gap: 10px;
    }

    .comment-header {
        justify-content: flex-start;
        gap: 15px;
    }

    .security-meter-svg {
        width: 260px; /* Smaller on mobile */
        height: 65px;
    }

    .scammer-test-content {
        max-height: 75vh;
    }

    .scammer-test-header h2 {
        font-size: 20px;
    }

    .scammer-user-avatar {
        width: 70px;
        height: 70px;
    }

    .scammer-username {
        font-size: 18px;
    }

    .security-status {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 18px;
    }

    .theme-btn, .language-btn, .zoom-btn, .autograph-btn, .change-password-btn, .exit-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .login-screen, .main-menu, .gifts-screen, .autograph-modal, .comments-screen, .scammer-test-screen {
        padding: 20px;
    }

    .mood-modal, .password-modal, .autograph-modal, .comments-modal, .scammer-test-screen {
        padding: 20px;
    }

    .mood-image-container {
        width: 120px;
        height: 120px;
    }

    .header-left, .header-right {
        gap: 8px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .comments-modal, .scammer-test-screen {
        max-width: 95%;
    }

    .security-meter-svg {
        width: 240px;
        height: 60px;
    }

    .scammer-user-avatar {
        width: 60px;
        height: 60px;
    }

    .scammer-test-screen {
        padding: 15px;
        max-width: 98%;
    }

    .scammer-username {
        font-size: 16px;
    }

    .security-status {
        font-size: 22px;
    }

    .scammer-test-header h2 {
        font-size: 18px;
    }
}
