/* Hero Section Styles - Modern Gradient */
.hero-section.start {
    background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
    color: var(--color-text-light);
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    padding: 4rem 0 2rem 0;
    text-align: left;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: visible;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 2rem);
}

/* CC SVG Overlay */
.cc-svg-overlay {
    position: absolute;
    top: calc(-1 * var(--navbar-height));
    left: 0;
    width: 100%;
    height: calc(100% + var(--navbar-height));
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-svg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(1.0);
}

/* Hero Section Content - Override style.css */
.hero-section.start .container,
header.hero-section.start .container {
    position: relative;
    z-index: 50 !important;
    margin-left: 8.75rem !important;
    margin-right: auto !important;
    text-align: left !important;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .hero-section.start .container,
    header.hero-section.start .container {
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.hero-section.start .headline-big,
header.hero-section.start .headline-big {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 3rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 50 !important;
    line-height: 1.2;
    padding-left: 1rem;
}

.hero-section.start .small_words h4,
header.hero-section.start .small_words h4 {
    font-family: var(--font-korean);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-light);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 0;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 50 !important;
    padding-left: 1rem;
}

.hero-section .small_words {
    margin-bottom: 3rem !important;
    margin-top: 0 !important;
}

/* Fade in animation */
.fade-in-delay {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

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

/* Financial Clock Styles - Premium & Professional */
.financial-clock-container {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 50 !important;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-left: 1rem;
}

.financial-clock {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.4), rgba(15, 22, 27, 0.4));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.clock-live-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.live-text {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #10b981;
    text-transform: uppercase;
}

.clock-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Roboto Mono', 'Courier New', monospace;
}

.clock-date {
    font-size: 0.7rem !important;
    font-weight: 500;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.clock-separator {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 300;
}

.clock-time {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* Force override for IDs */
.financial-clock-container #current-date,
.financial-clock-container #current-time {
    font-size: inherit !important;
    color: #ffffff !important;
}

/* Ensure IDs inside financial clock are white */
.financial-clock-container #current-date,
.financial-clock-container #current-time {
    color: #ffffff !important;
}

