:root {
    --neon-blue: #00aaff;
    --neon-dark-blue: #007bff;
    --neon-purple: #9d00ff;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #aaaaaa;
    --accent-red: #ff5555;
    --accent-green: #00ffaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 70px; /* 6. 헤더 높이만큼 padding-top 추가 */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 170, 255, 0.05) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(157, 0, 255, 0.05) 0%, transparent 50%),
        repeating-radial-gradient(circle at center, rgba(0, 170, 255, 0.015) 0px, transparent 200px);
    animation: bgPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
    mix-blend-mode: screen;
    opacity: 0.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://www.transparenttextures.com/patterns/black-linen.png");
    opacity: 0.03;
    z-index: -1;
    mix-blend-mode: overlay;
    pointer-events: none;
}

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

    50% {
        transform: scale(1.03);
        opacity: 0.7;
    }
}

/* Aurora Film Canvas */
#bgAurora {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    filter: blur(60px) brightness(1.2);
}

/* Header Styles */
.header {
    background: linear-gradient(145deg, #0a0a0a 0%, #111 45%, #1a1a1a 100%);
    padding: 22px 15px;
    position: fixed; /* 6. 헤더 상단 고정 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* 6. z-index 추가 */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 170, 255, 0.12) 0%, transparent 60%);
    animation: headerOrbit 18s linear infinite;
    pointer-events: none;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.04), transparent 70%);
    pointer-events: none;
}

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

@keyframes headerOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes headerGlow {
    0% {
        box-shadow: 0 2px 15px rgba(0, 170, 255, 0.3);
    }

    100% {
        box-shadow: 0 2px 25px rgba(0, 170, 255, 0.6);
    }
}

.header h1 {
    margin: 0;
    font-family: "Audiowide", sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.5));
    background-size: 200% auto;
    animation: neonShine 8s linear infinite;
}

@keyframes neonShine {
    0% {
        background-position: -100% center;
    }

    100% {
        background-position: 200% center;
    }
}

.auth-buttons {
    position: static;
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-btn {
    border: none;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: #0a0a0a;
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 0 6px rgba(0, 170, 255, 0.4), inset 0 0 2px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 170, 255, 0.6);
}

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

.user-balance {
    background: rgba(0, 170, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--neon-blue);
    font-size: 14px;
}

.user-balance span {
    color: var(--neon-blue);
    font-weight: 600;
}

@media (max-width: 420px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header h1 {
        font-size: 30px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 12px;
    }

    .auth-btn {
        flex: 1 1 42%;
        max-width: 160px;
    }

    .user-info {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
}

/* Banner Styles */
/* 기존 코드 수정 */
.banner-container {
    margin-top: 60px; /* 헤더 높이만큼 상단 마진 추가 */
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px; /* 하단 마진은 유지 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
}

.banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent 45%, rgba(0, 170, 255, 0.1) 50%, transparent 55%);
    animation: bannerShine 5s infinite;
}

@keyframes bannerShine {
    0% {
        transform: rotate(0deg) translate(-30%, -30%);
    }

    100% {
        transform: rotate(360deg) translate(-30%, -30%);
    }
}

.banner img {
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
    border-radius: 5px;
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    opacity: 0;
}

.banner img.active {
    opacity: 1;
}

/* Banner Controls */
.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    transform: translateY(-50%);
}

.banner-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(0, 170, 255, 0.7);
}

.banner-indicators {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

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

.banner-indicator.active {
    background: var(--neon-blue);
    transform: scale(1.2);
}

/* Game Tabs */
.game-tabs {
    display: flex;
    justify-content: space-between; /* 전체 폭 100 % 채우기 */
    gap: 6px;
    padding: 0 15px;
    margin: 25px 0 18px;
}

.game-tab {
    flex: 1 1 0; /* 각 탭이 동일 너비 */
    position: relative;
    padding: 12px 0;
    font-weight: 700;
    text-align: center;
    border-radius: 14px;
    background: #222; /* 비활성 기본색 */
    border: 1px solid #444;
    color: #ddd;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.game-tab:not(.active):hover {
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.25);
    transform: translateY(-3px);
    color: #fff;
}

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

.game-tab:hover::before {
    left: 100%;
}

.game-tab.active {
    background: var(--neon-blue);
    color: #fff; /* ← 흰색 고정 */
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
}

.game-tab:active {
    transform: scale(0.96);
}

@keyframes tabGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
@keyframes tabShine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.game-tab.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: tabShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

