@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
    --color-bg: #030303;
    --color-flame: #FF5700;
    --color-flame-glow: #ff570080;
    --color-magma: #7C0902;
    --color-ember: #FFC532;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #9CA3AF;

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Animated Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(at 0% 0%, rgba(124, 9, 2, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 87, 0, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 9, 2, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(12, 12, 12, 1) 0px, transparent 50%);
    opacity: 0.8;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orb-float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-magma);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-flame);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

/* --- Typography --- */
h1,
h2,
h3,
.brand-font {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #FFF 0%, var(--color-ember) 50%, var(--color-flame) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 2px;
}

/* --- Navigation --- */
.nav-pill {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 16px 32px;
    /* Increased padding */
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 48px;
    /* Significantly increased gap */
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    width: max-content;
    max-width: 90%;
}

.nav-pill:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 10px 40px -5px rgba(255, 87, 0, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
    /* Inner gap between links */
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    background: var(--color-flame);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--color-flame-glow);
    white-space: nowrap;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--color-flame-glow);
}

/* Language Dropdown */
.lang-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-toggle {
    font-size: 18px;
    padding: 4px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    /* Center alignment adjustment */
    margin-top: 12px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-dropdown-container:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
    margin-bottom: 2px;
    white-space: nowrap;
}

.lang-menu a:hover {
    background: rgba(255, 87, 0, 0.1);
    color: var(--color-flame);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    background: rgba(255, 87, 0, 0.1);
    border: 1px solid rgba(255, 87, 0, 0.3);
    color: var(--color-flame);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    box-shadow: 0 0 15px rgba(255, 87, 0, 0.1);
}

.hero h1 {
    font-size: clamp(48px, 6vw, 90px);
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(255, 87, 0, 0.1);
}

.hero h1 span {
    display: inline-block;
    /* Fix for gradient text sizing sometimes */
}

.hero p {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 90%;
    margin-bottom: 40px;
    margin-left: 0;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-flame);
    /* Changed to Orange */
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 87, 0, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 87, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Discord Mock Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-mock {
    width: 100%;
    max-width: 480px;
    background: #36393f;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left;
    transform: rotate(2deg) perspective(1000px);
    border: 1px solid #202225;
    transition: transform 0.5s ease;
}

.discord-mock:hover {
    transform: rotate(0deg) scale(1.02);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.discord-meta {
    line-height: 1.2;
}

.discord-name {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-tag {
    background: #5865F2;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
}

.discord-time {
    color: #72767d;
    font-size: 12px;
}

.discord-body {
    padding-left: 52px;
}

.discord-text {
    color: #dcddde;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.375rem;
}

.discord-embed {
    background: #2f3136;
    border-radius: 4px;
    padding: 16px;
    border-left: 4px solid var(--color-flame);
    max-width: 400px;
}

.embed-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.embed-desc {
    color: #b9bbbe;
    font-size: 14px;
    margin-bottom: 12px;
}

.embed-progress-bar {
    height: 6px;
    background: #40444b;
    border-radius: 3px;
    overflow: hidden;
}

.embed-progress-fill {
    width: 85%;
    height: 100%;
    background: var(--color-flame);
}

/* --- Features / Bento Grid --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
}

.section-title h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    grid-auto-rows: 280px;
}

.card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    /* Fix for icon going outside */
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    border-color: rgba(255, 87, 0, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.card:hover::before {
    opacity: 1;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

.card-icon {
    font-size: 32px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 5;
    display: inline-block;
}

/* Fix: limit translate and ensure overflow hidden on card handles it */
.card:hover .card-icon {
    color: var(--color-flame);
    transform: scale(1.1) translateX(5px);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 15px;
    position: relative;
    z-index: 10;
}

.card-bg-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.05;
    font-size: 120px;
    pointer-events: none;
    transition: all 0.5s ease;
}

.card:hover .card-bg-icon {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.1;
    color: var(--color-flame);
}

.special-card {
    background: linear-gradient(145deg, rgba(124, 9, 2, 0.4) 0%, rgba(10, 10, 10, 0.4) 100%);
    border-color: rgba(255, 87, 0, 0.3);
}

/* --- Leaderboard Section --- */
.leaderboard-section {
    padding: 100px 0;
}

.discord-leaderboard {
    background: #36393f;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #202225;
}

.leaderboard-header {
    background: #2f3136;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #202225;
}

.leaderboard-title {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-list {
    padding: 8px;
}

.lb-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.lb-item:hover {
    background: #32353b;
}

.lb-item.active {
    background: rgba(255, 87, 0, 0.1);
    border: 1px solid rgba(255, 87, 0, 0.2);
}

.lb-rank {
    width: 32px;
    color: #b9bbbe;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin-right: 12px;
}

.lb-rank.top-1 {
    color: #FFD700;
}

.lb-rank.top-2 {
    color: #C0C0C0;
}

.lb-rank.top-3 {
    color: #CD7F32;
}

.lb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.lb-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.lb-score {
    color: #b9bbbe;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Footer --- */
footer {
    background: #020202;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 14px;
    max-width: 300px;
}

.footer-col h5 {
    color: white;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-flame);
}

/* --- Footer Social Icons --- */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    text-align: center;
    color: #444;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: rgba(255, 87, 0, 0.1);
    color: var(--color-flame);
    border-color: rgba(255, 87, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 87, 0, 0.2);
}

/* Ensure Nav Links have no underline */
.nav-links a {
    text-decoration: none !important;
}



/* --- Dashboard Layout (Premium) --- */
.dashboard-body {
    overflow: hidden;
    height: 100vh;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
}

/* Sidebar - Premium */
.sidebar {
    background: rgba(0, 0, 0, 0.2);
    /* More transparent */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 50px;
    color: white;
    padding-left: 12px;
}

.nav-group {
    margin-bottom: 40px;
}

.nav-label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 16px;
    display: block;
    font-weight: 800;
    padding-left: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: #888;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 87, 0, 0.1);
    color: white;
    border-color: rgba(255, 87, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 87, 0, 0.05);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.topbar {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.9), transparent);
    pointer-events: none;
}

.topbar>* {
    pointer-events: auto;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--glass-border);
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    cursor: pointer;
}

