/* ========================================
   EARTH THEME - Type 1
   Color: Blue/Green - Friendly & Natural
   ======================================== */

:root {
    --earth-primary: #00d4aa;
    --earth-secondary: #0099ff;
    --earth-accent: #00ff88;
    --earth-dark: #0a1628;
    --earth-darker: #050d1a;
    --earth-light: #1a3a5c;
    --earth-text: #ffffff;
    --earth-text-muted: #8fa3bf;
    --earth-gradient: linear-gradient(135deg, #00d4aa 0%, #0099ff 50%, #00ff88 100%);
    --earth-glow: 0 0 30px rgba(0, 212, 170, 0.5);
}

/* ========== Base Styles ========== */
html {
    height: auto;
    min-height: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--earth-darker);
    color: var(--earth-text);
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* ========== Video Background ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(5, 13, 26, 0.95) 0%,
        rgba(5, 13, 26, 0.92) 30%,
        rgba(5, 13, 26, 0.9) 50%,
        rgba(5, 13, 26, 0.92) 70%,
        rgba(5, 13, 26, 0.95) 100%);
}

/* ========== Background Animation (Fallback) ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 370px 50px, #fff, transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.8), transparent);
    background-repeat: repeat;
    background-size: 500px 500px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.earth-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center bottom,
        rgba(0, 212, 170, 0.15) 0%,
        rgba(0, 153, 255, 0.1) 30%,
        transparent 70%);
    animation: earthPulse 6s ease-in-out infinite;
}

@keyframes earthPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 255, 136, 0.03) 20%,
        rgba(0, 212, 170, 0.05) 40%,
        transparent 100%);
    animation: aurora 15s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { transform: translateX(-10%) skewX(-5deg); }
    50% { transform: translateX(10%) skewX(5deg); }
}

/* ========== Logged Out State ========== */
.logged-out .nav {
    display: flex;
}

.logged-out .mobile-nav {
    display: none !important;
}

.logged-out .mobile-menu-btn {
    display: none !important;
}

.logged-in .btn-login,
.logged-in .btn-signup {
    display: none;
}

.btn-logout {
    display: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-text-muted);
    border: 1px solid var(--earth-text-muted);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.logged-in .logged-in-actions {
    display: flex;
}

.logged-in .btn-logout {
    display: block;
}

/* Logged In Actions */
.logged-in-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Quick Buttons (충전/환전) */
.header-quick-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-quick.partner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-quick.partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-quick.deposit {
    background: linear-gradient(135deg, #00d4aa 0%, #00ff88 100%);
    color: #0a1628;
}

.btn-quick.deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

.btn-quick.withdraw {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #ffffff;
}

.btn-quick.withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* Header Balance Display */
.header-balance {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-balance:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 212, 170, 0.4);
}

.header-balance .balance-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.header-balance .balance-label {
    font-size: 0.65rem;
    color: var(--earth-text-muted);
    font-weight: 500;
}

.header-balance .balance-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
}

.header-balance .balance-value.money {
    color: var(--earth-primary);
}

.header-balance .balance-value.point {
    color: #ffd700;
}

.header-balance .point-item {
    position: relative;
}

.btn-point-convert {
    padding: 3px 8px;
    font-size: 0.55rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-point-convert:hover {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    transform: scale(1.05);
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--earth-text-muted);
    transition: all 0.3s ease;
}

.header-link:hover {
    color: var(--earth-primary);
}

.profile-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.8);
    border: 2px solid var(--earth-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--earth-primary);
    text-decoration: none;
}

/* Level Colors */
.profile-icon.lv1 {
    border-color: #a0a0a0;
    color: #a0a0a0;
}
.profile-icon.lv1:hover,
.header-profile:hover .profile-icon.lv1 {
    background: rgba(160, 160, 160, 0.2);
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(160, 160, 160, 0.4);
    color: #fff;
}

.profile-icon.lv2 {
    border-color: #4ecdc4;
    color: #4ecdc4;
}
.profile-icon.lv2:hover,
.header-profile:hover .profile-icon.lv2 {
    background: rgba(78, 205, 196, 0.2);
    border-color: #6ee7de;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
    color: #fff;
}

.profile-icon.lv3 {
    border-color: #667eea;
    color: #667eea;
}
.profile-icon.lv3:hover,
.header-profile:hover .profile-icon.lv3 {
    background: rgba(102, 126, 234, 0.2);
    border-color: #8698f0;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.profile-icon.lv4 {
    border-color: #f093fb;
    color: #f093fb;
}
.profile-icon.lv4:hover,
.header-profile:hover .profile-icon.lv4 {
    background: rgba(240, 147, 251, 0.2);
    border-color: #f5b3fc;
    box-shadow: 0 0 15px rgba(240, 147, 251, 0.4);
    color: #fff;
}

.profile-icon.lv5 {
    border-color: #ffd700;
    color: #ffd700;
}
.profile-icon.lv5:hover,
.header-profile:hover .profile-icon.lv5 {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffe44d;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    color: #fff;
}

.header-profile:hover .profile-icon {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--earth-secondary);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
    color: #fff;
}