/* Game Cards */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 80px;
}

.game-card {
    position: relative;
    aspect-ratio: 3/4;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #101010, #1c1c1c);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, rgba(0, 170, 255, 0.6), rgba(157, 0, 255, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.4s;
    pointer-events: none;
}

.game-card::after {
    content: "";
    position: absolute;
    top: -200%;
    left: -200%;
    width: 400%;
    height: 400%;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.05), transparent 70%);
    animation: premiumGlow 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes premiumGlow {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }

    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.game-card:hover {
    transform: scale(1.03) rotateX(5deg) rotateY(4deg);
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.3), 0 0 20px rgba(157, 0, 255, 0.15);
}

.game-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    z-index: 1;
}

.game-card:hover img {
    transform: scale(1.07);
}

.game-card .card-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    z-index: 2;
    transition: all 0.35s ease;
}

.game-card:hover .card-title {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--neon-blue);
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    text-align: center;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.nav-item.active {
    color: var(--neon-blue);
}

.nav-item::before {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-item.active::before {
    width: 60%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-item.active i {
    color: var(--neon-blue);
    transform: translateY(-3px);
}

.nav-item .nav-text {
    font-size: 12px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-text {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.3);
    position: relative;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--bg-dark), var(--bg-darker));
}

.modal-title {
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--neon-blue);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-gray);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--neon-blue);
    color: black;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.btn:hover {
    background: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
}

/* Notice / Account Boxes */
.notice-box {
    background-color: #111;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.notice-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    animation: noticeBorderGlow 2s infinite alternate;
}

@keyframes noticeBorderGlow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.notice-box p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.warning-text {
    color: var(--accent-red);
    font-weight: 600;
}

.account-info {
    background-color: #111;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.account-info:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}

.copy-btn {
    background-color: var(--neon-blue);
    color: black;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--neon-purple);
    transform: translateY(-2px);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background-color: #111;
    border: 1px solid #333;
    color: var(--text-light);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.amount-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
}

.amount-btn.active {
    background: var(--neon-blue);
    color: black;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background: #111;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.radio-option:hover {
    border-color: var(--neon-blue);
    background: #1a1a1a;
}

.radio-option input {
    margin-right: 10px;
    accent-color: var(--neon-blue);
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(0, 170, 255, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.charge-tabs {
    display: flex;
    border-bottom: 1px solid var(--neon-blue);
    margin-bottom: 15px;
}

.charge-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
}

.charge-tab.active {
    color: var(--neon-blue);
}

.charge-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
}

.charge-tab-content {
    display: none;
}

.charge-tab-content.active {
    display: block;
}

/* 충전 내역 스타일 */
.charge-history-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.charge-history-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #333;
    align-items: center;
}

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

.charge-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
}

.status-completed {
    background: rgba(0, 255, 0, 0.2);
    color: lime;
}

.status-rejected {
    background: rgba(255, 0, 0, 0.2);
    color: red;
}

.no-history {
    text-align: center;
    padding: 20px;
    color: var(--text-gray);
}

/* 충전 성공 알림 */
.charge-success-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 170, 255, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
    animation: slideUp 0.3s ease;
}

.charge-success-notification i {
    margin-right: 10px;
    font-size: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* 직접 입력 필드 스타일 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 관리자 페이지 추가 스타일 */
.admin-container {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--neon-blue);
}

.admin-title {
    color: var(--neon-blue);
    font-size: 24px;
    font-weight: 700;
}

.admin-back-btn {
    background: var(--neon-blue);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.user-table th {
    background-color: #111;
    color: var(--neon-blue);
}

.user-table tr:hover {
    background-color: #1a1a1a;
}

.admin-action-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
}

.admin-action-btn:hover {
    background: var(--neon-blue);
    color: black;
}

.admin-action-btn.delete {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.admin-action-btn.delete:hover {
    background: var(--accent-red);
    color: white;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--neon-blue);
}

.stat-title {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--neon-blue);
    font-size: 24px;
    font-weight: 700;
}

.search-box {
    margin-bottom: 20px;
}

/* 금액 수정 인풋 스타일 */
.balance-input {
    width: 80px;
    padding: 5px;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: white;
    text-align: right;
}

/* 로딩 스피너 */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 채팅 관련 스타일 */
.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #111;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
}

.message-user {
    background-color: rgba(0, 170, 255, 0.2);
    border: 1px solid var(--neon-blue);
    margin-left: auto;
    text-align: right;
}

