/* Core CSS System for HeartTray SMP Web Interface */

:root {
    --bg-primary: #040308;
    --bg-secondary: #0a0814;
    --bg-card: rgba(14, 11, 28, 0.45);
    --bg-card-hover: rgba(22, 18, 43, 0.6);
    --border-color: rgba(119, 78, 255, 0.15);
    --border-hover: rgba(119, 78, 255, 0.35);
    
    /* Neon gradients & glow colors */
    --clr-neon-purple: #8b5cf6;
    --clr-neon-cyan: #06b6d4;
    --clr-neon-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030008;
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh; 
    -ms-overflow-style: none;  /* Hide scrollbars for clean presentation */
    scrollbar-width: none;
    line-height: 1.6;
}

body::-webkit-scrollbar {
    display: none; /* Hide Chrome scrollbar */
}

/* Background Decorations */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: pulseGlow 18s infinite alternate ease-in-out;
}

.bg-glow-1 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -25vw;
    left: -15vw;
}

.bg-glow-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(0,0,0,0) 70%);
    bottom: -15vw;
    right: -15vw;
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1) translate(0px, 0px);
    }
    100% {
        transform: scale(1.15) translate(30px, -20px);
    }
}

.bg-image {
    display: none;
}

.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.15;
    pointer-events: none;
}

.scroll-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 300vw;
    height: 100vh;
    will-change: transform;
    /* Soft elastic ease transition for scrolling/clicking navigation */
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5vw;
    overflow: hidden;
    position: relative;
}

.section-container {
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-y: auto;
        max-height: 90vh;
        padding-right: 10px;
    }
}

/* Section Navigation Dots */
.nav-dots {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot:hover {
    background-color: var(--clr-neon-purple);
    transform: scale(1.3);
}

.nav-dot.active {
    background-color: var(--clr-neon-cyan);
    box-shadow: 0 0 10px var(--clr-neon-cyan);
    transform: scale(1.5);
    height: 24px;
    border-radius: 5px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--clr-neon-purple) 0%, 
        var(--clr-neon-cyan) 50%, 
        var(--clr-neon-purple) 100%
    );
    background-size: 200% 100%;
    box-shadow: 0 0 12px var(--clr-neon-cyan), 0 0 20px rgba(6, 182, 212, 0.4);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: progressFlow 2s linear infinite;
}

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

/* ================= SECTION 1: HERO & INTRO ================= */

.hero-info-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tag-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.neon-text {
    background: linear-gradient(135deg, var(--clr-neon-purple), var(--clr-neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3));
}

.server-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.feat-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-card:hover {
    border-color: var(--border-hover);
    transform: translateX(10px);
    background: var(--bg-card-hover);
}

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-neon-purple);
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feat-icon svg {
    width: 22px;
    height: 22px;
}

.feat-meta h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.feat-meta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================= WIDGET BOX: COPY IP (CENTER/RIGHT) ================= */

.hero-widget-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-box {
    background: linear-gradient(145deg, rgba(14, 11, 28, 0.7) 0%, rgba(6, 5, 12, 0.9) 100%);
    border: 2px solid #000; /* Dark frame like wireframe */
    border-radius: 24px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.widget-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--clr-neon-purple), var(--clr-neon-cyan));
}

.widget-box:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
}

.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: background-color 0.5s ease;
}

.status-dot.pulsing {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: dotPulse 2s infinite;
}

.status-dot.offline {
    background-color: var(--clr-neon-red);
    box-shadow: 0 0 10px var(--clr-neon-red);
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
}

/* IP Bar - custom rounded layout from sketch */
.ip-address-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 9999px; /* Rounded pill style from wireframe */
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.ip-address-bar:hover, .ip-address-bar:focus-within {
    border-color: var(--clr-neon-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2), inset 0 2px 5px rgba(0,0,0,0.5);
}

.ip-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.btn-copy {
    background: linear-gradient(135deg, var(--clr-neon-purple) 0%, rgba(139, 92, 246, 0.7) 100%);
    border: none;
    color: white;
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.btn-copy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #a78bfa 0%, var(--clr-neon-purple) 100%);
}