.mail-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.8);
    border: 2px solid var(--earth-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mail-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-mail {
    position: relative;
}

.header-mail:hover .mail-icon {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--earth-secondary);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.header-mail:hover .mail-icon svg rect {
    fill: #f0f0f0;
}

.header-mail:hover .mail-icon svg path:last-child {
    fill: #ff6b6b;
    transform: scale(1.1);
    transform-origin: center;
}

.header-mail:hover {
    color: var(--earth-primary);
}

.mail-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 9px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

.mail-badge:empty,
.mail-badge.hidden {
    display: none;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-deposit {
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: var(--earth-glow);
}

.btn-withdraw {
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-primary);
    background: transparent;
    border: 1px solid var(--earth-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-withdraw:hover {
    background: rgba(0, 212, 170, 0.1);
}

.logged-in .nav {
    display: flex;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    margin:0 auto;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin:0 auto;
    width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffcc6b;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: flex; justify-content: center; align-items: center; gap:5px;
}


.nav-link:hover,
.nav-link.active {
    color: var(--earth-primary);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--earth-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-primary);
    border: 1px solid var(--earth-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(0, 212, 170, 0.1);
    box-shadow: var(--earth-glow);
}

.btn-signup {
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--earth-glow);
}

/* 다국어 */
.lang-dropdown {position: relative;}
.btn-lang {position: relative; margin:0; padding: 10px 24px; display: flex; align-items: center; gap:5px; font-family: 'Orbitron', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--earth-primary); border: 1px solid var(--earth-primary); background: transparent; border-radius: 25px; transition: all 0.3s ease; text-decoration: none; cursor: pointer;}
.btn-lang > .lang-arrow {margin-left:8px; font-size: 11px; color: var(--earth-primary); transition: all 0.3s;}
.btn-lang > .country-name {font-size: 14px; color: var(--earth-primary); font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}

.btn-lang:hover,
.btn-lang.active {color:#fff; background:#01362c;}
.btn-lang:hover > .lang-arrowg,
.btn-lang:active > .lang-arrowg {color:#fff;}

.lang {width: 18px; display: flex; justify-content: center; align-items: center;}
.lang > img {width: 100%;}

.lang-menu {display: none; position: absolute; top:42px; right:0; z-index: 9; padding: 5px 5px; width:135px; background:#0b1728; border: 1px #1f3a60 solid; box-shadow: 0 2px 2px rgba(0,0,0,0.7); border-radius: 6px; transition:all 0.2s ease-in-out;}
.lang-menu > a {display: flex; align-items: center; gap:6px; padding:8px 10px; color:#fff; text-decoration: none;}
.lang-menu > a:hover {background: #172f50;}
.lang-menu > a > .country-name {font-size: 14px; color:#fff; font-weight: 500; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--earth-primary);
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.mobile-nav.active {
    display: flex;
}

.mobile-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    margin-bottom: 30px;
}

.title-sub {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--earth-primary);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 10px;
}

.title-desc {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--earth-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--earth-text);
    line-height: 1.8;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
    background: rgba(5, 13, 26, 0.5);
    padding: 20px 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--earth-primary);
    border: 2px solid var(--earth-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-decoration {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-earth {
    position: relative;
    width: 400px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

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

/* 비디오 지구 컨테이너 */
.earth-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 80px rgba(0, 212, 170, 0.6),
        0 0 150px rgba(0, 153, 255, 0.4);
}

.earth-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.earth-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #1a4d7c;
    box-shadow:
        0 0 80px rgba(0, 212, 170, 0.6),
        0 0 150px rgba(0, 153, 255, 0.4),
        inset -30px -30px 60px rgba(0, 0, 0, 0.6),
        inset 10px 10px 40px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 바다 레이어 */
.earth-sphere::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 25% 25%, rgba(100, 200, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 75% 60%, rgba(0, 100, 150, 0.3) 0%, transparent 30%),
        linear-gradient(135deg,
            #0077be 0%,
            #1a8ccc 20%,
            #0099cc 40%,
            #006699 60%,
            #004466 80%,
            #003355 100%);
    animation: oceanMove 20s linear infinite;
}

@keyframes oceanMove {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
    100% { filter: hue-rotate(0deg); }
}

/* 대륙 레이어 */
.earth-continents {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    animation: continentRotate 60s linear infinite;
}

@keyframes continentRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 북미/남미 대륙 */
.continent-americas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.continent-americas::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 35%;
    height: 40%;
    background: linear-gradient(180deg, #2d5a3d 0%, #3d7a4d 30%, #4a8a5a 60%, #2d5a3d 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(-15deg);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.3);
}

.continent-americas::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 20%;
    height: 35%;
    background: linear-gradient(180deg, #3d7a4d 0%, #5a9a6a 50%, #2d5a3d 100%);
    border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%;
    transform: rotate(-10deg);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.3);
}

/* 유럽/아프리카 대륙 */
.continent-eurasia {
    position: absolute;
    width: 100%;
    height: 100%;
}

.continent-eurasia::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 20%;
    width: 45%;
    height: 35%;
    background: linear-gradient(135deg, #4a7a5a 0%, #3d6a4d 40%, #5a8a6a 70%, #2d5a3d 100%);
    border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%;
    transform: rotate(5deg);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.3);
}

.continent-eurasia::after {
    content: '';
    position: absolute;
    top: 35%;
    right: 25%;
    width: 25%;
    height: 45%;
    background: linear-gradient(180deg, #5a9a6a 0%, #8a7a50 30%, #c4a35a 60%, #3d6a4d 100%);
    border-radius: 40% 60% 50% 50% / 50% 50% 70% 30%;
    transform: rotate(-5deg);
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.3);
}

/* 호주 대륙 */
.continent-australia {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 18%;
    height: 15%;
    background: linear-gradient(135deg, #c4843a 0%, #a06830 50%, #805020 100%);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    box-shadow: inset 2px 2px 8px rgba(0,0,0,0.3);
}

/* 구름 레이어 */
.earth-clouds {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    animation: cloudsRotate 45s linear infinite;
}

@keyframes cloudsRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(3px);
    border-radius: 50%;
}

.cloud-1 {
    top: 10%;
    left: 20%;
    width: 40%;
    height: 8%;
    opacity: 0.7;
}

.cloud-2 {
    top: 25%;
    right: 10%;
    width: 35%;
    height: 6%;
    opacity: 0.6;
}

.cloud-3 {
    top: 45%;
    left: 5%;
    width: 25%;
    height: 5%;
    opacity: 0.5;
}

.cloud-4 {
    bottom: 30%;
    right: 20%;
    width: 30%;
    height: 7%;
    opacity: 0.6;
}

.cloud-5 {
    bottom: 15%;
    left: 30%;
    width: 20%;
    height: 5%;
    opacity: 0.5;
}

.cloud-6 {
    top: 60%;
    left: 40%;
    width: 28%;
    height: 6%;
    opacity: 0.55;
}

/* 대기 글로우 */
.earth-atmosphere {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        transparent 60%,
        rgba(100, 200, 255, 0.1) 70%,
        rgba(0, 150, 255, 0.2) 80%,
        rgba(0, 100, 200, 0.15) 90%,
        transparent 100%);
    animation: atmosphereGlow 4s ease-in-out infinite;
}

@keyframes atmosphereGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* 하이라이트 (태양광 반사) */
.earth-highlight {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 그림자 효과 */
.earth-shadow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
}

.orbit-1 {
    width: 320px;
    height: 320px;
    animation: orbitRotate 10s linear infinite;
}

.orbit-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--earth-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--earth-accent);
}

.orbit-2 {
    width: 380px;
    height: 380px;
    animation: orbitRotate 15s linear infinite reverse;
}

.orbit-2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--earth-secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--earth-secondary);
}