.message-admin {
    background-color: rgba(157, 0, 255, 0.2);
    border: 1px solid var(--neon-purple);
    margin-right: auto;
}

.message-time {
    font-size: 10px;
    color: var(--text-gray);
    margin-top: 3px;
}

.no-chat {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

.chat-input-area {
    display: flex;
    flex-direction: column;
}

/* 관리자 채팅 목록 스타일 */
.admin-chat-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.admin-chat-item {
    background: #111;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-chat-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.admin-chat-item.active {
    border-color: var(--neon-purple);
    background: rgba(157, 0, 255, 0.1);
}

.chat-user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-user-name {
    font-weight: 600;
    color: var(--neon-blue);
}

.chat-last-message {
    color: var(--text-gray);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-unread {
    background: var(--accent-red);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 5px;
}

/* 관리자 채팅 창 스타일 */
.admin-chat-container {
    display: none;
    margin-top: 20px;
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 15px;
}

.admin-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--neon-blue);
}

.admin-chat-user {
    font-weight: 600;
    color: var(--neon-blue);
}

.admin-close-chat {
    background: var(--neon-blue);
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 170, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 5. 푸터 스타일 추가 */
footer {
    background: rgba(10, 10, 10, 0.8);
    padding: 15px;
    padding-bottom: 90px; /* 네비게이션 바 높이만큼 하단 패딩 추가 */
    text-align: center;
    border-top: 1px solid var(--neon-blue);
    margin-top: 20px;
}

.telegram-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    color: var(--neon-purple);
    transform: translateY(-2px);
}

.telegram-icon {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 5px;
}
.charge-success-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 170, 255, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
    animation: slideUp 0.5s ease, pulse 2s infinite;
}

.charge-success-notification i {
    margin-right: 10px;
    font-size: 20px;
    animation: bounce 1s infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 170, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.admin-container {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(15, 15, 20, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.admin-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 170, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 관리자 헤더 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--neon-blue);
    position: relative;
}

.admin-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    opacity: 0.5;
}

.admin-title {
    color: var(--neon-blue);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    position: relative;
    padding-left: 15px;
}

.admin-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    border-radius: 5px;
}

.admin-back-btn {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
}

.admin-back-btn i {
    font-size: 16px;
}

/* 섹션 제목 */
.admin-section h3 {
    color: var(--neon-blue);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    position: relative;
}

.admin-section h3::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--neon-blue);
    animation: sectionUnderline 3s infinite alternate;
}

@keyframes sectionUnderline {
    0% {
        width: 100px;
    }
    100% {
        width: 200px;
    }
}

/* 통계 카드 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(20, 20, 30, 0.7);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--neon-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.2);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent 45%, rgba(0, 170, 255, 0.05) 50%, transparent 55%);
    animation: statShine 6s linear infinite;
    pointer-events: none;
}

@keyframes statShine {
    0% {
        transform: rotate(0deg) translate(-30%, -30%);
    }
    100% {
        transform: rotate(360deg) translate(-30%, -30%);
    }
}

.stat-title {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    color: var(--neon-blue);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    position: relative;
    display: inline-block;
}

.stat-value::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
    opacity: 0.7;
}

/* 검색 박스 */
.search-box {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 30px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.1);
}

.search-box input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
    outline: none;
}

.search-box::after {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    pointer-events: none;
}

/* 테이블 스타일 */
.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-table th {
    background: linear-gradient(to right, rgba(0, 170, 255, 0.2), rgba(157, 0, 255, 0.1));
    color: var(--neon-blue);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
    transition: all 0.2s ease;
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table tr:hover td {
    background: rgba(0, 170, 255, 0.05);
}

.user-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

/* 액션 버튼 */
.admin-action-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-action-btn i {
    font-size: 12px;
}

.admin-action-btn:hover {
    background: var(--neon-blue);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.admin-action-btn.delete {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.admin-action-btn.delete:hover {
    background: var(--accent-red);
    color: white;
}

/* 금액 입력 필드 */
.balance-input {
    width: 100px;
    padding: 6px 10px;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: white;
    text-align: right;
    transition: all 0.3s;
}

.balance-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    outline: none;
}

/* 상태 셀렉트 박스 */
.user-status {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-status:focus {
    border-color: var(--neon-blue);
    outline: none;
}

.user-status option {
    background: var(--bg-dark);
}

/* 탭 메뉴 */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: var(--neon-blue);
}

.admin-tab.active {
    color: var(--neon-blue);
}

.admin-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    animation: tabUnderline 0.3s ease-out;
}

@keyframes tabUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 탭 내용 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* 충전 신청 목록 */
.charge-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 3px solid var(--neon-blue);
    transition: all 0.3s;
}