.user-profile:hover {
    border-color: var(--color-flame);
    transform: translateY(-2px);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.content-wrapper {
    padding: 20px 48px 60px;
    max-width: 1600px;
    margin: 0;
    width: 100%;
}

/* Server Grid - Game Library Style */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.server-card-premium {
    height: 200px;
    border-radius: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: block;
}

.server-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
}

.server-card-premium:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: var(--color-flame);
    box-shadow: 0 30px 60px rgba(255, 87, 0, 0.15);
}

.server-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.server-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.server-details p {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.server-card-premium:hover .server-details h3 {
    color: var(--color-flame);
}

.server-status {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.server-card-premium:hover .server-status {
    background: var(--color-flame);
    color: black;
}

/* Add New Card */
.add-server-card {
    height: 200px;
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #666;
    transition: 0.3s;
    text-decoration: none;
}

.add-server-card:hover {
    border-color: var(--color-flame);
    color: var(--color-flame);
    background: rgba(255, 87, 0, 0.05);
}

/* Server Manage - Command Center */
.server-header {
    height: 250px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.server-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

.server-header-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
}

.server-av-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.manage-title h1 {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.manage-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #aaa;
}

.tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.tab-link {
    padding: 16px 0;
    color: #888;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.tab-link:hover {
    color: white;
}

.tab-link.active {
    color: var(--color-flame);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-flame);
    box-shadow: 0 0 10px var(--color-flame);
}

/* Stats Row */
.stats-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
}

.stat-box h4 {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-box .val {
    font-size: 32px;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

.stat-box .trend {
    font-size: 13px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

/* Content Grid */
.manage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.panel {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
}

/* Mock Chart */
.mock-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar {
    width: 100%;
    background: linear-gradient(to top, rgba(255, 87, 0, 0.1), rgba(255, 87, 0, 0.5));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: 0.3s;
}

.bar:hover {
    background: var(--color-flame);
    filter: drop-shadow(0 0 10px var(--color-flame));
}

/* Dashboard Responsive */
@media (max-width: 968px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        padding: 20px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .manage-grid {
        grid-template-columns: 1fr;
    }

    .stats-premium-grid {
        grid-template-columns: 1fr 1fr;
    }

    .server-header {
        height: 200px;
    }

    .server-header-content {
        bottom: 20px;
        left: 20px;
    }

    .manage-title h1 {
        font-size: 28px;
    }
}

/* Common Toggles (Reusing old class but updating if needed) */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #333;
    border-radius: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch.active {
    background: var(--color-flame);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-container {
    display: grid;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
}

.nav-group {
    margin-bottom: 32px;
}

.nav-label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #bbb;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 87, 0, 0.1);
    color: var(--color-flame);
}

.sidebar-footer {
    margin-top: auto;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.topbar {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-flame);
}

.content-wrapper {
    padding: 40px;
    max-width: 1400px;
    margin: 0;
    width: 100%;
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.server-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-flame);
    box-shadow: 0 10px 30px -5px rgba(255, 87, 0, 0.2);
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.server-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.server-info p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.server-action {
    margin-top: auto;
    width: 100%;
}

.btn-sm {
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
}

.add-new {
    border-style: dashed;
    background: transparent;
    justify-content: center;
    color: var(--color-text-secondary);
}

.add-new:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

.add-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

/* Server Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 87, 0, 0.1);
    color: var(--color-flame);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Toggles */
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #333;
    border-radius: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch.active {
    background: var(--color-flame);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

@media (max-width: 968px) {
    .nav-pill {
        gap: 20px;
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-btns {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-4,
    .span-6,
    .span-8,
    .span-12 {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}