.orbit-3 {
    width: 280px;
    height: 280px;
    animation: orbitRotate 8s linear infinite;
    border-style: dashed;
}

.orbit-3::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--earth-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--earth-primary);
}

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== Stats Section ========== */
.stats {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 170, 0.05) 50%, transparent 100%);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(26, 58, 92, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--earth-primary);
    box-shadow: var(--earth-glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--earth-gradient);
    border-radius: 15px;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--earth-dark);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth-text);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
}

/* ========== Games Section ========== */
.games {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--earth-text-muted);
}

.games-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 40px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--earth-text-muted);
    background: rgba(26, 58, 92, 0.3);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--earth-primary);
}

.tab-btn.active {
    color: var(--earth-dark);
    background: var(--earth-gradient);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.game-card {
    background: rgba(26, 58, 92, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--earth-primary);
    box-shadow: var(--earth-glow);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--earth-light) 0%, var(--earth-dark) 100%);
}

.casino-1 { background: linear-gradient(135deg, #1a5f4a 0%, #0d3025 100%); }
.casino-2 { background: linear-gradient(135deg, #2d5a87 0%, #1a3550 100%); }
.casino-3 { background: linear-gradient(135deg, #4a3a6e 0%, #2a1f40 100%); }
.casino-4 { background: linear-gradient(135deg, #6e4a4a 0%, #402020 100%); }

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

.rating {
    color: #ffd700;
}

/* ========== Benefits Section ========== */
.benefits {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 170, 0.03) 50%, transparent 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(26, 58, 92, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--earth-primary);
}

.benefit-icon {
    margin-bottom: 25px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--earth-gradient);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.benefit-card:hover .icon-circle {
    box-shadow: var(--earth-glow);
}

.icon-circle svg {
    width: 35px;
    height: 35px;
    stroke: var(--earth-dark);
}

.benefit-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--earth-text-muted);
    line-height: 1.6;
}

/* ========== My Page Section ========== */
.mypage {
    padding: 100px 0;
}

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

.mypage-card {
    background: rgba(26, 58, 92, 0.4);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.mypage-card:hover {
    border-color: var(--earth-primary);
    transform: translateY(-5px);
}

.profile-card {
    grid-column: span 3;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--earth-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.avatar-image {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--earth-primary), var(--earth-secondary));
}

.level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 5px 10px;
    background: var(--earth-gradient);
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--earth-dark);
}

.profile-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.membership {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 212, 170, 0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--earth-primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.profile-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--earth-primary);
    margin-bottom: 5px;
}

.stat-name {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 15px;
    background: var(--earth-gradient);
}

.mypage-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mypage-card p {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
    margin-bottom: 20px;
}

.btn-card {
    padding: 10px 30px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-primary);
    border: 1px solid var(--earth-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--earth-gradient);
    color: var(--earth-dark);
    border-color: transparent;
}

/* ========== Footer ========== */
.footer {position: relative; margin:0 auto; padding:0; width: 100%; background: rgba(5, 13, 26, 0.9); border-top: 1px solid rgba(0, 212, 170, 0.1);}
.ft-inner {position: relative; margin:0 auto; padding:0; width: 1400px;}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--earth-primary);
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--earth-text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--earth-text);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.footer-bottom p {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}


/* footer 공지사항 */
.ft-top {position: relative; margin:0; padding:30px 0; width: 100%; display: flex; justify-content:space-between;}

.footer-brand {position: relative; margin:0; width: 40%; text-align: left;}
.footer-brand > p { margin-top: 20px; font-size: 0.95rem; color: var(--earth-text-muted); line-height: 1.8;}

