/* ========================================
   WawaCoin - 통합 CSS 스타일시트
   ======================================== */

/* ========================================
   1. RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   2. NAVIGATION STYLES
   ======================================== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

a.nav-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-menu {
    display: flex;
}

.mobile-menu {
    display: none;
}

.nav-menu a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* 드롭다운 호버 영역 확장 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px !important;
    color: #aaa !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.dropdown-menu a:hover {
    color: #f7931a !important;
    background: rgba(247, 147, 26, 0.1) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    margin-left: 15px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #f7931a;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* ========================================
   2.4. ANIMATIONS
   ======================================== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   2.5. REFERRAL BANNER STYLES
   ======================================== */
.referral-banner-section {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.referral-banner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.referral-banner-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-banner-img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* 닫기 버튼 제거됨 */

/* 모바일 반응형 */
@media (max-width: 768px) {
    .referral-banner-section {
        margin-bottom: 15px;
    }
    
    .referral-banner {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .referral-banner-section {
        margin-bottom: 10px;
    }
}

/* ========================================
   3. TOP TICKER STYLES
   ======================================== */
.top-ticker {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    display: flex;
    gap: 40px;
    overflow-x: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.ticker-wrapper {
    display: flex;
    animation: scroll 30s linear infinite;
    padding: 0 30px;
}

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    margin-right: 40px;
}

.ticker-item .symbol {
    color: #888;
    font-weight: 600;
}

.ticker-item .price {
    color: #fff;
    font-weight: 600;
}

.ticker-item .change {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.change.positive {
    color: #00d084;
    background: rgba(0, 208, 132, 0.1);
}

.change.negative {
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.1);
}

/* ========================================
   4. HEADER STYLES
   ======================================== */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crypto-icon {
    font-size: 2.5rem;
    color: #f7931a;
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.status-dot.live {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #22c55e;
}

/* ========================================
   5. MAIN CONTENT & CHART STYLES
   ======================================== */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.chart-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

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

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.powered-by {
    font-size: 0.8rem;
    color: #888;
    opacity: 0.7;
}

.chart-container {
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#tradingview_chart {
    height: 100%;
    width: 100%;
}

/* ========================================
   6. INDICATORS SECTION (HOME PAGE)
   ======================================== */
.indicators-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.indicator-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.indicator-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(247, 147, 26, 0.3);
}

/* Tooltip Styles */
.indicator-card[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    white-space: pre-line;
    z-index: 1000;
    min-width: 250px;
    margin-bottom: 10px;
    border: 1px solid rgba(247, 147, 26, 0.3);
    line-height: 1.5;
}

.indicator-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.indicator-icon {
    font-size: 10px;
    color: #f7931a;
}

.indicator-value {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'SF Mono', Monaco, monospace;
}

.indicator-value.trend {
    color: #22c55e;
}

.indicator-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.indicator-progress {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.indicator-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
}

.indicator-chart {
    height: 40px;
    margin-top: 8px;
}

/* ========================================
   7. COIN TABLE STYLES (HOME PAGE)
   ======================================== */
.table-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.price-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table Controls */
.table-controls {
    display: flex;
    gap: 15px;
    align-items: stretch;
    height: 45px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    height: 100%;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 35px 0 12px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #f7931a;
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    right: 10px;
    font-size: 16px;
    color: #888;
}

.favorites-toggle {
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    color: #f7931a;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.favorites-toggle:hover {
    background: rgba(247, 147, 26, 0.2);
    transform: translateY(-2px);
}

.favorites-toggle.active {
    background: #f7931a;
    color: #0d1421;
}

/* Favorites Section */
.favorites-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.favorites-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.favorites-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f7931a;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f7931a;
}

/* Table Styles */
.coin-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(247, 147, 26, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #f7931a;
    text-transform: uppercase;
}

th.center,
td.center {
    text-align: center !important;
}

th.right,
td.right {
    text-align: right;
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

td {
    padding: 16px;
    font-size: 14px;
}

.rank {
    color: #888;
    font-weight: 500;
}

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

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.coin-name {
    display: flex;
    flex-direction: column;
}

.coin-name .symbol {
    font-weight: 600;
    color: #fff;
}

.coin-name .name {
    font-size: 12px;
    color: #888;
}

.price-cell {
    font-weight: 600;
    color: #fff;
    position: relative;
}

.price-cell.flash-green {
    animation: flashGreen 0.5s;
}

.price-cell.flash-red {
    animation: flashRed 0.5s;
}

@keyframes flashGreen {
    0%, 100% { background: transparent; }
    50% { background: rgba(0, 208, 132, 0.1); }
}

@keyframes flashRed {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 59, 59, 0.1); }
}

.sparkline {
    width: 100px;
    height: 40px;
}

.load-more {
    text-align: center;
    padding: 20px;
}

