/* ==========================================================================
   NexusPlay Community Server List - CSS Styling
   Inspired by Serverlist.gg with NexusPlay Dark Cyberpunk Aesthetics
   ========================================================================== */

:root {
    --bg-dark: #0a0c12;
    --bg-card: rgba(18, 22, 34, 0.72);
    --bg-card-hover: rgba(26, 32, 50, 0.88);
    --primary: #ff5500;
    --primary-glow: rgba(255, 85, 0, 0.35);
    --primary-gradient: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-sub: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 85, 0, 0.35);
    --glass-blur: blur(14px);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080a0f;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 10% 25%, rgba(168, 85, 247, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 90% 60%, rgba(255, 85, 0, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Top Navbar (NexusPlay Standard)
-------------------------------------------------------------------------- */
.nexus-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background-color: rgba(10, 12, 18, 0.94);
    backdrop-filter: var(--glass-blur);
    height: 64px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    gap: 22px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    padding: 6px 0;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a.active {
    color: #fff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-btn {
    color: #7289da;
    font-size: 1.3rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.discord-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Lofi Player */
.lofi-player {
    position: relative;
    display: flex;
    align-items: center;
}
.lofi-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.lofi-btn:hover, .lofi-btn.playing {
    color: #fff;
    background: rgba(255, 85, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}
.lofi-popup {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: rgba(15, 18, 28, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    gap: 10px;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 100;
}
.lofi-player:hover .lofi-popup {
    display: flex;
}
.lofi-slider {
    width: 80px;
    accent-color: var(--primary);
    cursor: pointer;
}
.lofi-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Nav Host Server CTA Button */
.btn-nav-host {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-nav-host i {
    color: #fbbf24;
}
.btn-nav-host:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
}

/* Steam Login / Sign In Button */
.btn-steam-login {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}
.btn-steam-login:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* --------------------------------------------------------------------------
   Subnav Game Category Chips Bar (Screenshot 2)
-------------------------------------------------------------------------- */
.subnav-chips-bar {
    background: rgba(12, 15, 24, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 950;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow-x: auto;
}

.subnav-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.game-chip {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.game-chip.active {
    background: rgba(255, 85, 0, 0.15);
    color: #fff;
    border-color: rgba(255, 85, 0, 0.4);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
}

.game-chip-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.subnav-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 4px 10px;
    border-radius: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}
.subnav-meta-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-green);
    animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   Hero Section ("Game Server List" - Screenshot 2)
-------------------------------------------------------------------------- */
.community-hero {
    padding: 70px 24px 50px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.8px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 34px;
    line-height: 1.6;
}

/* Big Search Bar */
.hero-search-wrapper {
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: rgba(18, 22, 34, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 8px 6px 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.hero-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(255, 85, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-search-icon {
    color: var(--text-sub);
    font-size: 1.05rem;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.98rem;
}
.hero-search-input::placeholder {
    color: var(--text-sub);
}

.hero-search-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.hero-search-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Manage a Server Promo Pill */
.hero-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: color 0.2s;
    cursor: pointer;
}
.hero-promo-link strong {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-promo-link:hover strong {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Category Rows & Server Cards Grid (Screenshot 2 & 3)
-------------------------------------------------------------------------- */
.community-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 32px 80px;
}

.category-section {
    margin-bottom: 52px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Game Icon Themes */
.icon-gta6 { background: linear-gradient(135deg, #ff2a85 0%, #ff5500 100%); border: 1px solid #ff2a85; box-shadow: 0 0 16px rgba(255, 42, 133, 0.35); }
.icon-hytale { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); border: 1px solid #38bdf8; }
.icon-palworld { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border: 1px solid #fbbf24; }
.icon-enshrouded { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); border: 1px solid #f87171; }
.icon-soulmask { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); border: 1px solid #a78bfa; }
.icon-satisfactory { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); border: 1px solid #fb923c; }
.icon-minecraft { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); border: 1px solid #4ade80; }
.icon-unturned { background: linear-gradient(135deg, #84cc16 0%, #4d7c0f 100%); border: 1px solid #a3e635; }
.icon-7days { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); border: 1px solid #ef4444; }
.icon-ark { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); border: 1px solid #22d3ee; }
.icon-rust { background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%); border: 1px solid #f97316; }

.category-servers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-view-more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-view-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(2px);
}

/* 4-Cards Grid */
.servers-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .servers-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .servers-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Server Card */
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.server-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 85, 0, 0.15);
}

.server-card-top {
    margin-bottom: 14px;
}

.server-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.server-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.server-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.server-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    margin-bottom: 16px;
}

/* Server Card Bottom Info Bar */
.server-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.server-votes-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.server-votes-pill:hover {
    background: rgba(255, 85, 0, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.server-quick-ip-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}
.server-quick-ip-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   Server Details Modal
-------------------------------------------------------------------------- */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #111422;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 85, 0, 0.15);
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.25s ease-out;
}

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

.modal-header {
    background: #161a2c;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-header-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modal IP Box */
.modal-ip-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-ip-code {
    font-family: 'Consolas', monospace;
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 700;
    user-select: all;
}

.btn-copy-ip {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}
.btn-copy-ip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 85, 0, 0.45);
}

/* Modal Specs Grid */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-spec-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.modal-spec-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-sub);
    font-weight: 700;
    margin-bottom: 4px;
}
.modal-spec-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.btn-vote-lg {
    flex: 1;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-vote-lg:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-connect-lg {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-connect-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* --------------------------------------------------------------------------
   Toast Notification
-------------------------------------------------------------------------- */
.community-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(18, 22, 34, 0.95);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 15px var(--primary-glow);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.community-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Footer (Screenshot 3)
-------------------------------------------------------------------------- */
.community-footer {
    border-top: 1px solid var(--border);
    background: #07090e;
    padding: 60px 32px 30px;
}

.footer-top-grid {
    max-width: 1400px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 580px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-sub);
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.84rem;
    transition: color 0.2s;
}
.footer-links-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-sub);
    flex-wrap: wrap;
    gap: 14px;
}
