* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 헤더 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    background-color: #212121;
    border-bottom: 1px solid #303030;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: logoGradient 3s ease-in-out infinite;
}

@keyframes logoGradient {
    0% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 8px rgba(102,126,234,0.7));
    }
    25% {
        filter: drop-shadow(0 0 12px rgba(118,75,162,0.8));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 18px rgba(240,147,251,0.9)) drop-shadow(0 0 30px rgba(240,147,251,0.5));
    }
    75% {
        filter: drop-shadow(0 0 12px rgba(118,75,162,0.8));
    }
    100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 8px rgba(102,126,234,0.7));
    }
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-bar {
    display: flex;
    background-color: #121212;
    border: 1px solid #303030;
    border-radius: 20px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #aaaaaa;
}

.search-btn {
    background: none;
    border: none;
    color: #aaaaaa;
    padding: 8px 16px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

.header-icon:hover {
    background-color: #303030;
}

/* 메인 컨테이너 */
.main-container {
    display: flex;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 사이드바 */
.sidebar {
    width: 240px;
    background-color: #212121;
    border-right: 1px solid #303030;
    padding: 12px 0;
    position: fixed;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.nav-menu {
    padding: 0 12px;
    margin-bottom: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 2px;
    font-size: 14px;
}

.nav-item:hover {
    background-color: #303030;
}

.nav-item.active {
    background-color: #303030;
}

.nav-item i {
    width: 24px;
    font-size: 16px;
}

.streamer-section {
    padding: 0 12px;
    margin-bottom: 24px;
}

.streamer-section h3 {
    font-size: 14px;
    color: #aaaaaa;
    margin-bottom: 12px;
    padding: 0 12px;
}

.streamer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.streamer-item:hover {
    background-color: #303030;
}

.streamer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.streamer-info {
    flex: 1;
}

.streamer-name {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.viewer-count {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
}

.sidebar-footer {
    padding: 0 12px;
    border-top: 1px solid #303030;
    padding-top: 12px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 12px;
    color: #aaaaaa;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 2px;
    font-size: 14px;
}

.footer-item:hover {
    background-color: #303030;
    color: #ffffff;
}

.footer-item i {
    width: 24px;
    font-size: 16px;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px;
    max-width: calc(100vw - 240px);
    overflow-x: hidden;
}

/* 메인 비디오 섹션 */
.main-video-section {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.video-container {
    flex: 1;
}

.video-player {
    position: relative;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 24px;
}

.video-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.channel-details h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.channel-details p {
    font-size: 14px;
    color: #aaaaaa;
}

.play-btn {
    background-color: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.chat-container {
    width: 340px;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.chat-header {
    background-color: #303030;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 16px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-username {
    font-size: 12px;
    color: #00d4ff;
    font-weight: 500;
    margin-right: 8px;
}

.chat-text {
    font-size: 14px;
    color: #ffffff;
}

/* 게임 카테고리 */
.game-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    position: relative;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.category-image {
    width: 100%;
    height: 160px;
    max-height: 160px;
    object-fit: cover;
    display: block;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 16px;
}

.live-badge {
    background-color: #ff4444;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
}

.category-details p {
    margin-bottom: 4px;
}

.category-time {
    font-size: 12px;
    color: #aaaaaa;
}

.category-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.category-subtitle {
    font-size: 12px;
    color: #aaaaaa;
}

/* 라이브 스트림 섹션 */
.live-streams-section {
    width: 100%;
    overflow: hidden;
}

.live-streams-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.stream-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    max-width: 100%;
}

.stream-card:hover {
    transform: translateY(-4px);
}

/* GPU 가속 활성화 */
.stream-card {
    will-change: transform;
    contain: layout style paint;
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 157px;
    object-fit: cover;
    display: block;
}

.viewer-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.stream-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.stream-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.stream-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.stream-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-details p {
    font-size: 12px;
    color: #aaaaaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 반응형 */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 72px;
    }
    
    .main-content {
        margin-left: 72px;
        max-width: calc(100vw - 72px);
    }
    
    .nav-item span,
    .footer-item span {
        display: none;
    }
    
    .streamer-section,
    .sidebar-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 56px !important;
        left: -250px !important;
        width: 240px !important;
        height: calc(100vh - 56px) !important;
        transition: left 0.3s ease !important;
        z-index: 9999 !important;
        background-color: #212121 !important;
        overflow-y: auto !important;
    }
    
    .sidebar.open {
        left: 0 !important;
    }
    
    /* 메뉴 버튼 클릭 영역 확보 */
    .menu-btn {
        position: relative;
        z-index: 10000 !important;
        padding: 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* 侧边栏打开时的遮罩 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 12px;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    
    .main-video-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .video-container {
        width: 100%;
    }
    
    .video-player {
        aspect-ratio: 16/9;
        min-height: 200px;
    }
    
    .chat-container {
        width: 100%;
        height: 300px;
    }
    
    .chat-messages {
        height: 220px;
    }
    
    .game-categories {
        gap: 12px;
        padding-bottom: 12px;
    }
    
    .category-item {
        min-width: 200px;
    }
    
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    .stream-card {
        border-radius: 8px;
    }
    
    .stream-thumbnail img {
        height: 100px;
    }
    
    .stream-info {
        padding: 8px;
    }
    
    .stream-details h4 {
        font-size: 12px;
    }
    
    .stream-details p {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stream-avatar {
        width: 24px;
        height: 24px;
    }
    
    /* 头部优화 */
    .header {
        padding: 0 8px;
    }
    
    .header-center {
        margin: 0 8px;
        flex: 1;
        max-width: calc(100vw - 120px); /* iOS Safari 너비 제한 */
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .search-bar input {
        font-size: 16px !important; /* iOS Safari 줌 방지 */
        padding: 8px 12px;
        width: 100%;
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    /* 视频覆盖层优化 */
    .video-overlay {
        padding: 12px;
    }
    
    .channel-details h2 {
        font-size: 14px;
    }
    
    .channel-details p {
        font-size: 12px;
    }
    
    .channel-avatar {
        width: 32px;
        height: 32px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* 直播标签 */
    .live-indicator {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* 分类标题 */
    .live-streams-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* 更小屏幕 (手机竖屏) */
@media (max-width: 480px) {
    .header {
        height: 50px;
        padding: 0 8px;
    }
    
    .main-container {
        margin-top: 50px;
    }
    
    .sidebar {
        top: 50px;
        height: calc(100vh - 50px);
    }
    
    .main-content {
        padding: 8px;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }
    
    .stream-thumbnail img {
        height: 180px;
    }
    
    .stream-info {
        padding: 10px;
    }
    
    .stream-details h4 {
        font-size: 14px;
    }
    
    .stream-details p {
        font-size: 12px;
    }
    
    .stream-avatar {
        width: 32px;
        height: 32px;
    }
    
    .game-categories {
        gap: 8px;
    }
    
    .category-item {
        min-width: 160px;
    }
    
    .chat-container {
        height: 250px;
    }
    
    .chat-messages {
        height: 180px;
    }
    
    .chat-message {
        padding: 6px 0;
    }
    
    .chat-username {
        font-size: 11px;
    }
    
    .chat-text {
        font-size: 12px;
    }
    
    .video-player {
        min-height: 180px;
    }
    
    .header-icon {
        padding: 6px;
        font-size: 16px;
    }
    
    .header {
        padding: 0 4px;
    }
    
    .header-center {
        margin: 0 4px;
        flex: 1;
        max-width: calc(100vw - 100px); /* 더 작은 화면 대응 */
    }
    
    .search-bar {
        display: flex; /* 작은 화면에서도 검색창 표시 */
        width: 100%;
        max-width: 100%;
    }
    
    .search-bar input {
        font-size: 16px !important; /* iOS Safari 줌 방지 */
        padding: 6px 8px;
        width: 100%;
        min-width: 0;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* 채팅 메시지 - 애니메이션 제거로 성능 개선 */
.chat-message {
    opacity: 1;
}

/* 애니메이션 선호 사용자만 적용 */
@media (prefers-reduced-motion: no-preference) {
    .chat-message {
        animation: fadeInUp 0.15s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 스트리머 아바타 호버 효과 */
.streamer-avatar {
    transition: transform 0.2s ease;
}

.streamer-avatar:hover {
    transform: scale(1.1);
}

/* 채팅 아바타 호버 효과 */
.chat-avatar {
    transition: transform 0.2s ease;
}

.chat-avatar:hover {
    transform: scale(1.2);
}


/* 슬라이드쇼 스타일 */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slideshow .slide.active {
    opacity: 1;
}

/* 슬라이드 인디케이터 */
.slide-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.slide-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-indicators .indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

.slide-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 라이브 인디케이터 */
.live-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #ff0000;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 비디오 플레이어 위치 조정 */
.video-player {
    position: relative;
}

/* 음소거/음소거 해제 버튼 */
.play-btn.muted i::before {
    content: "\f6a9"; /* volume-mute */
}


/* 모바일 하단 네비게이션 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #212121;
    border-top: 1px solid #303030;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 1000;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    font-size: 10px;
    gap: 4px;
    transition: color 0.2s;
}

.mobile-nav a i {
    font-size: 20px;
}

.mobile-nav a.active {
    color: #00d4ff;
}

.mobile-nav a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .main-content {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        padding: 6px 0;
    }
    
    .mobile-nav a {
        font-size: 9px;
    }
    
    .mobile-nav a i {
        font-size: 18px;
    }
    
    .main-content {
        padding-bottom: 60px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .stream-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .nav-item:active,
    .mobile-nav-item:active {
        background-color: #404040;
    }
    
    .play-btn:active {
        transform: scale(0.95);
    }
}


/* 모바일 모달 반응형 */
@media (max-width: 768px) {
    .auth-content {
        width: 95% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        height: auto !important;
        padding: 20px !important;
        margin: 10px;
        overflow-y: auto;
    }
    
    .auth-content h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .auth-content h3 {
        font-size: 16px !important;
    }
    
    .auth-content input,
    .auth-content select,
    .auth-content button {
        font-size: 14px !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .auth-content {
        width: 100% !important;
        max-height: 85vh !important;
        border-radius: 12px 12px 0 0 !important;
        margin: 0;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* 로그인/회원가입 모달 */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-content {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
}

.auth-close:hover {
    color: #fff;
}

.auth-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #00d4ff;
}

.auth-input {
    display: flex;
    align-items: center;
    background: #0f0f23;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.auth-input i {
    color: #666;
    width: 20px;
}

.auth-input input,
.auth-input select {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 10px;
    color: #fff;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.auth-input select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' 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;
    padding-left: 0;
    padding-right: 30px;
}

.auth-input select option {
    background: #16213e;
    color: #fff;
    padding: 10px;
}

.auth-input input::placeholder {
    color: #666;
}

.auth-input:focus-within {
    border-color: #00d4ff;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.auth-switch a {
    color: #00d4ff;
    text-decoration: none;
}

/* 유저 드롭다운 */
.user-dropdown {
    position: absolute;
    top: 56px;
    right: 10px;
    background: #212121;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    min-width: 150px;
    z-index: 1001;
}

.user-dropdown span {
    display: block;
    color: #00d4ff;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.user-dropdown button {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.user-dropdown button:hover {
    background: #c0392b;
}


/* 마이페이지 스타일 */
.mypage-info {
    background: #0f0f23;
    border-radius: 10px;
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: #888;
}

.info-row span:last-child {
    color: #fff;
    font-weight: 500;
}

.info-row.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.info-row.highlight span:last-child {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.exchange-item {
    background: #0f0f23;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #27ae60;
}

.exchange-item.pending {
    border-left-color: #f39c12;
}

.exchange-item.rejected {
    border-left-color: #e74c3c;
}

.exchange-item p {
    margin: 5px 0;
    font-size: 13px;
    color: #aaa;
}

.exchange-item .amount {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.exchange-item .status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.status-pending { background: #f39c12; color: #fff; }
.status-approved { background: #27ae60; color: #fff; }
.status-rejected { background: #e74c3c; color: #fff; }


/* 간단한 아이템샵 스타일 */
.simple-shop-content {
    max-width: 500px;
    background: #2c3e50;
    border-radius: 15px;
    padding: 0;
}

.simple-header {
    background: #3498db;
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 15px 15px 0 0;
}

.simple-header h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.simple-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.simple-grade-list {
    padding: 20px;
}

.simple-grade-item {
    display: flex;
    flex-direction: column;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.simple-grade-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.3);
}

.grade-content {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.silver-grade { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.gold-grade { background: linear-gradient(135deg, #f39c12, #e67e22); }
.diamond-grade { background: linear-gradient(135deg, #3498db, #2980b9); }
.vip-grade { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.grade-icon {
    font-size: 30px;
    margin-right: 15px;
}

.grade-details {
    flex: 1;
    color: white;
}

.grade-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.grade-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.grade-price {
    font-size: 18px;
    font-weight: bold;
}

.grade-buttons {
    padding: 0 20px 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grade-buy-btn {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.silver-btn { 
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 5px 20px rgba(149, 165, 166, 0.4);
}
.gold-btn { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}
.diamond-btn { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}
.vip-btn { 
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

.grade-buy-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.grade-buy-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.grade-buy-btn i {
    font-size: 18px;
}

.simple-footer {
    background: #1a252f;
    padding: 15px;
    text-align: center;
    border-radius: 0 0 15px 15px;
}

.simple-footer p {
    color: #f39c12;
    margin: 2px 0;
    font-size: 11px;
}

/* 간단한 포인트 충전 스타일 */
.simple-charge-content {
    max-width: 400px;
    background: #2c3e50;
    border-radius: 15px;
    padding: 0;
}

.current-points-simple {
    background: #1a252f;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.points-display {
    color: #f1c40f;
    font-size: 16px;
    font-weight: bold;
}

.charge-list {
    padding: 20px;
}

.charge-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.charge-item-simple:hover {
    background: linear-gradient(135deg, #3e5266 0%, #34495e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-color: rgba(243, 156, 18, 0.3);
}

.charge-item-simple.selected {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-color: #f39c12;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.charge-amount {
    font-weight: 600;
}

.charge-price {
    color: #f39c12;
    font-weight: bold;
}

.charge-item-simple.selected .charge-price {
    color: white;
}

.custom-input-simple {
    margin: 0 20px 20px 20px;
    background: #1a252f;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-input-simple i {
    color: #f39c12;
}

.custom-input-simple input {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.custom-input-simple input::placeholder {
    color: #7f8c8d;
}

.charge-btn-simple {
    margin: 20px 20px 20px 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: calc(100% - 40px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.charge-btn-simple:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
}

.charge-btn-simple:active {
    transform: translateY(-1px);
}

/* 고객센터 스타일 */
.tab-btn {
    padding: 10px 20px;
    background: #16213e;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #1a2a4e;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#support-write .form-group textarea {
    font-family: inherit;
}

#my-support-list::-webkit-scrollbar {
    width: 6px;
}

#my-support-list::-webkit-scrollbar-track {
    background: #0f0f23;
}

#my-support-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* 모바일 슬라이더 표시 (최소 수정) */
@media (max-width: 768px) {
    .game-categories {
        display: flex !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .game-categories {
        display: flex !important;
        margin-bottom: 16px;
    }
}
/* 아이템샵 & 포인트 충전 모바일 최적화 */
@media (max-width: 768px) {
    .shop-items {
        gap: 10px;
    }
    
    .shop-item {
        padding: 12px;
        gap: 12px;
    }
    
    .item-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .item-info h4 {
        font-size: 14px;
    }
    
    .item-info p {
        font-size: 11px;
    }
    
    .item-price {
        font-size: 14px;
    }
    
    .charge-options {
        gap: 8px;
    }
    
    .charge-item {
        padding: 12px 15px;
    }
    
    .charge-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .shop-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .item-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 10px;
    }
    
    .item-info {
        margin-bottom: 10px;
    }
    
    .item-price {
        font-size: 16px;
        font-weight: bold;
    }
    
    .charge-item {
        padding: 15px;
        border-radius: 10px;
    }
}

/* ==================== 성능 최적화 CSS ==================== */

/* GPU 가속 활성화 */
.stream-card,
.category-item,
.chat-message,
.slide {
    will-change: transform;
    transform: translateZ(0);
}

/* 애니메이션 최적화 */
.stream-card:hover,
.category-item:hover {
    transform: translateY(-4px) translateZ(0);
}

/* 스크롤 성능 최적화 */
.chat-messages,
.streams-grid,
.game-categories {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 이미지 로딩 최적화 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 텍스트 렌더링 최적화 */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 레이아웃 최적화 */
.streams-grid {
    contain: layout style paint;
}

.chat-messages {
    contain: layout style;
}

/* 애니메이션 성능 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 메모리 사용량 최적화 */
.stream-thumbnail img,
.category-image {
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

/* 배터리 절약 모드 */
@media (prefers-reduced-motion: reduce) {
    .live-dot {
        animation: none;
    }
    
    .slideshow .slide {
        transition: none;
    }
}

/* ==================== 2026 Modern UI - 등급신청 & 포인트충전 ==================== */

.modal-hero-banner {
    margin: 0 20px 22px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 30px rgba(0,0,0,0.18);
}

.modal-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.exchange-banner {
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(59,130,246,0.14));
}

.grade-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(168,85,247,0.14));
}

.charge-banner {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(236,72,153,0.14));
}

/* 모던 모달 기본 스타일 - 우선순위 높임 */
.auth-modal .modern-modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95) 0%, rgba(15, 15, 35, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    width: 95% !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    padding: 0 !important;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.auth-modal .modern-modal-content.grade-modal {
    max-width: 520px !important;
}

.auth-modal .modern-modal-content.exchange-modal {
    max-width: 440px !important;
}

.auth-modal .modern-modal-content.charge-modal {
    max-width: 480px !important;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 닫기 버튼 */
.auth-modal .modern-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-modal .modern-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

/* 모달 헤더 */
.modern-modal-header {
    position: relative;
    padding: 40px 30px 30px;
    text-align: center;
    overflow: hidden;
}

.modern-modal-header .header-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.grade-header .header-glow {
    background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.3) 0%, transparent 60%);
}

.charge-header .header-glow {
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.3) 0%, transparent 60%);
}

.exchange-header .header-glow {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.3) 0%, transparent 60%);
}

.modern-modal-header .header-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

.charge-header .header-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

.exchange-header .header-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.modern-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.modern-modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==================== 환전 모달 스타일 ==================== */

/* 환전 포인트 표시 */
.exchange-points-display {
    margin: 0 20px 24px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.exchange-points-display .points-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.exchange-points-display .points-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exchange-points-display .points-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.exchange-points-display .points-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

/* 입력 그룹 */
.exchange-input-group {
    margin: 0 20px 16px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.input-label i {
    font-size: 12px;
    color: #10b981;
}

/* 모던 인풋 */
.modern-input-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modern-input-wrap:focus-within {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

.modern-input-wrap input {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.modern-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modern-input-wrap .input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: 600;
    font-size: 15px;
}

/* 모던 셀렉트 */
.modern-select-wrap {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modern-select-wrap:focus-within {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

.modern-select-wrap select {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 40px 14px 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modern-select-wrap select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

.modern-select-wrap .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    pointer-events: none;
}

/* 계좌 정보 섹션 */
.account-section {
    margin: 24px 20px 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.account-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-section .section-title i {
    color: #10b981;
}

.account-section .exchange-input-group {
    margin: 0 0 12px;
}

.account-section .exchange-input-group:last-child {
    margin-bottom: 0;
}

/* 환전 버튼 */
.exchange-submit-btn {
    margin: 20px;
    width: calc(100% - 40px);
    padding: 18px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.exchange-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.exchange-submit-btn i {
    transition: transform 0.3s ease;
}

.exchange-submit-btn:hover i {
    transform: translateX(4px);
}

/* ==================== 충전 모달 스타일 ==================== */

/* 현재 포인트 표시 */
.current-points-display {
    margin: 0 20px 24px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-points-display .points-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.current-points-display .points-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-points-display .points-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.current-points-display .points-value {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
}

/* 충전 그리드 */
.charge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

.charge-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.charge-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.charge-card.selected {
    border-color: #f59e0b;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
}

.charge-card.large {
    grid-column: span 2;
}

.charge-card-inner {
    padding: 20px;
    text-align: center;
    position: relative;
}

.best-value {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0 14px 0 10px;
    letter-spacing: 0.5px;
}

.charge-points {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.charge-won {
    display: block;
    font-size: 14px;
    color: #fbbf24;
    font-weight: 500;
}

/* 직접 입력 */
.custom-charge-input {
    margin: 0 20px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.custom-charge-input:focus-within {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.05);
}

.custom-charge-input .input-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

.custom-charge-input input {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.custom-charge-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-charge-input .input-suffix {
    color: #fbbf24;
    font-weight: 600;
    font-size: 15px;
}

/* 충전 버튼 */
.charge-submit-btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    padding: 18px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.charge-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.4);
}

.charge-submit-btn i {
    transition: transform 0.3s ease;
}

.charge-submit-btn:hover i {
    transform: translateX(4px);
}

/* ==================== 등급 카드 스타일 ==================== */
.grade-cards-container {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grade-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.grade-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.grade-card .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.grade-card:hover .card-shine {
    left: 100%;
}

/* 등급별 테두리 색상 */
.silver-card:hover { border-color: rgba(192, 192, 192, 0.5); box-shadow: 0 10px 40px rgba(192, 192, 192, 0.2); }
.gold-card:hover { border-color: rgba(255, 193, 7, 0.5); box-shadow: 0 10px 40px rgba(255, 193, 7, 0.2); }
.diamond-card:hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2); }
.vip-card:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2); }
.quick-card:hover { border-color: rgba(231, 76, 60, 0.5); box-shadow: 0 10px 40px rgba(231, 76, 60, 0.2); }

/* 인기 뱃지 */
.popular-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 1px;
}

/* 등급 뱃지 */
.grade-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.grade-badge.silver { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: #fff; }
.grade-badge.gold { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); color: #fff; }
.grade-badge.diamond { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }
.grade-badge.vip { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); color: #fff; }
.grade-badge.quick { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; }

/* 등급 아이콘 */
.grade-icon-wrap {
    position: absolute;
    top: 20px;
    right: 20px;
}

.grade-emoji {
    font-size: 36px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
}

.silver-glow { background: #c0c0c0; }
.gold-glow { background: #fbbf24; }
.diamond-glow { background: #3b82f6; }
.vip-glow { background: #a855f7; }
.quick-glow { background: #e74c3c; }

/* 등급 상세 */
.grade-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.benefits-list li i {
    color: #10b981;
    font-size: 10px;
}

/* 가격 태그 */
.grade-price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.price-period {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* 선택 버튼 */
.grade-select-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.grade-select-btn i {
    transition: transform 0.3s ease;
}

.grade-select-btn:hover i {
    transform: translateX(4px);
}

.silver-btn { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.gold-btn { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.diamond-btn { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.vip-btn { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.quick-btn { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }

.silver-btn:hover { box-shadow: 0 8px 25px rgba(156, 163, 175, 0.4); }
.gold-btn:hover { box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4); }
.diamond-btn:hover { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }
.vip-btn:hover { box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4); }
.quick-btn:hover { box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4); }

/* 안내 문구 */
.modal-notice {
    padding: 16px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.modal-notice i {
    color: rgba(251, 191, 36, 0.7);
}

/* ==================== 모바일 반응형 ==================== */
@media (max-width: 480px) {
    .modern-modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
    }
    
    .modern-modal-header {
        padding: 30px 20px 20px;
    }
    
    .modern-modal-header .header-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .modern-modal-header h2 {
        font-size: 20px;
    }
    
    .grade-cards-container {
        padding: 0 16px 16px;
        gap: 12px;
    }
    
    .grade-card {
        padding: 16px;
    }
    
    .grade-emoji {
        font-size: 28px;
    }
    
    .grade-details h3 {
        font-size: 16px;
    }
    
    .benefits-list li {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    .charge-grid {
        padding: 0 16px 16px;
        gap: 10px;
    }
    
    .charge-card-inner {
        padding: 16px;
    }
    
    .charge-points {
        font-size: 16px;
    }
    
    .charge-won {
        font-size: 13px;
    }
    
    .current-points-display,
    .exchange-points-display {
        margin: 0 16px 20px;
        padding: 16px;
    }
    
    .points-value {
        font-size: 20px;
    }
    
    .custom-charge-input {
        margin: 0 16px 16px;
    }
    
    .charge-submit-btn,
    .exchange-submit-btn {
        margin: 0 16px 16px;
        width: calc(100% - 32px);
        padding: 16px 20px;
    }
    
    .exchange-input-group {
        margin: 0 16px 14px;
    }
    
    .account-section {
        margin: 20px 16px 16px;
        padding: 16px;
    }
}

/* 스크롤바 스타일 */
.modern-modal-content::-webkit-scrollbar {
    width: 6px;
}

.modern-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modern-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modern-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}