/* Mobile Responsive Financial Clock */
@media (max-width: 768px) {
    .financial-clock-container {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }
    
    .financial-clock {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
        width: auto;
        max-width: 100%;
    }
    
    .clock-live-badge {
        padding: 0.25rem 0.5rem;
        flex-shrink: 0;
    }
    
    .live-dot {
        width: 6px;
        height: 6px;
    }
    
    .live-text {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    
    .clock-display {
        gap: 0.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .clock-date {
        font-size: 0.65rem !important;
        color: #ffffff !important;
        letter-spacing: 0.3px;
    }
    
    .clock-separator {
        font-size: 0.7rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .clock-time {
        font-size: 0.7rem !important;
        color: #ffffff !important;
        letter-spacing: 0.8px;
    }
    
    .financial-clock-container #current-date,
    .financial-clock-container #current-time {
        font-size: inherit !important;
    }
}

@media (max-width: 480px) {
    .financial-clock-container {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }
    
    .financial-clock {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
        width: auto;
        max-width: calc(100% - 1.2rem);
    }
    
    .clock-live-badge {
        padding: 0.2rem 0.4rem;
    }
    
    .live-dot {
        width: 5px;
        height: 5px;
    }
    
    .live-text {
        font-size: 0.5rem;
        letter-spacing: 0.8px;
    }
    
    .clock-display {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }
    
    .clock-date {
        font-size: 0.6rem !important;
        color: #ffffff !important;
        white-space: nowrap;
    }
    
    .clock-separator {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .clock-time {
        font-size: 0.65rem !important;
        color: #ffffff !important;
        white-space: nowrap;
    }
    
    .financial-clock-container #current-date,
    .financial-clock-container #current-time {
        font-size: inherit !important;
    }
}

/* Update Section in Hero */
.hero-section .update-section {
    position: relative;
    z-index: 50 !important;
}

.hero-section .update-section h6,
.hero-section .update-section p {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
}

/* Update Prices Button in Hero Section */
.hero-section .btn-update-prices {
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border: 2px solid #87CEEB;
    border-radius: 25px;
    color: #000000;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section .btn-update-prices:hover, .hero-section .btn-update-prices:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, #4da6ff, #2d7dd2);
    color: #ffffff;
    border-color: #4da6ff;
}

.hero-section .btn-update-prices:disabled, .hero-section .btn-update-prices.disabled {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.65;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section.start {
        min-height: auto !important;
        height: auto !important;
        padding: calc(var(--navbar-height) + 2rem) 1rem 2rem 1rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .hero-section.start .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-section.start .headline-big,
    header.hero-section.start .headline-big {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .hero-section.start .small_words {
        margin-bottom: 0.75rem !important;
        width: 100% !important;
    }
    
    .hero-section.start .small_words h4,
    header.hero-section.start .small_words h4 {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .hero-section #current-date,
    .hero-section #current-time {
        font-size: 1.5rem;
    }
    
    .financial-clock-container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section.start {
        min-height: auto !important;
        height: auto !important;
        padding: calc(var(--navbar-height) + 1.5rem) 1rem 1.5rem 1rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .hero-section.start .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-section.start .headline-big,
    header.hero-section.start .headline-big {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .hero-section.start .small_words {
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .hero-section.start .small_words h4,
    header.hero-section.start .small_words h4 {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .financial-clock-container {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-section.start {
        min-height: auto !important;
        height: auto !important;
        padding: calc(var(--navbar-height) + 1.25rem) 1rem 1.25rem 1rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .hero-section.start .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-section.start .headline-big,
    header.hero-section.start .headline-big {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .hero-section.start .small_words {
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }
    
    .hero-section.start .small_words h4,
    header.hero-section.start .small_words h4 {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding-left: 0 !important;
    }
    
    .hero-section #current-date,
    .hero-section #current-time {
        font-size: 1.2rem;
    }
    
    .financial-clock-container {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        padding-left: 0 !important;
    }
}

/* 플로팅 순위 배지 - 통합 스타일 */
.floating-rank-badge {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                0 2px 4px rgba(10, 35, 66, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 35, 66, 0.12);
    animation: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: auto;
    max-width: 220px; /* 영어 텍스트를 고려한 최대 너비 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.floating-rank-badge:not(.login-required-badge):hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(10, 35, 66, 0.2);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.15),
                0 4px 8px rgba(10, 35, 66, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.floating-rank-badge:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(10, 35, 66, 0.1);
    border-color: rgba(10, 35, 66, 0.15);
    background: #ffffff;
}

/* 로그인 필요 배지 스타일 */
.floating-rank-badge.login-required-badge {
    background: #f8f9fa;
    border: 1px solid rgba(10, 35, 66, 0.12);
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-rank-badge.login-required-badge:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.15);
    opacity: 1;
    background: #ffffff;
    border-color: rgba(10, 35, 66, 0.2);
}

/* 모바일 배지 스타일 */
@media (max-width: 768px) {
    .floating-rank-badge {
        position: absolute !important;
        top: 0.5rem !important;
        right: 1rem !important;
        left: auto !important;
        padding: 0.5rem 0.75rem;
        min-width: auto;
        border-radius: 12px !important;
        font-size: 0.85em;
        z-index: 10 !important;
        transform: none !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
        box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                    0 2px 4px rgba(10, 35, 66, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(10, 35, 66, 0.12) !important;
    }
    
    .floating-badge-content {
        gap: 0.4rem;
        font-size: 0.85em;
    }
    
    .floating-badge-content i {
        font-size: 0.85em;
    }
    
    .floating-badge-text {
        font-size: 0.75em;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .floating-badge-rank {
        font-size: 0.8em;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .floating-rank-badge {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.75rem !important;
        left: auto !important;
        padding: 0.4rem 0.6rem;
        min-width: auto;
        border-radius: 10px !important;
        max-width: none;
        z-index: 10 !important;
        transform: none !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
        box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                    0 2px 4px rgba(10, 35, 66, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(10, 35, 66, 0.12) !important;
    }
    
    .floating-badge-content {
        gap: 0.35rem;
        font-size: 0.8em;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .floating-badge-content i {
        font-size: 0.8em;
    }
    
    .floating-badge-text {
        font-size: 0.7em;
        text-align: left;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .floating-badge-rank {
        font-size: 0.75em;
        font-weight: 600;
    }
    
    /* 로그인 필요 배지 모바일 최적화 */
    .floating-rank-badge.login-required-badge .floating-badge-content {
        flex-direction: row;
        gap: 0.35rem;
    }
    
    .floating-rank-badge.login-required-badge .floating-badge-text {
        font-size: 0.7em;
        text-align: left;
    }
}

.floating-badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A2342;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트 말줄임표 표시 */
}

/* 공유 버튼이 배지 내부에 있을 때 아이콘과의 간격 조정 */
.floating-badge-content .btn-share-icon-inline {
    margin-right: 0.25rem;
}

.floating-badge-content .btn-share-icon-inline + i {
    margin-left: 0;
}

.floating-badge-content i {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #6c757d;
}

.floating-badge-text {
    opacity: 0.8;
    white-space: nowrap;
    color: #6c757d;
    font-weight: 400;
    flex-shrink: 0; /* 텍스트 축소 방지 */
}

.floating-badge-rank {
    font-weight: 600;
    color: #0A2342;
    font-size: 0.9375rem;
    text-shadow: none;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0; /* 순위 숫자 축소 방지 */
    margin-left: 0.25rem; /* 텍스트와 순위 사이 간격 */
}

/* 팀 랭킹 배지 색상 - 금융 스타일 */
.team-rank-badge {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.1);
    border: 1px solid rgba(10, 35, 66, 0.12);
}

.team-rank-badge .floating-badge-content i {
    color: #1e3c72;
}

.team-rank-badge .floating-badge-rank {
    color: #1e3c72;
}

/* 개인 랭킹 배지 색상 - 금융 스타일 */
.individual-rank-badge {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.1);
    border: 1px solid rgba(10, 35, 66, 0.12);
}

.individual-rank-badge .floating-badge-content i {
    color: #2c5530;
}

.individual-rank-badge .floating-badge-rank {
    color: #2c5530;
}

/* 활동 랭킹 배지 - 더 긴 텍스트를 위한 추가 스타일 */
.activity-rank-badge {
    max-width: 240px !important; /* 활동 랭킹은 텍스트가 더 길 수 있음 */
}


/* 반응형 디자인 - 이 스타일은 제거 (위의 모바일 스타일이 우선 적용됨) */

/* 현재 사용자 하이라이트 */
/* current-user highlight 제거 - 모든 등수에서 동일한 스타일 적용 */
.ranking-item.current-user {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
}

/* 1등, 2등, 3등일 때는 등수별 테두리 스타일 유지 */
.ranking-item.current-user[data-rank="1"] {
    border-bottom: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-left: 3px solid rgba(255, 215, 0, 0.5) !important;
    border-top: none !important;
    border-right: none !important;
}

.ranking-item.current-user[data-rank="2"] {
    border-bottom: 1px solid rgba(192, 192, 192, 0.3) !important;
    border-left: 3px solid rgba(192, 192, 192, 0.5) !important;
    border-top: none !important;
    border-right: none !important;
}

.ranking-item.current-user[data-rank="3"] {
    border-bottom: 1px solid rgba(205, 127, 50, 0.3) !important;
    border-left: 3px solid rgba(205, 127, 50, 0.5) !important;
    border-top: none !important;
    border-right: none !important;
}

/* 4등 이하는 테두리 없음 */
.ranking-item.current-user:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]) {
    border: none !important;
}

.ranking-item.current-user .rank-position {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}

/* 1등, 2등, 3등일 때는 등수별 색상 유지 */
.ranking-item.current-user[data-rank="1"] .rank-position {
    color: rgba(255, 215, 0, 0.9) !important;
    font-weight: 700 !important;
}

.ranking-item.current-user[data-rank="2"] .rank-position {
    color: rgba(192, 192, 192, 0.9) !important;
    font-weight: 700 !important;
}

.ranking-item.current-user[data-rank="3"] .rank-position {
    color: rgba(205, 127, 50, 0.9) !important;
    font-weight: 700 !important;
}

.ranking-item.current-user .rank-name {
    color: inherit !important;
    font-weight: inherit !important;
}

.ranking-item.current-user .rank-details {
    color: inherit !important;
}

.ranking-item.current-user .rank-assets {
    color: inherit !important;
    font-weight: inherit !important;
}

.you-badge {
    display: none !important;
}

/* Ranking Tabs Styles - Integrated with Main Content */
.ranking-tabs {
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    margin-bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 0;
    padding: 1.25rem 2.5rem 0 2.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.ranking-tabs .nav-item {
    margin: 0;
}

.ranking-tabs .nav-link {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    text-transform: none;
}

.ranking-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: #0A2342;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.ranking-tabs .nav-link:hover {
    color: #0A2342;
    background: rgba(10, 35, 66, 0.06);
    transform: translateY(-1px);
}

.ranking-tabs .nav-link:hover::after {
    width: 60%;
    transform: translateX(-50%) scaleX(1);
    background: rgba(10, 35, 66, 0.3);
}

.ranking-tabs .nav-link.active {
    color: #0A2342;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.1) 0%, rgba(10, 35, 66, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.1);
    transform: translateY(-1px);
    font-weight: 600;
}

.ranking-tabs .nav-link.active::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
    background: linear-gradient(90deg, #0A2342 0%, #1a3556 100%);
    height: 3px;
    border-radius: 2px;
}

.ranking-tabs .nav-link.active::before {
    display: none;
}

/* Tab Content Animation */
.tab-content {
    position: relative;
}

.tab-pane {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ranking-item {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.ranking-item:nth-child(1) { animation-delay: 0.05s; }
.ranking-item:nth-child(2) { animation-delay: 0.1s; }
.ranking-item:nth-child(3) { animation-delay: 0.15s; }
.ranking-item:nth-child(4) { animation-delay: 0.2s; }
.ranking-item:nth-child(5) { animation-delay: 0.25s; }
.ranking-item:nth-child(6) { animation-delay: 0.3s; }
.ranking-item:nth-child(7) { animation-delay: 0.35s; }
.ranking-item:nth-child(8) { animation-delay: 0.4s; }
.ranking-item:nth-child(9) { animation-delay: 0.45s; }
.ranking-item:nth-child(10) { animation-delay: 0.5s; }

/* Share Button Icon Styles - Inline 버전 (배지 내부) */
.btn-share-icon-inline {
    background: transparent;
    border: none;
    border-radius: 8px;
    height: 1.75rem;
    width: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    margin-right: 0.25rem;
    box-sizing: border-box;
    flex-shrink: 0;
    opacity: 0.7;
}

.btn-share-icon-inline:hover {
    background: rgba(10, 35, 66, 0.1);
    color: #0A2342;
    opacity: 1;
    transform: scale(1.1);
}

.btn-share-icon-inline:active {
    transform: scale(0.95);
}

.btn-share-icon-inline:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.2);
}

/* 기존 absolute 위치의 공유 버튼 (하위 호환성을 위해 유지) */
.btn-share-icon {
    position: absolute;
    top: 1.25rem;
    right: calc(2rem + 240px);
    z-index: 15;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(10, 35, 66, 0.12);
    border-radius: 16px;
    height: auto;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0.875rem;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                0 2px 4px rgba(10, 35, 66, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 2.5rem;
    flex-shrink: 0;
}

.btn-share-icon:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(10, 35, 66, 0.2);
    color: #0A2342;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.15),
                0 4px 8px rgba(10, 35, 66, 0.1);
}

.btn-share-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

/* Financial Download Button */
.btn-download-financial {
    background: linear-gradient(135deg, #0A2342 0%, #1a3556 50%, #0A2342 100%);
    color: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.2), 
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-download-financial::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

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

.btn-download-financial:hover {
    background: linear-gradient(135deg, #1a3556 0%, #2a4566 50%, #1a3556 100%);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.3), 
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-download-financial:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.25), 
                0 1px 2px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-download-financial i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-download-financial:hover i {
    transform: translateY(-2px);
}

.btn-download-financial:active i {
    transform: translateY(0);
}

/* Share Modal Styles */
.share-modal {
    border-radius: 0;
    border: 1px solid rgba(10, 35, 66, 0.12);
}

.share-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    padding: 1.25rem 1.5rem;
}

.share-modal .modal-title {
    color: #0A2342;
    font-weight: 600;
    font-size: 1.125rem;
}

.share-image-preview {
    background: #f8f9fa;
    border: 1px solid rgba(10, 35, 66, 0.08);
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-actions {
    text-align: center;
}

.share-image-preview {
    background: linear-gradient(135deg, #0A2342 0%, #1a3556 50%, #0A2342 100%);
    position: relative;
    overflow: hidden;
}

.share-image-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/phavicon.png');
    background-size: 900px 900px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: blur(3px);
    animation: slowFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes slowFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.share-image-preview img {
    position: relative;
    z-index: 2;
}

/* Mobile Share Button */
@media (max-width: 768px) {
    .share-button-container {
        padding: 0 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-share {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-download-financial {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    .btn-download-financial i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-download-financial {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }
    
    .btn-download-financial i {
        font-size: 0.95rem;
    }
}

/* Stock Price Update Button Styles */
.btn-update-prices {
    background: linear-gradient(145deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-update-prices:hover, .btn-update-prices:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(145deg, #0b5ed7, #0a53be);
    color: #fff;
}

.btn-update-prices:disabled, .btn-update-prices.disabled {
    background: #495057;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.65;
}

.btn-update-prices .fa-sync-alt {
    margin-right: 8px;
    animation: fa-spin 2s linear infinite;
}

.btn-update-prices:hover .fa-sync-alt {
    animation-play-state: paused;
}

/* General Page Styles */

/* Ranking Guide Modal Styles - Modern UI/UX */
.ranking-guide-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(10, 35, 66, 0.15),
                0 8px 24px rgba(10, 35, 66, 0.1);
    overflow: hidden;
}

.ranking-guide-modal .modal-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    padding: 1.5rem 2rem;
    position: relative;
}

.ranking-guide-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A2342 0%, #1a3556 50%, #0A2342 100%);
}

.ranking-guide-modal .modal-title {
    color: #0A2342;
    font-weight: 700;
    font-size: 1.375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ranking-guide-modal .modal-title i {
    color: #0A2342;
    font-size: 1.5rem;
}

.ranking-guide-modal .modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.ranking-guide-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.ranking-guide-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(10, 35, 66, 0.05);
    border-radius: 4px;
}

.ranking-guide-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(10, 35, 66, 0.2);
    border-radius: 4px;
}

.ranking-guide-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 35, 66, 0.3);
}

/* Accordion Custom Styles - Modern Design */
.ranking-guide-modal .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-guide-modal .accordion-item:hover {
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.08);
}

.ranking-guide-modal .accordion-item:last-child {
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
}

.ranking-guide-modal .accordion-header {
    border-radius: 12px !important;
}

.ranking-guide-modal .accordion-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: #0A2342;
    font-weight: 600;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(10, 35, 66, 0.05);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 35, 66, 0.08);
}

.ranking-guide-modal .accordion-button:hover {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.05) 0%, rgba(10, 35, 66, 0.02) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.1);
}

.ranking-guide-modal .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.08) 0%, rgba(10, 35, 66, 0.04) 100%);
    color: #0A2342;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(10, 35, 66, 0.15);
}

.ranking-guide-modal .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.15);
    border-color: rgba(10, 35, 66, 0.2);
    outline: none;
}

.ranking-guide-modal .accordion-button::after {
    filter: none;
    background-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-guide-modal .accordion-button:not(.collapsed)::after {
    filter: none;
    transform: rotate(180deg);
}

.ranking-guide-modal .accordion-button .fas {
    color: #0A2342;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    opacity: 0.8;
    font-size: 1.1rem;
}

.ranking-guide-modal .accordion-button:not(.collapsed) .fas {
    color: #0A2342;
    opacity: 1;
    transform: scale(1.1);
}

.ranking-guide-modal .accordion-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.4) 100%);
    color: #4a5568;
    padding: 1.5rem 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    border-top: 1px solid rgba(10, 35, 66, 0.05);
}

.ranking-guide-modal .accordion-body strong {
    color: #0A2342;
    font-weight: 700;
}

.ranking-guide-modal .accordion-body a {
    color: #0A2342;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 2px solid rgba(10, 35, 66, 0.2);
    padding-bottom: 2px;
}

.ranking-guide-modal .accordion-body a:hover {
    color: #1a3556;
    border-bottom-color: #0A2342;
    transform: translateY(-1px);
}

.ranking-guide-modal .accordion-body .alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.ranking-guide-modal .accordion-body ul,
.ranking-guide-modal .accordion-body ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.75rem;
}