.charge-request-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.1);
}

.charge-request-info {
    flex: 1;
}

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

/* 애니메이션 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 170, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
    }
}

/* 반응형 디자인 */
@media (max-width: 420px) {
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .user-table {
        display: block;
        overflow-x: auto;
    }

    .admin-action-btn {
        margin-bottom: 5px;
    }
}

@media (max-width: 420px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
    }

    .admin-back-btn {
        width: 100%;
        justify-content: center;
    }
}
/* styles.css에 추가할 관리자 페이지 스타일 */
.admin-container {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(15, 15, 25, 0.95);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.admin-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 170, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

.admin-title {
    color: var(--neon-blue);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    font-family: "Audiowide", sans-serif;
    letter-spacing: 1px;
}

.admin-back-btn {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
}

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

.stat-card {
    background: rgba(20, 20, 30, 0.7);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--neon-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.2);
}

.stat-title {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    color: var(--neon-blue);
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
    transition: all 0.3s;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
}

.admin-tab:hover {
    color: var(--neon-blue);
    background: rgba(0, 170, 255, 0.1);
}

.admin-tab.active {
    color: var(--neon-blue);
    background: rgba(0, 170, 255, 0.2);
}

.admin-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-blue);
    animation: tabUnderline 0.3s ease-out;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.admin-section h3 {
    color: var(--neon-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
}

.user-table th {
    background: linear-gradient(to right, rgba(0, 170, 255, 0.2), rgba(157, 0, 255, 0.1));
    color: var(--neon-blue);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 170, 255, 0.1);
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table tr:hover td {
    background: rgba(0, 170, 255, 0.05);
}

.balance-input {
    width: 100px;
    padding: 6px 10px;
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 5px;
    color: white;
    text-align: right;
}

.admin-action-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s;
    font-size: 12px;
}

.admin-action-btn:hover {
    background: var(--neon-blue);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.admin-action-btn.delete {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.admin-action-btn.delete:hover {
    background: var(--accent-red);
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 420px) {
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .admin-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-back-btn {
        width: 100%;
        justify-content: center;
    }
}
#accountTab .form-group {
    margin-bottom: 20px;
}

#accountTab .form-control {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

#accountTab .form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

#accountTab .btn {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    letter-spacing: 1px;
}
@media (max-width: 420px) {
    /* 관리자 컨테이너 조정 */
    .admin-container {
        padding: 15px;
        margin: 10px;
    }

    /* 통계 카드 2열로 변경 */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 테이블 가로 스크롤 허용 */
    .user-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 탭 메뉴 가로 스크롤 허용 */
    .admin-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .admin-tab {
        flex: 0 0 auto; /* 줄바꿈 방지 + 고정 크기 */
        padding: 10px 15px;
        font-size: 14px;
    }

    /* 테이블 가로 스크롤 허용 */
    .user-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .user-table th,
    .user-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* 액션 버튼 스타일 조정 */
    .admin-action-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-bottom: 5px;
        display: block;
    }

    /* 입력 필드 크기 조정 */
    .balance-input {
        width: 80px;
    }

    /* 모달 크기 조정 */
    .modal-content {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 420px) {
    /* 통계 카드 1열로 변경 */
    .admin-stats {
        grid-template-columns: 1fr;
    }

    /* 헤더 스택 레이아웃 */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-back-btn {
        width: 100%;
        justify-content: center;
    }

    /* 테이블 폰트 크기 축소 */
    .user-table {
        font-size: 14px;
    }

    /* 충전/환전 모달 내 그리드 조정 */
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 폼 그룹 간격 축소 */
    .form-group {
        margin-bottom: 10px;
    }

    /* 채팅 입력 영역 조정 */
    .chat-input-area textarea {
        height: 80px;
    }
}
/* 환전 관련 스타일 */
.exchange-tabs {
    display: flex;
    border-bottom: 1px solid var(--neon-blue);
    margin-bottom: 15px;
}

.exchange-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
}

.exchange-tab.active {
    color: var(--neon-blue);
}

.exchange-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
}

.exchange-tab-content {
    display: none;
}

.exchange-tab-content.active {
    display: block;
}

.exchange-history-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.exchange-history-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #333;
    align-items: center;
}

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