.load-more button {
    background: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    border: 1px solid rgba(247, 147, 26, 0.3);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more button:hover {
    background: rgba(247, 147, 26, 0.2);
    border-color: #f7931a;
    transform: translateY(-2px);
}

/* Favorite & Chart Buttons */
.fav-btn, .chart-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    padding: 4px 8px;
}

.fav-btn {
    color: #666;
}

.fav-btn:hover {
    transform: scale(1.2);
    color: #f7931a;
}

.fav-btn.active {
    color: #f7931a;
    text-shadow: 0 0 8px rgba(247, 147, 26, 0.5);
}

.chart-btn {
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 4px;
    color: #f7931a;
    font-size: 12px;
    padding: 4px 8px;
}

.chart-btn:hover {
    background: rgba(247, 147, 26, 0.2);
}

/* ========================================
   8. TRADING INFO SECTION
   ======================================== */
/* Investment Warning */
.investment-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.investment-warning h4 {
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.investment-warning p {
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.trading-info {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Trading Page Section Titles */
.trading-info .section-title,
.daily-returns .section-title,
.current-position .section-title,
.performance-stats .section-title,
.trading-history .section-title {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Daily Returns */
.daily-returns {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.returns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.return-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.return-item.current {
    border-color: rgba(247, 147, 26, 0.5);
    background: rgba(247, 147, 26, 0.1);
}

.return-item:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 147, 26, 0.3);
}

.return-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.return-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.return-value.positive {
    color: #22c55e;
}

.return-value.negative {
    color: #ef4444;
}

.return-trades {
    font-size: 0.8rem;
    color: #ccc;
}

/* Current Position */
.current-position {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* Waiting State */
.waiting-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.waiting-box {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(247, 147, 26, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.waiting-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(247, 147, 26, 0.5);
    transform: translateY(-2px);
}

.waiting-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.waiting-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f7931a;
    margin-bottom: 8px;
}

.waiting-subtext {
    font-size: 1rem;
    color: #888;
    opacity: 0.8;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.info-label {
    font-size: 0.9rem;
    color: #888;
}

.info-value {
    font-weight: 600;
    color: #ffffff;
}

.info-value.positive {
    color: #22c55e;
}

.info-value.negative {
    color: #ef4444;
}

.signal-long {
    color: #22c55e;
}

.signal-short {
    color: #ef4444;
}

.funding-rate {
    color: #f7931a;
}

/* Trading History */
.trading-history {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* No Trades State */
.no-trades-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.no-trades-box {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.no-trades-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

.no-trades-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-trades-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 8px;
}

.no-trades-subtext {
    font-size: 1rem;
    color: #888;
    opacity: 0.8;
}

.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid #333;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.history-table th {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.history-table td {
    padding: 10px 12px;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.history-table tr.active-trade {
    background: rgba(247, 147, 26, 0.1);
    border-left: 3px solid #f7931a;
}

.history-table tr.win {
    border-left: 3px solid #22c55e;
}

.history-table tr.loss {
    border-left: 3px solid #ef4444;
}

.signal-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.signal-badge.long {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.signal-badge.short {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.ongoing {
    color: #f7931a;
    font-weight: 600;
}

.positive {
    color: #22c55e;
}

.negative {
    color: #ef4444;
}

/* Table Cell Colors */
.history-table td.positive {
    color: #22c55e !important;
}

.history-table td.negative {
    color: #ef4444 !important;
}

/* Performance Stats */
.performance-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.stat-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 147, 26, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.stat-label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin: 0 0 8px 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.stat-value.positive {
    color: #22c55e;
}

.stat-value.negative {
    color: #ef4444;
}

/* ========================================
   9. NEWS PAGE STYLES
   ======================================== */
.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.news-header {
    text-align: center;
    margin: 40px 0;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.news-subtitle {
    color: #888;
    font-size: 1.1rem;
}

/* Sentiment Indicator */
.sentiment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 20px 0;
}

.sentiment-indicator.positive {
    border: 1px solid #00d084;
    color: #00d084;
}

.sentiment-indicator.negative {
    border: 1px solid #ff3b3b;
    color: #ff3b3b;
}

.sentiment-indicator.neutral {
    border: 1px solid #888;
    color: #888;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* News Card */
.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #f7931a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.2);
}

.news-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.source-name {
    color: #f7931a;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-date {
    color: #666;
    font-size: 0.85rem;
}

.news-headline {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-snippet {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-link {
    color: #f7931a;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Loading State */
.loading-news {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 12px;
    color: #ff3b3b;
    margin: 40px auto;
    max-width: 600px;
}

/* ========================================
   10. INFO PANEL STYLES
   ======================================== */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(247, 147, 26, 0.3);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f7931a;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    color: #cccccc;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: "•";
    color: #f7931a;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ========================================
   11. FOOTER STYLES
   ======================================== */
.footer {
    padding: 20px 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ========================================
   12. LOADING ANIMATION
   ======================================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #888;
}

.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* ========================================
   13. SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

/* Desktop (1024px+) */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .chart-container {
        height: 500px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .nav-right {
        order: 2;
        gap: 10px;
    }
    
    .nav-left {
        order: 1;
        flex: 0;
    }
    
    #userCountDisplay {
        display: none !important;
    }
    
    .user-account-section {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #333;
        border-bottom: 2px solid #f7931a;
        z-index: 9999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
        z-index: 9999;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px;
        font-size: 16px;
    }
    
    .navbar-container {
        padding: 10px 15px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    /* Ticker */
    .top-ticker {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .ticker-item {
        padding: 0 10px;
    }
    
    /* Main Content */
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    /* Chart Section */
    .chart-section {
        margin-bottom: 20px;
    }
    
    .chart-title {
        font-size: 1.3rem;
    }
    
    .chart-container {
        height: 400px;
    }
    
    /* Indicators Section */
    .indicators-section {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .indicator-card {
        padding: 12px;
    }
    
    .indicator-label {
        font-size: 0.8rem;
    }
    
    .indicator-value {
        font-size: 1.2rem;
    }
    
    /* Coin Table */
    .coin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .coin-table table {
        min-width: 700px;
    }
    
    .price-section-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* News Page */
    .news-container {
        padding: 15px;
    }
    
    .news-header {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-subtitle {
        font-size: 0.9rem;
    }
    
    .news-grid {
        gap: 15px;
    }
    
    .news-card {
        padding: 15px;
    }
    
    .news-headline {
        font-size: 1rem;
    }
    
    /* Lotto Pages */
    .lotto-container {
        padding: 15px;
    }
    
    .lotto-header {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .lotto-title {
        font-size: 1.5rem;
    }
    
    .lotto-subtitle {
        font-size: 0.9rem;
    }
    
    .latest-draw {
        padding: 15px;
    }
    
    .draw-numbers {
        gap: 8px;
    }
    
    .ball {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .recommendation-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .rec-title {
        font-size: 1.2rem;
    }
    
    .rec-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .ai-recommendation-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .ai-title {
        font-size: 1.3rem;
    }
    
    .quick-menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-card {
        padding: 20px;
    }
    
    /* Summary Cards */
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    /* Tab Menu */
    .tab-menu {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Stats List */
    .stats-list {
        padding: 15px;
    }
    
    .stats-list .stat-item {
        grid-template-columns: 45px 1fr 60px !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .ticker-item {
        font-size: 12px;
        margin-right: 30px;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Header */
    .header {
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .crypto-icon {
        font-size: 1.8rem;
    }
    
    .status-indicator {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* Main Content */
    .main-content {
        padding: 20px 0;
    }
    
    .chart-container {
        height: 400px;
        border-radius: 8px;
    }
    
    .chart-section {
        padding: 16px;
        border-radius: 12px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-title {
        font-size: 1.2rem;
    }
    
    /* Indicators */
    .indicators-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .indicator-card {
        padding: 12px;
    }
    
    .indicator-value {
        font-size: 20px;
    }
    
    /* Table */
    .table-section {
        padding: 0 15px 30px;
    }
    
    .table-controls {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
    
    .search-box {
        max-width: 100%;
        height: 40px;
        width: 100%;
    }
    
    .coin-table {
        font-size: 12px;
        overflow-x: auto;
    }
    
    .coin-table table {
        min-width: 100%;
    }
    
    /* 모바일에서 숨길 열 */
    .coin-table th:nth-child(1),  /* 즐겨찾기 별표 */
    .coin-table td:nth-child(1),
    .coin-table th:nth-child(5),  /* 1시간 */
    .coin-table td:nth-child(5),
    .coin-table th:nth-child(7),  /* 7일 */
    .coin-table td:nth-child(7),
    .coin-table th:nth-child(8),  /* 시가총액 */
    .coin-table td:nth-child(8),
    .coin-table th:nth-child(9),  /* 거래량 */
    .coin-table td:nth-child(9),
    .coin-table th:nth-child(10), /* 7일 차트 */
    .coin-table td:nth-child(10) {
        display: none;
    }
    
    /* 즐겨찾기 버튼도 숨기기 */
    .favorites-toggle {
        display: none !important;
    }
    
    /* 즐겨찾기 섹션 숨기기 */
    .favorites-section {
        display: none !important;
    }
    
    /* 남은 열 조정 */
    th, td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
    
    .coin-icon {
        width: 20px;
        height: 20px;
    }
    
    .coin-name .name {
        display: none;
    }
    
    .coin-name .symbol {
        font-size: 0.9rem;
    }
    
    .sparkline {
        display: none;
    }
    
    /* Trading Info */
    .trading-info {
        padding: 20px 0;
        gap: 20px;
    }
    
    .returns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .position-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .return-item, .stat-item, .info-item {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .return-value, .stat-value, .info-value {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    /* Table Container */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .history-table {
        width: 100%;
        table-layout: auto;
        font-size: 11px;
    }
    
    .history-table th,
    .history-table td {
        padding: 6px 4px;
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
    }
    
    /* Column Widths */
    .history-table th:nth-child(1),
    .history-table td:nth-child(1) { width: 15%; }
    .history-table th:nth-child(2),
    .history-table td:nth-child(2) { width: 12%; }
    .history-table th:nth-child(3),
    .history-table td:nth-child(3) { width: 20%; }
    .history-table th:nth-child(4),
    .history-table td:nth-child(4) { width: 20%; }
    .history-table th:nth-child(5),
    .history-table td:nth-child(5) { width: 18%; }
    .history-table th:nth-child(6),
    .history-table td:nth-child(6) { width: 15%; }
    
    .trading-history, .trading-info, .daily-returns, .current-position, .performance-stats {
        padding: 15px;
        margin: 10px 0;
    }
    
    /* Buttons */
    button, .btn {
        min-height: 44px;
        font-size: 14px;
    }
    
    .waiting-box, .no-trades-box {
        padding: 20px;
    }
    
    .waiting-icon, .no-trades-icon {
        font-size: 2rem;
    }
    
    .waiting-text, .no-trades-text {
        font-size: 1rem;
    }
    
    .waiting-subtext, .no-trades-subtext {
        font-size: 0.85rem;
    }
    
    /* Info Panel */
    .info-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .info-card li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    /* Touch Optimization */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* News Page */
    .news-title {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-container {
        padding: 10px 15px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .title {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .crypto-icon {
        font-size: 1.5rem;
    }
    
    .status-indicator {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .chart-title {
        font-size: 1.2rem;
    }
    
    /* Single Column Grids */
    .returns-grid,
    .position-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .return-item.current {
        grid-column: span 1;
    }
}

/* ========================================
   10. LOTTO STYLES
   ======================================== */

/* Lotto Container */
.lotto-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.lotto-header {
    text-align: center;
    margin: 40px 0;
}

.lotto-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.lotto-subtitle {
    color: #888;
    font-size: 1.1rem;
}

/* Lotto Balls */
.ball, .ball-number {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ball {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.ball-number {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.ball.yellow, .ball-number.yellow { 
    background: linear-gradient(135deg, #d4a017, #f0c420); 
}
.ball.blue, .ball-number.blue { 
    background: linear-gradient(135deg, #4169e1, #6495ed); 
}
.ball.red, .ball-number.red { 
    background: linear-gradient(135deg, #dc143c, #ff6b6b); 
}
.ball.gray, .ball-number.gray { 
    background: linear-gradient(135deg, #808080, #a9a9a9); 
}
.ball.green, .ball-number.green { 
    background: linear-gradient(135deg, #228b22, #90ee90); 
}

/* Draw Numbers */
.draw-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.draw-info {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.plus-sign {
    font-size: 1.5rem;
    color: #888;
    display: flex;
    align-items: center;
}

/* Latest Draw Box */
.latest-draw {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

/* Quick Menu Grid */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.menu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #f7931a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.2);
}

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

.menu-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-description {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Recommendation Section */
.recommendation-section {
    background: rgba(247, 147, 26, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.rec-title {
    color: #f7931a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.rec-button {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rec-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
}

.recommended-numbers {
    margin-top: 30px;
    display: none;
}

.recommended-numbers.show {
    display: block;
}

/* Stats Container */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-header {
    text-align: center;
    margin: 40px 0;
}

.stats-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Tab Menu */
.tab-menu {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-button.active {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    border-color: #f7931a;
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #f7931a;
}

/* Sort Options */
.sort-options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sort-label {
    color: #888;
    font-size: 0.95rem;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.sort-button {
    background: rgba(247, 147, 26, 0.2);
    border: 1px solid #f7931a;
    color: #f7931a;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.sort-button:hover {
    background: #f7931a;
    color: #000;
}

/* Stats List */
.stats-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

/* 번호별 통계 리스트 아이템 - 가로 레이아웃 */
.stats-list .stat-item {
    display: grid !important;
    grid-template-columns: 60px 1fr 80px !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 15px 20px !important;
    margin-bottom: 10px !important;
    flex-direction: row !important;
    min-height: auto !important;
    text-align: left !important;
}

/* 번호별 통계 카운트 */
.stats-list .stat-count {
    text-align: right;
    font-weight: 600;
    color: #f7931a;
    font-size: 1rem;
}

.stat-bar {
    flex: 1;
    margin: 0 20px;
    width: 100%;
}

.bar-container {
    background: rgba(0, 0, 0, 0.5);
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
    background-size: 100% 100%;
    display: block;
    min-width: 2px;
}

.bar-fill.yellow { 
    background: linear-gradient(90deg, #d4a017, #f0c420) !important; 
}
.bar-fill.blue { 
    background: linear-gradient(90deg, #4169e1, #6495ed) !important; 
}
.bar-fill.red { 
    background: linear-gradient(90deg, #dc143c, #ff6b6b) !important; 
}
.bar-fill.gray { 
    background: linear-gradient(90deg, #808080, #a9a9a9) !important; 
}
.bar-fill.green { 
    background: linear-gradient(90deg, #228b22, #90ee90) !important; 
}

.stat-count {
    color: #fff;
    font-weight: 600;
    min-width: 65px;
    text-align: right;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.summary-label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.summary-value {
    color: #f7931a;
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-detail {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Color Stats Page */
.color-chart-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.color-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    justify-content: center;
}

.color-stats-grid .color-stat-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.color-stats-grid .color-stat-card:nth-child(3),
.color-stats-grid .color-stat-card:nth-child(4),
.color-stats-grid .color-stat-card:nth-child(5) {
    flex: 1 1 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

@media (max-width: 768px) {
    .color-stats-grid .color-stat-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .color-stats-grid .color-stat-card:nth-child(3),
    .color-stats-grid .color-stat-card:nth-child(4),
    .color-stats-grid .color-stat-card:nth-child(5) {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.color-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s;
    text-align: center;
}

.color-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #f7931a;
    transform: translateY(-2px);
}

.color-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.color-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.color-range {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.color-percentage {
    color: #f7931a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.color-count {
    color: #888;
    font-size: 0.9rem;
}

.recent-draws-section {
    margin: 60px 0;
}

.section-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.recent-draws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.draw-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.draw-number {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.color-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}/* AI 추천번호 섹션 */
.ai-recommendation-section {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.05), rgba(255, 179, 71, 0.05));
    border: 2px solid rgba(247, 147, 26, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ai-recommendation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    z-index: -1;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* AI Recommendation Table */
.ai-rec-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

.ai-rec-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

.ai-rec-table thead {
    background: rgba(247, 147, 26, 0.1);
    border-bottom: 2px solid rgba(247, 147, 26, 0.3);
}

.ai-rec-table th {
    padding: 15px 10px;
    text-align: center;
    color: #f7931a;
    font-weight: 600;
    font-size: 1rem;
}

.ai-rec-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.ai-rec-table tbody tr:hover {
    background: rgba(247, 147, 26, 0.05);
}

.ai-rec-table tbody tr:last-child {
    border-bottom: none;
}

.ai-rec-table td {
    padding: 10px;
    text-align: center;
    color: #e5e7eb;
}

.ai-rec-table .ai-rec-index {
    font-weight: 600;
    color: #f7931a;
    font-size: 1.1rem;
}

.ai-rec-table .ai-rec-balls {
    padding: 10px 5px;
}

.ai-rec-table .ai-rec-balls .ball-small {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin: 0 2px;
    display: inline-flex !important;
    flex-shrink: 0;
}

.ai-rec-table .ai-rec-reason {
    text-align: left;
    font-size: 0.95rem;
    color: #999;
    padding: 10px 15px;
    line-height: 1.5;
}

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

.ai-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ai-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-icon {
    font-size: 2rem;
}

.ai-subtitle {
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-recommendations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.ai-rec-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-rec-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(247, 147, 26, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.2);
}

.ai-rec-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    width: 100%;
}

.ai-rec-index {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #f7931a;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(247, 147, 26, 0.3);
    border: 1px solid rgba(247, 147, 26, 0.4);
    position: relative;
}

.ai-rec-balls {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.ball-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ball-small.yellow { background: linear-gradient(135deg, #d4a017, #f0c420); }
.ball-small.blue { background: linear-gradient(135deg, #4169e1, #6495ed); }
.ball-small.red { background: linear-gradient(135deg, #dc143c, #ff6b6b); }
.ball-small.gray { background: linear-gradient(135deg, #808080, #a9a9a9); }
.ball-small.green { background: linear-gradient(135deg, #228b22, #90ee90); }

.ai-rec-reason {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 5px;
    padding: 0;
    font-style: normal;
}

.ai-note {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.loading-ai {
    text-align: center;
    padding: 40px;
    color: #f7931a;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(247, 147, 26, 0.2);
    border-top-color: #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 8px;
}

/* 텔레그램 알림 섹션 */
.telegram-notification-section {
    margin-top: 30px;
    position: relative;
    z-index: 100;
}

.telegram-notification {
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(41, 170, 225, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(41, 170, 225, 0.3);
    position: relative;
    z-index: 101;
}

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

.telegram-header h3 {
    color: #29aae1;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.telegram-header p {
    color: #aaa;
    font-size: 0.9rem;
}

.telegram-form {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.telegram-button-link {
    text-decoration: none;
    display: inline-block;
}

.telegram-button {
    padding: 15px 35px;
    background: linear-gradient(135deg, #0088cc, #29aae1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 102;
}

.telegram-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 170, 225, 0.4);
    background: linear-gradient(135deg, #29aae1, #0088cc);
}

.telegram-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-icon {
    font-size: 1.2rem;
}

.telegram-info {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .telegram-form {
        flex-direction: column;
    }
    
    .telegram-input {
        width: 100%;
    }
    
    .telegram-button {
        width: 100%;
        justify-content: center;
    }
    
    /* AI Recommendations - Mobile 1 column layout */
    .ai-recommendations {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile dropdown menu styles */
    .mobile-menu .dropdown .dropdown-menu {
        display: block !important;
        position: static;
        background: rgba(0, 0, 0, 0.5);
        margin-top: 10px;
        margin-left: 20px;
        border-radius: 8px;
        padding: 10px;
        box-shadow: none;
    }
    
    .mobile-menu .dropdown .dropdown-menu li {
        margin: 5px 0;
    }
    
    .mobile-menu .dropdown .dropdown-menu a {
        font-size: 14px;
        color: #888;
        padding: 8px 12px;
        display: block;
        border-radius: 4px;
        transition: all 0.3s;
    }
    
    .mobile-menu .dropdown .dropdown-menu a:hover,
    .mobile-menu .dropdown .dropdown-menu a.active {
        background: rgba(247, 147, 26, 0.2);
        color: #f7931a;
    }
}

/* ========================================
   11. FOOTER STYLES
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(247, 147, 26, 0.2);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #f7931a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3::before {
    content: '▸';
    color: #f7931a;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #f7931a;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    font-size: 0.8rem;
    transition: all 0.3s;
}

.footer-section ul li a:hover::before {
    color: #f7931a;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    font-size: 2rem;
    color: #f7931a;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(247, 147, 26, 0.1);
    border-color: #f7931a;
    color: #f7931a;
    transform: translateY(-2px);
}

.footer-contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.contact-item .icon {
    color: #f7931a;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 25px;
        margin-top: 30px;
        border-top: 2px solid rgba(247, 147, 26, 0.2);
    }
    
    .footer-bottom-content {
        margin-bottom: 20px;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
        color: #aaa;
        padding: 10px 0;
    }
    
    .footer-disclaimer {
        background: rgba(239, 68, 68, 0.05);
        border: 1px solid rgba(239, 68, 68, 0.2);
        border-radius: 8px;
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .footer-disclaimer h4 {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #ef4444;
    }
    
    .footer-disclaimer p {
        font-size: 0.85rem;
        line-height: 1.7;
        color: #ccc;
    }
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #f7931a;
}

.footer-disclaimer {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 59, 59, 0.05);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 8px;
    text-align: left;
}

.footer-disclaimer h4 {
    color: #ff6b6b;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-disclaimer p {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer-container {
        padding: 30px 10px 20px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        text-align: center;
    }
    
    /* 브랜드 섹션은 전체 너비로 */
    .footer-section:first-child {
        grid-column: 1 / -1;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(247, 147, 26, 0.2);
    }
    
    .footer-section {
        text-align: center;
        padding: 0 5px;
    }
    
    .footer-section h3 {
        justify-content: center;
        font-size: 0.9rem;
        margin-bottom: 10px;
        color: #f7931a;
        font-weight: 600;
    }
    
    .footer-section h3::before {
        display: none;
    }
    
    .footer-section ul {
        margin-top: 8px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        justify-content: center;
        font-size: 0.75rem;
        padding: 3px 0;
        color: #aaa;
    }
    
    .footer-section ul li a::before {
        display: none;
    }
    
    .footer-section ul li a:hover {
        transform: none;
        color: #f7931a;
    }
    
    /* 브랜드 섹션 스타일 */
    .footer-brand {
        text-align: center;
        margin-bottom: 0;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }
    
    .footer-description {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px;
        font-size: 0.85rem;
        line-height: 1.5;
        display: none; /* 모바일에서는 설명 숨김 */
    }
    
    .footer-contact-info {
        justify-content: center;
        margin-top: 10px;
        flex-direction: row;
        gap: 10px;
        font-size: 0.75rem;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    .contact-item .icon {
        margin-right: 3px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .navbar-container {
        padding: 10px 15px;
    }
    
    /* Main Content */
    .container {
        padding: 5px;
    }
    
    /* Chart Section */
    .chart-title {
        font-size: 1.1rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    /* Indicators */
    .indicators-section {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .indicator-card {
        padding: 10px;
    }
    
    /* News */
    .news-container {
        padding: 10px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-card {
        padding: 12px;
    }
    
    .news-headline {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .news-snippet {
        font-size: 0.85rem;
    }
    
    /* Lotto */
    .lotto-container {
        padding: 10px;
    }
    
    .lotto-title {
        font-size: 1.3rem;
    }
    
    .ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .draw-numbers {
        gap: 5px;
    }
    
    .plus-sign {
        margin: 0 5px;
        font-size: 1rem;
    }
    
    .rec-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .menu-card {
        padding: 15px;
    }
    
    .menu-icon {
        font-size: 1.8rem;
    }
    
    .menu-title {
        font-size: 1rem;
    }
    
    .menu-description {
        font-size: 0.85rem;
    }
    
    /* Summary Cards */
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stats-container {
        padding: 10px;
    }
    
    .stats-header {
        margin: 20px 0;
    }
    
    .stats-title {
        font-size: 1.3rem;
    }
    
    .stats-list .stat-item {
        grid-template-columns: 40px 1fr 50px !important;
        gap: 8px !important;
        padding: 8px !important;
    }
    
    .ball-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .stat-count {
        font-size: 0.9rem;
    }
    
    .bar-container {
        height: 20px;
    }
    
    /* Table */
    .section-header {
        font-size: 0.9rem;
    }
    
    /* Coin Table */
    .price-section-title {
        font-size: 1.1rem;
    }
    
    .coin-table table {
        font-size: 0.85rem;
    }
    
    .coin-icon {
        width: 24px;
        height: 24px;
    }
    
    /* AI Recommendation */
    .ai-recommendation-section {
        padding: 15px;
    }
    
    .ai-title {
        font-size: 1.1rem;
    }
    
    .ai-subtitle {
        font-size: 0.85rem;
    }
    
    .ai-rec-item {
        padding: 10px;
    }
    
    .ball-small {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    /* AI Rec Table Mobile */
    .ai-rec-table {
        font-size: 0.85rem;
    }
    
    .ai-rec-table th {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .ai-rec-table th:nth-child(3) {
        min-width: 120px;
    }
    
    .ai-rec-table td {
        padding: 8px 5px;
    }
    
    .ai-rec-table .ai-rec-index {
        font-size: 0.95rem;
    }
    
    .ai-rec-table .ai-rec-reason {
        font-size: 0.8rem;
        padding-left: 5px;
    }
    
    /* Telegram Section */
    .telegram-notification-section {
        padding: 10px;
    }
    
    .telegram-notification {
        padding: 15px;
    }
    
    .telegram-header h3 {
        font-size: 1.1rem;
    }
    
    .telegram-header p {
        font-size: 0.85rem;
    }
    
    .telegram-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-container {
        padding: 30px 10px 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    /* 모바일에서 푸터 3열 레이아웃 */
    .footer-content {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    
    /* 첫 번째 섹션(브랜드)은 전체 너비 */
    .footer-section:first-child {
        grid-column: 1 / -1 !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Investment Warning */
    .investment-warning {
        padding: 15px;
        margin: 15px 0;
    }
    
    .investment-warning h4 {
        font-size: 1rem;
    }
    
    .investment-warning p {
        font-size: 0.85rem;
    }
}

/* Cache bust: 1755503123 */

/* BGM 컨트롤 스타일 */
.bgm-control {
    position: relative;
    margin-right: 20px;
}

.bgm-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    color: white;
}

.bgm-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.bgm-toggle.off {
    opacity: 0.5;
}

.bgm-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 250px;
    z-index: 1000;
    margin-top: 10px;
}

.bgm-status {
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    color: white;
}

.bgm-status .profit {
    color: #4caf50;
}

.bgm-status .loss {
    color: #f44336;
}

.bgm-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: white;
}

.bgm-volume input {
    flex: 1;
}

.bgm-info {
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* ========================================
   12. SUPPORT, FAQ, GUIDE, TERMS, PRIVACY PAGES
   ======================================== */

/* Common Styles for Legal/Support Pages */
.support-container,
.faq-container,
.guide-container,
.terms-container,
.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    min-height: calc(100vh - 200px);
}

.trading-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.support-header,
.faq-header,
.guide-header {
    text-align: center;
    margin-bottom: 60px;
}

.terms-header,
.privacy-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(247, 147, 26, 0.3);
}

.support-title,
.faq-page-title,
.guide-title,
.terms-title,
.privacy-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.terms-title,
.privacy-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.support-subtitle,
.faq-subtitle,
.guide-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

.terms-date,
.privacy-date {
    color: #888;
    font-size: 1rem;
}

/* Support Page Specific */
.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247, 147, 26, 0.3);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.contact-description {
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info {
    font-size: 1.1rem;
    color: #f7931a;
    font-weight: 600;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(247, 147, 26, 0.4);
}

.hours-section {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(255, 179, 71, 0.1));
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.hours-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.hours-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hours-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #e5e7eb;
}

.hours-icon {
    font-size: 1.5rem;
}

/* FAQ Page Specific */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.category-btn.active {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #1a1a1a;
    border-color: transparent;
    font-weight: 600;
}

.category-btn:hover:not(.active) {
    background: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    border-color: rgba(247, 147, 26, 0.3);
}

.faq-section,
.faq-full-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.faq-section {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.1), transparent);
    transition: left 0.5s ease;
}

.faq-item:hover {
    background: rgba(247, 147, 26, 0.05);
    border-color: rgba(247, 147, 26, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.2);
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item-title {
    font-weight: 600;
    color: #f7931a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.faq-item-title span:first-child {
    font-size: 1.5rem;
}

.faq-item-description {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #f7931a;
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
}

/* Guide Page Specific */
.service-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background: rgba(247, 147, 26, 0.05);
    border-color: #f7931a;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f7931a;
    margin-bottom: 10px;
}

.service-desc {
    color: #888;
    font-size: 0.95rem;
}

.guide-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: #f7931a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(247, 147, 26, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.step-guide {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s;
}

.step-guide:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(247, 147, 26, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #1a1a1a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    margin-left: 40px;
}

.step-content {
    color: #e5e7eb;
    line-height: 1.8;
    margin-bottom: 15px;
}

.step-note {
    background: rgba(247, 147, 26, 0.1);
    border-left: 3px solid #f7931a;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #ffb347;
}

.step-note strong {
    color: #f7931a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.feature-box:hover {
    background: rgba(247, 147, 26, 0.05);
    transform: translateY(-3px);
}

.feature-title {
    color: #f7931a;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tip-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.tip-box-title {
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box-content {
    color: #e5e7eb;
    line-height: 1.8;
}

.warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.warning-box-title {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Terms & Privacy Page Specific */
.terms-container,
.privacy-container {
    max-width: 900px;
}

.terms-nav,
.privacy-nav {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.terms-nav-title,
.privacy-nav-title {
    color: #f7931a;
    font-weight: 600;
    margin-bottom: 15px;
}

.terms-nav-list,
.privacy-nav-list {
    list-style: none;
    padding: 0;
}

.terms-nav-list li,
.privacy-nav-list li {
    margin: 8px 0;
}

.terms-nav-list a,
.privacy-nav-list a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
}

.terms-nav-list a:hover,
.privacy-nav-list a:hover {
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
    transform: translateX(5px);
}

.terms-section,
.privacy-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.terms-section .section-title,
.privacy-section .section-title {
    font-size: 1.8rem;
    color: #f7931a;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(247, 147, 26, 0.2);
}

.subsection-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 25px 0 15px;
    font-weight: 600;
}

.terms-content,
.privacy-content {
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 1rem;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 15px;
}

.terms-content ul,
.terms-content ol,
.privacy-content ul,
.privacy-content ol {
    margin: 15px 0 15px 30px;
}

.terms-content li,
.privacy-content li {
    margin: 8px 0;
    color: #e5e7eb;
}

.highlight-box {
    background: rgba(247, 147, 26, 0.1);
    border-left: 4px solid #f7931a;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.highlight-box-title {
    color: #f7931a;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box-title {
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 10px;
}

.security-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.security-box-title {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 10px;
}

.warning-text {
    color: #ef4444;
    font-weight: 600;
}

.info-text {
    color: #22c55e;
    font-weight: 600;
}

.highlight-text {
    color: #f7931a;
    font-weight: 600;
}

.terms-table,
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.terms-table th,
.terms-table td,
.privacy-table th,
.privacy-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-table th,
.privacy-table th {
    background: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    font-weight: 600;
}

.terms-table td,
.privacy-table td {
    background: rgba(255, 255, 255, 0.02);
    color: #e5e7eb;
}

.contact-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.quick-links {
    background: rgba(247, 147, 26, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.quick-links h3 {
    color: #f7931a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.quick-links-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-link:hover {
    background: rgba(247, 147, 26, 0.2);
    transform: translateY(-2px);
}

/* Responsive Styles for Support/Legal Pages */
@media (max-width: 768px) {
    .support-title,
    .faq-page-title,
    .guide-title {
        font-size: 2rem;
    }
    
    .terms-title,
    .privacy-title {
        font-size: 2rem;
    }
    
    .faq-full-list {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .service-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .terms-nav,
    .privacy-nav {
        position: static;
        margin-bottom: 30px;
    }
    
    .terms-section .section-title,
    .privacy-section .section-title {
        font-size: 1.5rem;
    }
    
    .terms-table,
    .privacy-table {
        font-size: 0.9rem;
    }
}