.ft-notice {position: relative; margin:0; width:50%;}
.notice-hd {position: relative; margin: 0 0 10px 0; padding: 0 15px; height: 50px; display: flex; justify-content:space-between; align-items: center; background: rgb(26 58 92 / 53%); border: 1px solid rgba(0, 212, 170, 0.1);}
.notice-hd > h3 {position: relative; margin-right: 15px; padding-right: 15px; font-weight: 500; color: var(--earth-primary); display: flex; align-items: center; gap:5px;} 
.notice-hd > h3 > svg {margin:3px 5px 0 0; font-size: 18px; color: var(--earth-primary);}
.notice-hd > .hd-icon {position: relative; font-weight: 500; cursor: pointer;}
.notice-hd > .hd-icon > svg {display: inline-block; margin-right:5px; font-size:18px; color: #fef57c; transition: 0.3s;}

.notice-hd > .hd-icon:hover {color: #fef57c;}
.notice-hd > .hd-icon:hover > svg {transform: rotate(180deg);}


/* 공지사항 테이블 */
.notice-con {position: relative; margin:0 auto; padding:0; width: 100%; height: 210px; overflow-y: auto;}
.notice-con > table {margin:0 auto; padding:0; width: 100%;}
.notice-con > table th,
.notice-con > table td {padding:0 5px; height: 35px; font-weight:500;}
.notice-con > table th {width:74%; text-align: left; cursor: pointer;}
.notice-con > table th > span {display: block; width: 100%; min-width: 260px; text-align: left; color:#fff; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; overflow: hidden;}
.notice-con > table td {text-align: right; width: 26%; color: #6b798f;}

.notice-con > table tr:hover th > span {color: var(--earth-primary);;}


.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--earth-primary);
}

/* ========== Responsive Design ========== */
@media (max-width: 1430px) {
    .header .container,
    .ft-inner {width: 100%;} 
    .ft-top {flex-direction: column; align-items: center;}
    .footer-brand {margin:0 0 30px 0; width:100%; text-align: center;}
    .footer-brand > .logo {justify-content: center;}
    .ft-notice {padding:0 10px; width: 100%;}

    .footer-bottom {justify-content: center;}
}


/* Large Desktop */
@media (max-width: 1200px) {
    .games-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .floating-earth {
        width: 300px;
        height: 300px;
    }

    .earth-sphere {
        width: 180px;
        height: 180px;
    }

    .orbit-1 {
        width: 240px;
        height: 240px;
    }

    .orbit-2 {
        width: 280px;
        height: 280px;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .mypage-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        grid-column: span 1;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.6rem;
        margin-bottom: 5px;
    }

    .footer-bottom {
        grid-column: span 3;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .notice-hd > h3,
    .notice-hd > h3 > svg,
    .notice-hd > .hd-icon,
    .notice-hd > .hd-icon > svg {font-size: 15px;}
    .notice-con > table th {width:65%; font-size: 15px;}    
    .notice-con > table th > span {width: 200px; min-width: unset;}
    .notice-con > table td {width: 35%; font-size: 13px;}
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .floating-earth {
        width: 250px;
        height: 250px;
    }

    .earth-sphere {
        width: 150px;
        height: 150px;
    }

    .orbit-1 {
        width: 200px;
        height: 200px;
    }

    .orbit-2 {
        width: 240px;
        height: 240px;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .games-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
  
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .footer-links h4 {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }
  
    .notice-con > table th > span {width: 180px;}
}

/* ========== Banner Section ========== */
.banner-section {
    width: 100%;
    padding: 0;
    margin-top: 80px;
}

.banner-container {
    width: calc(100% - 20px);
    max-width: 1920px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
}

/* Coming Soon Placeholder */
.banner-coming-soon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--earth-dark) 0%, rgba(0, 212, 170, 0.1) 50%, var(--earth-darker) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
    animation: comingSoonPulse 4s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-coming-soon h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.banner-coming-soon p {
    font-size: 1rem;
    color: var(--earth-text-muted);
}

/* Banner Navigation */
.banner-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.banner-prev,
.banner-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 170, 0.5);
    background: rgba(0, 0, 0, 0.5);
    color: var(--earth-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--earth-primary);
    color: var(--earth-dark);
    border-color: var(--earth-primary);
}

/* Banner Dots */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--earth-primary);
    box-shadow: 0 0 10px var(--earth-primary);
}

.banner-image,
.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--earth-dark) 0%,
        rgba(0, 212, 170, 0.2) 50%,
        var(--earth-darker) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 212, 170, 0.3);
}

.banner-placeholder-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--earth-text-muted);
    margin-bottom: 10px;
}

.banner-placeholder-size {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--earth-primary);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(5, 13, 26, 0.8) 0%,
        transparent 30%,
        transparent 70%,
        rgba(5, 13, 26, 0.8) 100%);
    pointer-events: none;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 130px;
    transform: translateY(-50%);
    min-width: 500px;
}

.banner-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner-desc {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.4);
}

/* Banner Responsive */
@media (max-width: 1200px) {
    .banner-container {
        height: 420px;
    }

    .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 350px;
    }

    .banner-prev,
    .banner-next {
        display: none;
    }

    .banner-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }

    .banner-content {
        left: 0;
        right: 0;
        min-width: 100%;
        text-align: center;
    }

    .banner-title {
        font-size: 1.2rem;
        margin:0 auto 10px auto;
        width: 100%;
        text-align: center;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        background: none;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    .banner-title > br {display: none;}

    .banner-desc {
        font-size: 0.8rem;
        margin-bottom: 15px;
        line-height: 1.4;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }

    .banner-btn {
        padding: 10px 24px;
        font-size: 0.75rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 300px;
    }

    .banner-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .banner-desc {
        font-size: 0.7rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-btn {
        padding: 8px 20px;
        font-size: 0.7rem;
    }

    .banner-placeholder-text {
        font-size: 1rem;
    }
}

/* ========== Games Duo Section ========== */
.games-section {
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 1920px;
    margin: 40px auto 0 auto;
}

.games-section .container {
    position: relative;
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;    
}

.games-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.game-big-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
}