.ranking-guide-modal .accordion-body li {
    margin-bottom: 0.75rem;
    position: relative;
}

.ranking-guide-modal .accordion-body li::marker {
    color: #0A2342;
    font-weight: 600;
}

/* Intro Text Style */
.ranking-guide-modal .modal-body > p.text-center {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.05) 0%, rgba(10, 35, 66, 0.02) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem !important;
    border: 1px solid rgba(10, 35, 66, 0.08);
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
}

/* Mobile Responsive Styles for Ranking Guide Modal */
@media (max-width: 768px) {
    .ranking-guide-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .ranking-guide-modal .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .ranking-guide-modal .modal-title {
        font-size: 1.125rem;
    }
    
    .ranking-guide-modal .modal-title i {
        font-size: 1.25rem;
    }
    
    .ranking-guide-modal .modal-body {
        padding: 1.5rem 1.25rem;
        max-height: 75vh;
    }
    
    .ranking-guide-modal .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .ranking-guide-modal .accordion-body {
        padding: 1.25rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .ranking-guide-modal .modal-body > p.text-center {
        padding: 1.25rem;
        font-size: 0.9375rem;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .ranking-guide-modal .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }
    
    .ranking-guide-modal .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .ranking-guide-modal .modal-title {
        font-size: 1rem;
    }
    
    .ranking-guide-modal .modal-title i {
        font-size: 1.125rem;
    }
    
    .ranking-guide-modal .modal-body {
        padding: 1.25rem 1rem;
        max-height: 80vh;
    }
    
    .ranking-guide-modal .accordion-button {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .ranking-guide-modal .accordion-body {
        padding: 1rem 1.25rem;
        font-size: 0.8125rem;
        line-height: 1.7;
    }
    
    .ranking-guide-modal .accordion-body ul,
    .ranking-guide-modal .accordion-body ol {
        padding-left: 1.5rem;
    }
    
    .ranking-guide-modal .modal-body > p.text-center {
        padding: 1rem;
        font-size: 0.875rem;
        margin-bottom: 1.25rem !important;
    }
}

.ranking-title {
    font-family: 'Arial Black', Gadget, sans-serif; /* Example font, adjust to match image */
    font-size: 5rem; /* Adjust to match image */
    color: #0A2342; /* Adjust to match image, might be darker or a specific color */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    padding: 1rem 1rem 0;
    margin-bottom: 0;
}

/* Live Clock Styles - Calm & Professional (for non-hero sections) */
.main-content #live-clock-container {
    font-family: 'Orbitron', 'Roboto Mono', monospace;
    margin: 2rem auto;
    text-align: center;
    padding: 10px 0;
}

#live-indicator-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.main-content #live-indicator {
    color: #FF4136; /* Bright red for LIVE */
    font-weight: bold;
    font-size: 1rem; /* Smaller font for 'LIVE' */
    letter-spacing: 2px;
    animation: blink-urgent 1s infinite;
}

