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

body {
    background: black;
    font-family: 'Noto Sans KR', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 136, 204, 0.4), 0 0 40px rgba(0, 136, 204, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 136, 204, 0.6), 0 0 80px rgba(0, 136, 204, 0.4); }
}

@keyframes scan-line {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-50px) translateX(-10px); opacity: 0.5; }
    75% { transform: translateY(-30px) translateX(15px); opacity: 0.7; }
}

@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-container {
    background: linear-gradient(135deg, #0a0a0f 0%, #0d1117 50%, #0a0a0f 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 136, 204, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 200, 150, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 136, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 204, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.3), transparent);
    animation: scan-line 8s linear infinite;
    pointer-events: none;
}

.telegram-icon {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite, pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 136, 204, 0.4);
    position: relative;
    margin: 0 auto;
}

.telegram-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 31px;
    background: linear-gradient(135deg, #00d4ff, #0088cc, #00ff88);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
}

.login-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 4rem);
    background: linear-gradient(135deg, #ffffff, #00d4ff, #00ffcc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.login-card {
    background: rgba(8, 12, 20, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    border: 1px solid rgba(0, 136, 204, 0.4);
    padding: 2rem 1.8rem;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
}

.glass-input {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(0, 136, 204, 0.4);
    border-radius: 16px;
    padding: 16px 24px;
    width: 100%;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    font-family: 'Noto Sans KR', sans-serif;
}

.glass-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(10, 20, 35, 0.9);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.login-btn {
    background: linear-gradient(135deg, #0088cc, #00aaff);
    border: none;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    font-family: 'Noto Sans KR', sans-serif;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before { left: 100%; }
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

.signup-text { color: rgba(255, 255, 240, 0.7); font-size: 0.9rem; }

.signup-link {
    color: #00d4ff;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    cursor: pointer;
}
.signup-link:hover { color: #00ffcc; border-bottom-color: #00ffcc; }

.dual-btn {
    background: rgba(20, 30, 45, 0.8);
    border: 1px solid rgba(0, 136, 204, 0.5);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    font-family: 'Noto Sans KR', sans-serif;
}
.dual-btn:hover {
    background: rgba(0, 136, 204, 0.25);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.secure-text { font-size: 12px; color: #6c86a3; }
.footer-text { color: rgba(255, 255, 255, 0.5); font-size: 13px; }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.25s ease;
}
.modal-overlay.active { visibility: visible; opacity: 1; }

.modal-content {
    background: linear-gradient(145deg, #0e1622, #080c14);
    border-radius: 48px;
    max-width: 440px;
    width: 90%;
    padding: 40px 28px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 212, 255, 0.2);
    animation: modal-fade-in 0.3s ease forwards;
    position: relative;
}

.vip-badge {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #F5AF19, #F12711, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a0f0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 16px 0 8px;
}

.price-note { color: rgba(255, 255, 240, 0.6); font-size: 0.85rem; margin-bottom: 32px; }

.modal-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
}
.modal-close:hover { opacity: 1; }

.modal-small-btn {
    background: linear-gradient(90deg, #0088cc, #00aaff);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    margin-top: 10px;
    font-family: 'Noto Sans KR', sans-serif;
}
.modal-small-btn:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5); }

.signup-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.25s ease;
}
.signup-modal.active { visibility: visible; opacity: 1; }

.signup-card {
    background: radial-gradient(circle at 10% 20%, rgba(15, 25, 45, 0.98), rgba(5, 10, 20, 0.98));
    border-radius: 56px;
    max-width: 460px;
    width: 90%;
    padding: 2rem 2rem 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 255, 0.3) inset;
    text-align: center;
    animation: modal-fade-in 0.3s ease;
    position: relative;
}

.signup-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #00d4ff, #88ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.signup-input-group { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.signup-field {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 136, 204, 0.5);
    border-radius: 32px;
    padding: 15px 20px;
    font-size: 1rem;
    color: white;
    font-weight: 500;
    transition: 0.2s;
    backdrop-filter: blur(4px);
    font-family: 'Noto Sans KR', sans-serif;
}
.signup-field:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}
.signup-field::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 400; }

.signup-action-btn {
    background: linear-gradient(95deg, #0088cc, #00ccaa);
    border: none;
    width: 100%;
    padding: 14px 0;
    border-radius: 48px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    font-family: 'Noto Sans KR', sans-serif;
}
.signup-action-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 136, 204, 0.6); }

.signup-close {
    position: absolute;
    top: 18px; right: 24px;
    background: none;
    border: none;
    color: #aaccee;
    font-size: 28px;
    cursor: pointer;
}
.signup-close:hover { color: white; text-shadow: 0 0 6px cyan; }

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
}

.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.main-content-area { width: 100%; padding-top: 10vh; padding-bottom: 10vh; }

@media (min-width: 768px) {
    .main-content-area { padding-top: 12vh; padding-bottom: 12vh; }
}

.alert-success-box {
    background: rgba(0,200,100,0.2);
    color: #88ffaa;
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.alert-error-box {
    color: #ff8888;
    text-align: center;
    margin-bottom: 12px;
}
.username-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.username-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}
.badge {
    padding: 6px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.85rem;
}
.badge-admin {
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #000;
}
.badge-vip {
    background: linear-gradient(135deg,#F5AF19,#FFD700);
    color: #000;
}
.badge-free {
    background: rgba(255,255,255,0.2);
    color: #aaa;
}
.dashboard-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}