.exchange-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* 환전 성공 알림 */
.exchange-success-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 170, 255, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.5);
    animation: slideUp 0.5s ease, pulse 2s infinite;
}

.exchange-success-notification i {
    margin-right: 10px;
    font-size: 20px;
    animation: bounce 1s infinite;
}

/* 관리자 환전 요청 테이블 스타일 */
#exchangeRequestsTab .user-table th:nth-child(3),
#exchangeRequestsTab .user-table td:nth-child(3),
#exchangeRequestsTab .user-table th:nth-child(4),
#exchangeRequestsTab .user-table td:nth-child(4),
#exchangeRequestsTab .user-table th:nth-child(5),
#exchangeRequestsTab .user-table td:nth-child(5) {
    display: none;
}

@media (min-width: 420px) {
    #exchangeRequestsTab .user-table th:nth-child(3),
    #exchangeRequestsTab .user-table td:nth-child(3),
    #exchangeRequestsTab .user-table th:nth-child(4),
    #exchangeRequestsTab .user-table td:nth-child(4),
    #exchangeRequestsTab .user-table th:nth-child(5),
    #exchangeRequestsTab .user-table td:nth-child(5) {
        display: table-cell;
    }
}
/* === User-info modal === */
.user-info-wrapper {
    text-align: center;
}

.info-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.5);
    margin: 0 auto 18px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 10px;
    column-gap: 20px;
    text-align: left;
    font-size: 14px;
}

.user-info-grid dt {
    color: var(--text-gray);
    font-weight: 600;
}
.user-info-grid dd {
    margin: 0;
    color: var(--text-light);
}

/* 상태 뱃지 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-active {
    background: #05863c;
    color: #fff;
}
.status-banned {
    background: #a81010;
    color: #fff;
}

/* ── Tether popup ───────────────────────────────────────────── */
.tether-popup {
    position: fixed;
    inset: 0;
    display: none; /* JS 로 제어 */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 3000; /* 기존 모달보다 위쪽 */
    animation: fadeIn 0.35s ease;
}

.tether-popup__content {
    width: 92%;
    max-width: 460px;
    background: linear-gradient(145deg, #04060f 0%, #071127 100%);
    border: 2px solid #00aaff;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.45);
    color: #fff;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.tether-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s;
}
.tether-popup__close:hover {
    transform: rotate(90deg);
}

.tether-popup__head {
    padding: 60px 20px 20px;
}
.tether-popup__head h2 {
    font-family: "Audiowide", sans-serif;
    font-size: 36px;
    line-height: 1;
    background: linear-gradient(90deg, #00aaff, #9d00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
    margin-bottom: 10px;
}
.tether-popup__head .subtitle {
    font-size: 28px;
    font-weight: 700;
    color: #cfd4ff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 6px rgba(0, 170, 255, 0.3);
}
.tether-popup__img-wrap {
    margin: 20px;
}
.tether-popup__img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

.tether-popup__foot {
    background: #000;
    padding: 18px 10px 28px;
    font-weight: 600;
    font-size: 17px;
    color: #ffea00;
    text-shadow: 0 0 6px rgba(255, 255, 0, 0.6);
}
.tether-popup__foot small {
    display: block;
    margin-top: 4px;
    color: #ddd;
    font-size: 14px;
    font-weight: 400;
}

/* 간단한 페이드 인 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 반응형(모바일) */
@media (max-width: 420px) {
    .tether-popup__head h2 {
        font-size: 28px;
    }
    .tether-popup__head .subtitle {
        font-size: 24px;
    }
    .tether-popup__foot {
        font-size: 15px;
    }
}
/* ── Tether popup : “오늘 하루 보지 않기” 체크 박스 ─────────── */
.tether-popup__today {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 15px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 6px 18px 7px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #222;
    border-radius: 22px;
    color: #fff;
    user-select: none;
}
.tether-popup__today input {
    accent-color: #00aaff; /* 체크 색상 */
    width: 16px;
    height: 16px;
}
@media (max-width: 420px) {
    .tether-popup__today {
        font-size: 13px;
        padding: 5px 14px;
    }
}
/* 전체 오버레이 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 팝업 박스 */
.popup__inner {
    position: relative;
    width: 90%;
    max-width: 360px;
    background: #000;
    border: 2px solid #00b4ff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.7);
    overflow: hidden;
    font-family: "Arial", sans-serif;
}

/* 헤더: 로고 + 닫기 버튼 */
.popup__header {
    position: relative;
    display: flex;
    justify-content: center; /* 제목 중앙 정렬 */
    align-items: center;
    padding: 12px 20px;
}
.popup__title {
    margin: 0;
    font-family: "Audiowide", sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    white-space: nowrap; /* 텍스트 줄바꿈 금지 */
    margin-right: auto;
    text-transform: uppercase;
    /* 그라데이션 + 텍스트 클립 */
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 네온 글로우 효과 */
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.5));
    background-size: 200% auto;
    animation: neonShine 8s linear infinite;
}
.popup__close {
    position: absolute;
    top: 50%; /* header 높이의 절반 지점 */
    right: 12px; /* 우측 여백 */
    transform: translateY(-50%); /* 세로 중앙 보정 */
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00c8ff;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 0 6px #00c8ff, 0 0 12px #005f99;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 1;
}