.game-big-card:hover {
    z-index: 10;
}

.game-big-card:hover .game-big-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.game-big-card:hover .btn-game-enter {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.5);
}

.game-big-image {
    height: 400px;
    position: relative;
    background: var(--earth-darker);
}

.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.game-big-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 60px;
    text-align: left;
}

.game-big-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.game-big-desc {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.btn-game-enter {
    display: inline-block;
    padding: 16px 50px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-game-enter:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);
}

/* Games Duo Responsive */
@media (max-width: 768px) {
    .games-duo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-big-image {
        height: 200px;
    }

    .game-big-overlay {
        align-items: flex-start;
        text-align: left;
        padding: 20px;
        justify-content: center;
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    }

    .game-big-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
        background: none;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }

    .game-big-desc {
        font-size: 0.75rem;
        margin-bottom: 12px;
        line-height: 1.4;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }

    .btn-game-enter {
        padding: 10px 24px;
        font-size: 0.75rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

@media (max-width: 480px) {
    .game-big-image {
        height: 160px;
    }

    .game-big-overlay {
        padding: 15px;
    }

    .game-big-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .game-big-desc {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .btn-game-enter {
        padding: 8px 20px;
        font-size: 0.7rem;
    }
}

/* ========== Casino Section ========== */
.casino {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 170, 0.03) 50%, transparent 100%);
}

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

.casino-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.4s ease;
}

.casino-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.casino-card:hover {
    transform: translateY(-8px);
    border-color: var(--earth-primary);
    box-shadow: var(--earth-glow);
}

.casino-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: #ff4444;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

