:root {
    /* Color Variables */
    --primary-gradient: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    --secondary-gradient: linear-gradient(135deg, #ff00a0 0%, #7000ff 100%);
    --warning-gradient: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    --wallet-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    
    /* Colors */
    --primary-color: #00ffd5;
    --secondary-color: #ff00a0;
    --background-dark: #080b14;
    --card-background: rgba(16, 20, 34, 0.7);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-bright: #7dd3fc;
    --text-hover: #38bdf8;
    --accent: #00ff88;
    --accent-dark: #00cc6a;
    --success-color: #4fd1c5;
    --error-color: #f87171;
    
    /* Backgrounds */
    --bg-hover: rgba(56, 189, 248, 0.05);
    --bg-hover-dark: rgba(56, 189, 248, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-overlay: rgba(0, 0, 0, 0.2);
    
    /* Effects */
    --glow-primary: 0 0 20px rgba(0, 255, 213, 0.2);
    --glow-wallet: 0 0 20px rgba(14, 165, 233, 0.3);
    --glow-accent: 0 0 20px rgba(0, 255, 136, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(56, 190, 180, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    
    /* Typography */
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --glass-background: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --primary-color: #00ffd5;
    --accent: #00ff88;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Noto Sans KR', sans-serif;
    -webkit-user-drag: none;
}

body {
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 100%),
        linear-gradient(rgba(10, 11, 13, 0.97), rgba(10, 11, 13, 0.97));
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 190, 180, 0.3) transparent;
    transition: scrollbar-color 0.3s ease;
}

/* 전역 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 190, 180, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 190, 180, 0.5);
}

/* 전역 드래그 선택 스타일 */
::selection {
    background: rgba(56, 190, 180, 0.2);
    color: var(--text-bright);
    text-shadow: 0 0 8px rgba(56, 190, 180, 0.3);
}

::-moz-selection {
    background: rgba(56, 190, 180, 0.2);
    color: var(--text-bright);
    text-shadow: 0 0 8px rgba(56, 190, 180, 0.3);
}

/* 드래그 가능한 텍스트 영역 스타일 */
p, h1, h2, h3, h4, h5, h6, span, a, li {
    user-select: text;
    cursor: default;
}

/* 클릭 가능한 요소 스타일 */
a, button, .clickable {
    user-select: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 네비게이션 메뉴 항목들에 명시적으로 커서 스타일 적용 */
.nav-item,
.nav-group-header,
.sub-item,
.social-item,
.logo,
.menu-toggle,
.connect-wallet,
.lang-btn {
    cursor: pointer !important;
}

/* 메뉴 항목 내부의 모든 요소들에도 커서 스타일 적용 */
.nav-item *,
.nav-group-header *,
.sub-item *,
.social-item *,
.logo *,
.menu-toggle *,
.connect-wallet *,
.lang-btn * {
    cursor: pointer !important;
}

a:active, button:active, .clickable:active {
    transform: scale(0.98);
}

/* 드래그 중일 때의 스타일 */
.dragging {
    cursor: grabbing !important;
}

/* 스크롤 중일 때 효과 */
body:active::-webkit-scrollbar-thumb {
    background: rgba(56, 190, 180, 0.5);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    a:active, button:active, .clickable:active {
        transform: scale(0.99);
    }
}

/* Utility Classes */
.flex { display: flex; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 30px;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }

.glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.hover-transform { transition: transform var(--transition-normal); }
.hover-transform:hover { transform: translateY(-2px); }
.hover-glow:hover { box-shadow: var(--glow-primary); }
.hover-bright:hover { filter: brightness(1.1); }

/* Grid System */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Button Styles */
.btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-wallet {
    background: var(--wallet-gradient);
    color: white;
    box-shadow: var(--glow-wallet);
}

/* Navigation Styles */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0 var(--space-2);
}

.nav-group {
    margin-bottom: 1rem;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-left: var(--space-1);
    margin-right: var(--space-1);
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    border: none;
}

.nav-group-header i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-group-header span {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-group-header .submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-group-header:hover {
    color: var(--text-hover);
    background: var(--bg-hover);
}

.nav-group-header:hover i {
    color: var(--text-hover);
    background: var(--bg-hover-dark);
}

.nav-group-header.active {
    color: var(--text-hover);
    background: var(--bg-hover);
}

.nav-group-header.active i {
    color: var(--text-hover);
    background: var(--bg-hover-dark);
}

.nav-group-header.active .submenu-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: var(--text-bright);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    color: var(--text-bright);
}

.nav-item:hover {
    color: var(--text-hover);
    background: var(--bg-hover);
}

.nav-item:hover i {
    color: var(--text-hover);
    transform: scale(1.1);
}

.nav-item.active {
    color: var(--text-hover);
    background: var(--bg-hover-dark);
    font-weight: 500;
}

.nav-item.active i {
    color: var(--text-hover);
    background: var(--bg-hover-dark);
}

.sub-item {
    padding-left: 3rem;
    font-size: 0.85rem;
    position: relative;
    color: var(--text-bright);
    cursor: pointer;
}

.sub-item::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-bright);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.sub-item:hover {
    color: var(--text-hover);
}

.sub-item:hover::before {
    background: var(--text-hover);
    box-shadow: 0 0 8px var(--text-hover);
}

.sub-item.active {
    color: var(--text-hover);
}

.sub-item.active::before {
    background: var(--text-hover);
    box-shadow: 0 0 8px var(--text-hover);
}

.nav-divider {
    height: 1px;
    background: linear-gradient(to right,
        rgba(56, 190, 180, 0.05),
        rgba(56, 190, 180, 0.2),
        rgba(56, 190, 180, 0.05)
    );
    margin: 2px 0;
    border: none;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--card-background);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

@keyframes wave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        45deg,
        rgba(56, 190, 180, 0.1),
        rgba(56, 190, 180, 0.2),
        rgba(56, 190, 180, 0.1)
    );
    background-size: 200% 200%;
    animation: wave 3s ease infinite;
    border: 1px solid rgba(56, 190, 180, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.logo:hover {
    background: linear-gradient(
        45deg,
        rgba(56, 190, 180, 0.15),
        rgba(56, 190, 180, 0.25),
        rgba(56, 190, 180, 0.15)
    );
    background-size: 200% 200%;
    border-color: rgba(56, 190, 180, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.logo-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(56, 190, 180, 0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.logo-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Main Content Layout */
.main-content {
    margin-left: 280px;
    padding: var(--space-4);
    padding-top: 138px !important;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

/* Top Bar Layout */
.top-bar {
    position: fixed;
    top: 9px;
    left: 292px;
    height: auto !important;
    min-height: unset !important;
    padding: 0 2px !important;
    z-index: 900;
    transition: left var(--transition-normal);
    margin: 3px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

/* PC 버전에서 mobile-row-2는 일반적인 flex 아이템으로 동작 */
.mobile-row-2 {
    display: contents;
}

.epoch-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.epoch-container.epoch-grid {
    display: grid;
    grid-template-areas: 'progress stats price empty';
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto;
    gap: 0.5rem;
    width: 100%;
    min-height: unset;
}
.epoch-progress {
    flex: 1;
    padding: 0.25rem !important;
    background: rgba(16, 20, 34, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 190, 180, 0.2);
    margin-right: 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    min-width: 252px;
    min-height: 115px;
    line-height: 1.2;
    font-size: 0.95em;
}
.epoch-stats { grid-area: stats; }
.price-info { grid-area: price; }
.epoch-empty { grid-area: empty; display: block; }

.epoch-progress .epoch-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0px;
    text-align: left;
}

.epoch-progress .progress-bar {
    margin: 0;
}

.epoch-progress .finish-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    text-align: right;
}

.epoch-progress-bar {
    height: 16px;
    margin: 1px 0;
}

.epoch-progress-bar .progress-text {
    font-size: 0.65rem;
}

.stat-group {
    display: grid;
    grid-template-columns: 100px auto;
    gap: 10px 2px;
    align-items: center;
    font-size: 0.85rem;
}

.stat-labels,
.stat-values,
.stat-value-row {
    font-size: inherit !important;
}

.stat-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 75px;
    min-width: 70px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.stat-values {
    /* 불필요한 래퍼, 스타일 제거 */
}

.stat-values .positive {
    color: #4fd1c5;
}

.stat-values .negative {
    color: #f87171;
}

.epoch-title {
    color: #00ffd5;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0px;
}

.epoch-progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 4px 0;
}

.epoch-progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    position: relative;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8px;
}

.epoch-progress-bar .progress-text {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 0.9rem;
}

.epoch-progress-bar .progress-text .slot {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.epoch-progress-bar .progress-text .percentage {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.95);
}

.epoch-next {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: right;
    line-height: 1;
    margin-top: 2px;
}

.connect-wallet {
    background: var(--wallet-gradient);
    margin-right: 8px;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: var(--glow-wallet),
               inset 0 1px rgba(255, 255, 255, 0.2);
    min-width: 111px;
}

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

.connect-wallet:hover::before {
    left: 100%;
}

.connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
}

.connect-wallet i {
    margin-right: 8px;
    font-size: 1.1em;
}

.lang-btn {
    background: rgba(15, 40, 50, 0.4);
    color: var(--text-primary);
    border: 1px solid rgba(56, 190, 180, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    min-width: 111px;
}

.lang-btn:hover {
    background: rgba(15, 40, 50, 0.6);
    border-color: rgba(56, 190, 180, 0.3);
}

.social-links {
    margin-top: 1rem;
    background: rgba(15, 40, 50, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(56, 190, 180, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.social-item {
    aspect-ratio: 1;
    background: rgba(20, 50, 60, 0.4);
    border: 1px solid rgba(56, 190, 180, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.8rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(56, 190, 180, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-item:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 190, 180, 0.4);
    box-shadow: 0 4px 12px rgba(56, 190, 180, 0.15),
                inset 0 1px rgba(255, 255, 255, 0.1);
}

.social-item:hover::before {
    opacity: 1;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: brightness(0.9);
    position: relative;
    z-index: 1;
}

.social-item:hover .social-icon {
    filter: brightness(1.1);
    transform: scale(1.1);
}

.coin-price {
    min-width: 180px;
    display: flex;
    align-items: center;
    /* gap: 2px; */
    font-size: 1.1rem;
    /* padding: 1px 1px; */
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(15, 40, 50, 0.4);
    width: 100%;
}

.coin-name {
    min-width: 60px;
    max-width: 100px;
    font-weight: 700;
    color: #4fd1c5;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(79, 209, 197, 0.3);
    flex-shrink: 0;
}

.price-usd {
    min-width: 80px;
    max-width: 120px;
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: -0.2px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.price-krw {
    min-width: 80px;
    max-width: 120px;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.change-rate {
    min-width: 60px;
    max-width: 100px;
    font-weight: 600;
    text-align: right;
    /* padding: 2px 2px; */
    border-radius: 3px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.change-rate.positive {
    color: #4fd1c5;
    background: rgba(79, 209, 197, 0.1);
}

.change-rate.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.second-banner {
    position: fixed;
    top: 90px;
    right: 8px;
    width: calc(100% - 280px - 16px);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    margin: 0;
    background: var(--topbar-bg) !important;
    border-radius: 8px;
    border: 1px solid rgba(56, 190, 180, 0.2);
    box-shadow: 0 4px 12px rgba(56, 190, 180, 0.1),
                inset 0 1px rgba(255, 255, 255, 0.05);
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
}

.second-banner-left,
.second-banner-right {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(15, 40, 50, 0.4);
    border: 1px solid rgba(56, 190, 180, 0.2);
    transition: all 0.3s ease;
}

.second-banner-left:hover,
.second-banner-right:hover {
    background: rgba(15, 40, 50, 0.6);
    border-color: rgba(56, 190, 180, 0.3);
    transform: translateY(-2px);
}

.second-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (max-width: 1400px) {
    .second-banner {
        width: calc(100% - 280px);
        margin-left: 280px;
    }
}

@media (max-width: 1200px) {
    .price-info {
        min-width: 230px;
    }
    
    .coin-name {
        min-width: 35px;
        font-size: 1rem;
    }
    
    .price-usd {
        min-width: 80px;
        font-size: 0.95rem;
    }
    
    .price-krw {
        min-width: 90px;
        font-size: 0.9rem;
    }
    
    .change-rate {
        min-width: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
        position: fixed;
        height: 100vh;
        overflow-y: auto;
        transition: transform var(--transition-normal);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: var(--space-4);
        padding-top: 0 !important; /* 모바일에서는 상단 메뉴 바로 아래에 배너가 와야 함 */
    }

    .top-bar,
    .top-bar-styled {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        min-height: auto;
    }

    .top-bar > * {
        width: 100%;
        min-width: unset;
    }

    /* 모바일에서 top-bar 내부 요소들을 세로 배치 */
    .top-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* 1행: 에포크 진행률 */
    .epoch-progress-section {
        order: 1;
        width: 100%;
        min-width: unset;
        min-height: 80px;
        padding: 8px;
        font-size: 0.85rem;
    }

    /* 2행: 에포크 통계와 발행량 정보 (좌우 배치) */
    .mobile-row-2 {
        order: 2;
        width: 100%;
        display: flex;
        gap: 4%;
        justify-content: space-between;
    }

    .epoch-stats-section {
        width: 44%;
        min-width: 0;
        padding: 0 1px;
        box-sizing: border-box;
    }

    .epoch-empty-section {
        width: 56%;
        min-width: 0;
        padding: 0 1px;
        box-sizing: border-box;
    }

    .stats-columns-container {
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .stats-labels-column,
    .stats-values-column,
    .stats-rates-column {
        min-width: 0 !important;
        padding: 0 1px !important;
        margin: 0 !important;
        box-sizing: border-box;
        flex: 1 1 0;
    }

    .stats-column > div {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3행: 가격 정보 */
    .price-info-section {
        order: 3;
        width: 100%;
        min-width: unset;
        min-height: 60px;
        padding: 8px;
        font-size: 0.85rem;
    }

    .top-bar > * {
        font-size: inherit;
        line-height: 1.3;
    }

    .epoch-progress {
        order: 1;
        min-height: 80px;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .epoch-progress .epoch-status {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .epoch-progress .progress-bar {
        margin: 4px 0;
    }

    .epoch-progress .finish-time {
        font-size: 0.7rem;
        margin-top: 4px;
    }

    .epoch-progress-bar {
        height: 20px;
        margin: 4px 0;
    }

    .epoch-progress-bar .progress-text {
        font-size: 0.75rem;
    }

    .connect-wallet {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .coin-name {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .price-usd {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .price-krw {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .change-rate {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .second-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        margin: 8px 0;
    }

    .second-banner-left,
    .second-banner-right {
        width: 100%;
        text-align: center;
    }

    .second-banner img {
        max-width: 100%;
        height: auto;
    }

    .epoch-info {
        flex-direction: column;
        gap: 8px;
    }

    .stats-columns-container,
    .empty-columns-container {
        display: flex;
        flex-direction: row; /* 모바일에서도 가로 배치 유지 */
        gap: 4px;
        font-size: 0.8rem;
    }
}

@keyframes price-flash {
    0% {
        background-color: rgba(0, 255, 213, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

.price-flash {
    animation: price-flash 1s ease-out;
}

.price-flash-red {
    animation: price-flash-red 1s ease-out;
}

@keyframes price-flash-red {
    0% {
        background-color: rgba(248, 113, 113, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* 유머 게시판 스타일 */
.board-container {
    padding: 1rem;
    margin: 1rem;
    border-radius: 1.5rem;
    background: rgba(16, 20, 34, 0.4);
    border: 1px solid rgba(56, 190, 180, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.board-header {
    margin-bottom: 10px;
    position: relative;
}

.board-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 213, 0.3);
    letter-spacing: 1px;
}

.board-list {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    background: rgba(16, 20, 34, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 190, 180, 0.1);
    position: relative;
    overflow: hidden;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00ffd5, #00b4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item:hover {
    background: rgba(56, 190, 180, 0.1);
    transform: translateX(5px);
    border-color: rgba(56, 190, 180, 0.2);
}

.post-item:hover::before {
    opacity: 1;
}

.post-number {
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    background: rgba(56, 190, 180, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.post-title {
    flex: 1;
    gap: 1rem;
    align-items: center;
    margin-right: 1rem;
}

.post-title a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-title a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(56, 190, 180, 0.3);
}

.comment-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(56, 190, 180, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
}

.post-author {
    min-width: 120px;
    text-align: center;
    color: var(--text-bright);
    font-weight: 500;
    background: rgba(56, 190, 180, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.post-date {
    min-width: 100px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(16, 20, 34, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.post-views {
    min-width: 80px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(16, 20, 34, 0.4);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.new-badge, .hot-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.new-badge {
    background: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.3);
}

.hot-badge {
    background: linear-gradient(135deg, #ff00a0 0%, #7000ff 100%);
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 160, 0.3);
}

.board-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding: 1rem;
}

.page-button {
    width: 45px;
    height: 45px;
    border-radius: 0.8rem;
    background: rgba(16, 20, 34, 0.4);
    border: 1px solid rgba(56, 190, 180, 0.2);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-button:hover {
    background: rgba(56, 190, 180, 0.1);
    border-color: rgba(56, 190, 180, 0.3);
    transform: translateY(-2px);
}

.page-button.active {
    background: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.3);
}

@media (max-width: 768px) {
    .board-container {
        margin: 1rem;
        padding: 1rem;
    }

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

    .post-item {
        flex-wrap: wrap;
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .post-number {
        min-width: 35px;
        font-size: 1rem;
        padding: 0.3rem;
    }

    .post-title {
        width: 100%;
        order: -1;
        margin-right: 0;
    }

    .post-date {
        min-width: 90px;
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .post-views {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .page-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.grid-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.25rem !important;
    min-height: unset !important;
    max-height: unset !important;
}

.section-title {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    margin-left: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(56, 190, 180, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: rgba(56, 190, 180, 0.9);
    font-size: 1.3rem;
}

.bonus-table {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.token-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.02rem;
}

.token-table th {
    background: #f7e600 !important;
    color: #222 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-bottom: 2px solid #ffe066 !important;
    text-align: center !important;
    padding: 0.4rem;
}

.token-table tr {
    background: rgba(16, 20, 34, 0.3);
    transition: all 0.3s ease;
}

.token-table tr:hover {
    background: rgba(56, 190, 180, 0.1);
    transform: translateX(5px);
}

.token-table td {
    padding: 0.05rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.token-table td:first-child {
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
}

.token-table td:nth-child(2) {
    text-align: center;
}

.token-table td:nth-child(3),
.token-table td:nth-child(4) {
    text-align: right;
}

.token-table td:last-child {
    border-radius: 0 8px 8px 0;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .token-table {
        font-size: 0.9rem;
    }

    .token-icon {
        width: 20px;
        height: 20px;
    }

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

.event-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.4rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(16, 20, 34, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 190, 180, 0.1);
}

.event-item:hover {
    background: rgba(56, 190, 180, 0.1);
    transform: translateX(5px);
    border-color: rgba(56, 190, 180, 0.2);
}

.event-date {
    min-width: 50px;
    text-align: center;
    padding: 0.3rem;
    background: rgba(56, 190, 180, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-bright);
    font-weight: 500;
}

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.event-status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 55px;
    text-align: center;
}

.status-upcoming {
    background: rgba(79, 209, 197, 0.1);
    color: #4fd1c5;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.status-live {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

@media (max-width: 768px) {
    .event-item {
        padding: 0.4rem;
        gap: 0.6rem;
    }
    
    .event-date {
        min-width: 45px;
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .event-title {
        font-size: 0.85rem;
    }
    
    .event-description {
        font-size: 0.75rem;
    }
    
    .event-status {
        font-size: 0.7rem;
        min-width: 50px;
        padding: 0.15rem 0.4rem;
    }
}

.latest-posts {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.4rem;
}

.latest-posts::-webkit-scrollbar {
    width: 4px;
}

.latest-posts::-webkit-scrollbar-track {
    background: transparent;
}

.latest-posts::-webkit-scrollbar-thumb {
    background: rgba(56, 190, 180, 0.2);
    border-radius: 2px;
}

.latest-posts::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 190, 180, 0.3);
}

/* 다른 스크롤이 필요한 컨테이너들에도 동일한 스타일 적용 */
.event-list, .bonus-table {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.event-list::-webkit-scrollbar,
.bonus-table::-webkit-scrollbar {
    width: 4px;
}

.event-list::-webkit-scrollbar-track,
.bonus-table::-webkit-scrollbar-track {
    background: transparent;
}

.event-list::-webkit-scrollbar-thumb,
.bonus-table::-webkit-scrollbar-thumb {
    background: rgba(56, 190, 180, 0.2);
    border-radius: 2px;
}

.event-list::-webkit-scrollbar-thumb:hover,
.bonus-table::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 190, 180, 0.3);
}

@media (max-width: 1200px) {
    .grid-section {
        min-height: 280px;
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .grid-section {
        min-height: 240px;
        max-height: 240px;
    }
}

.epoch-status {
    display: flex;
    align-items: center;
/*    justify-content: center; */
    height: calc(100% - 3rem); /* 섹션 타이틀 높이 제외 */
    padding: 0.1rem;
}

.epoch-info-card {
    background: rgba(16, 20, 34, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(45, 212, 255, 0.2);
}

.epoch-number {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.epoch-number .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.epoch-number .value {
    color: var(--text-bright);
    font-size: 1.2rem;
    font-weight: 600;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: auto;
    background: rgba(45, 212, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    margin: 0;
    width: 100%;
}

.progress-bar .progress {
    height: 100%;
    min-height: 20px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    position: relative;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px 8px;
}

.progress-bar .progress-text {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1;
}

.progress-bar .time-remaining {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 0.9rem;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.progress-bar .epoch-text {
    font-weight: 500;
    color: var(--text-bright);
    margin-right: 8px;
}

.progress-bar .percentage {
    font-weight: 600;
    color: var(--text-bright);
}

.time-remaining {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-size: 0.9rem;
    margin-left: 8px;
    line-height: 1;
}

.epoch-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.8rem;
    width: 100%;
    height: 100%;
}

.stat-card {
    background: rgba(16, 20, 34, 0.4);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    border: 1px solid rgba(45, 212, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    background: rgba(16, 20, 34, 0.6);
    border-color: rgba(45, 212, 255, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.stat-value-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value-row .value {
    color: var(--text-bright);
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-value-row .change {
    font-size: 0.9rem;
    font-weight: 500;
}

.change.positive {
    color: #4fd1c5;
}

.change.negative {
    color: #f87171;
}

.change.neutral {
    color: var(--text-secondary);
}

.top-controls {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 40, 50, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(56, 190, 180, 0.2);
}

/* 거버넌스 제안서 스타일 */
.status-badge {
    padding: 0.3rem 0.3rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.3);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    text-align: center;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge.active {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    width: 100px;
    height: 40px;
}

.status-badge.expired {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

/* 거버넌스 제안서 테이블 스타일 */
.board-content {
    position: relative;
    max-height: calc(100vh - 300px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(16, 20, 34, 0.4);
    border: 1px solid rgba(56, 190, 180, 0.2);
    width: 100%;
}

.news-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
}

.news-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 20, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: table;
    width: 100%;
    table-layout: fixed;
}

.news-table thead th {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(56, 190, 180, 0.2);
    position: relative;
}

.news-table thead th.num {
    width: 80px;
}

.news-table thead th.title {
    width: 300px;
}

.news-table thead th.source,
.news-table thead th.status {
    width: 120px;
}

.news-table thead th.date {
    width: 120px;
}

.news-table tbody {
    display: block;
    overflow-y: auto;
    max-height: calc(100vh - 380px);
    width: 100%;
}

.news-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    background: rgba(16, 20, 34, 0.3);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(56, 190, 180, 0.1);
}

.news-table tbody tr:hover {
    background: rgba(56, 190, 180, 0.1);
    transform: translateX(5px);
}

.news-table td {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.news-table td.num {
    width: 80px;
    font-weight: 600;
    color: var(--text-bright);
    background: rgba(56, 190, 180, 0.1);
}

.news-table td.title {
    width: 300px;
    text-align: left;
}

.news-table td.title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-table td.title a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 10px rgba(56, 190, 180, 0.3);
}

.news-table td.source,
.news-table td.status {
    width: 120px;
}

.news-table td.date {
    width: 120px;
    color: var(--text-secondary);
}

/* 스크롤바 스타일링 */
.news-table tbody::-webkit-scrollbar {
    width: 6px;
}

.news-table tbody::-webkit-scrollbar-track {
    background: transparent;
}

.news-table tbody::-webkit-scrollbar-thumb {
    background: rgba(56, 190, 180, 0.2);
    border-radius: 3px;
}

.news-table tbody::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 190, 180, 0.3);
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .board-content {
        max-height: calc(100vh - 250px);
    }

    .news-table tbody {
        max-height: calc(100vh - 330px);
    }

    .news-table thead th,
    .news-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .news-table thead th.num,
    .news-table td.num {
        width: 60px;
    }

    .news-table thead th.source,
    .news-table thead th.status,
    .news-table td.source,
    .news-table td.status {
        width: 100px;
    }

    .news-table thead th.date,
    .news-table td.date {
        width: 120px;
    }
}

/* 모바일 메뉴 토글 버튼 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background: var(--wallet-gradient);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: var(--glow-wallet);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: var(--card-background);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }

    .top-bar {
        margin-left: 0;
        width: 100%;
        left: 0;
    }
}

.price-group {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0.2rem;
    width: 100%;
}
.price-group span {
    text-align: center;
    width: 100%;
    display: block;
}

.price-info .coin-name,
.price-info .price-usd,
.price-info .price-krw,
.price-info .change-rate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 40px;
}

/* Base.html 인라인 스타일 분리 */
.top-bar-styled {
    align-items: center;
    padding: 0.5rem 1rem;
}

.epoch-progress-section {
    grid-area: progress;
    min-width: 235px;
    padding: 10px;
}

.progress-initial {
    width: 0%;
}

.epoch-stats-section {
    grid-area: stats;
    min-width: 230px;
    width: 100%;
}

.stat-group-main {
    min-width: 220px;
}

.stat-labels-main {
    justify-content: space-between;
    width: 100%;
}

.stat-values-main {
    /* 불필요한 래퍼, 스타일 제거 */
}

.stat-values-main-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.stat-value-column, .stat-rate-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-value-column {
    min-width: 70px;
    align-items: flex-end;
}

.stat-rate-column {
    min-width: 50px;
    align-items: flex-end;
}

.price-info-section {
    grid-area: price;
    min-width: 260px;
    width: 100%;
    padding: 10px;
}

.epoch-empty-section {
    grid-area: empty;
    min-width: 220px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
}

.stat-group-secondary {
    min-width: 180px;
    display: flex;
    width: 100%;
}

.stats-columns-container {
    display: flex;
    width: 100%;
    gap: 4px;
    max-width: calc(100% - 30px);
    font-size: 0.8rem;
    font-weight: 500;
    justify-content: space-between;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stats-labels-column {
    min-width: 73px;
    color: var(--text-secondary);
}

.stats-values-column {
    min-width: 55px;
    align-items: flex-end;
    color: var(--text-bright);
}

.stats-rates-column {
    min-width: 53px;
    align-items: flex-end;
}

.empty-columns-container {
    display: flex;
    width: 100%;
    gap: 4px;
    margin-left: 10px;
    max-width: calc(100% - 30px);
    font-size: 0.8rem;
    font-weight: 500;
    justify-content: space-between;
}

.empty-column {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.empty-labels-column {
    min-width: 45px;
    color: var(--text-secondary);
}

.empty-values-column {
    min-width: 55px;
    align-items: flex-end;
    color: var(--text-bright);
}

.empty-rates-column {
    min-width: 56px;
    align-items: flex-end;
}

.stats-rates-column .positive,
.empty-rates-column .positive {
    color: var(--success-color);
}

.stats-rates-column .negative,
.empty-rates-column .negative {
    color: var(--error-color);
}

/* Drep Status 인라인 스타일 분리 */
.project-progress-bar {
    width: 0%; /* 기본값, JavaScript로 동적 설정 */
}

.price-columns-container {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    max-width: 100%;
    overflow: hidden;
}

.price-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.price-names-column {
    min-width: 40px;
}

.price-usd-column {
    min-width: 60px;
}

.price-krw-column {
    min-width: 50px;
}

.price-rates-column {
    min-width: 50px;
}

.price-column .change-rate {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.price-column .change-rate.positive {
    color: var(--success-color);
    background: rgba(79, 209, 197, 0.1);
}

.price-column .change-rate.negative {
    color: var(--error-color);
    background: rgba(248, 113, 113, 0.1);
}

.price-column .coin-name {
    font-weight: 500;
    color: var(--text-bright);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-column .price-usd {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-column .price-krw {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-label {
    min-width: 70px;
    color: var(--text-secondary);
    text-align: left;
}

.stat-value {
    min-width: 70px;
    color: var(--text-bright);
    text-align: right;
}

.stat-rate {
    min-width: 50px;
    text-align: right;
}

#ktop-pool-rewards {
    min-width: 370px;
}

/* 토큰 테이블 행과 셀 크기 조정을 위한 공통 클래스 */
.token-row {
    /* 행의 높이를 한 번에 조정 */
    height: 38px;
}

.token-row .token-cell {
    /* 셀의 크기를 한 번에 조정 */
    height: 38px;
    min-width: 70px;
    padding: 4px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.90rem;
}

/* 풀위임자 추가보상 테이블의 3열(현재 에포크)만 오른쪽 정렬 */
#ktop-pool-rewards .token-row .token-cell:nth-child(3) {
    text-align: right;
}

/* 토큰 아이콘 크기 조정 */
.token-row .token-cell .token-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* 모바일에서의 크기 조정 */
@media (max-width: 768px) {
    .token-row {
        height: 32px;
    }
    
    .token-row .token-cell {
        height: 32px;
        min-width: 60px;
        padding: 2px 4px;
        font-size: 0.7rem;
    }
    
    /* 모바일에서도 풀위임자 추가보상 테이블의 3열 오른쪽 정렬 */
    #ktop-pool-rewards .token-row .token-cell:nth-child(3) {
        text-align: right;
    }
    
    .token-row .token-cell .token-icon {
        width: 24px;
        height: 24px;
    }
}

/* ---- style.css에서 가져온 내용 시작 ---- */
.leaderboard-container {
    padding: 10px;
    margin-top: 10px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border: none;
    min-width: 80px; /* 기본 최소 너비 */
}

/* 테이블 컬럼별 최소 너비 설정 */
.table thead th:nth-child(1) { /* 순위 */
    min-width: 60px;
}
.table thead th:nth-child(2) { /* 아이디 */
    min-width: 120px;
}
.table thead th:nth-child(3) { /* 점수 */
    min-width: 80px;
}
.table thead th:nth-child(4) { /* 등급 */
    min-width: 100px;
}
.table thead th:nth-child(5) { /* 출석횟수 */
    min-width: 80px;
}
.table thead th:nth-child(6) { /* 마지막 출석일 */
    min-width: 120px;
}

.table tbody td {
    vertical-align: middle;
    text-align: center;
    padding: 5px;
}

.rank-1 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    font-weight: bold;
}

.rank-2 {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: white;
    font-weight: bold;
}

.rank-3 {
    background: linear-gradient(45deg, #CD7F32, #8B4513);
    color: white;
    font-weight: bold;
}

.grade-레전드 {
    color: #e600ff;
    font-weight: bold;
}

.grade-마스터 {
    color: #0070f3;
    font-weight: bold;
}

.grade-다이아 {
    color: #00cfff;
    font-weight: bold;
}

.grade-플래티넘 {
    color: #b0b0b0;
    font-weight: bold;
}

.grade-골드 {
    color: #ffd700;
    font-weight: bold;
}

.grade-실버 {
    color: #b87333;
    font-weight: bold;
}

.grade-bronze {
    color: #CD7F32;
    font-weight: bold;
}

.search-container {
    padding: 10px 10px 10px 10px;
    margin-bottom: 1px;
    border-radius: 16px;
    background: #2d2346;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.12);
    border: 1px solid #3d2e5a;
}

.search-container .input-group {
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.search-container .form-control {
    border: none;
    background: #f7f7fa;
    font-size: 0.9rem;
    padding: 10px 5px;
    color: #232946;
}

.search-container .form-control:focus {
    box-shadow: none;
    outline: 2px solid #a259e6;
    background: #f0eef6;
}

.search-container .btn-primary {
    background: #6c3cff;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.search-container .btn-primary:hover {
    background: #4b2bbd;
}

/* 등급별 tr 배경색 */
tr.grade-레전드 {
    background: linear-gradient(90deg, #f3e7fa 0%, #e1bee7 100%);
    color: #a259e6;
}
tr.grade-마스터 {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}
tr.grade-다이아 {
    background: linear-gradient(90deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00bcd4;
}
tr.grade-플래티넘 {
    background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #757575;
}
tr.grade-골드 {
    background: linear-gradient(90deg, #fffde7 0%, #ffe082 100%);
    color: #c9a13b;
}
tr.grade-실버 {
    background: linear-gradient(90deg, #f8f9fa 0%, #cfd8dc 100%);
    color: #8d8d8d;
}

.crown-gold {
    color: #FFD700;
}
.crown-silver {
    color: #C0C0C0;
}
.crown-bronze {
    color: #CD7F32;
}
.animated-crown {
    animation: spin-crown 1.5s linear infinite, sparkle-crown 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px #fff176);
}
@keyframes spin-crown {
    0% { transform: rotateY(0deg);}
    100% { transform: rotateY(360deg);}
}
@keyframes sparkle-crown {
    0%, 100% { filter: drop-shadow(0 0 6px #fff176) brightness(1.2);}
    50% { filter: drop-shadow(0 0 16px #fffde4) brightness(2);}
}

.leaderboard-header {
    margin-top: 5px;
    padding: 0.5rem;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.leaderboard-header h1 {
    font-size: 1.3rem;  /* 글씨 크기 조절 */
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.attendance-notice {
    text-align: left;
    margin-top: 1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
    border: 3px solid var(--primary);
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.attendance-notice::before {
    content: '💬';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.attendance-notice p {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0;
    margin-left: 3.5rem;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kakao-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.kakao-link:hover {
    transform: scale(1.1);
}

.kakao-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease;
}

.kakao-link:hover .kakao-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.news-board .board-header h2 {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.news-board .board-header .search-box {
    margin-bottom: 0 !important;
}

.news-board .search-box input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid #3d2e5a;
    border-radius: 8px;
    background: #f7f7fa;
    font-size: 1.1rem;
    color: #232946;
    transition: all 0.3s ease;
}

.news-board .search-box input[type="text"]:focus {
    outline: none;
    border-color: #a259e6;
    box-shadow: 0 0 0 3px rgba(162, 89, 230, 0.1);
    background: #f0eef6;
}

.news-board .search-box input[type="text"]::placeholder {
    color: #6c757d;
    font-style: italic;
}

.news-board .search-btn {
    padding: 12px 16px;
    background: #6c3cff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-board .search-btn:hover {
    background: #4b2bbd;
}

.news-board .search-btn i {
    font-size: 1.2rem;
}

.epoch-table-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-height: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
}
.epoch-table-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}
.epoch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(16, 20, 34, 0.3); /* glass 효과 */
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}
.epoch-table th {
    background: rgba(44, 62, 80, 0.85); /* 어두운 glass */
    color: var(--text-bright, #fff);
    font-weight: 600;
    font-size: 0.98rem;
    border-bottom: 2px solid rgba(56, 190, 180, 0.15);
    letter-spacing: 0.5px;
    padding: 0.4rem;
}
.epoch-table tr {
    background: rgba(16, 20, 34, 0.15);
    transition: background 0.2s;
}
.epoch-table tr:hover {
    background: rgba(56, 190, 180, 0.08);
}
.epoch-table th, .epoch-table td {
    padding: 0.6rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.epoch-table tr:last-child td {
    border-bottom: none;
}
.epoch-table .rate-high {
    color: #e53935 !important; /* 100 이상: 빨간색 */
    font-weight: bold;
}
.epoch-table .rate-low {
    color: #388e3c !important; /* 100 이하: 녹색 */
    font-weight: bold;
}
.epoch-table .rate-mid {
    color: #388e3c;
    font-weight: bold;
}
.epoch-table .row-progress {
    background: none;
    background-color: rgba(56, 190, 180, 0.18);
    font-weight: 700;
    animation: progress-blink 5.0s infinite;
}
.epoch-table .row-reward {
    background: rgba(255,255,255,0.06);
} 
/* ---- style.css에서 가져온 내용 끝 ---- */

.epoch-table tbody td {
    font-size: 0.9rem;
}

.token-table th:first-child {
    border-top-left-radius: 10px !important;
}
.token-table th:last-child {
    border-top-right-radius: 10px !important;
}

#epoch-status > table > thead > tr > th:nth-child(1) { min-width: 50px; }
#epoch-status > table > thead > tr > th:nth-child(2) { min-width: 60px; }
#epoch-status > table > thead > tr > th:nth-child(3) { min-width: 62px; }
#epoch-status > table > thead > tr > th:nth-child(4) { min-width: 68px; }
#epoch-status > table > thead > tr > th:nth-child(5) { min-width: 60px; }
#epoch-status > table > thead > tr > th:nth-child(6) { min-width: 63px; }

@keyframes progress-blink {
    0% { background-color: rgba(56, 190, 180, 0.18); }
    50% { background-color: rgba(56, 190, 180, 0.32); }
    100% { background-color: rgba(56, 190, 180, 0.18); }
}

/* main.html 전용 스타일 (2025-07-01 이전 base.html에서 분리) */
.main-top-banner-section {
    width: 100%;
    max-width: none;
    margin: 0.6rem 0 0.25rem;
    padding: 0;
    aspect-ratio: 1080 / 300;
    overflow: hidden;
    border-radius: 12px;
}
.main-top-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: 930px;
    margin: 0 auto;
}
.double-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
}
.double-row .grid-section {
    flex: 1 1 0;
    min-width: 0;
}
.grid-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 320px;
}
.grid-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 홈(responsive)에서 hover translateY가 리사이즈 중/이후 겹침을 유발함 */
@media (max-width: 1024px) {
    .renew-main .grid-section:hover {
        transform: none !important;
    }
}
.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}
.section-title i {
    color: #3b82f6;
}
.token-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.token-table th,
.token-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}
.token-table th {
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}
.token-table td {
    color: #ffffff;
}
.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.epoch-table-wrap {
    margin-top: 0.2rem;
    overflow-x: auto;
}
.epoch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}
.epoch-table th, .epoch-table td {
    padding: 0.3rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.epoch-table th {
    background: #f7e600;
    color: #222;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid #ffe066;
}
.epoch-table tr:last-child td {
    border-bottom: none;
}
.epoch-table .rate-high {
    color: #e53935;
    font-weight: bold;
}
.epoch-table .rate-low {
    color: #e67e22;
    font-weight: bold;
}
.epoch-table .rate-mid {
    color: #388e3c;
    font-weight: bold;
}
.epoch-table .row-progress {
    background: rgba(255,255,255,0.10);
    font-weight: 700;
}
.epoch-table .row-reward {
    background: rgba(255,255,255,0.06);
}
.epoch-table .row-end {
    background: rgba(255,255,255,0.08);
}
.event-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.event-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.event-date {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    min-width: 50px;
}
.event-info {
    flex: 1;
}
.event-title {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.event-description {
    font-size: 0.8rem;
    color: #94a3b8;
}
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
        padding-top: 54px;
    }
    .grid-section {
        padding: 1rem;
    }
    .epoch-table {
        font-size: 0.8rem;
    }
    .token-table {
        font-size: 0.8rem;
    }
    .token-table th,
    .token-table td {
        padding: 0.5rem;
    }
    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .event-date {
        min-width: auto;
    }
}
@media (max-width: 480px) {
    .epoch-table {
        font-size: 0.75rem;
    }
    .token-table {
        font-size: 0.75rem;
    }
    .token-table th,
    .token-table td {
        padding: 0.375rem;
    }
}

/* 홈에서 화면폭이 줄어들 때(테이블 min-width 영향 포함) 카드가 겹치는 현상 방지 */
@media (max-width: 1200px) {
    .renew-main .renew-main-panel .double-row {
        /* renewal.css에서 .renew-main .double-row가 grid로 잡히는 케이스를 1열로 강제 */
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }
    /* 테이블 min-width 때문에 카드 영역 밖으로 넘치며 겹쳐 보이는 현상 방지 */
    .renew-main .renew-main-panel .grid-section {
        overflow: hidden;
    }
    .renew-main .renew-main-panel .epoch-table,
    .renew-main .renew-main-panel .token-table {
        min-width: 0 !important;
        width: 100%;
    }
    .renew-main .renew-main-panel .double-row .grid-section {
        width: 100%;
        min-width: 0;
        /* 테이블 min-width 등으로 카드 내부가 넘칠 때 인접 카드 위로 번지는 현상 방지 */
        overflow: hidden;
    }
}
@media (max-width: 900px) {
    .double-row {
        flex-direction: column;
    }
}

.token-table th {
    padding: 0.3rem;
}
.table-header th {
    padding: 0.3rem;
}

.grid-section.transparent {
    background: transparent !important;
    border: none !important;
}

#epoch-status {
    min-width: 70px;   
}

@media (max-width: 768px) {
    .top-bar {
        padding: 4px;
        gap: 6px;
    }
    .epoch-progress-section,
    .price-info-section {
        width: 100%;
        min-width: 0;
        padding: 4px 2px;
    }
    .mobile-row-2 {
        display: flex;
        flex-direction: row;
        gap: 2%;
        width: 100%;
    }
    .epoch-stats-section,
    .epoch-empty-section {
        width: 49%;
        min-width: 0;
        padding: 2px 1px;
    }
    .stats-columns-container,
    .empty-columns-container {
        gap: 2px;
        font-size: 0.72rem;
    }
    .stats-labels-column,
    .stats-values-column,
    .stats-rates-column,
    .empty-labels-column,
    .empty-values-column,
    .empty-rates-column {
        min-width: 0;
        padding: 0 1px;
        margin: 0;
        box-sizing: border-box;
    }
    .stats-column > div,
    .empty-column > div {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .stats-columns-container {
        gap: 0 !important;
    }
    .stats-labels-column,
    .stats-values-column,
    .stats-rates-column {
        min-width: 56px !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .empty-columns-container {
        padding-left: 6px !important;
    }
}

/* 모든 grid-section을 위쪽 정렬 */
.double-row {
    align-items: flex-start;
    border-bottom: 1px solid var(--accent);
}

/* section-title과 테이블을 가로 중앙정렬 */
.grid-section .section-title {
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
}
.grid-section table {
    margin-left: auto;
    margin-right: auto;
}

/* KTOP 홀더 노드수익 분배현황의 티커 열 중앙정렬 보장 */
.token-table th:nth-child(3),
.token-table td:nth-child(3) {
    text-align: center;
}

/* 월드모바일 네트워크 현황 테이블 헤더 최소 너비 지정 */
.section-wmtstatus .epoch-table th:nth-child(1) { min-width: 48px; max-width: 55px; }
.section-wmtstatus .epoch-table th:nth-child(2) { min-width: 75px; max-width: 80px; }
.section-wmtstatus .epoch-table th:nth-child(3) { min-width: 75px; max-width: 80x; }
.section-wmtstatus .epoch-table th:nth-child(4) { min-width: 70px; max-width: 72px; }
.section-wmtstatus .epoch-table th:nth-child(5) { min-width: 50px; max-width: 50px; }
.section-wmtstatus .epoch-table th:nth-child(6) { min-width: 75px; }



@media (min-width: 1024px) {
    .content-grid.glass {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* top bar glass flex-between top-bar-styled 개선 */
.glass.flex-between.top-bar-styled {
    position: fixed;
    top: 9px;
    left: 292px;
    right: 0;
    width: auto;
    min-width: unset;
    max-width: unset;
    height: auto !important;
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬로 변경 */
    align-items: stretch;
    z-index: 100;
}

@media (max-width: 1023px) {
    .glass.flex-between.top-bar-styled {
        left: 0;
        width: 100%;
    }
}

.glass.flex-between.top-bar-styled > * {
    margin-left: 0;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.glass.flex-between.top-bar-styled > * {
    flex: 1;
    min-width: 240px;
}

/* 공지사항 최신글 섹션 스타일 */
.notice-latest-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0,255,213,0.18);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    padding: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notice-latest-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}
.notice-latest-table th, .notice-latest-table td {
    font-size: 0.98rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-align: center;
}
.notice-latest-table thead th {
    font-weight: 700;
    background: rgba(0,0,0,0.18);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    font-size: 1rem;
}
.notice-latest-table td.notice-title {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    padding: 5px 12px;
    line-height: 1.5;
}
.notice-latest-table td.notice-number,
.notice-latest-table td.notice-date {
    text-align: center;
    font-family: 'Rajdhani', 'Noto Sans KR', monospace;
    font-size: 0.98rem;
}
.notice-latest-table tbody tr:last-child td {
    border-bottom: none;
}
.important-badge {
    background: var(--warning-gradient);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.notice-latest-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
}

.notice-latest-table {
    margin: 0 auto;
}

.notice-latest-table th:nth-child(1) { min-width: 60px; }
.notice-latest-table th:nth-child(2) { min-width: 180px; }
.notice-latest-table th:nth-child(3) { min-width: 110px; }

.notice-guide-flex-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
}

.notice-guide-flex-row > .notice-latest-section {
    flex: 1;
}

.notice-latest-table th:nth-child(2) { min-width: 180px; }
.notice-latest-table th:nth-child(3) { min-width: 110px; }

/* 제목 컬럼 최소/최대 너비 설정 */
.notice-latest-table th:first-child,
.notice-latest-table td:first-child {
    min-width: 200px;
    max-width: 400px;
}

/* 작성날짜 컬럼 고정 너비 설정 */
.notice-latest-table th:last-child,
.notice-latest-table td:last-child {
    min-width: 100px;
    max-width: 120px;
    width: 100px;
}

/* 카테고리 배지 스타일 */
.category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

.category-공지 {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-가이드 {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-기타 {
    background-color: #fff3e0;
    color: #f57c00;
}

.notice-latest-content {
    padding: 15px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 10px;
    align-items: flex-start;
}

/* 공식링크 모음 페이지 스타일 */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.link-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header i {
    font-size: 1.5rem;
    color: #64b5f6;
}

.category-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 181, 246, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.link-icon i {
    font-size: 1.25rem;
    color: #64b5f6;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.link-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.link-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-card:hover .link-arrow {
    color: #64b5f6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
    }
    
    .link-icon i {
        font-size: 1rem;
    }
    
    .category-header h2 {
        font-size: 1.25rem;
    }
}

/* 링크 테이블 스타일 - 새로운 디자인 */
.links-table-container {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.links-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.links-table th {
    background: linear-gradient(90deg, #1e293b, #334155);
    color: #f1f5f9;
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    position: relative;
}

.links-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.links-table th.main-header {
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.links-table td {
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-size: 0.8rem;
    vertical-align: middle;
}

.links-table tbody tr {
    transition: all 0.2s ease;
}

.links-table tbody tr:hover {
    background: rgba(148, 163, 184, 0.05);
    transform: scale(1.01);
}

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

.link-text {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 45px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-text:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.2);
}

/* 첫 번째와 두 번째 컬럼 스타일 */
.links-table th:first-child,
.links-table th:nth-child(2),
.links-table td:first-child,
.links-table td:nth-child(2) {
    background: rgba(124, 58, 237, 0.08);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.links-table th:first-child,
.links-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #e2e8f0;
}

.links-table th:nth-child(2),
.links-table td:nth-child(2) {
    text-align: center;
    color: #cbd5e1;
}

/* 링크가 없는 경우 "-" 표시 스타일 */
.links-table td:contains("-") {
    color: #64748b;
    font-style: italic;
    font-weight: 300;
}

/* 반응형 테이블 */
@media (max-width: 1024px) {
    .links-table {
        font-size: 0.75rem;
    }
    
    .links-table th,
    .links-table td {
        padding: 0.4rem 0.3rem;
    }
    
    .link-text {
        padding: 0.25rem 0.5rem;
        min-width: 40px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .links-table-container {
        padding: 0 0.3rem;
        overflow-x: auto;
    }
    
    .links-table {
        min-width: 500px;
        font-size: 0.7rem;
    }
    
    .links-table th,
    .links-table td {
        padding: 0.3rem 0.2rem;
    }
    
    .link-text {
        padding: 0.2rem 0.4rem;
        min-width: 35px;
        font-size: 0.65rem;
    }
}

/* 반응형 통합: PC/모바일 요소 표시/숨김 제어 */
/* 모바일에서 PC 전용 요소 숨기기 */
@media (max-width: 767px) {
    .sidebar,
    .menu-toggle,
    .top-bar,
    /* 홈 PC용 그리드만 숨김 — 스테이블코인 등 다른 페이지는 .renew-main 없이 content-grid 사용 */
    .content-grid.renew-main,
    .main-top-banner-section {
        display: none !important;
    }
    
    .mobile-top-controls,
    .mobile-icon-menu-grid,
    .mobile-submenu-container,
    .mobile-home-container {
        display: block;
    }
}

/* PC에서 모바일 전용 요소 숨기기 — 브레이크포인트는 simple-theme(1024px)과 맞춤 */
@media (min-width: 1025px) {
    .mobile-top-controls,
    .mobile-icon-menu-grid,
    .mobile-submenu-container,
    .mobile-home-container {
        display: none !important;
    }
    
    .sidebar,
    .menu-toggle,
    .top-bar,
    .content-grid.renew-main {
        display: block;
    }
}