.popup__close:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 8px #ff00ff, 0 0 16px #990066;
}
/* 컨텐츠 영역 */
.popup__content {
    padding: 0; /* 상하 좌우 모두 0 */
}
.popup__subhead {
    margin: 0;
    font-size: 16px;
    text-shadow: 0 0 6px #00b4ff;
}
.popup__head {
    margin: 4px 0 20px;
    font-size: 32px;
    color: #00e0ff;
    text-shadow: 0 0 12px #00e0ff;
}
.popup__image {
    display: block;
    width: 100%; /* 가로 100% */
    height: auto;
    margin: 0; /* 하단 기본 마진 제거 */
    border-radius: 0; /* 필요 시 둥근 테두리 제거 */
    object-fit: cover;
}
.popup__notice--highlight {
    margin: 0;
    font-size: 14px;
    color: #ffec00;
    text-shadow: 0 0 4px #ffec00;
    font-weight: bold;
}
.popup__notice {
    margin: 4px 0 0;
    font-size: 12px;
    color: #ccc;
}

/* 하단 체크박스 */
.popup__footer {
    bottom: 8px; /* 바닥에서 좀 더 위로 */
    padding: 0; /* 내측 여백 제거 */
    /* 전체 숨기려면 아래 한 줄 추가하세요 */
    /* display: none; */
    margin-top: 0 !important;
}
.popup__today {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* 체크박스 ↔ 텍스트 간격 */
    padding: 8px 20px; /* 좌우 여유 공간 */
    background: rgba(0, 0, 0, 0.7); /* 반투명 검정 배경 */
    border: 1px solid var(--neon-blue); /* 네온 블루 테두리 */
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(0, 170, 255, 0.6);
    font-size: 16px; /* 텍스트 키우기 */
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.popup__today:hover {
    background: rgba(0, 0, 0, 0.85);
}
.popup__today input {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-blue); /* 체크박스 체크색 */
}
/* 사용자 정보 모달의 IP 정보 스타일 */
#infoIpAddress,
#infoVpnStatus {
    font-weight: bold;
    word-break: break-all;
}

/* VPN 감지됨 상태 스타일 */
#infoVpnStatus[style*="accent-red"] {
    color: var(--accent-red) !important;
}

/* IP 차단 버튼 스타일 */
.admin-action-btn.block-ip {
    background-color: var(--accent-orange);
    margin: 2px;
}

.admin-action-btn.block-ip:hover {
    background-color: #d35400;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#blockedPopup {
    animation: fadeIn 0.3s ease;
}

/* 관리자 승인 대기 팝업 */
.approval-pending-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.approval-pending-popup-box {
    background: #242226;
    border: 3px solid orange;
    border-radius: 13px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 0 22px rgba(255, 140, 0, 0.25);
    padding: 34px 30px 24px 30px;
    text-align: center;
    animation: popAppear 0.3s cubic-bezier(0.3, 1.3, 0.5, 1);
    position: relative;
}

.approval-pending-popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.approval-pending-icon {
    color: orange;
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.approval-pending-popup-body p {
    font-size: 17px;
    color: #ffe7c0;
    margin-bottom: 28px;
    line-height: 1.5;
}

.approval-pending-close-btn {
    background: orange;
    color: #222;
    border: none;
    border-radius: 23px;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 40px;
    cursor: pointer;
    box-shadow: 0 2px 9px 0 rgba(255, 140, 0, 0.14);
    transition: background 0.2s;
}
.approval-pending-close-btn:hover {
    background: #ffd16b;
}

@keyframes popAppear {
    0% {
        transform: scale(0.75);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.approval-pending-popup-hide {
    animation: fadeIn 0.3s reverse;
    opacity: 0;
}
