@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #f8faf9;
    --text-color: #1c2e24;
    --text-muted: #5e7368;
    --primary: #27d06e;
    --primary-hover: #1eb85e;
    --primary-light: #e8f9ef;
    --primary-border: #d2f4e0;
    --card-bg: #ffffff;
    --border-color: #e2e8e5;
    --shadow: 0 10px 30px rgba(39, 208, 110, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(39, 208, 110, 0.1), 0 1px 10px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
body.dark-theme {
    --bg-color: #0d1310;
    --text-color: #f0f7f3;
    --text-muted: #8ba096;
    --primary: #27d06e;
    --primary-hover: #34e27c;
    --primary-light: rgba(39, 208, 110, 0.12);
    --primary-border: rgba(39, 208, 110, 0.25);
    --card-bg: #141d18;
    --border-color: #1f2d26;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 40px rgba(39, 208, 110, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(39, 208, 110, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(39, 208, 110, 0.12) 0%, transparent 45%);
}

body.dark-theme {
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(39, 208, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

/* Integrated Glass Navbar Header */
.top-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 24px;
    margin-top: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.top-bar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Modern Pill Dark Mode Toggle Button */
.theme-toggle-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--primary-border);
    color: var(--primary);
}

.theme-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body:not(.dark-theme) .moon-icon {
    display: inline-flex;
}
body:not(.dark-theme) .sun-icon {
    display: none;
}

body.dark-theme .sun-icon {
    display: inline-flex;
}
body.dark-theme .moon-icon {
    display: none;
}

/* Clean Main Navigation Links */
.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
}

/* ============================
   HAMBURGER MENU – Mobile Navbar
   ============================ */

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-color);
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-drawer {
    display: none;
}

/* ============================
   RESPONSIVE – Tablet (≤ 900px)
   ============================ */

@media (max-width: 900px) {
    .container {
        padding: 24px 16px;
        gap: 24px;
    }

    .portal-grid {
        display: flex;
        flex-direction: column;
    }

    .activity-row {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 1.4rem;
    }
}

/* ============================
   RESPONSIVE – Mobile (≤ 640px)
   ============================ */

@media (max-width: 640px) {
    /* Navbar: compact pill, hide nav links inline, show hamburger */
    .top-bar {
        grid-template-columns: auto 1fr auto;
        padding: 10px 16px;
        border-radius: 16px;
        margin-top: 10px;
        position: relative;
    }

    .main-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-links {
        gap: 10px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .theme-toggle-btn {
        font-size: 0;
        padding: 6px 10px;
        gap: 0;
    }

    .theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Mobile nav drawer – slides down below navbar */
    .nav-drawer {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow);
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 100;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
    }

    .nav-drawer.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-drawer .nav-link {
        display: block;
        padding: 11px 16px;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-muted);
        text-decoration: none;
        transition: var(--transition);
    }

    .nav-drawer .nav-link:hover,
    .nav-drawer .nav-link:active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .nav-drawer .nav-link::after {
        display: none;
    }

    /* Container */
    .container {
        padding: 16px 12px;
        gap: 20px;
    }

    /* Show shop first, info sidebar second on mobile */
    .portal-grid {
        display: flex;
        flex-direction: column;
    }

    .portal-info {
        order: 2;
        width: 100%;
    }

    .shop-card {
        order: 1;
        width: 100%;
    }

    /* Header / Logo */
    .logo {
        max-width: 180px;
    }

    .player-counter {
        font-size: 0.82rem;
        padding: 8px 18px;
        gap: 8px;
    }

    /* Shop card */
    .shop-card {
        padding: 24px 18px;
    }

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

    /* Payment grid – 2 columns on mobile */
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Submit button */
    .submit-btn {
        font-size: 1.05rem;
        padding: 15px;
    }

    /* Stats grid – 1 column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Staff cards – full width */
    .staff-card {
        min-width: unset;
        width: 100%;
    }

    .staff-grid {
        flex-direction: column;
        align-items: stretch;
    }

    /* Community banner */
    .community-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px 100px;
    }

    .community-title {
        font-size: 1.6rem;
    }

    .discord-btn {
        margin: 0 auto;
    }

    .community-graphic {
        max-height: 90px;
    }

    /* Activity cards */
    .activity-card {
        padding: 20px 16px 16px;
    }

    /* Welcome card */
    .welcome-card {
        padding: 24px 20px;
    }

    .welcome-title {
        font-size: 1.3rem;
    }

    /* IP widget – tighter */
    .ip-widget {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ip-copy-button {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    /* Podium */
    .podium-container {
        gap: 8px;
    }

    .podium-avatar { width: 44px; height: 44px; }
    .step-gold .podium-avatar { width: 54px; height: 54px; }
    .podium-nick { font-size: 0.75rem; max-width: 70px; }
    .podium-spent { font-size: 0.78rem; }
    .podium-rank { font-size: 1.6rem; }
    .step-gold .podium-rank { font-size: 2rem; }
    .step-gold .podium-block { height: 100px; }
    .step-silver .podium-block { height: 76px; }
    .step-bronze .podium-block { height: 58px; }

    /* Footer */
    .shop-footer {
        gap: 8px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}



.social-icon {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: scale(1.2) translateY(-2px);
}

.social-icon.discord:hover {
    color: #5865f2;
}

.social-icon.youtube:hover {
    color: #ff0000;
}

.social-icon.tiktok:hover {
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1300px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Section */
header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Players Online Counter */
.player-counter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50px;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 50px;
    animation: pulse 2s infinite;
    opacity: 0.5;
}

.player-count {
    color: var(--text-color);
    font-weight: 800;
    font-family: var(--font-heading);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Shop Card */
.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.shop-card:hover {
    box-shadow: var(--shadow-hover);
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #52eb93);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slider Style */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.slider-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.slider-values {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.value-vpln {
    color: var(--primary);
}

.value-pln {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e2e8e5;
    outline: none;
    transition: var(--transition);
}

.range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 3px 8px rgba(39, 208, 110, 0.4);
    margin-top: -7px;
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 3px 8px rgba(39, 208, 110, 0.4);
    transition: transform 0.1s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
}

/* User Form */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 16px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 208, 110, 0.15);
}