.btn-copy:active {
    transform: scale(0.98);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.widget-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-navigate {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.btn-navigate:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-navigate:hover .arrow-right {
    transform: translateX(4px);
}

.arrow-right {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* ================= SECTION 2: LEADERBOARD ================= */

.section-leaderboard {
    background: radial-gradient(circle at 70% 30%, rgba(22, 12, 45, 0.4) 0%, transparent 60%);
}

.section-leaderboard .section-container {
    grid-template-columns: 1fr; /* Leaderboard takes full width inside section container */
}

.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(25px);
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Search bar styling */
.search-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 18px !important;
    height: 18px !important;
}

#inputSearchPlayer {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#inputSearchPlayer:focus {
    outline: none;
    border-color: var(--clr-neon-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Table styling */
.table-container {
    overflow-x: auto;
    width: 100%;
    height: 420px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #0e0b1c; /* Solid dark purple matching the glass card background */
}

.leaderboard-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    vertical-align: middle;
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Player cells & Avatars */
.player-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    image-rendering: pixelated;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.player-name {
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Rank column styles */
.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rank-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.rank-3 {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(180, 83, 9, 0.3);
}

.hearts-gained-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f43f5e;
    font-weight: 700;
}

.heart-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    animation: heartPulse 1.5s infinite alternate ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.max-hp-badge {
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Skeleton Loading styles */
.skeleton-row td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.skeleton-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
}

.skeleton-name {
    width: 120px;
    height: 16px;
}

.skeleton-hearts {
    width: 60px;
    height: 16px;
}

.skeleton-hp {
    width: 80px;
    height: 24px;
    border-radius: 6px;
}

.no-results {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.no-results.hidden {
    display: none;
}

/* Footer of leaderboard */
.leaderboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.db-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.db-status-badge .status-dot {
    width: 6px;
    height: 6px;
}

.status-dot.green {
    background-color: #10b981;
}

.status-dot.yellow {
    background-color: #f59e0b;
    animation: dotPulse 1.5s infinite;
}

.btn-back-hero {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-back-hero:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-back-hero:hover .arrow-left {
    transform: translateX(-4px);
}

.arrow-left {
    transition: transform 0.3s ease;
}

/* Beta tag styling next to title */
.beta-tag {
    font-size: 0.95rem;
    font-weight: 800;
    vertical-align: middle;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
    letter-spacing: 0.05em;
    display: inline-block;
    line-height: 1;
}

/* Discord button styling */
.btn-discord {
    background: #5865f2;
    border: none;
    color: white !important;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752c4;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.btn-discord:active {
    transform: translateY(0);
}

.btn-discord svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Event Banner Card styling */
.event-banner-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
}

.event-icon-gold {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.event-icon-gold svg {
    width: 24px;
    height: 24px;
    animation: goldShimmer 2.5s infinite alternate ease-in-out;
}

@keyframes goldShimmer {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 1px rgba(245, 158, 11, 0.4));
    }
    100% {
        transform: scale(1.1) rotate(6deg);
        filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
    }
}

.event-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.15em;
}

.event-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.highlight-date {
    color: #fbbf24;
    font-weight: 700;
}

.highlight-top {
    color: #06b6d4;
    font-weight: 700;
}

.highlight-prize {
    color: #4ade80;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    font-size: 1rem;
}

/* Animations Helper */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hidden {
    display: none !important;
}

/* Table row layout transitions */
.leaderboard-table tbody tr {
    will-change: transform;
}

/* Flash green/red keyframes */
.hearts-gained-wrapper.flash-increase {
    animation: flashGreen 1.5s ease-out;
}

.hearts-gained-wrapper.flash-decrease {
    animation: flashRed 1.5s ease-out;
}

@keyframes flashGreen {
    0% {
        color: #22c55e;
        text-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
        transform: scale(1.12);
    }
    100% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}

@keyframes flashRed {
    0% {
        color: #ef4444;
        text-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
        transform: scale(0.92);
    }
    100% {
        color: inherit;
        text-shadow: none;
        transform: scale(1);
    }
}

/* ================= SECTION 3: SERVER INFO ================= */
.section-info {
    background: radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.section-info .section-container {
    grid-template-columns: 1fr; /* Takes full width of page grid inside container */
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 968px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem 2.2rem;
    backdrop-filter: blur(25px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 0.8s ease-out;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.info-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    word-spacing: 0.15em;
    color: var(--text-primary);
}

.info-card-icon {
    width: 28px;
    height: 28px;
}

.text-cyan {
    color: var(--clr-neon-cyan);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.text-purple {
    color: var(--clr-neon-purple);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.info-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cost table */
.cost-table-wrapper {
    width: 100%;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cost-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.cost-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
    vertical-align: middle;
}

.cost-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.cost-badge {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    margin-right: 0.6rem;
}

.cost-badge.highlight-gold {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Command List */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    transition: all 0.3s ease;
}

.command-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(0, 0, 0, 0.25);
    transform: translateX(4px);
}

.command-syntax {
    font-family: monospace;
    background: rgba(139, 92, 246, 0.12);
    color: #c084fc;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.3rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
}

.info-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.btn-info-back {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-info-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-info-back:hover .arrow-left {
    transform: translateX(-4px);
}