#time-display-wrapper {
    color: #A9BCD0; /* Calm, light blue-gray */
    font-size: 2.2rem; /* Larger font for date and time */
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 0 5px rgba(169, 188, 208, 0.3); /* Subtle glow */
}

.main-content #current-date {
    margin-right: 20px;
    font-size: 2rem;
    color: black;
}

.main-content #current-time {
    margin-right: 20px;
    font-size: 2rem;
    color: black;
}

@keyframes blink-urgent {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px #FF4136;
    }
    50% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* Unified Ranking Container - Modern Integrated Design */
.unified-ranking-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(10, 35, 66, 0.1);
    border-radius: 24px;
    padding: 0;
    margin: 2rem auto;
    width: 100%;
    max-width: 1400px;
    box-shadow: 0 8px 32px rgba(10, 35, 66, 0.08),
                0 2px 8px rgba(10, 35, 66, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Ranking Guide Button */
.ranking-guide-btn {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    z-index: 15;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(10, 35, 66, 0.15);
    border-radius: 12px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.1);
    backdrop-filter: blur(10px);
}

.ranking-guide-btn:hover {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.1) 0%, rgba(10, 35, 66, 0.05) 100%);
    border-color: rgba(10, 35, 66, 0.3);
    color: #0A2342;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.15);
}

.ranking-guide-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

/* Tab Content Container - for floating badge positioning */
.main-tab-content {
    position: relative;
}

.main-tab-content .tab-pane {
    position: relative;
}

.unified-ranking-card::before {
    display: none;
}