.casino-badge.hot {
    background: linear-gradient(135deg, #ff6b35, #ff4444);
}

.casino-badge.new {
    background: linear-gradient(135deg, var(--earth-primary), var(--earth-secondary));
}

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

.casino-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.casino-card.featured .casino-image {
    height: 100%;
    min-height: 450px;
}

.casino-bg-1 { background: linear-gradient(135deg, #1a4d3e 0%, #0d2920 100%); }
.casino-bg-2 { background: linear-gradient(135deg, #2d4a6e 0%, #1a2d45 100%); }
.casino-bg-3 { background: linear-gradient(135deg, #4a3d5c 0%, #2a2235 100%); }
.casino-bg-4 { background: linear-gradient(135deg, #5c4a3d 0%, #352a22 100%); }
.casino-bg-5 { background: linear-gradient(135deg, #3d5c4a 0%, #22352a 100%); }
.casino-bg-6 { background: linear-gradient(135deg, #5c3d4a 0%, #35222a 100%); }

.casino-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.casino-card:hover .casino-overlay {
    opacity: 1;
}

.casino-card.featured .casino-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
}

.casino-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.casino-card.featured .casino-info h3 {
    font-size: 1.8rem;
}

.casino-info p {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
    margin-bottom: 15px;
}

.casino-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.players-count, .min-bet {
    font-size: 0.8rem;
    color: var(--earth-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.players-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.btn-play-now {
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

/* ========== Slots Section ========== */
.slots {
    padding: 100px 0;
}

.slots-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.slots-filter .filter-btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-text-muted);
    background: rgba(26, 58, 92, 0.3);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slots-filter .filter-btn:hover {
    border-color: var(--earth-primary);
    color: var(--earth-text);
}

.slots-filter .filter-btn.active {
    background: var(--earth-gradient);
    color: var(--earth-dark);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.slot-card {
    background: rgba(26, 58, 92, 0.4);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: all 0.3s ease;
}

.slot-card:hover {
    transform: translateY(-8px);
    border-color: var(--earth-primary);
    box-shadow: var(--earth-glow);
}

.slot-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.slot-bg-1 { background: linear-gradient(135deg, #1a237e 0%, #0d1240 100%); }
.slot-bg-2 { background: linear-gradient(135deg, #b71c1c 0%, #5d0f0f 100%); }
.slot-bg-3 { background: linear-gradient(135deg, #1b5e20 0%, #0d2f10 100%); }
.slot-bg-4 { background: linear-gradient(135deg, #e65100 0%, #732800 100%); }
.slot-bg-5 { background: linear-gradient(135deg, #4a148c 0%, #250a46 100%); }
.slot-bg-6 { background: linear-gradient(135deg, #006064 0%, #003032 100%); }
.slot-bg-7 { background: linear-gradient(135deg, #880e4f 0%, #440728 100%); }
.slot-bg-8 { background: linear-gradient(135deg, #bf360c 0%, #5f1b06 100%); }

.slot-jackpot {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
    animation: jackpotGlow 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes jackpotGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.slot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: #ff4444;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    z-index: 5;
}

.slot-badge.new {
    background: linear-gradient(135deg, var(--earth-primary), var(--earth-secondary));
}

.slot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slot-card:hover .slot-overlay {
    opacity: 1;
}

.btn-slot-play {
    padding: 10px 35px;
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-slot-play:hover {
    transform: scale(1.05);
}

.btn-slot-demo {
    padding: 8px 25px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--earth-text-muted);
    background: transparent;
    border: 1px solid var(--earth-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-slot-demo:hover {
    border-color: var(--earth-primary);
    color: var(--earth-primary);
}

.slot-info {
    padding: 18px;
}

.slot-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--earth-text-muted);
}

.slot-rtp {
    color: var(--earth-primary);
}

.slots-more {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    padding: 15px 50px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--earth-primary);
    background: transparent;
    border: 2px solid var(--earth-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--earth-gradient);
    color: var(--earth-dark);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ========== New MyPage Section ========== */
.mypage-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
}

.user-profile-card {
    background: rgba(26, 58, 92, 0.4);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    height: fit-content;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.avatar-container .avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--earth-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringPulse 2s ease-in-out infinite;
}

.avatar-container .avatar-image {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--earth-primary), var(--earth-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 2.5rem;
}

.user-level {
    position: absolute;
    bottom: -8px;
    right: -8px;
    padding: 4px 10px;
    background: var(--earth-gradient);
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--earth-dark);
}

.user-details {
    flex: 1;
}

.username {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.user-rank {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a1a;
}

.user-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #1a1a1a;
}

.user-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b5a2b);
    color: white;
}

.user-id {
    font-size: 0.8rem;
    color: var(--earth-text-muted);
}

.balance-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.balance-item.main {
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

.balance-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--earth-primary);
}

.balance-item.main .balance-value {
    font-size: 1.4rem;
}

.balance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.balance-row .balance-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action.deposit {
    background: var(--earth-gradient);
    color: var(--earth-dark);
}

.btn-action.deposit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.btn-action.withdraw {
    background: transparent;
    border: 1px solid var(--earth-primary);
    color: var(--earth-primary);
}

.btn-action.withdraw:hover {
    background: rgba(0, 212, 170, 0.1);
    transform: translateY(-3px);
}

.action-icon {
    font-size: 1.1rem;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.menu-card {
    background: rgba(26, 58, 92, 0.4);
    border-radius: 20px;
    padding: 30px 25px;
    border: 1px solid rgba(0, 212, 170, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-card:hover {
    border-color: var(--earth-primary);
    transform: translateY(-5px);
    box-shadow: var(--earth-glow);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.menu-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.menu-card p {
    font-size: 0.85rem;
    color: var(--earth-text-muted);
}

/* Responsive for new sections */
@media (max-width: 1200px) {
    .casino-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .casino-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .casino-card.featured .casino-image {
        min-height: 280px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mypage-layout {
        grid-template-columns: 1fr;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .casino-grid {
        grid-template-columns: 1fr;
    }

    .casino-card.featured {
        grid-column: span 1;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-top {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: 1fr;
    }

    .quick-menu-grid {
        grid-template-columns: 1fr;
    }

    .slots-filter {
        flex-direction: column;
    }

    .slots-filter .filter-btn {
        width: 100%;
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }

    .balance-row {
        grid-template-columns: 1fr;
    }
}

/* ========== Modal Styles ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, var(--earth-dark) 0%, var(--earth-darker) 100%);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 170, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--earth-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--earth-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-logo .planet-icon {
    width: 35px;
    height: 35px;
}

.modal-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--earth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--earth-text);
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--earth-text);
}

.form-group input {
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: var(--earth-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--earth-text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--earth-primary);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
}

.btn-check {
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--earth-primary);
    background: transparent;
    color: var(--earth-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-check:hover {
    background: var(--earth-primary);
    color: var(--earth-dark);
}

.form-group select {
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: var(--earth-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300d4aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--earth-primary);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.form-group select option {
    background: var(--earth-dark);
    color: var(--earth-text);
    padding: 10px;
}

/* Country Select Styles */
/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.custom-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dropdown-selected:hover {
    border-color: var(--earth-primary);
}

.custom-dropdown.active .custom-dropdown-selected {
    border-color: var(--earth-primary);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.custom-dropdown-selected .flag {
    font-size: 1.5rem;
    line-height: 1;
}

.custom-dropdown-selected .text {
    flex: 1;
    font-size: 1rem;
    color: var(--earth-text);
}

.custom-dropdown-selected .arrow {
    font-size: 0.8rem;
    color: var(--earth-primary);
    transition: transform 0.3s ease;
}

.custom-dropdown.active .custom-dropdown-selected .arrow {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.active .custom-dropdown-options {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-dropdown-option:hover {
    background: rgba(0, 212, 170, 0.15);
}

.custom-dropdown-option.selected {
    background: rgba(0, 212, 170, 0.2);
}

.custom-dropdown-option .flag {
    font-size: 1.5rem;
    line-height: 1;
}

.custom-dropdown-option .text {
    font-size: 1rem;
    color: var(--earth-text);
}

/* Custom Dropdown Scrollbar */
.custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
    background: var(--earth-primary);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .custom-dropdown-selected {
        padding: 14px 15px;
        gap: 10px;
    }

    .custom-dropdown-selected .flag {
        font-size: 1.6rem;
    }

    .custom-dropdown-selected .text {
        font-size: 1rem;
    }

    .custom-dropdown-option {
        padding: 16px 15px;
        gap: 12px;
    }

    .custom-dropdown-option .flag {
        font-size: 1.6rem;
    }

    .custom-dropdown-option .text {
        font-size: 1.1rem;
    }
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--earth-text-muted);
}

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

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 212, 170, 0.5);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--earth-gradient);
    border-color: var(--earth-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--earth-dark);
    font-size: 12px;
    font-weight: bold;
}

/* Security Code */
.security-code-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.security-code-display {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    color: var(--earth-primary);
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.security-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.1) 50%, transparent 100%);
    animation: securityShine 2s linear infinite;
}

@keyframes securityShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.security-refresh {
    width: 50px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: var(--earth-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.security-refresh:hover {
    background: var(--earth-primary);
    color: var(--earth-dark);
    transform: rotate(180deg);
}

.forgot-link {
    color: var(--earth-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--earth-accent);
}

.btn-submit {
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--earth-gradient);
    color: var(--earth-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
}

.modal-footer p {
    font-size: 0.9rem;
    color: var(--earth-text-muted);
}

.modal-footer a {
    color: var(--earth-primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    color: var(--earth-accent);
}

/* Modal Responsive */
@media (max-width: 480px) {
    .modal {
        padding: 30px 20px;
        margin: 15px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ========== Mobile Bottom Navigation ========== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 170, 0.3);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--earth-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--earth-primary);
}

.mobile-bottom-nav .nav-item:hover {
    color: var(--earth-primary);
}

.mobile-bottom-nav .nav-item .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav .nav-item .nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mobile-bottom-nav .nav-item .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
}

.mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--earth-gradient);
    border-radius: 0 0 3px 3px;
}

/* Center action button (Home) */
.mobile-bottom-nav .nav-item.center-action {
    position: relative;
}

.mobile-bottom-nav .nav-item.center-action .nav-icon {
    width: 50px;
    height: 50px;
    background: var(--earth-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item.center-action .nav-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--earth-dark);
}

.mobile-bottom-nav .nav-item.center-action:hover .nav-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.6);
}

.mobile-bottom-nav .nav-item.center-action .nav-label {
    color: var(--earth-primary);
}

/* Badge on nav item */
.mobile-bottom-nav .nav-item .nav-badge,
.mobile-bottom-nav .nav-item .menu-notification-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

.mobile-bottom-nav .nav-item.has-badge {
    position: relative;
}

/* Mobile Bottom Nav - Show on mobile */
@media (max-width: 768px) {
    .logged-out .nav {
        display: none;
    }

    .mobile-bottom-nav {
        display: block;
    }

    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Adjust footer padding */
    /* .footer {
        padding-bottom: 80px;
    } */

    /* Mobile nav dropdown adjustment */
    .mobile-nav {
        bottom: 70px;
        top: auto;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

}

@media (max-width: 480px) {
    .mobile-bottom-nav .nav-item {
        padding: 6px 8px;
        min-width: 50px;
    }

    .mobile-bottom-nav .nav-item .nav-label {
        font-size: 0.6rem;
    }

    .mobile-bottom-nav .nav-item.center-action .nav-icon {
        width: 45px;
        height: 45px;
        margin-top: -3px;
    }

    .mobile-bottom-nav .nav-item.center-action .nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== Additional Mobile Improvements ========== */

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    /* 모바일에서 충전/환전, 로그아웃, 쪽지함 버튼 숨김 (메뉴에 있음) */
    .header-quick-btns,
    .logged-in-actions .btn-logout,
    .logged-in-actions .header-mail {
        display: none !important;
    }

    .header {
        padding: 10px 0;
    }

    .logo-text {
        font-size: 1.2rem;        
    }

    /* ========== Mobile Logged Out State ========== */
    /* 로그아웃 상태: 로그인/회원가입 버튼만 표시 */
    .logged-out .header-actions {
        display: flex !important;
        align-items: center;
        gap: 3px;
        padding-right:10px;
    }

    .logged-out .header-actions .btn-login,
    .logged-out .header-actions .btn-signup,
    .btn-lang {
        padding: 8px 10px;
        font-size: 0.75rem;
        min-width: auto;
        min-height: auto;
    }

    /* ========== Mobile Logged In State ========== */
    /* 로그인 상태: 보유금, 포인트(전환), 내프로필 표시 */
    .logged-in .nav {
        display: none !important;
    }

    .logged-in .header-actions {
        display: flex !important;
        align-items: center;
    }

    .logged-in .header-actions .btn-login,
    .logged-in .header-actions .btn-signup {
        display: none !important;
    }

    .logged-in .logged-in-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    .logged-in .header-balance {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 8px !important;
    }

    .logged-in .header-balance .balance-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .logged-in .header-balance .balance-label {
        display: block !important;
        font-size: 0.65rem !important;
        color: var(--earth-text-muted) !important;
    }

    .logged-in .header-balance .currency {
        display: none !important;
    }

    .logged-in .header-balance .balance-value {
        font-size: 0.55rem !important;
    }

    .logged-in .btn-point-convert {
        padding: 2px 6px !important;
        font-size: 0.5rem !important;
        margin-left: 5px !important;
        border-radius: 4px !important;
    }

    .logged-in .header-profile {
        display: flex !important;
        align-items: center !important;
        font-size: 0 !important;
    }

    .logged-in .header-profile .profile-icon {
        width: 44px !important;
        height: 44px !important;
    }

    .logged-in .mobile-menu-btn {
        display: none !important;
    }

    .logged-in .mobile-nav {
        display: none !important;
    }

    /* Mobile menu button animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile balance display */
    .mobile-nav .balance-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        background: rgba(0, 212, 170, 0.1);
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .mobile-nav .balance-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav .balance-label {
        font-size: 0.8rem;
        color: var(--earth-text-muted);
    }

    .mobile-nav .balance-value {
        font-family: 'Orbitron', sans-serif;
        font-size: 1rem;
        font-weight: 600;
    }

    .mobile-nav .balance-value.money {
        color: var(--earth-primary);
    }

    .mobile-nav .balance-value.point {
        color: #ffd700;
    }

    /* Modal fullscreen on mobile */
    .modal-overlay {
        padding: 0;
    }

    .modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        overflow-y: auto;
    }

    .modal-close {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 10;
    }

    .login-form {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .mobile-menu-btn span {
        width: 22px;
    }

    /* Input improvements for mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .form-input {
        padding: 14px 15px;
    }

    /* Button size for touch */
    .btn-login,
    .btn-signup,
    .btn-submit {
        padding: 14px 20px;
        min-height: 48px;
    }

    /* Modal form on small screens */
    .input-with-btn {
        flex-direction: row;
        gap: 8px;
    }

    .input-with-btn input {
        flex: 1;
        min-width: 0;
    }

    .input-with-btn .btn-check {
        flex-shrink: 0;
        padding: 12px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .security-code-wrapper {
        flex-direction: row;
    }

    .security-code-display {
        flex: 1;
    }
}

/* Safe area support for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    @media (max-width: 768px) {
        body {
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }

        /* .footer {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        } */
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-item,
    .btn-login,
    .btn-signup,
    .amount-btn,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-bottom-nav .nav-item {
        padding: 10px 8px;
    }
}

/* ========== Slide Up Menu ========== */
.slide-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slide-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--earth-dark) 0%, var(--earth-darker) 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    max-height: 70vh;
    overflow-y: auto;
}

.slide-menu.active {
    transform: translateY(0);
}

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

.slide-menu-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--earth-text);
    margin: 0;
}

.slide-menu-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slide-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slide-menu-close svg {
    width: 18px;
    height: 18px;
    fill: var(--earth-text);
}

.slide-menu-items {
    padding: 15px 0;
}

.slide-menu-item {
    display: block;
    padding: 14px 25px;
    color: var(--earth-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.slide-menu-item:hover {
    background: rgba(0, 212, 170, 0.1);
    border-left-color: var(--earth-primary);
}

.slide-menu-item .menu-icon {
    display: none;
}

.slide-menu-item .menu-label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.slide-menu-item {
    position: relative;
}

.menu-badge {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-menu-item.logout {
    color: #ff6b6b;
    margin-top: 15px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-menu-item.logout:hover {
    border-left-color: #ff6b6b;
}

/* 로그인/로그아웃 상태별 메뉴 표시 */
.slide-menu-item.menu-login,
.slide-menu-item.menu-signup {
    display: none;
}

.slide-menu-item.menu-login {
    color: var(--earth-primary);
}

.slide-menu-item.menu-signup {
    color: #ffd700;
}

body.logged-out .slide-menu-item.menu-login,
body.logged-out .slide-menu-item.menu-signup {
    display: block;
}

body.logged-out .slide-menu-item.menu-logged-in {
    display: none;
}

/* ========== Point Convert Modal ========== */
.point-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.point-modal.active {
    display: flex;
}

.point-modal-content {
    background: linear-gradient(180deg, #1a2a4a 0%, #0a1628 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.point-modal-content .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--earth-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.point-modal-content .modal-close:hover {
    color: var(--earth-primary);
}

.point-modal-content .modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--earth-primary);
    text-align: center;
    margin-bottom: 25px;
}

.current-point-box {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-point-box .label {
    color: var(--earth-text-muted);
    font-size: 0.9rem;
}

.current-point-box .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--earth-primary);
}

.convert-form .form-label {
    display: block;
    color: var(--earth-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.point-input-wrap {
    position: relative;
    margin-bottom: 15px;
}

.point-input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    color: var(--earth-text);
    font-size: 1rem;
    box-sizing: border-box;
}

.point-input:focus {
    outline: none;
    border-color: var(--earth-primary);
}

.point-input-wrap .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--earth-text-muted);
    font-weight: 600;
}

.point-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.point-btn {
    padding: 10px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    color: var(--earth-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.point-btn:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: var(--earth-primary);
}

.point-btn.clear {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.point-btn.clear:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.convert-info {
    font-size: 0.8rem;
    color: var(--earth-text-muted);
    margin-bottom: 20px;
}

.convert-result {
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.convert-result .label {
    color: var(--earth-text-muted);
    font-size: 0.9rem;
}

.convert-result .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--earth-secondary);
}

.btn-convert-submit {
    width: 100%;
    padding: 15px;
    background: var(--earth-gradient);
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--earth-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-convert-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

/* Point Modal Responsive */
@media (max-width: 480px) {
    .point-modal-content {
        padding: 20px;
    }

    .point-btns {
        grid-template-columns: repeat(2, 1fr);
    }

    .current-point-box .value,
    .convert-result .value {
        font-size: 1rem;
    }
}

/* ========== Provider Search & Favorite ========== */
.provider-search-box {
    position: relative;
    max-width: 400px;
    height: 52px;
    margin: 0 auto 30px;
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.provider-search {
    position: relative;
    margin: 0;  
    padding:0 0 0 15px;  
    width: calc(100% - 60px);
    height: 100%;
    text-align: left;
    background:none;
    border:none;
    color: var(--earth-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.provider-search-box:focus-within {
    outline: none;
    border-color: var(--earth-primary);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
}

.provider-search:focus {outline: none; border: none;}

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

.provider-search-box .search-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    width: 60px;
    height: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 215, 0, 0.5);
    color: rgba(255, 215, 0, 0.8);
}

.btn-favorite.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

/* Card Position for Favorite */
.casino-card,
.slot-card {
    position: relative;
}

/* Favorite Card Highlight */
.casino-card.is-favorite,
.slot-card.is-favorite {
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Hidden by search */
.casino-card.hidden,
.slot-card.hidden {
    display: none;
}

/* Mobile Search Box */
@media (max-width: 768px) {
    .provider-search-box {
        max-width: 100%;
        margin: 20px 0;
        padding: 0;
    }

    .btn-favorite {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 8px;
        right: 8px;
    }
}

/* Back to Support Button */
.btn-back-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--earth-primary);
    border-radius: 30px;
    color: var(--earth-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-support:hover {
    background: var(--earth-primary);
    color: var(--earth-dark);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.3);
}

.btn-back-support svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-back-support:hover svg {
    transform: translateX(-3px);
}