/* In dark mode keep background dark on focus */
body.dark-theme .input-wrapper:focus-within {
    background: var(--bg-color);
}

.avatar-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--border-color);
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar-preview.loading {
    opacity: 0.5;
    animation: pulse 1.5s infinite;
}

.nickname-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.nickname-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

/* Payment Gateway Options */
.payment-methods-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

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

.payment-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
}

.payment-option:hover {
    border-color: var(--primary-border);
    background: var(--primary-light);
}

.payment-option input {
    display: none;
}

.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.payment-logo {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
}

.payment-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.payment-option.selected .payment-name {
    color: var(--primary-hover);
}

/* Action Button */
.submit-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(39, 208, 110, 0.25);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(39, 208, 110, 0.35);
}

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

/* Community Section at the bottom */
.community-banner {
    background: linear-gradient(135deg, #27d06e 0%, #17ab55 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(23, 171, 85, 0.2);
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.community-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    flex: 1;
}

.community-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.discord-btn {
    background: #ffffff;
    color: #17ab55;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: max-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.discord-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--primary-light);
}

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

.community-graphic-container {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.community-graphic {
    max-height: 160px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
    transform: none;
    transition: none;
}



/* Shop Footer */
.shop-footer {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-hover);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 0.8rem;
    color: #a0b0a8;
}

/* Modals for Terms & Regulations */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 46, 36, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 35px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(28, 46, 36, 0.15);
    border: 1px solid var(--border-color);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    color: #e74c3c;
    background: #fdf2f2;
    transform: rotate(90deg);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    padding-right: 15px;
    color: var(--text-color);
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f3;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c3d2ca;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0b0a8;
}

.modal-body .rule-intro {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 25px 0 10px 0;
    color: var(--text-color);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-body li {
    position: relative;
    padding-left: 5px;
}

.modal-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.modal-body a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Server Staff Section */
.staff-section {
    margin-top: 10px;
    width: 100%;
}

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

.staff-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 290px;
    transition: var(--transition);
}

.staff-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ============================
   PORTAL GRID – Two Column Layout
   ============================ */

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* ============================
   LEFT COLUMN – Server Info Sidebar
   ============================ */

.portal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Welcome Card */
.welcome-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #1eb85e, #0fa84e);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 14px;
}

.highlight-text {
    color: var(--primary);
    position: relative;
}

.welcome-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* IP Widget */
.ip-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-color);
    border: 1.5px solid var(--primary-border);
    border-radius: 14px;
    padding: 14px 18px;
    transition: var(--transition);
}

.ip-widget:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 208, 110, 0.1);
}

.ip-indicator {
    width: 10px;
    height: 10px;
    min-width: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 3px rgba(39, 208, 110, 0.25);
}

.ip-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.5;
}

.ip-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ip-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ip-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-copy-button {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.ip-copy-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(39, 208, 110, 0.35);
}