.unified-ranking-card:hover {
    box-shadow: 0 12px 40px rgba(10, 35, 66, 0.12),
                0 4px 12px rgba(10, 35, 66, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

/* Main Tab Container - Integrated Style */
.main-tab-container {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    padding: 1.5rem 2rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    border-radius: 24px 24px 0 0;
}

.main-tabs {
    display: flex;
    gap: 0.25rem;
    border: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.main-tabs .nav-item {
    flex: 0 0 auto;
}

.main-tabs .nav-link {
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: visible;
    letter-spacing: 0.2px;
    margin-bottom: -1px;
}

.main-tabs .nav-link::before {
    display: none;
}

.main-tabs .nav-link::after {
    display: none;
}

.main-tabs .nav-link:hover {
    background: rgba(10, 35, 66, 0.08);
    color: #0A2342;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.1);
}

.main-tabs .nav-link.active {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: #0A2342;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.12),
                0 2px 4px rgba(10, 35, 66, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border-bottom: 3px solid #0A2342;
    margin-bottom: -1px;
    transform: translateY(-1px);
}

.main-tabs .nav-link.active i {
    color: #0A2342;
}

.main-tabs .nav-link i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.main-tabs .nav-link.active i {
    opacity: 1;
}

/* Main Tab Content */
.main-tab-content {
    padding: 0;
    position: relative;
    min-height: 500px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 0 0 24px 24px;
}

/* Tab Pane Content */
.main-tab-content .tab-pane {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* 플로팅 배지 위치 기준점 */
}

/* Modern Card Styles */
.ranking-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin: 15px auto;
    width: 95%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Team ranking card - same design as individual ranking but with darker background */
.group-ranking-card {
    /* Make team card identical to base/individual card */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin: 15px auto;
    width: 95%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.2s ease;
}

.group-ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Team ranking: make text white while keeping unified design */
.group-ranking-card .rank-name,
.group-ranking-card .rank-details,
.group-ranking-card .rank-assets,
.group-ranking-card .rank-position {
    color: #ffffff;
}

/* Team ranking table structure - same as individual */
.group-ranking-card .ranking-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: none;
}

.group-ranking-card .ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    gap: 12px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.group-ranking-card .ranking-item.hovered {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Team ranking top 3 effects - only for actual rank 1,2,3 */
.group-ranking-card .ranking-item[data-rank="1"] {
    background: transparent;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    border-left: 3px solid rgba(255, 215, 0, 0.6);
}

.group-ranking-card .ranking-item[data-rank="2"] {
    background: transparent;
    border-bottom: 1px solid rgba(192, 192, 192, 0.4);
    border-left: 3px solid rgba(192, 192, 192, 0.6);
}

.group-ranking-card .ranking-item[data-rank="3"] {
    background: transparent;
    border-bottom: 1px solid rgba(205, 127, 50, 0.4);
    border-left: 3px solid rgba(205, 127, 50, 0.6);
}

/* Team ranking special rank positions - same as individual */
/* Inherit base top-3 .rank-position styles */

/* Crown removed from team ranking to avoid duplication */

/* Inherit base .rank-info for identical layout */

/* Custom Tooltip Styles */
.profit-tooltip {
    position: relative;
    cursor: pointer;
    text-decoration: underline dotted;
    text-decoration-color: #D4AF37;
}

.profit-tooltip:hover::before {
    content: attr(data-profit);
    position: absolute;
    top: -30px;
    left: 0;
    background-color: #D4AF37;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ranking Table Container */
.ranking-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0.5rem 0;
    border-top: none;
}

/* Rank Info Container */
.rank-info {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.rank-details {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.ranking-item:hover .rank-details {
    color: #495057;
}

/* No Data State */
.no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Enhanced Tooltip for Ranking Items */
.ranking-item[data-profit]:hover::after {
    content: attr(data-profit);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: tooltip-appear 0.3s ease-out;
}

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

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    border: 1px solid rgba(10, 35, 66, 0.08);
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 8px;
    cursor: pointer;
}

.ranking-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.1),
                0 3px 6px rgba(10, 35, 66, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 35, 66, 0.15);
}

.ranking-item:hover .rank-position {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(10, 35, 66, 0.15);
}

.ranking-item:hover .rank-assets {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(10, 35, 66, 0.15);
}

/* 개인 랭킹 아이템 너비 확장 - 강제 적용 */
#individual-main-content .ranking-item,
#individual-main-content .individual-swiper .ranking-item,
#individual-main-content .individual-weekly-swiper .ranking-item,
#individual-main-content .individual-daily-swiper .ranking-item {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#individual-main-content .ranking-table,
#individual-main-content .individual-swiper .ranking-table,
#individual-main-content .individual-weekly-swiper .ranking-table,
#individual-main-content .individual-daily-swiper .ranking-table {
    width: 100% !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 팀 랭킹 아이템 너비 확장 - 개인 랭킹과 동일하게 */
#team-main-content .ranking-item,
#team-main-content .school-swiper .ranking-item,
#team-main-content .school-weekly-swiper .ranking-item,
#team-main-content .school-daily-swiper .ranking-item {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#team-main-content .ranking-table,
#team-main-content .school-swiper .ranking-table,
#team-main-content .school-weekly-swiper .ranking-table,
#team-main-content .school-daily-swiper .ranking-table {
    width: 100% !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 활동 랭킹 아이템 너비 확장 - 개인 랭킹과 동일하게 */
#activity-main-content .ranking-item,
#activity-main-content .activity-swiper .ranking-item,
#activity-main-content .activity-weekly-swiper .ranking-item,
#activity-main-content .activity-daily-swiper .ranking-item {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#activity-main-content .ranking-table,
#activity-main-content .activity-swiper .ranking-table,
#activity-main-content .activity-weekly-swiper .ranking-table,
#activity-main-content .activity-daily-swiper .ranking-table {
    width: 100% !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
}

.ranking-item.hovered {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(10, 35, 66, 0.12),
                0 4px 8px rgba(10, 35, 66, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 35, 66, 0.15);
}

/* Top 3 Special Effects - only for actual rank 1,2,3 */
.ranking-item[data-rank="1"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 223, 0, 0.08) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-left: 4px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2),
                0 2px 4px rgba(255, 215, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ranking-item[data-rank="2"] {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(230, 230, 230, 0.08) 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
    border-left: 4px solid rgba(192, 192, 192, 0.8);
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.2),
                0 2px 4px rgba(192, 192, 192, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ranking-item[data-rank="3"] {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(218, 165, 32, 0.08) 100%);
    border: 2px solid rgba(205, 127, 50, 0.4);
    border-left: 4px solid rgba(205, 127, 50, 0.8);
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.2),
                0 2px 4px rgba(205, 127, 50, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rank-position {
    font-size: 1rem;
    font-weight: 700;
    color: #6c757d;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.05) 0%, rgba(10, 35, 66, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(10, 35, 66, 0.1);
    margin-right: 1.5rem;
    min-width: 3rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(10, 35, 66, 0.05);
}

/* Special rank position styles - only for actual rank 1,2,3 */
.ranking-item[data-rank="1"] .rank-position {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 223, 0, 0.2) 100%);
    color: rgba(184, 134, 11, 1);
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ranking-item[data-rank="2"] .rank-position {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3) 0%, rgba(230, 230, 230, 0.2) 100%);
    color: rgba(105, 105, 105, 1);
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid rgba(192, 192, 192, 0.5);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ranking-item[data-rank="3"] .rank-position {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3) 0%, rgba(218, 165, 32, 0.2) 100%);
    color: rgba(139, 69, 19, 1);
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid rgba(205, 127, 50, 0.5);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rank-change {
    width: 30px;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.rank-change .up {
    color: #48BB78;
    animation: bounce-up 0.6s ease-out;
}

.rank-change .down {
    color: #F56565;
    animation: bounce-down 0.6s ease-out;
}

@keyframes bounce-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes bounce-down {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.rank-name {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #0A2342;
    padding-left: 0;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.rank-assets {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0A2342;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.05) 0%, rgba(10, 35, 66, 0.02) 100%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(10, 35, 66, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    flex: 0 0 auto;
    box-shadow: 0 2px 4px rgba(10, 35, 66, 0.05);
    font-variant-numeric: tabular-nums;
}

/* Additional Interactive Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-8px,0); }
    70% { transform: translate3d(0,-4px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

/* Simplified Crown for #1 (class-based) — only on active slide */
.individual-ranking-card .individual-swiper .swiper-slide-active .ranking-item.first-place::after {
    content: '👑';
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 1.2rem;
    z-index: 10;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    .individual-ranking-card .individual-swiper .swiper-slide-active .ranking-item.first-place::after {
        display: none;
    }
}

.rank-badge {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.375rem 0.5rem;
    border-radius: 50%;
    margin-left: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
}

.rank-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.rank-badge:hover::before {
    left: 100%;
}

/* Rank Badge Variants - 아이콘만 표시 */
.rank-badge {
    background: transparent;
    border: none;
    box-shadow: none;
}

.rank-badge i {
    font-size: 1.25rem;
    line-height: 1;
}

.rank-badge.gold {
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-badge.gold:hover {
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
    color: #C0C0C0;
    text-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-badge.silver:hover {
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(192, 192, 192, 0.6);
}

.rank-badge.bronze {
    color: #CD7F32;
    text-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.rank-badge.bronze:hover {
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(205, 127, 50, 0.6);
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 5px rgba(160, 174, 192, 0.1);
    }
    to {
        box-shadow: 0 0 15px rgba(160, 174, 192, 0.3);
    }
}

/* Group (School) Ranking Card */
.group-ranking-card {
    background-color: #0A2342; /* Dark blue from image */
    color: #FFFFFF;
}

.group-ranking-card .ranking-subtitle {
    background-color: transparent; /* White button as in image */
    color: #a7a7a7; /* Dark blue text for button */
}

.group-ranking-card .list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2); /* Lighter border for dark bg */
    color: #FFFFFF;
    font-size: 1rem;
    padding: 0.75rem 0; /* Adjust padding */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
}

.group-ranking-card .asset-value {
    font-weight: bold;
    color: #E0E0E0; /* Slightly lighter for emphasis */
}

/* Individual Ranking Card */
.individual-ranking-card {
    background-color: #E9E9F0; /* Light gray from image */
    color: #333333;
}

.individual-ranking-card .ranking-subtitle {
    background-color: transparent; /* Dark blue button */
    color: #0A2342; /* White text for button */
}

.individual-ranking-card .list-group-item {
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.1); /* Darker border for light bg */
    color: #333333;
    font-size: 1rem;
    padding: 0.75rem 0; /* Adjust padding */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
}

.individual-ranking-card .asset-value {
    font-weight: bold;
    color: #111111; /* Darker for emphasis */
}

.ranking-list .list-group-item:last-child {
    border-bottom: none;
}

/* Pagination Styles to match image */
.pagination .page-item .page-link {
    background-color: #0A0A2A; /* Dark blue background for page numbers */
    color: #FFFFFF; /* White text */
    border: 1px solid #0A0A2A; /* Border color same as background */
    margin: 0 3px; /* Spacing between page numbers */
    border-radius: 5px; /* Rounded corners */
    min-width: 40px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: #FFFFFF; /* White background for active page */
    color: #0A0A2A; /* Dark blue text for active page */
    border-color: #0A0A2A; /* Dark blue border */
}

.pagination .page-item.disabled .page-link {
    background-color: #303050; /* Slightly lighter dark blue for disabled */
    color: #AAAAAA;
    border-color: #303050;
}

.pagination .page-item .page-link:hover {
    background-color: #1A1A3A; /* Slightly lighter dark blue on hover */
    border-color: #1A1A3A;
}

.pagination .page-item.active .page-link:hover {
    background-color: #F0F0F0;
    color: #0A0A2A;
}

/* Optional: Profile picture in ranking */
.rank-profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Responsive adjustments if needed */

/* Swiper Styles */
.swiper {
    width: 100%;
    height: auto; /* Let content define height */
    padding-bottom: 50px; /* Increased space for larger pagination dots and nav buttons */
    position: relative; /* Needed for absolute positioning of nav buttons */
    overflow: hidden; /* Added for coverflow */
}

.swiper-slide {
    text-align: center; /* Keep if individual items need centering, but ul will take width */
    font-size: 1rem; /* Match list item font size */
    background: transparent; /* Slides themselves are transparent */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top of the slide */

    /* --- Definitive Fix for Swiper Layout --- */
    width: 100%;
    height: auto;
    flex-shrink: 0;
    /* -------------------------------------- */

}

/* 개인 랭킹 swiper 슬라이드 - 한 번에 하나만 보이도록 */
#individual-main-content .swiper-slide,
#individual-main-content .individual-swiper .swiper-slide,
#individual-main-content .individual-weekly-swiper .swiper-slide,
#individual-main-content .individual-daily-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

#individual-main-content .swiper-wrapper,
#individual-main-content .individual-swiper .swiper-wrapper,
#individual-main-content .individual-weekly-swiper .swiper-wrapper,
#individual-main-content .individual-daily-swiper .swiper-wrapper {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#individual-main-content .individual-swiper,
#individual-main-content .individual-weekly-swiper,
#individual-main-content .individual-daily-swiper {
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 개인 랭킹 swiper-slide 내부 컨텐츠 너비 조정 */
#individual-main-content .swiper-slide > .ranking-table,
#individual-main-content .individual-swiper .swiper-slide > .ranking-table,
#individual-main-content .individual-weekly-swiper .swiper-slide > .ranking-table,
#individual-main-content .individual-daily-swiper .swiper-slide > .ranking-table {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
}

/* 팀 랭킹 swiper 슬라이드 - 한 번에 하나만 보이도록 */
#team-main-content .swiper-slide,
#team-main-content .school-swiper .swiper-slide,
#team-main-content .school-weekly-swiper .swiper-slide,
#team-main-content .school-daily-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

#team-main-content .swiper-wrapper,
#team-main-content .school-swiper .swiper-wrapper,
#team-main-content .school-weekly-swiper .swiper-wrapper,
#team-main-content .school-daily-swiper .swiper-wrapper {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#team-main-content .school-swiper,
#team-main-content .school-weekly-swiper,
#team-main-content .school-daily-swiper {
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 팀 랭킹 swiper-slide 내부 컨텐츠 너비 조정 */
#team-main-content .swiper-slide > .ranking-table,
#team-main-content .school-swiper .swiper-slide > .ranking-table,
#team-main-content .school-weekly-swiper .swiper-slide > .ranking-table,
#team-main-content .school-daily-swiper .swiper-slide > .ranking-table {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
}

