:root {
            --utar-navy: #131943;
            --utar-navy-dark: #0a0d26;
            --utar-navy-card: #161c4a;
            --utar-yellow: #fff200;
            --utar-red: #e30613;
            --border-color: #2b3573;
            --discord-color: #5865F2;
        }

        body {
            background-color: var(--utar-navy-dark);
            color: #ffffff;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* Navigation */
        .navbar {
            background-color: var(--utar-navy);
            border-bottom: 3px solid var(--utar-yellow);
        }

        .navbar-brand {
            color: #ffffff !important;
            letter-spacing: 1px;
            font-size: 1.15rem;
            cursor: pointer;
        }

        .brand-logo-img {
            height: 38px;
            width: auto;
            object-fit: contain;
        }

        .nav-link {
            color: #d1d5db !important;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .nav-link.active, .nav-link:hover {
            color: var(--utar-yellow) !important;
        }

        /* Hero Header */
        .hero-header {
            background: linear-gradient(rgba(10, 13, 38, 0.88), rgba(10, 13, 38, 0.98)), 
                        url('valo.jpg');
            background-size: cover;
            background-position: center;
            padding: 60px 0 40px;
            border-bottom: 1px solid var(--border-color);
        }

        .text-yellow {
            color: var(--utar-yellow) !important;
        }

        .bg-yellow {
            background-color: var(--utar-yellow) !important;
            color: #000000 !important;
        }

        .border-yellow {
            border-color: var(--utar-yellow) !important;
        }

        /* Page View Switching */
        .page-view {
            display: none;
        }

        .page-view.active-view {
            display: block;
        }

        /* ================= 1. GAMES MODULE STYLES ================= */
        .game-card-wrapper {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background-color: var(--utar-navy-card);
            border: 2px solid var(--border-color);
            aspect-ratio: 3 / 4;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            cursor: pointer;
        }

        .game-card-wrapper:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(255, 242, 0, 0.25);
            border-color: var(--utar-yellow);
        }

        .game-cover-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            background-color: #0d1230;
        }

        .game-card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px 12px 12px;
            background: linear-gradient(to top, rgba(10, 13, 38, 0.98) 15%, rgba(10, 13, 38, 0.6) 60%, transparent 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
        }

        .game-title-bar {
            width: 100%;
            background: rgba(19, 25, 67, 0.92);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 242, 0, 0.4);
            border-radius: 10px;
            padding: 8px 12px;
            text-align: center;
        }

        .game-title-text {
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #ffffff;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .btn-plus-fav {
            position: absolute;
            bottom: 50px;
            right: 12px;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: #ffffff;
            color: var(--utar-navy);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
            transition: all 0.2s ease;
            z-index: 2;
        }

        .btn-plus-fav:hover {
            background: var(--utar-yellow);
            color: #000000;
            transform: scale(1.1);
        }

        .btn-plus-fav.active {
            background: var(--utar-yellow);
            color: #000000;
        }

        .chat-section {
            background-color: var(--utar-navy);
            border-top: 2px solid var(--border-color);
        }

        .chat-card {
            background-color: var(--utar-navy-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .chat-card:hover {
            transform: translateY(-4px);
            border-color: var(--utar-yellow);
        }

        .btn-discord {
            background-color: var(--discord-color);
            color: #ffffff;
            font-weight: 600;
            border: none;
            transition: all 0.2s ease;
        }

        .btn-discord:hover {
            background-color: #4752c4;
            color: #ffffff;
            transform: translateY(-2px);
        }

        .schedule-section {
            background-color: var(--utar-navy-dark);
            border-top: 2px solid var(--border-color);
        }

        .schedule-card {
            background-color: var(--utar-navy-card);
            border: 1px solid var(--border-color);
            border-top: 4px solid var(--utar-yellow);
            border-radius: 12px;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .schedule-card:hover {
            transform: translateY(-4px);
            border-color: var(--utar-yellow);
        }

        /* ================= 2. RANKINGS MODULE STYLES ================= */
        .nav-pills .nav-link {
            background-color: var(--utar-navy);
            color: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 30px;
            padding: 8px 20px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }

        .nav-pills .nav-link:hover {
            border-color: var(--utar-yellow);
            color: var(--utar-yellow);
        }

        .nav-pills .nav-link.active {
            background-color: var(--utar-yellow);
            color: #000000;
            border-color: var(--utar-yellow);
            box-shadow: 0 4px 15px rgba(255, 242, 0, 0.3);
        }

        .podium-card {
            background-color: var(--utar-navy-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }

        .podium-card.first { border-top: 4px solid #ffd700; }
        .podium-card.second { border-top: 4px solid #e0e0e0; }
        .podium-card.third { border-top: 4px solid #cd7f32; }

        .ranking-card {
            background-color: var(--utar-navy);
            border: 2px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
        }

        .table-custom {
            margin-bottom: 0;
            background-color: transparent !important;
            vertical-align: middle;
        }

        .table-custom thead tr {
            background-color: #0e1236 !important;
            border-bottom: 2px solid var(--utar-yellow) !important;
        }

        .table-custom thead th {
            background-color: transparent !important;
            color: var(--utar-yellow) !important;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.75px;
            padding: 16px 20px;
            border: none;
        }

        .table-custom tbody tr {
            background-color: var(--utar-navy-card) !important;
            border-bottom: 1px solid var(--border-color) !important;
            transition: background-color 0.2s ease;
        }

        .table-custom tbody tr:hover {
            background-color: #212a6e !important;
        }

        .table-custom tbody td {
            background-color: transparent !important;
            padding: 14px 20px;
            border: none;
        }

        .rank-badge {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.95rem;
        }

        .rank-1 { background: linear-gradient(135deg, #ffd700, #ffae00); color: #000000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
        .rank-2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #000000; }
        .rank-3 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #ffffff; }
        .rank-default { background-color: #0c102e; color: #e2e8f0; border: 1px solid var(--border-color); }

        .team-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background-color: #0c102e;
            border: 1px solid var(--border-color);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--utar-yellow);
            font-size: 1.15rem;
        }

        .btn-star {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 1.25rem;
            cursor: pointer;
            transition: color 0.2s ease, transform 0.2s ease;
        }

        .btn-star:hover, .btn-star.active { color: var(--utar-yellow); transform: scale(1.2); }

        /* ================= 3. TOURNAMENTS MODULE STYLES ================= */
        .tourney-card {
            background-color: var(--utar-navy-card);
            border: 2px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .tourney-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 25px rgba(255, 242, 0, 0.25);
            border-color: var(--utar-yellow);
        }

        .tourney-img-wrapper { position: relative; height: 170px; overflow: hidden; }
        .tourney-img { width: 100%; height: 100%; object-fit: cover; }
        .tourney-badge {
            position: absolute; top: 12px; left: 12px; padding: 6px 12px;
            border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
        }
        .tourney-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .tourney-meta-item { font-size: 0.82rem; color: #d1d5db; margin-bottom: 6px; }

        .btn-register {
            background-color: var(--utar-yellow); color: #000000; font-weight: 700;
            border: none; border-radius: 8px; padding: 9px 16px; transition: all 0.2s ease;
        }
        .btn-register:hover { background-color: #ffffff; color: var(--utar-navy); transform: scale(1.02); }
        .btn-registered { background-color: #198754 !important; color: #ffffff !important; border: none; }

        /* ================= 4. NEWS MODULE STYLES ================= */
        .news-card {
            background-color: var(--utar-navy-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.25s ease, border-color 0.25s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-card:hover {
            transform: translateY(-5px);
            border-color: var(--utar-yellow);
        }

        .news-badge {
            background-color: rgba(255, 242, 0, 0.15);
            color: var(--utar-yellow);
            border: 1px solid rgba(255, 242, 0, 0.4);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .btn-read-more {
            background: transparent;
            border: none;
            color: var(--utar-yellow);
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0;
            cursor: pointer;
            text-decoration: underline;
        }

        .filter-btn {
            background-color: var(--utar-navy-card);
            color: #d1d5db;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }

        .filter-btn:hover, .filter-btn.active {
            background-color: var(--utar-yellow);
            color: #000000;
            font-weight: 600;
            border-color: var(--utar-yellow);
        }

        /* Universal Modals */
        .modal-content {
            background-color: var(--utar-navy);
            border: 2px solid var(--border-color);
            color: #ffffff;
            border-radius: 16px;
        }

        .form-control, .form-select {
            background-color: var(--utar-navy-dark);
            border: 1px solid var(--border-color);
            color: #ffffff;
        }

        .form-control:focus, .form-select:focus {
            background-color: var(--utar-navy-dark);
            border-color: var(--utar-yellow);
            color: #ffffff;
            box-shadow: 0 0 0 0.25rem rgba(255, 242, 0, 0.25);
        }

footer {
            background-color: var(--utar-navy-dark);
            border-top: 1px solid var(--border-color);
        }

        .ranking-card-header {
            background-color: #0e1236;
            border-bottom: 1px solid var(--border-color);
        }

        .rank-column {
            width: 80px;
        }

        .follow-column {
            width: 100px;
        }

        .news-modal-content {
            line-height: 1.6;
        }

        .chat-status {
            font-size: 0.7rem;
        }

        .chat-status-dot {
            font-size: 0.5rem;
        }

        .chat-channel {
            font-size: 0.82rem;
        }

        .chat-member-count,
        .schedule-time,
        .schedule-status {
            font-size: 0.75rem;
        }

        .schedule-venue {
            font-size: 0.8rem;
            line-height: 1.3;
        }

        .trophy-gold {
            color: #ffd700;
        }

        .trophy-silver {
            color: #e0e0e0;
        }

        .trophy-bronze {
            color: #cd7f32;
        }

        /* Landing page */
        .landing-page {
            min-height: 100vh;
            overflow-x: hidden;
        }

        .landing-hero {
            position: relative;
            min-height: calc(100vh - 65px);
            background: linear-gradient(90deg, rgba(10, 13, 38, 0.98) 0%, rgba(10, 13, 38, 0.88) 55%, rgba(10, 13, 38, 0.68) 100%), url('../valo.jpg') center / cover no-repeat;
        }

        .landing-hero::before {
            position: absolute;
            inset: 0;
            background-image: linear-gradient(rgba(255, 242, 0, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 242, 0, 0.04) 1px, transparent 1px);
            background-size: 40px 40px;
            content: '';
            pointer-events: none;
        }

        .landing-eyebrow {
            display: inline-block;
            padding: 0.5rem 0.9rem;
            color: var(--utar-yellow);
            background: rgba(255, 242, 0, 0.08);
            border: 1px solid rgba(255, 242, 0, 0.45);
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .landing-title {
            max-width: 800px;
            color: #ffffff;
            font-size: clamp(2.8rem, 7vw, 5.8rem);
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 0.98;
        }

        .landing-copy {
            max-width: 680px;
            color: #d1d5db;
            font-size: clamp(1rem, 2vw, 1.25rem);
            line-height: 1.7;
        }

        .landing-primary-btn,
        .landing-secondary-btn {
            padding: 0.8rem 1.4rem;
            border-radius: 0.65rem;
            font-weight: 700;
        }

        .landing-primary-btn {
            color: #000000;
            background: var(--utar-yellow);
            border: 2px solid var(--utar-yellow);
        }

        .landing-primary-btn:hover {
            color: #000000;
            background: #ffffff;
            border-color: #ffffff;
            transform: translateY(-2px);
        }

        .landing-secondary-btn {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.45);
        }

        .landing-secondary-btn:hover {
            color: var(--utar-yellow);
            border-color: var(--utar-yellow);
        }

        .landing-features {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding: 0;
            color: #d1d5db;
            list-style: none;
        }

        .landing-features li {
            display: flex;
            gap: 0.55rem;
            align-items: center;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .landing-footer {
            color: #9ca3af;
        }

        @media (max-width: 576px) {
            .landing-title {
                font-size: 2.8rem;
            }

            .landing-features {
                flex-direction: column;
                gap: 0.8rem;
            }
        }