.ip-copy-button.copied {
    background: #1a9e52;
    transform: none;
    box-shadow: none;
}

/* Benefits Grid */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
}

.benefit-details h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.benefit-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}



.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #f1f5f3;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
}

.staff-role {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    width: max-content;
}

.role-owner {
    background: #fef9c3;
    color: #ca8a04;
}

.role-designer {
    background: #e6faf4;
    color: #1fa870;
    border: 1px solid #43db95;
}

.role-developer {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #c084fc;
}

/* Custom Validation Message Styling */
.input-error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    padding-left: 5px;
}

.input-error-message.visible {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper.error-state {
    border-color: #e74c3c;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   STATS GRID – Server Statistics
   ============================ */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
}

.stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
}

/* ============================
   ACTIVITY ROW – Purchases & Top Spenders
   ============================ */

.activity-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px 28px 20px;
    box-shadow: var(--shadow);
}

.activity-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-color);
}

.activity-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.activity-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

/* --- Purchase Rows --- */

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchase-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid transparent;
    transition: var(--transition);
}

.purchase-row:hover {
    border-color: var(--primary-border);
    background: var(--primary-light);
}

.purchase-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8e5;
    image-rendering: pixelated;
}

.purchase-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.purchase-nick {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-time {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.purchase-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.purchase-vpln {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
}

.purchase-pln {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 1px;
}





/* Centered Card Headers & Titles */
.ticker-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
}

.ticker-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ============================
   3D OLYMPIC PODIUM – Top 3 Spenders
   ============================ */

.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding: 20px 10px 10px;
    max-width: 700px;
    margin: 0 auto;
}

.podium-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition);
}

.podium-step:hover {
    transform: translateY(-6px);
}

.podium-crown {
    font-size: 1.8rem;
    margin-bottom: -6px;
    filter: drop-shadow(0 4px 6px rgba(255, 215, 0, 0.4));
    animation: bounceCrown 2s infinite ease-in-out;
}

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

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: var(--border-color);
    image-rendering: pixelated;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.step-gold .podium-avatar {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.35);
    border: 2px solid #ffd700;
}

.podium-nick {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.step-gold .podium-nick {
    font-size: 1.1rem;
    color: #eab308;
}

.podium-spent {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 14px;
    white-space: nowrap;
}

.step-gold .podium-spent {
    font-size: 1.05rem;
    color: #eab308;
}

/* Podium Blocks (Different Heights for 1st, 2nd, 3rd) */
.podium-block {
    width: 100%;
    border-radius: 16px 16px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.step-gold .podium-block {
    height: 140px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.25) 0%, rgba(234, 179, 8, 0.08) 100%);
    border-color: rgba(234, 179, 8, 0.4);
}

.step-silver .podium-block {
    height: 105px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.25) 0%, rgba(148, 163, 184, 0.08) 100%);
    border-color: rgba(148, 163, 184, 0.4);
}

.step-bronze .podium-block {
    height: 80px;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.25) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-color: rgba(217, 119, 6, 0.4);
}

.podium-rank {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1;
    opacity: 0.85;
}

.step-gold .podium-rank { color: #eab308; font-size: 2.8rem; }
.step-silver .podium-rank { color: #94a3b8; }
.step-bronze .podium-rank { color: #d97706; }

.podium-empty-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 20px;
}



.ticker-wrapper {
    overflow: hidden;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

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

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 110px;
    transition: var(--transition);
    cursor: default;
    flex-shrink: 0;
}

.ticker-item:hover {
    border-color: var(--primary-border);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.ticker-head {
    width: 72px;
    height: 72px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.ticker-nick {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color);
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-amount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticker-coin {
    font-size: 0.9rem;
}

/* Scroll Navigation Highlight Animation */
.section-highlight {
    animation: highlightGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes highlightGlow {
    0% {
        box-shadow: var(--shadow);
    }
    40% {
        box-shadow: 0 0 35px rgba(39, 208, 110, 0.4), 0 0 5px rgba(39, 208, 110, 0.8);
        transform: translateY(-4px);
    }
    100% {
        box-shadow: var(--shadow);
        transform: translateY(0);
    }
}

/* Footer Author Credit Styling */
.footer-author {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pulsing-heart {
    display: inline-block;
    color: #27d06e;
    animation: heartPulse 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.22); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Tooltip Styling */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--border-color);
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    transition: var(--transition);
}

.tooltip-container:hover .tooltip-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: left;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: var(--shadow-hover);
    position: absolute;
    z-index: 50;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}