.swiper-slide .list-group {
    width: 70%; /* Make ul take full width of slide */
    margin-top: 0; /* Remove any default top margin if present */
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Vertically center */
    width: 44px; /* Adjust size */
    height: 44px; /* Adjust size */
    margin-top: -25px; /* Adjust to align with content, considering padding-bottom of swiper */
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular buttons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px; /* Adjust arrow size */
    font-weight: bold;
}

/* Group Ranking Swiper Nav Buttons */
.group-ranking-card .swiper-button-next,
.group-ranking-card .swiper-button-prev {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: #0A0A2A; /* Dark blue arrow */
    border: 1px solid rgba(10, 10, 42, 0.1);
}
.group-ranking-card .swiper-button-next:hover,
.group-ranking-card .swiper-button-prev:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 10, 42, 0.2);
}

/* Individual Ranking Swiper Nav Buttons */
.individual-ranking-card .swiper-button-next,
.individual-ranking-card .swiper-button-prev {
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.9) 0%, rgba(10, 10, 42, 0.9) 100%);
    color: #FFFFFF; /* White arrow */
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.individual-ranking-card .swiper-button-next:hover,
.individual-ranking-card .swiper-button-prev:hover {
    background: linear-gradient(135deg, rgba(10, 35, 66, 1) 0%, rgba(10, 10, 42, 1) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 10, 42, 0.3);
}

.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}

/* Swiper Pagination Dots */
.swiper-pagination {
    position: absolute;
    bottom: 10px !important; /* Ensure it's at the bottom of the swiper container */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5; /* Added z-index */
}

.swiper-pagination-bullet {
    width: 12px; /* Size of dots */
    height: 12px; /* Size of dots */
    margin: 0 6px; /* Spacing between dots */
    opacity: 0.4;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

/* Group Ranking Swiper Pagination */
.group-ranking-card .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6); /* White dots */
    border-color: rgba(255, 255, 255, 0.3);
}
.group-ranking-card .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #FFFFFF; /* Active dot also white, but full opacity */
    border-color: #FFFFFF;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Individual Ranking Swiper Pagination */
.individual-ranking-card .swiper-pagination-bullet {
    background-color: rgba(10, 35, 66, 0.4); /* Dark blue dots */
    border-color: rgba(10, 35, 66, 0.2);
}
.individual-ranking-card .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #0A2342; /* Active dot also dark blue, full opacity */
    border-color: #0A2342;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.4);
}

/* Enhanced Hover Effects for List Items */
.ranking-list .list-group-item:hover {
    transform: translateX(5px); /* Slight shift on hover */
}

/* Group Ranking Hover */
.group-ranking-card .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter on hover */
}

/* Individual Ranking Hover */
.individual-ranking-card .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Slightly darker on hover */
}


/* Top 3 Rank Styling */
.ranking-list .list-group-item.rank-1,
.ranking-list .list-group-item.rank-2,
.ranking-list .list-group-item.rank-3 {
    font-weight: bold; /* Make text bolder */
}

/* Specific colors for top ranks - can be more elaborate */
/* Group Ranking Top 3 */
.group-ranking-card .list-group-item.rank-1 { background-color: rgba(255, 215, 0, 0.2); /* Gold-ish tint */ }
.group-ranking-card .list-group-item.rank-2 { background-color: rgba(192, 192, 192, 0.2); /* Silver-ish tint */ }
.group-ranking-card .list-group-item.rank-3 { background-color: rgba(205, 127, 50, 0.2); /* Bronze-ish tint */ }

/* Individual Ranking Top 3 */
.individual-ranking-card .list-group-item.rank-1 { background-color: rgba(255, 215, 0, 0.3); }
.individual-ranking-card .list-group-item.rank-2 { background-color: rgba(170, 170, 170, 0.3); } /* Darker silver for light bg */
.individual-ranking-card .list-group-item.rank-3 { background-color: rgba(188, 108, 37, 0.3); } /* Darker bronze for light bg */

/* Optional: Add a small badge for top ranks */
.ranking-list .list-group-item .rank-badge {
    display: inline-block;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    margin-left: 5px;
}
.group-ranking-card .list-group-item.rank-1 .rank-badge { background-color: #ffd700; color: #333; } /* Gold */
.group-ranking-card .list-group-item.rank-2 .rank-badge { background-color: #c0c0c0; color: #333; } /* Silver */
.group-ranking-card .list-group-item.rank-3 .rank-badge { background-color: #cd7f32; } /* Bronze */

.individual-ranking-card .list-group-item.rank-1 .rank-badge { background-color: #e6c300; } /* Darker Gold */
.individual-ranking-card .list-group-item.rank-2 .rank-badge { background-color: #a9a9a9; } /* Darker Silver */
.individual-ranking-card .list-group-item.rank-3 .rank-badge { background-color: #b87328; } /* Darker Bronze */

/* Remove old pagination styles if they conflict or are no longer needed */
/* The .pagination styles might be okay to keep if used elsewhere, but for rank.html they are replaced by Swiper's */

/* Explanation Card Styles - More Formal/Financial */
.explanation-card {
    background-color: #ffffff; /* White background */
    border: 1px solid #e0e0e0; /* Lighter, more subtle border */
    border-radius: 0.25rem; /* Slightly less rounded corners */
    color: #495057; /* Softer text color */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

.explanation-card .card-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Standard professional font */
    color: #343a40; /* Dark gray, less stark than black */
    font-size: 1.5rem; /* Slightly smaller title */
    font-weight: 600; /* Semi-bold for clarity */
    border-bottom: 1px solid #f0f0f0; /* Subtle separator for title */
    padding-bottom: 0.75rem;
}

.explanation-card ul {
    padding-left: 0; /* Remove default ul padding */
}

.explanation-card ul li {
    font-size: 0.9rem; /* Slightly smaller text for a denser, more formal look */
    line-height: 1.7;
    color: #555; /* Medium gray text */
    padding: 0.3rem 0; /* Add some vertical spacing between items */
}

.explanation-card ul li strong {
    color: #333; /* Slightly darker for emphasis */
    font-weight: 600;
}

.explanation-card .rank-formula {
    background-color: #f7f7f9; /* Very light gray for code block */
    padding: 0.3em 0.5em;
    border-radius: 0.2rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* Common monospace stack */
    color: #505050; /* Darker gray for code text, less vibrant */
    font-size: 0.85em;
    border: 1px solid #e8e8e8; /* Subtle border for the code block */
}


/* Mobile Responsive for Unified Card */
@media (max-width: 768px) {
    .unified-ranking-card {
        margin: 1rem 0.5rem;
        border-radius: 0;
    }
    
    .main-tab-container {
        padding: 1rem;
        margin-bottom: 0;
    }
    
    .main-tabs .nav-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .main-tabs .nav-link.active {
        margin-bottom: -1px;
    }
    
    .ranking-tabs {
        padding: 0.75rem 1rem 0 1rem;
    }
    
    .main-tab-content .tab-pane {
        padding: 1rem;
        padding-top: 3.5rem; /* 플로팅 배지를 위한 상단 여백 */
    }
    
    .ranking-guide-btn {
        top: 1rem;
        right: 1rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        z-index: 15;
    }
    
    .floating-rank-badge {
        position: absolute !important;
        top: 0.5rem !important;
        right: 1rem !important;
        padding: 0.5rem 0.75rem;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.85em;
        align-items: center;
        max-width: 180px !important; /* 모바일에서 최대 너비 제한 */
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
        box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                    0 2px 4px rgba(10, 35, 66, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(10, 35, 66, 0.12) !important;
    }
    
    /* 모바일에서 활동 랭킹 배지 최대 너비 */
    #activity-main-content .floating-rank-badge {
        max-width: 200px !important; /* 활동 랭킹은 텍스트가 더 길 수 있음 */
    }
    
    /* 모바일에서 인라인 공유 버튼 스타일 */
    .btn-share-icon-inline {
        height: 1.5rem;
        width: 1.5rem;
        font-size: 0.8rem;
        margin-right: 0.2rem;
    }
    
    .floating-badge-content {
        gap: 0.4rem;
        font-size: 0.85em;
        align-items: center;
    }
    
    .floating-badge-content i {
        font-size: 0.85em;
    }
    
    .floating-badge-text {
        font-size: 0.75em;
    }
    
    .floating-badge-rank {
        font-size: 0.8em;
    }
    
    .main-tabs {
        flex-direction: row;
        gap: 0.25rem;
        justify-content: center;
        align-items: center;
    }
    
    .main-tabs .nav-item {
        flex: 0 0 auto;
        max-width: none;
    }
    
    .main-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
    
    .main-tabs .nav-link i {
        font-size: 0.9rem;
        margin-right: 0.3rem;
    }
    
    .main-tab-content {
        padding: 1.5rem 0;
    }
    
    .main-tabs .nav-link::after {
        bottom: -1rem;
    }
    
    /* Ranking tabs mobile styles */
    .ranking-tabs {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(10, 35, 66, 0.1);
    }
    
    .ranking-tabs .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .unified-ranking-card {
        margin: 0.5rem 0.25rem;
        border-radius: 0;
    }
    
    .main-tab-container {
        padding: 0.75rem;
        margin-bottom: 0;
    }
    
    .main-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .ranking-tabs {
        padding: 0.625rem 0.75rem 0 0.75rem;
    }
    
    .main-tab-content .tab-pane {
        padding: 0.75rem;
        padding-top: 3rem; /* 플로팅 배지를 위한 상단 여백 */
    }
    
    .ranking-guide-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 1.875rem;
        height: 1.875rem;
        font-size: 0.85rem;
        z-index: 15;
    }
    
    /* 작은 모바일에서 인라인 공유 버튼 스타일 */
    .btn-share-icon-inline {
        height: 1.375rem;
        width: 1.375rem;
        font-size: 0.75rem;
        margin-right: 0.15rem;
    }
    
    .floating-rank-badge {
        position: absolute !important;
        top: 0.5rem !important;
        right: 0.75rem !important;
        padding: 0.4rem 0.6rem;
        z-index: 10 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.8em;
        max-width: 160px !important; /* 작은 모바일에서 최대 너비 제한 */
        border-radius: 10px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
        box-shadow: 0 4px 16px rgba(10, 35, 66, 0.12),
                    0 2px 4px rgba(10, 35, 66, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(10, 35, 66, 0.12) !important;
    }
    
    /* 작은 모바일에서 활동 랭킹 배지 최대 너비 */
    #activity-main-content .floating-rank-badge {
        max-width: 180px !important; /* 활동 랭킹은 텍스트가 더 길 수 있음 */
    }
    
    .floating-badge-content {
        gap: 0.35rem;
        font-size: 0.8em;
    }
    
    .floating-badge-content i {
        font-size: 0.8em;
    }
    
    .floating-badge-text {
        font-size: 0.7em;
    }
    
    .floating-badge-rank {
        font-size: 0.75em;
    }
    
    .main-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }
    
    .main-tabs .nav-link i {
        font-size: 0.85rem;
        margin-right: 0.3rem;
    }
    
    .main-tab-content {
        padding: 1rem 0;
    }
    
    .main-tabs .nav-link::after {
        bottom: -0.75rem;
    }
    
    /* Ranking tabs small mobile styles */
    .ranking-tabs {
        margin-bottom: 1.25rem;
        border-bottom: 1px solid rgba(10, 35, 66, 0.1);
    }
    
    .ranking-tabs .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        letter-spacing: 0.2px;
    }
    
    .ranking-tabs .nav-link::after {
        height: 1.5px;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 767px) {
    .ranking-card, .group-ranking-card {
        margin-bottom: 20px;
        padding: 20px 16px;
        width: 94%;
        border-radius: 12px;
    }
    
    .ranking-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .ranking-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .ranking-item {
        padding: 5px 6px;
        margin: 3px 0;
        border-radius: 10px;
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .rank-position {
        width: 20px;
        height: 20px;
        font-size: 0.62rem;
        margin-right: 5px;
    }
    
    .rank-name {
        font-size: 0.80rem;
        line-height: 1.1;
        margin-bottom: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rank-details {
        font-size: 0.56rem;
        line-height: 1.06;
        margin-top: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rank-assets {
        font-size: 0.72rem;
        padding: 3px 5px;
        margin-top: 0;
        width: auto;
        text-align: right;
        white-space: nowrap;
        margin-left: auto;
        flex: 0 0 auto;
    }

    /* Smaller badges on mobile */
    .rank-badge {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
        padding: 0.25rem;
        margin-left: 0.5rem;
    }
    
    .rank-badge i {
        font-size: 0.9rem;
    }
    
    .rank-info {
        margin-left: 3px;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    /* Team ranking smaller than individual on mobile */
    .group-ranking-card .ranking-item {
        padding: 4px 5px;
        gap: 3px;
    }
    .group-ranking-card .rank-position {
        width: 16px;
        height: 16px;
        font-size: 0.52rem;
        margin-right: 5px;
    }
    .group-ranking-card .rank-name {
        font-size: 0.72rem;
        line-height: 1.08;
    }
    .group-ranking-card .rank-details {
        font-size: 0.50rem;
        line-height: 1.04;
    }
    .group-ranking-card .rank-assets {
        font-size: 0.64rem;
        padding: 3px 4px;
    }
    .group-ranking-card .rank-badge {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
        padding: 0.25rem;
        margin-left: 0.5rem;
    }
    
    .group-ranking-card .rank-badge i {
        font-size: 0.9rem;
    }
    
    /* Mobile crown adjustment - only for individual ranking (active slide only) */
    .individual-ranking-card .individual-swiper .swiper-slide-active .ranking-item.first-place::after {
        font-size: 1rem;
        top: -6px;
        right: 8px;
        pointer-events: none; /* avoid hover conflicts */
    }
    
    /* Mobile tooltip adjustments */
    .ranking-item[data-profit]:hover::after {
        font-size: 11px;
        padding: 6px 10px;
        top: -35px;
    }
}

@media (max-width: 480px) {
    .ranking-card, .group-ranking-card {
        padding: 14px;
        margin: 10px auto;
        width: 92%;
    }
    
    .ranking-title {
        font-size: 1.45rem;
    }
    
    .ranking-subtitle {
        font-size: 1rem;
    }
    
    .ranking-item {
        padding: 4px 5px;
        flex-direction: row;     /* keep row layout */
        align-items: center;
        flex-wrap: nowrap;       /* no wrapping */
        gap: 4px;                /* tighter gap */
    }
    
    .rank-position {
        width: 17px;
        height: 17px;
        font-size: 0.54rem;
        margin-right: 5px;
        margin-bottom: 0;
        align-self: center;
    }
    
    .rank-info {
        margin-left: 3px;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    
    .rank-name {
        font-size: 0.70rem;
        line-height: 1.06;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rank-details {
        font-size: 0.50rem;
        line-height: 1.04;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rank-assets {
        font-size: 0.72rem;
        padding: 3px 5px;
        font-size: 0.66rem;
        padding: 3px 4px;
        margin-top: 0;
        margin-left: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .rank-badge {
        width: 1.375rem;
        height: 1.375rem;
        min-width: 1.375rem;
        min-height: 1.375rem;
        padding: 0.2rem;
        margin-left: 0.4rem;
    }
    
    .rank-badge i {
        font-size: 0.8rem;
    }

    /* Team ranking even smaller on very small screens */
    .group-ranking-card .ranking-item { padding: 3px 4px; gap: 3px; }
    .group-ranking-card .rank-position { width: 15px; height: 15px; font-size: 0.50rem; margin-right: 4px; }
    .group-ranking-card .rank-name { font-size: 0.66rem; line-height: 1.04; }
    .group-ranking-card .rank-details { font-size: 0.46rem; line-height: 1.02; }
    .group-ranking-card .rank-assets { font-size: 0.60rem; padding: 2px 3px; }
    .group-ranking-card .rank-badge {
        width: 1.375rem;
        height: 1.375rem;
        min-width: 1.375rem;
        min-height: 1.375rem;
        padding: 0.2rem;
        margin-left: 0.4rem;
    }
    
    .group-ranking-card .rank-badge i {
        font-size: 0.8rem;
    }
    .group-ranking-card .rank-info { margin-left: 3px; }
}

/* School Ranking Item Hover */
.school-ranking-item:hover {
    background: rgba(10, 35, 66, 0.05) !important;
    border-bottom-color: rgba(10, 35, 66, 0.2) !important;
}

/* School Users Modal Styles */
.school-users-modal {
    border-radius: 0;
    border: 1px solid rgba(10, 35, 66, 0.12);
    z-index: 1061 !important;
    position: relative;
}

#schoolUsersModal {
    z-index: 1060 !important;
}

#schoolUsersModal.show {
    z-index: 1060 !important;
}

.school-users-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    padding: 1.25rem 1.5rem;
}

.school-users-modal .modal-title {
    color: #0A2342;
    font-weight: 600;
    font-size: 1.125rem;
}

.school-users-modal .modal-body {
    padding: 0;
}

.school-users-list {
    max-height: 60vh;
    overflow-y: auto;
}

.school-user-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(10, 35, 66, 0.08);
    transition: background 0.2s ease;
}

.school-user-item:hover {
    background: rgba(10, 35, 66, 0.03);
}

.school-user-item:last-child {
    border-bottom: none;
}

.school-user-item .user-rank {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    min-width: 2.5rem;
    text-align: left;
}

.school-user-item .user-info {
    flex: 1;
    min-width: 0;
    margin-left: 1rem;
}

.school-user-item .user-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0A2342;
}

.school-user-item .user-assets {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0A2342;
    min-width: 6rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.school-user-item .user-return {
    font-size: 0.9375rem;
    font-weight: 600;
    min-width: 5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .school-users-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .school-users-modal .modal-header {
        padding: 1rem;
    }
    
    .school-users-modal .modal-title {
        font-size: 1rem;
    }
    
    .school-user-item {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
    }
    
    .school-user-item .user-rank {
        min-width: 2rem;
        font-size: 0.8rem;
    }
    
    .school-user-item .user-info {
        margin-left: 0.75rem;
    }
    
    .school-user-item .user-name {
        font-size: 0.875rem;
    }
    
    .school-user-item .user-assets {
        font-size: 0.875rem;
        min-width: 5rem;
    }
    
    .school-user-item .user-return {
        font-size: 0.875rem;
        min-width: 4rem;
    }
}

@media (max-width: 480px) {
    .school-user-item {
        padding: 0.75rem;
    }
    
    .school-user-item .user-rank {
        min-width: 1.75rem;
        font-size: 0.75rem;
    }
    
    .school-user-item .user-name {
        font-size: 0.8125rem;
    }
    
    .school-user-item .user-assets {
        font-size: 0.8125rem;
        min-width: 4.5rem;
    }
    
    .school-user-item .user-return {
        font-size: 0.8125rem;
        min-width: 3.5rem;
    }
}
