/* =====================================================================
   MINEHUB BD — WORLD-CLASS AWWWARDS & DRIBBBLE INSPIRED DESIGN SYSTEM
   Monumental Typography (Syne + Plus Jakarta Sans), Bento Grid 2.0,
   Specular Glassmorphism, Command Palette (⌘K), & Micro-Interactions
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Syne:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Pixelify+Sans:wght@400;500;600;700&family=VT323&display=swap');

/* =====================================================================
   MINECRAFT AUTHENTIC & PIXEL WEB FONTS
   1. Minecraft Regular: Authentic In-Game Pixel Font
   2. Minecraftia: Crisp Pixel Web Font with Full Character Coverage
   3. Minecraft Ten: Authentic Heavy Headline / Display Font
   4. Minecrafter: Iconic 3D Blocky Logo Font
   ===================================================================== */
@font-face {
    font-family: 'Minecraft';
    src: url('../fonts/Minecraft-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/aditkumar08/minecraft-font/Minecraft-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/Minecraftia.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/31977/Minecraftia.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Ten';
    src: url('../fonts/MinecraftTen.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/36662/MinecraftTen-VGORe.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecrafter';
    src: url('../fonts/Minecrafter.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/118846/Minecrafter-MA3Dw.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --bg-page: #F8F9F5;
    --bg-subtle: #F2F3EE;
    --surface: #FFFFFF;
    --surface-alt: #F0F2EB;
    --surface-glass: rgba(255, 255, 255, 0.82);
    --surface-glass-border: rgba(229, 230, 224, 0.85);
    
    /* Obsidians & Darks */
    --charcoal: #121311;
    --charcoal-card: #1C1D1A;
    --charcoal-light: #2A2C27;
    --charcoal-border: rgba(255, 255, 255, 0.1);
    
    /* Editorial Neutrals */
    --text-primary: #121311;
    --text-secondary: #5C6057;
    --text-muted: #8E9388;
    --border: #E4E6DE;
    --border-subtle: rgba(18, 19, 17, 0.07);
    --border-focus: #729D48;
    
    /* Forest & Mint Accents */
    --primary: #729D48;
    --primary-hover: #5F853B;
    --primary-glow: rgba(114, 157, 72, 0.28);
    --primary-light: #EEF4E8;
    --primary-text: #37541C;
    --mint-live: #4EBB62;
    
    /* Badges & Medals */
    --badge-gold: #D97706;
    --badge-gold-bg: #FEF3C7;
    --badge-blue: #2563EB;
    --badge-blue-bg: #EFF6FF;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    
    /* Geometry */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;
    
    /* Elevation Shadows */
    --shadow-subtle: 0 1px 3px rgba(18, 19, 17, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(18, 19, 17, 0.05), 0 1px 2px rgba(18, 19, 17, 0.02);
    --shadow-hover: 0 24px 48px -12px rgba(18, 19, 17, 0.12), 0 0 0 1px rgba(114, 157, 72, 0.35);
    --shadow-spotlight: 0 32px 64px -16px rgba(18, 19, 17, 0.18);
    --shadow-modal: 0 32px 72px -16px rgba(18, 19, 17, 0.36);
    
    /* Typography - Complete Authentic Minecraft System Across Entire Site */
    --font-sans: 'Minecraftia', 'Minecraft', 'Pixelify Sans', 'VT323', monospace;
    --font-display: 'Minecraft Ten', 'Minecraftia', 'Minecraft', monospace;
    --font-mono: 'Minecraftia', 'Minecraft', monospace;
    --font-minecraft: 'Minecraftia', 'Minecraft', 'Pixelify Sans', 'VT323', monospace;
    --font-minecraft-bold: 'Minecraft Ten', 'Minecraft', monospace;
    --font-minecrafter: 'Minecrafter', 'Minecraft Ten', sans-serif;
    --container-max: 1240px;
}

/* Base Universal Reset & All Minecraft Typography */
*, *::before, *::after,
html, body,
input, button, select, textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, label, li, td, th, div, small, strong, em, b, i, kbd, code, pre {
    font-family: var(--font-minecraft) !important;
}

h1, h2, h3, h4, h5, h6,
.font-minecraft-bold, .mc-font-bold {
    font-family: var(--font-minecraft-bold) !important;
}

.font-minecrafter, .mc-title {
    font-family: var(--font-minecrafter) !important;
}

/* Minecraft Typography Utilities */
.font-minecraft, .mc-font {
    font-family: var(--font-minecraft) !important;
    letter-spacing: 0.03em;
}

.font-minecraft-bold, .mc-font-bold {
    font-family: var(--font-minecraft-bold) !important;
    letter-spacing: 0.04em;
}

.font-minecrafter, .mc-title {
    font-family: var(--font-minecrafter) !important;
    letter-spacing: 0.06em;
}

.mc-pixel-badge {
    font-family: var(--font-minecraft) !important;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    image-rendering: pixelated;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-minecraft) !important;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 50% 0%, rgba(114, 157, 72, 0.08) 0%, transparent 60%),
        radial-gradient(at 100% 20%, rgba(217, 119, 6, 0.04) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, transparent 700px);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-minecraft-bold) !important;
    letter-spacing: 0.035em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================================
   HEADER & NAVIGATION (FLOATING SPECULAR GLASS)
   ===================================================================== */
/* =====================================================================
   HEADER & NAVIGATION (AESTHETIC SPECULAR GLASS & TACTILE PILL SYSTEM)
   ===================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.25s ease;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.9) inset, 0 2px 10px rgba(0, 0, 0, 0.02);
}

.site-header .container,
.site-header .container.header-inner {
    max-width: 1440px !important;
    width: 100% !important;
    padding-left: clamp(14px, 1.8vw, 28px) !important;
    padding-right: clamp(14px, 1.8vw, 28px) !important;
    box-sizing: border-box !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.2vw, 16px);
    height: 70px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Brand Link */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-link-compact {
    gap: 0 !important;
}

.brand-link-compact .brand-logo-wrap {
    margin: 0 !important;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-link:hover .brand-logo-wrap {
    box-shadow: none !important;
    transform: scale(1.06);
}

.brand-logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.16));
}

.brand-collab-x {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: #7D8278;
    margin: 0 2px 0 1px;
    line-height: 1;
    user-select: none;
    display: inline-block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    white-space: nowrap;
    text-align: left;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-name {
    font-family: var(--font-display) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: var(--charcoal) !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
}

.brand-pill-badge {
    font-family: var(--font-minecraft);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2D5A1E;
    background: rgba(114, 157, 72, 0.14);
    border: 1px solid rgba(114, 157, 72, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
}

.brand-sub {
    font-family: var(--font-minecraft) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    margin-top: 1px !important;
}

/* Main Navigation - Modern Floating Tabs */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link {
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #4B5563;
    padding: 7px 13px;
    border-radius: 9999px;
    white-space: nowrap;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    position: relative;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: 1px solid transparent;
}

.nav-link .nav-icon {
    flex-shrink: 0;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.045);
    transform: translateY(-1px);
}

.nav-link:hover .nav-icon {
    color: #729D48;
    transform: scale(1.12);
}

.nav-link.active {
    color: #224216;
    background: rgba(114, 157, 72, 0.12);
    border-color: rgba(114, 157, 72, 0.28);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(114, 157, 72, 0.1);
}

.nav-link.active .nav-icon {
    color: #5E8939;
}

/* Header Actions Layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Search Trigger Pill */
.header-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(0, 0, 0, 0.035);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 14px;
    height: 36px;
    border-radius: 9999px;
    color: #6B7280;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-trigger .search-lens-icon {
    color: #729D48;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-search-trigger:hover {
    background: #FFFFFF;
    border-color: rgba(114, 157, 72, 0.55);
    box-shadow: 0 0 0 3px rgba(114, 157, 72, 0.12), 0 3px 10px rgba(0, 0, 0, 0.05);
    color: #111827;
    transform: translateY(-1px);
}

.header-search-trigger:hover .search-lens-icon {
    transform: scale(1.1);
}

.header-search-kbd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 1px 6px;
    border-radius: 5px;
    color: #4B5563;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Auth Actions Buttons (Unified 36px Height System) */
.desktop-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Add Server Button */
.header-btn-add-server {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1F2937;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-btn-add-server svg {
    color: #729D48;
    transition: transform 0.2s ease;
}

.header-btn-add-server:hover {
    background: rgba(114, 157, 72, 0.08);
    border-color: #729D48;
    color: #2D5A1E;
    box-shadow: 0 4px 14px rgba(114, 157, 72, 0.16);
    transform: translateY(-1px);
}

.header-btn-add-server:hover svg {
    transform: rotate(90deg);
}

/* Admin Panel Button (Executive Dark-Emerald Pill) */
.header-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1C2718 0%, #0F160E 100%);
    border: 1px solid rgba(143, 216, 84, 0.4);
    color: #8FD854;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(18, 24, 16, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.header-btn-admin svg {
    color: #8FD854;
    transition: transform 0.2s ease;
}

.header-btn-admin:hover {
    border-color: #8FD854;
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(114, 157, 72, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.header-btn-admin:hover svg {
    transform: scale(1.12);
}

/* Guest Buttons */
.header-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    color: #4B5563;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.header-btn-ghost:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.05);
}

.header-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 9999px;
    background: #121311;
    color: #FFFFFF;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.header-btn-primary:hover {
    background: #729D48;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(114, 157, 72, 0.35);
    transform: translateY(-1px);
}

/* User Menu Button Pill */
.header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px 0 4px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    color: #1F2937;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 190px;
}

.header-user-btn:hover {
    border-color: #729D48;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(114, 157, 72, 0.15);
    transform: translateY(-1px);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #121311;
    color: #8FD854;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid #729D48;
    box-shadow: 0 0 6px rgba(114, 157, 72, 0.3);
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: #111827;
}

.header-user-chevron {
    color: #9CA3AF;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.header-user-menu.open .header-user-chevron,
.header-user-menu:hover .header-user-chevron {
    transform: rotate(180deg);
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px -8px rgba(18, 19, 17, 0.16), 0 2px 8px rgba(18, 19, 17, 0.04);
    padding: 8px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 3px;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header-user-menu.open .header-user-dropdown,
.header-user-menu:hover .header-user-dropdown {
    display: flex;
}

/* =====================================================================
   MAIN NAV DROPDOWN COMPONENT (Webstores & Hub Ecosystem)
   ===================================================================== */
.nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link-dropdown {
    gap: 6px !important;
    cursor: pointer;
}

.nav-chevron {
    color: #9CA3AF;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
    flex-shrink: 0;
    margin-left: 1px;
}

.nav-dropdown-wrap.open .nav-chevron,
.nav-dropdown-wrap:hover .nav-chevron {
    transform: rotate(180deg);
    color: #5E8939;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 270px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px -8px rgba(18, 19, 17, 0.18), 0 2px 10px rgba(18, 19, 17, 0.05);
    padding: 7px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 3px;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible bridge so mouse hover doesn't drop off between nav link and dropdown */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown-wrap.open .nav-dropdown-menu,
.nav-dropdown-wrap:hover .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.14s ease, transform 0.14s ease;
    background: transparent;
}

.nav-dropdown-item:hover {
    background: #F4F6F1;
    transform: translateX(2px);
}

.nav-dropdown-item.active {
    background: rgba(114, 157, 72, 0.1);
}

.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F4ED;
    color: #5E8939;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
    transform: scale(1.08);
}

.nav-dropdown-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-dropdown-title {
    font-family: var(--font-minecraft), monospace;
    font-size: 12px;
    font-weight: 700;
    color: #1A1D17;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.nav-dropdown-item:hover .nav-dropdown-title {
    color: #2E5A1C;
}

.nav-dropdown-desc {
    font-family: var(--font-minecraft), monospace;
    font-size: 10.5px;
    color: #6B7280;
    line-height: 1.3;
    margin-top: 2px;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-subtle, #ECEEE7);
    margin: 4px 6px;
}

/* Mobile Sublinks */
.mobile-nav-sublinks {
    margin: 3px 0 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: var(--font-minecraft);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: #F8FAF6;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.mobile-nav-sublink:hover,
.mobile-nav-sublink.active {
    background: rgba(114, 157, 72, 0.12);
    border-color: rgba(114, 157, 72, 0.3);
    color: #2E5A1C;
    font-weight: 700;
}

.dropdown-header {
    padding: 8px 10px 6px;
}

.dropdown-user-name {
    font-family: var(--font-minecraft), monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-top: 1px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    font-family: var(--font-minecraft), monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.12s ease, color 0.12s ease;
    text-decoration: none;
}

.dropdown-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.dropdown-item:hover svg {
    color: var(--text-primary);
}

.dropdown-item-admin {
    color: var(--primary-text);
    background: var(--primary-light);
}

.dropdown-item-admin svg {
    color: var(--primary);
}

.dropdown-item-admin:hover {
    background: #E1EDD6;
    color: #274510;
}

.dropdown-item-danger {
    color: var(--danger);
}

.dropdown-item-danger svg {
    color: var(--danger);
}

.dropdown-item-danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* =====================================================================
   SMOOTH SLIDING ANNOUNCEMENT TICKER BAR (MARQUEE)
   ===================================================================== */
.announcement-ticker-bar {
    width: 100%;
    background: #FFFDF0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 990;
    overflow: hidden;
    box-sizing: border-box;
}

.announcement-ticker-inner {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    min-width: 0;
}

.announcement-ticker-badge-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 3;
    background: inherit;
    padding-right: 14px;
}

.announcement-ticker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 22px;
    padding: 0 10px;
    background: #E11D48;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.25);
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
}

.announcement-badge-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

.announcement-ticker-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(0, 0, 0, 0.16);
    margin-left: 12px;
    flex-shrink: 0;
}

.announcement-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0;
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.announcement-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: tickerSlide 28s linear infinite;
}

.announcement-ticker-track:hover,
.announcement-ticker-track:active {
    animation-play-state: paused;
}

.announcement-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.announcement-ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #2D3748;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.announcement-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    color: rgba(0, 0, 0, 0.28);
    font-weight: 700;
    font-size: 13px;
    user-select: none;
    flex-shrink: 0;
}

.announcement-ticker-link {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.15s ease;
}

.announcement-ticker-link:hover {
    color: #E11D48;
    text-decoration: underline;
}

.announcement-ticker-text {
    color: #1F2937;
}

@keyframes tickerSlide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =====================================================================
   BUTTONS (MODERN DRIBBBLE TACTILE SYSTEM)
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    line-height: 1.25;
    position: relative;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-charcoal {
    background: var(--charcoal);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(18, 19, 17, 0.2);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--charcoal);
    box-shadow: var(--shadow-subtle);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 13.5px;
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.btn-block {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================================
   HERO SECTION (AWWWARDS EDITORIAL DISPLAY)
   ===================================================================== */
.hero-editorial {
    padding: 44px 0 28px;
    text-align: center;
    position: relative;
}

.hero-editorial::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 480px;
    background: radial-gradient(ellipse at 50% 0%, rgba(114, 157, 72, 0.12) 0%, rgba(217, 119, 6, 0.04) 50%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-content-wrap {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-subtle);
}

.hero-badge .spark-icon {
    color: var(--primary);
    font-size: 13px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.4vw, 44px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    line-height: 1.25;
    max-width: 960px;
    margin: 0 auto 18px;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--charcoal) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Floating Command Search Bar */
.hero-search-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px -6px rgba(18, 19, 17, 0.08), 0 2px 6px rgba(18, 19, 17, 0.02);
    gap: 10px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 24px 56px -8px rgba(114, 157, 72, 0.2), 0 0 0 4px var(--primary-glow);
    transform: translateY(-2px);
}

.search-icon-wrap {
    padding-left: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.search-input:focus {
    outline: none;
}

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

.kbd-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    user-select: none;
}

.search-filter-select {
    border: 1px solid var(--border);
    background: var(--surface-alt);
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.15s;
}

.search-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Live Telemetry Ticker Strip */
.telemetry-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
    margin-bottom: 24px;
    font-family: var(--font-minecraft);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.telemetry-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.telemetry-item strong {
    color: var(--charcoal);
    font-weight: 700;
}

.telemetry-divider {
    color: #CCD0C5;
    font-size: 10px;
}

/* Quick Filter Pills */
.hero-tags-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-tags-label {
    font-family: var(--font-minecraft);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100%;
}

.tag-pill {
    padding: 5px 13px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-family: var(--font-minecraft);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--charcoal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.03em;
    text-decoration: none;
    line-height: 1.25;
    user-select: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-pill:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(114, 157, 72, 0.15);
}

.tag-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #507D2A;
    display: inline-block;
}

.tag-pill-hot {
    border-color: rgba(249, 115, 22, 0.35);
    color: #C2410C;
    background: #FFF7ED;
}
.tag-pill-hot:hover {
    border-color: #EA580C;
    color: #EA580C;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

.tag-fire-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #EA580C;
    flex-shrink: 0;
}

.tag-pill-java, .tag-pill-bedrock {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.09);
    color: #334155;
}

.tag-pill-realms {
    border-color: rgba(124, 58, 237, 0.4);
    color: #7C3AED;
    background: #FAF5FF;
    font-weight: 700;
}
.tag-pill-realms:hover {
    border-color: #7C3AED;
    color: #7C3AED;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.tag-pill.active {
    background: var(--charcoal);
    color: #FFFFFF;
    border-color: var(--charcoal);
}

/* =====================================================================
   SECTION HEADERS & ARCHITECTURAL GRID
   ===================================================================== */
.section-block {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title-wrap h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.035em;
    line-height: 1.25;
}

.section-title-wrap p {
    font-size: 12.5px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* =====================================================================
   BENTO GRID 2.0 & SERVER CARDS
   ===================================================================== */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-banner {
    height: 124px;
    background-color: var(--charcoal);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 19, 17, 0.1) 0%, rgba(18, 19, 17, 0.65) 100%);
}

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
    max-width: calc(100% - 90px);
}

.badge-featured {
    background: rgba(18, 19, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-verified {
    background: rgba(114, 157, 72, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-mcbd {
    background: rgba(217, 119, 6, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-realm {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.realm-join-btn {
    background: #7C3AED !important;
    border-color: #6D28D9 !important;
    color: #FFFFFF !important;
}

.realm-join-btn:hover {
    background: #6D28D9 !important;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: -48px;
    margin-bottom: 14px;
    position: relative;
    z-index: 3;
    min-width: 0;
}

.server-logo {
    width: 66px;
    height: 66px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 3px solid var(--surface);
    box-shadow: 0 4px 14px rgba(18, 19, 17, 0.12);
    object-fit: cover;
    flex-shrink: 0;
}

.server-name-block {
    flex: 1;
    padding-top: 32px;
    min-width: 0;
    overflow: hidden;
}

.server-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.server-meta-tags {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-minecraft);
    letter-spacing: 0.03em;
}

.status-indicator.online {
    color: #15803D;
}

.status-indicator.online .pulse-beacon,
.status-indicator.online .status-dot,
.status-indicator.online .beacon-dot {
    background: #16A34A;
    box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.2);
}

.status-indicator.offline {
    color: var(--text-muted);
}

.status-indicator.offline .pulse-beacon,
.status-indicator.offline .status-dot,
.status-indicator.offline .beacon-dot {
    background: #94A3B8;
    box-shadow: 0 0 0 2.5px rgba(148, 163, 184, 0.2);
}

.server-desc-short {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
    letter-spacing: 0.015em;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Avatar Clusters (Player Heads Stack) */
.player-avatar-cluster {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    margin-left: -6px;
    background: #E5E7EB;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-count-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 10px;
}

.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.category-chip {
    font-size: 11px;
    font-weight: 600;
    background: var(--surface-alt);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
}

/* =====================================================================
   MODERN RESPONSIVE CARD ACTIONS & FOOTER
   ===================================================================== */
.card-footer-box,
.card-footer-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
}

.card-conn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ip-copy-btn {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 38px;
    font-family: var(--font-minecraft);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ip-copy-btn:hover {
    background: #EAF0E6;
    border-color: #A9C29E;
}

.ip-copy-btn.copied {
    background: var(--primary-light);
    border-color: #B8DB9F;
    color: var(--primary-text);
}

.ip-copy-btn.is-realm-btn {
    border-color: rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.04);
}

.ip-copy-btn.is-realm-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.45);
}

.ip-copy-btn.is-realm-btn.copied {
    background: #F3E8FF;
    border-color: #D8B4FE;
    color: #6D28D9;
}

.btn-ip-main {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.btn-ip-main svg {
    flex-shrink: 0;
    color: var(--primary);
}

.is-realm-btn .btn-ip-main svg {
    color: #7C3AED;
}

.btn-ip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: 1.2;
}

.ip-copy-status {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(18, 19, 17, 0.05);
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ip-copy-btn:hover .ip-copy-status {
    background: rgba(114, 157, 72, 0.18);
    color: var(--primary-text);
}

.is-realm-btn:hover .ip-copy-status {
    background: rgba(124, 58, 237, 0.15);
    color: #6D28D9;
}

.ip-copy-btn.copied .ip-copy-status {
    background: var(--primary);
    color: #FFFFFF;
}

.is-realm-btn.copied .ip-copy-status {
    background: #7C3AED;
    color: #FFFFFF;
}

.realm-join-btn {
    background: #7C3AED !important;
    border: 1px solid #6D28D9 !important;
    border-radius: var(--radius-md) !important;
    color: #FFFFFF !important;
    font-family: var(--font-sans) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    padding: 0 14px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
}

.realm-join-btn:hover {
    background: #6D28D9 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3) !important;
}

.card-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vote-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal);
    background: var(--surface-alt);
    padding: 0 12px;
    height: 34px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.vote-counter svg {
    color: var(--primary);
}

.vote-count-number {
    font-weight: 800;
    color: var(--charcoal);
}

.vote-count-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0 18px;
    height: 34px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    flex: 1;
    max-width: 140px;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.card-vote-btn:hover {
    background: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 157, 72, 0.28);
}

/* =====================================================================
   CATEGORIES BENTO GRID
   ===================================================================== */
.categories-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.category-card-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.category-card-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* =====================================================================
   DARK LUXURY MCBD ECOSYSTEM SECTION
   ===================================================================== */
.mcbd-spotlight-block {
    background: var(--charcoal);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 54px);
    margin: clamp(36px, 5vw, 64px) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 32px 64px -16px rgba(18, 19, 17, 0.4);
    border: 1px solid var(--charcoal-border);
    box-sizing: border-box;
}

.mcbd-spotlight-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(114, 157, 72, 0.25) 0%, rgba(217, 119, 6, 0.08) 50%, transparent 75%);
    pointer-events: none;
}

.mcbd-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 22px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

.mcbd-spotlight-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 4.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.mcbd-spotlight-desc {
    max-width: 680px;
    margin: 0 auto 40px;
    color: #A3A89F;
    font-size: 16.5px;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mcbd-spotlight-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================================
   INTERNAL ADVERTISING ENGINE & SPONSORED SLOTS
   ===================================================================== */
.site-fullwidth-banner-strip {
    width: 100%;
    margin: 16px 0;
    padding: 0;
    overflow: hidden;
    background: #0B0E0B;
}

.site-fullwidth-banner-strip .ad-frame-wrapper,
.site-fullwidth-banner-strip .ad-slot {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ad-slot,
.ad-frame-wrapper {
    margin: 16px 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    background: #0B0E0B;
    border-top: 1.5px solid rgba(114, 157, 72, 0.45);
    border-bottom: 1.5px solid rgba(114, 157, 72, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.ad-placement-top_banner {
    margin: 0 !important;
    border-top: none !important;
}

.ad-slot-stage,
.ad-frame-stage {
    position: relative;
    border-radius: 0 !important;
    background: #0B0E0B;
    overflow: hidden;
    width: 100%;
    height: 96px;
    margin: 0;
    padding: 0;
    transition: all 0.25s ease;
}

.ad-slot-stage:hover,
.ad-frame-stage:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Expand banners inside layout containers to hold all left and right with zero gap */
.container > .ad-frame-wrapper,
.container .section-block .ad-frame-wrapper,
.section-block > .ad-frame-wrapper,
.container div > .ad-frame-wrapper,
.main-content-wrap .ad-frame-wrapper,
.container > .ad-slot,
.container .section-block .ad-slot,
.section-block > .ad-slot,
.container div > .ad-slot,
.main-content-wrap .ad-slot {
    margin-left: -24px !important;
    margin-right: -24px !important;
    width: calc(100% + 48px) !important;
    max-width: calc(100% + 48px) !important;
}

.ad-hud-pill {
    position: absolute;
    top: 6px;
    left: 8px;
    z-index: 10;
    font-family: var(--font-pixel, 'Minecraft', monospace);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(11, 14, 11, 0.82);
    color: #FFFFFF;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ad-slot-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    line-height: 0;
    transition: filter 0.25s ease;
}

.ad-slot-link:hover {
    filter: brightness(1.06);
}

.ad-slot-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Standardized Full-Width Edge-to-Edge Banners (Matching Top Banner Sleekness & Zero Gap) */
.ad-placement-footer_banner,
.ad-placement-community_banner,
.ad-placement-listing_inline,
.ad-placement-hero_banner,
.ad-placement-featured_slot {
    width: 100% !important;
    max-width: 100% !important;
}

.ad-placement-footer_banner .ad-slot-stage,
.ad-placement-community_banner .ad-slot-stage,
.ad-placement-listing_inline .ad-slot-stage,
.ad-placement-hero_banner .ad-slot-stage,
.ad-placement-featured_slot .ad-slot-stage {
    height: 96px;
    width: 100% !important;
    border-radius: 0 !important;
}

.ad-placement-footer_banner .ad-slot-img,
.ad-placement-community_banner .ad-slot-img,
.ad-placement-listing_inline .ad-slot-img,
.ad-placement-hero_banner .ad-slot-img,
.ad-placement-featured_slot .ad-slot-img {
    height: 96px;
    width: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
}

/* Sidebar Column Banners (Confined to 300px sidebar width without breakout) */
.profile-sidebar .ad-slot,
.server-sidebar .ad-slot,
.ad-placement-sidebar_top,
.ad-placement-sidebar_bottom {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.ad-placement-sidebar_top .ad-slot-stage,
.ad-placement-sidebar_bottom .ad-slot-stage,
.ad-placement-sidebar_top .ad-frame-stage,
.ad-placement-sidebar_bottom .ad-frame-stage {
    height: 250px !important;
    border-left: 1px solid rgba(114, 157, 72, 0.35);
    border-right: 1px solid rgba(114, 157, 72, 0.35);
    border-radius: var(--radius-md) !important;
}
.ad-placement-sidebar_top .ad-slot-img,
.ad-placement-sidebar_bottom .ad-slot-img,
.ad-placement-sidebar_top .top-ad-banner-img,
.ad-placement-sidebar_bottom .top-ad-banner-img {
    height: 250px !important;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md) !important;
}

@media (max-width: 768px) {
    .container > .ad-frame-wrapper,
    .container .section-block .ad-frame-wrapper,
    .section-block > .ad-frame-wrapper,
    .container div > .ad-frame-wrapper,
    .main-content-wrap .ad-frame-wrapper,
    .container > .ad-slot,
    .container .section-block .ad-slot,
    .section-block > .ad-slot,
    .container div > .ad-slot,
    .main-content-wrap .ad-slot {
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        max-width: calc(100% + 32px) !important;
    }
    .ad-placement-footer_banner .ad-slot-stage,
    .ad-placement-footer_banner .ad-slot-img,
    .ad-placement-community_banner .ad-slot-stage,
    .ad-placement-community_banner .ad-slot-img,
    .ad-placement-listing_inline .ad-slot-stage,
    .ad-placement-listing_inline .ad-slot-img,
    .ad-placement-hero_banner .ad-slot-stage,
    .ad-placement-hero_banner .ad-slot-img,
    .ad-placement-featured_slot .ad-slot-stage,
    .ad-placement-featured_slot .ad-slot-img,
    .ad-placement-footer_banner .ad-frame-stage,
    .ad-placement-community_banner .ad-frame-stage,
    .ad-placement-listing_inline .ad-frame-stage,
    .ad-placement-hero_banner .ad-frame-stage,
    .ad-placement-featured_slot .ad-frame-stage {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .ad-placement-footer_banner .ad-slot-stage,
    .ad-placement-footer_banner .ad-slot-img,
    .ad-placement-community_banner .ad-slot-stage,
    .ad-placement-community_banner .ad-slot-img,
    .ad-placement-listing_inline .ad-slot-stage,
    .ad-placement-listing_inline .ad-slot-img,
    .ad-placement-hero_banner .ad-slot-stage,
    .ad-placement-hero_banner .ad-slot-img,
    .ad-placement-featured_slot .ad-slot-stage,
    .ad-placement-featured_slot .ad-slot-img,
    .ad-placement-footer_banner .ad-frame-stage,
    .ad-placement-community_banner .ad-frame-stage,
    .ad-placement-listing_inline .ad-frame-stage,
    .ad-placement-hero_banner .ad-frame-stage,
    .ad-placement-featured_slot .ad-frame-stage {
        height: 56px;
    }
    .ad-placement-hero_banner .ad-slot-img,
    .ad-placement-featured_slot .ad-slot-stage,
    .ad-placement-featured_slot .ad-slot-img {
        height: 56px;
    }
    .ad-hud-pill {
        font-size: 7.5px;
        padding: 1.5px 5px;
    }
}

/* =====================================================================
   COMMAND PALETTE MODAL (⌘K SEARCH)
   ===================================================================== */
.command-palette-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 19, 17, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-palette-backdrop.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.command-palette-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-palette-backdrop.open .command-palette-box {
    transform: translateY(0) scale(1);
}

.command-palette-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.command-palette-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-family: inherit;
    color: var(--charcoal);
    outline: none;
}

.command-palette-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.command-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--charcoal);
}

.command-result-item.selected {
    background: var(--surface-alt);
}

.command-result-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-result-logo {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #E5E7EB;
}

.command-result-name {
    font-weight: 700;
    font-size: 14.5px;
}

.command-result-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

.command-palette-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}

/* =====================================================================
   FOOTER (MONUMENTAL EDITORIAL FINALE)
   ===================================================================== */
.site-footer {
    background: var(--charcoal);
    color: #9BA095;
    padding: 80px 0 40px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 52px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #8C9186;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

.mcbd-attribution {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mcbd-attribution a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* =====================================================================
   INTERACTIVE TOAST NOTIFICATION
   ===================================================================== */
.toast-notice {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--charcoal);
    color: #FFFFFF;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notice::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =====================================================================
   FORM CONTROLS & UTILITIES
   ===================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-subtle);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #FFFFFF;
}

/* =====================================================================
   AWWWARDS & DRIBBBLE AUTHENTICATION SUITE (LOGIN & REGISTER)
   ===================================================================== */
.auth-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 64px 20px 110px;
    position: relative;
}

.auth-ambient-glow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 320px;
    background: radial-gradient(circle, rgba(114, 157, 72, 0.16) 0%, rgba(217, 119, 6, 0.04) 50%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 38px 40px;
    box-shadow: 0 16px 48px -12px rgba(18, 19, 17, 0.09), 0 1px 3px rgba(18, 19, 17, 0.04);
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-wrap {
    display: inline-block;
    margin-bottom: 16px;
    transition: opacity 0.15s ease;
}

.auth-logo-wrap:hover {
    opacity: 0.88;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(18, 19, 17, 0.08));
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.2;
}

.auth-card-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 380px;
}

/* Mode Switcher Tabs */
.auth-mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    margin: 22px 0 24px;
}

.auth-mode-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: calc(var(--radius-md) - 2px);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-mode-tab:hover {
    color: var(--charcoal);
}

.auth-mode-tab.active {
    background: var(--surface);
    color: var(--charcoal);
    box-shadow: 0 2px 6px rgba(18, 19, 17, 0.06);
    border: 1px solid var(--border-light);
}

/* Modern Input Groups with Leading Icons */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-control {
    width: 100%;
    height: 46px;
    padding: 10px 42px 10px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 14px;
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-input-control.no-trailing {
    padding-right: 14px;
}

.auth-input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #FFFFFF;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--charcoal);
}

/* Password Strength Meter */
.password-meter-wrap {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.password-meter-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 4px;
}

.meter-bar {
    background: #E5E8E0;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.meter-bar.active-weak { background-color: #EF4444; }
.meter-bar.active-fair { background-color: #F59E0B; }
.meter-bar.active-good { background-color: #10B981; }
.meter-bar.active-strong { background-color: #059669; }

.password-meter-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-switch-link {
    margin-top: 30px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.auth-switch-link a {
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.auth-switch-link a:hover {
    color: var(--primary);
}

/* Security Trust Micro-Strip */
.auth-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
}

.auth-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}

.auth-trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 32px 14px 64px;
    }

    .auth-card {
        padding: 32px 20px 28px;
        border-radius: var(--radius-lg);
    }

    .auth-card-title {
        font-size: 22px;
    }

    .auth-trust-strip {
        gap: 12px;
        margin-top: 26px;
        padding-top: 20px;
        flex-direction: row;
        justify-content: center;
    }
}


/* =====================================================================
   AWWWARDS-GRADE MODERN DATA TABLE & PLACEMENT SPECIFICATION SYSTEM
   ===================================================================== */
.table-responsive-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.table,
.modern-table,
.compare-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.modern-table thead th,
table.table thead th {
    background: linear-gradient(180deg, #FAFBF7 0%, #F1F3EC 100%);
    padding: 16px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.modern-table thead th .th-wrap,
table.table thead th .th-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.modern-table thead th .th-icon {
    opacity: 0.65;
}

.modern-table tbody tr,
table.table tbody tr {
    position: relative;
}

.modern-table tbody tr:not(:last-child) td,
table.table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(228, 230, 222, 0.75);
}

.modern-table td,
table.table td {
    padding: 18px 20px;
    vertical-align: middle;
    color: var(--text-primary);
}

.compare-ip-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.compare-matrix td .ip-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
}

/* Server Comparison Page Dedicated Responsive System */
.compare-selector-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.compare-selector-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 12px;
    align-items: flex-end;
}

.compare-slot-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.compare-slot-label {
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--charcoal);
    display: block;
}

.compare-selector-form .form-control {
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    width: 100%;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0 12px;
    color: var(--charcoal);
}

.compare-submit-col {
    display: flex;
    align-items: flex-end;
}

.compare-submit-btn {
    height: 42px;
    padding: 0 20px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.compare-quick-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.compare-quick-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.compare-quick-pill {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.compare-quick-pill:hover {
    background: #EAF0E6;
    border-color: #A9C29E;
    color: var(--primary-text);
}

.compare-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    margin-left: 6px;
    vertical-align: middle;
    transition: all 0.15s ease;
}

.compare-remove-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
}

.compare-add-col-card {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.015);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
}

/* =====================================================================
   UNIFIED 3-SERVER RESPONSIVE COMPARISON MATRIX
   ===================================================================== */

.table-responsive-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    display: block !important;
    width: 100%;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior-x: contain;
}

.compare-matrix {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.compare-matrix th,
.compare-matrix td {
    padding: 16px 16px;
    vertical-align: middle;
}

.compare-matrix thead th {
    background: linear-gradient(180deg, #FAFBF7 0%, #F1F3EC 100%);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.compare-matrix tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(228, 230, 222, 0.75);
}

.compare-th-metric {
    width: 140px;
    min-width: 140px;
    max-width: 150px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box;
    line-height: 1.35;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-matrix tbody tr td:first-child {
    width: 140px;
    min-width: 140px;
    max-width: 150px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-th-server {
    text-align: center;
    min-width: 200px;
}

.compare-th-server-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin: 0 auto 8px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
}

.compare-th-server-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    display: block;
    line-height: 1.3;
}

.compare-ip-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.compare-matrix td .ip-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
    max-width: 220px;
    padding: 0 8px;
    height: 36px;
    box-sizing: border-box;
    font-size: 11px;
    border-radius: var(--radius-md);
}

.compare-matrix td .btn-ip-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.compare-matrix td .btn-ip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.compare-matrix td .ip-copy-status {
    flex-shrink: 0;
    font-size: 9.5px;
    padding: 2px 6px;
    margin-left: 4px;
}

.compare-actions-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
}

.compare-actions-wrap .btn-sm {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
}

.table-scroll-hint {
    display: none;
}

@media (max-width: 992px) {
    .compare-selector-form {
        grid-template-columns: repeat(3, 1fr);
    }
    .compare-submit-col {
        grid-column: span 3;
    }
    .table-scroll-hint {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background: #FAFBF7;
        border-bottom: 1px solid var(--border);
        font-size: 11.5px;
        color: var(--text-secondary);
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .compare-matrix {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    /* Sticky Metric Column on Mobile */
    .compare-matrix th:first-child,
    .compare-matrix td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: #FAFBF7;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08);
        border-right: 1px solid var(--border);
        width: 135px;
        min-width: 135px;
        max-width: 140px;
        padding: 12px 10px;
        font-size: 11px;
        font-weight: 700;
        color: var(--charcoal);
        box-sizing: border-box;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.35;
        overflow-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .compare-matrix tbody tr td:first-child {
        background: #FFFFFF;
    }
    
    .compare-matrix thead th:first-child {
        background: #F1F3EC;
        z-index: 12;
    }
    
    .compare-matrix th:not(:first-child),
    .compare-matrix td:not(:first-child) {
        min-width: 175px;
        width: auto;
        padding: 12px 10px;
        box-sizing: border-box;
    }

    .compare-matrix td .ip-copy-btn {
        max-width: 100%;
        width: 100%;
        padding: 0 6px;
        font-size: 10.5px;
        height: 32px;
    }

    .compare-actions-wrap {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        width: 100%;
    }

    .compare-actions-wrap .btn-sm {
        width: 100%;
        text-align: center;
        padding: 7px 10px;
        font-size: 11px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .compare-th-server-logo {
        width: 40px;
        height: 40px;
    }

    .compare-th-server-name {
        font-size: 13.5px;
    }
}

@media (max-width: 640px) {
    .compare-selector-form {
        grid-template-columns: 1fr;
    }
    .compare-submit-col {
        grid-column: span 1;
    }
    .compare-selector-card {
        padding: 16px;
    }
}

/* Slot Column Layout */
.slot-meta-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.slot-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--charcoal);
    box-shadow: 0 1px 3px rgba(18, 19, 17, 0.04);
}

.slot-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slot-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

.slot-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dimensions Pills */
.dimensions-cell {
    min-width: 200px;
}

.dimension-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.dim-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(18, 19, 17, 0.03);
    cursor: pointer;
}

.dim-chip svg {
    opacity: 0.6;
}

.dim-or {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dim-badge-highlight {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #92400E;
}

/* Audience Impact Cell */
.impact-cell-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.impact-lead-text {
    font-size: 13.5px;
    color: var(--charcoal);
    font-weight: 600;
    line-height: 1.4;
}

.impact-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.impact-micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.badge-mint-accent {
    background: #EBF5E1;
    color: #3B5B19;
    border: 1px solid rgba(114, 157, 72, 0.2);
}

.badge-amber-accent {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.badge-blue-accent {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-purple-accent {
    background: #FAF5FF;
    color: #6B21A8;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

/* Action Cell Button */
.slot-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--surface-alt);
    color: var(--charcoal);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-decoration: none;
}

/* Copy Toast */
.dim-copy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--charcoal);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-modal);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-copy-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Interactive Visual Slot Wireframe Diagram */
.ad-wireframe-card {
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.ad-wireframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ad-wireframe-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-wireframe-mockup {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-subtle);
}

.mockup-nav {
    height: 14px;
    background: #E8EBE2;
    border-radius: 4px;
    width: 100%;
}

.mockup-slot-hero {
    background: rgba(114, 157, 72, 0.12);
    border: 2px dashed #729D48;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #37541C;
    transition: all 0.2s ease;
}

.mockup-body-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.mockup-main-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-slot-inline {
    background: rgba(37, 99, 235, 0.08);
    border: 2px dashed #2563EB;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #1E40AF;
}

.mockup-slot-sidebar {
    background: rgba(147, 51, 234, 0.08);
    border: 2px dashed #9333EA;
    border-radius: 6px;
    padding: 20px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #6B21A8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-dummy-row {
    height: 10px;
    background: #F1F3EC;
    border-radius: 3px;
}

/* =====================================================================
   LIVE AD CREATIVE PREVIEWS (FEATURING OFFICIAL LOGO)
   ===================================================================== */
.wireframe-view-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
}

.wireframe-view-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wireframe-view-btn.active {
    background: var(--charcoal);
    color: #FFFFFF;
}

.creative-hero-slot {
    background: linear-gradient(135deg, #182015 0%, #242D20 100%);
    border: 1px solid rgba(114, 157, 72, 0.4);
    border-radius: 8px;
    padding: 18px 22px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.creative-hero-glow {
    position: absolute;
    top: -30px;
    right: 25%;
    width: 180px;
    height: 120px;
    background: radial-gradient(circle, rgba(114, 157, 72, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.creative-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.creative-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.creative-logo-box img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.creative-featured-slot {
    background: linear-gradient(135deg, #241E15 0%, #362E20 100%);
    border: 1px solid rgba(217, 119, 6, 0.45);
    border-radius: 8px;
    padding: 14px 18px;
    color: #FFFFFF;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.creative-inline-slot {
    background: #FFFFFF;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
}

.creative-sidebar-slot {
    background: linear-gradient(180deg, #1C1A27 0%, #13121C 100%);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 8px;
    padding: 22px 16px;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.creative-spec-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =====================================================================
   DEDICATED MOBILE AD PLACEMENT CARDS
   ===================================================================== */
.ad-placements-mobile {
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.ad-mobile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ad-mobile-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ad-mobile-card-price {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 800;
    color: var(--charcoal);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.ad-mobile-card-price span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.ad-mobile-card-dims {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ad-mobile-card-impact {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.ad-mobile-card-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ad-mobile-pc-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.4;
}


/* Mobile Search & Hamburger Toggle */
.mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--charcoal);
    cursor: pointer;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 19, 17, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88vw;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

body.mobile-nav-open {
    overflow: hidden;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-glass);
    position: sticky;
    top: 0;
    z-index: 2;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--charcoal);
    cursor: pointer;
    line-height: 1;
}

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

.mobile-search-input-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.mobile-search-input-btn kbd {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-minecraft), monospace;
    font-size: 12.5px;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-text);
}

.mobile-nav-link svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-nav-link.active svg {
    color: var(--primary);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.mobile-username {
    font-weight: 700;
    font-size: 14px;
    color: var(--charcoal);
}

.mobile-user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.mobile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =====================================================================
   DASHBOARD SHELL, MOBILE NAVIGATION & RESPONSIVE ARCHITECTURE
   ===================================================================== */
.dashboard-layout-container {
    padding-top: 28px;
    padding-bottom: 64px;
}

.dashboard-shell {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

/* Desktop Sidebar */
.dashboard-sidebar-card {
    width: 250px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 86px;
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--border);
}

.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-user-meta {
    flex: 1;
    min-width: 0;
}

.dash-username {
    font-weight: 800;
    font-size: 14.5px;
    color: var(--charcoal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-role {
    font-size: 11.5px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-section-label {
    font-size: 10.5px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 16px 0 8px;
    padding: 0 4px;
}

.dash-section-label:first-of-type {
    margin-top: 0;
}

.dash-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-nav-item {
    margin-bottom: 3px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: all 0.15s ease;
}

.dash-nav-link:hover {
    color: var(--charcoal);
    background: var(--surface-alt);
}

.dash-nav-link.active {
    color: var(--charcoal);
    background: var(--surface-alt);
    font-weight: 700;
}

.dash-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.dash-nav-link svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.dash-nav-link:hover svg,
.dash-nav-link.active svg {
    color: var(--primary);
}

.dash-nav-link-primary {
    color: var(--primary);
    font-weight: 700;
}

.dash-badge-unread {
    margin-left: auto;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--radius-full);
}

.dashboard-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Mobile Header & Horizontal Nav Strip */
.dashboard-mobile-header {
    display: none;
    margin-bottom: 20px;
}

.dash-mobile-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-subtle);
}

.dash-mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid var(--border);
}

.dash-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-mobile-meta {
    flex: 1;
    min-width: 0;
}

.dash-mobile-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--charcoal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-mobile-role {
    font-size: 11.5px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-mobile-add-btn {
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 11.5px;
}

.dashboard-mobile-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px 2px 8px 2px;
    scrollbar-width: none;
}

.dashboard-mobile-nav::-webkit-scrollbar {
    display: none;
}

.dash-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-subtle);
}

.dash-tab-pill svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.dash-tab-pill.active {
    background: var(--charcoal);
    color: #FFFFFF;
    border-color: var(--charcoal);
}

.dash-tab-pill.active svg {
    color: var(--primary);
}

.dash-pill-badge {
    background: var(--primary);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

/* General Dashboard Card Component */
.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.dash-card.mb-4 {
    margin-bottom: 24px;
}

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

.dash-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -0.01em;
}

.dash-card-subtitle {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin: 4px 0 0;
    line-height: 1.45;
}

.dash-subcard {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-sizing: border-box;
}

.dash-subcard.mb-4 {
    margin-bottom: 20px;
}

.dash-subcard-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 14px;
}

/* Responsive Grid Form Helpers */
.dash-form {
    width: 100%;
}

.dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dash-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dash-grid-3-1 {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dash-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Avatar Upload Row in Profile */
.dash-avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dash-avatar-preview-box {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dash-avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-avatar-upload-info {
    flex: 1;
    min-width: 220px;
}

.dash-upload-label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: var(--charcoal);
}

/* Player Overview Banner */
.dash-player-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 26px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-sizing: border-box;
}

.dash-user-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.dash-banner-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--charcoal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border: 2px solid var(--surface);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.dash-banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-avatar-status-dot {
    display: none !important;
}

.dash-banner-info {
    flex: 1;
    min-width: 0;
}

.dash-banner-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-banner-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -0.01em;
}

.dash-role-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    background: #EBF3E5;
    color: #4B6E29;
    border: 1px solid rgba(114, 157, 72, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dash-banner-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-sub-sep {
    color: var(--text-muted);
}

.dash-voter-pass {
    color: var(--primary);
    font-weight: 600;
}

.dash-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Bento Metrics Grid */
.dash-bento-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.dash-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dash-metric-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.dash-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-metric-icon.icon-streak { background: #FEF3C7; color: #D97706; }
.dash-metric-icon.icon-votes { background: #EBF5E1; color: #37541C; }
.dash-metric-icon.icon-favs { background: #EFF6FF; color: #1E40AF; }
.dash-metric-icon.icon-alert { background: #F1F3EC; color: #5C6057; }
.dash-metric-icon.icon-alert-active { background: #FEF2F2; color: #DC2626; }

.dash-metric-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.1;
}

.dash-metric-value.metric-danger {
    color: #DC2626;
}

.dash-metric-unit {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-left: 2px;
}

.dash-metric-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-metric-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Favorite Servers Quick Grid */
.dash-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.dash-fav-item {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.dash-fav-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-fav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.dash-fav-details {
    flex: 1;
    min-width: 0;
}

.dash-fav-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--charcoal);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-fav-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow: hidden;
}

.dash-fav-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.dash-fav-status.online { color: #22C55E; }
.dash-fav-status.offline { color: var(--text-muted); }

.dash-fav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-fav-vote-btn {
    flex: 1;
    justify-content: center;
}

/* Empty States */
.dash-empty-box {
    text-align: center;
    padding: 36px 16px;
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.dash-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.dash-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 4px;
}

.dash-empty-desc {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 420px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

/* Section Header inside Cards */
.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-section-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
}

.dash-section-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dash-view-all-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Tables inside Dashboard */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
    border-radius: var(--radius-md);
}

.dash-table {
    width: 100%;
    margin-bottom: 0;
    white-space: nowrap;
}

.dash-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.dash-table td {
    padding: 12px 14px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.dash-table-server-link {
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
}

.dash-table-server-link:hover {
    color: var(--primary);
}

.dash-table-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.dash-status-pill {
    background: #ECEFF1;
    color: #546E7A;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

/* My Listed Servers Cards */
.dash-servers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-server-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.dash-server-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-server-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--charcoal);
}

.dash-server-info {
    flex: 1;
    min-width: 0;
}

.dash-server-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.dash-server-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
}

.dash-server-name a {
    color: var(--charcoal);
    text-decoration: none;
}

.dash-server-name a:hover {
    color: var(--primary);
}

.dash-server-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-server-stats-bar {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-server-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.dash-server-actions-grid .btn {
    justify-content: center;
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
}

/* Reviews List */
.dash-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-review-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}

.dash-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-review-server {
    font-weight: 800;
    font-size: 15px;
    color: var(--charcoal);
    text-decoration: none;
}

.dash-review-stars {
    color: var(--badge-gold);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.dash-review-text {
    font-size: 13.5px;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.5;
}

.dash-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 6px;
}

.dash-review-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Tags selector grid */
.dash-tags-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.dash-tag-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--surface-alt);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

/* Assets preview in server edit */
.dash-current-asset-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-current-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--charcoal);
}

.dash-current-banner-img {
    max-width: 100%;
    height: 44px;
    border-radius: 4px;
    object-fit: contain;
    display: block;
    background: #0B0E0B;
    border: 1px solid var(--border);
}

.dash-asset-label {
    font-size: 11.5px;
    color: var(--text-secondary);
}

/* Analytics Stats Grid */
.dash-analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.dash-rating-value {
    color: var(--badge-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Verification Challenges */
.dash-alert-success {
    background: #EBF3E5;
    border: 1px solid #C8DEC0;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dash-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #D9EBD0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-alert-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E5316;
    margin: 0 0 2px;
}

.dash-alert-text {
    color: #4A6E32;
    font-size: 13.5px;
    margin: 0;
}

.dash-challenge-box {
    background: #FFF9E6;
    border: 1px solid #FFE082;
    border-radius: var(--radius-lg);
    padding: 20px;
}

.dash-challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-challenge-timer {
    font-size: 12px;
    color: #8D6E63;
}

.dash-challenge-method {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #5D4037;
}

.dash-challenge-steps {
    font-size: 13px;
    color: #5D4037;
    line-height: 1.5;
    margin-bottom: 12px;
}

.dash-challenge-steps p {
    margin: 0 0 4px;
}

.dash-token-code {
    background: #FFFFFF;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-block;
    margin: 4px 0;
    border: 1px solid #FFE082;
    word-break: break-all;
}

.dash-challenge-error {
    padding: 8px 12px;
    background: #FFCDD2;
    border-radius: 4px;
    color: #B71C1C;
    font-size: 12px;
    margin-bottom: 12px;
}

.dash-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 13.5px;
}

.dash-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-announcement-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.dash-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dash-announcement-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
}

.dash-announcement-title {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0 6px;
    color: var(--charcoal);
}

.dash-announcement-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Notifications Panel */
.notifications-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
}
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.notif-unread-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #FEF3C7;
    color: #92400E;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #FDE68A;
}

.notif-mark-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
}

.notification-item.is-unread {
    background: linear-gradient(135deg, rgba(238, 244, 232, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(114, 157, 72, 0.35);
}

.notif-avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-avatar-icon.type-check {
    background: #EBF5E1;
    color: #37541C;
    border: 1px solid rgba(114, 157, 72, 0.2);
}

.notif-avatar-icon.type-warning {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.notif-avatar-icon.type-bell {
    background: var(--surface-alt);
    color: var(--charcoal);
    border: 1px solid var(--border);
}

.notif-content-col {
    flex: 1;
    min-width: 0;
}

.notif-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 12px;
    flex-wrap: wrap;
}

.notif-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.notif-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.notif-message-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.notif-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.notif-unread-dot {
    display: none !important;
}

.notifications-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Server Profile Styles */
.profile-hero {
    position: relative;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
}

.profile-banner-container {
    height: clamp(180px, 25vw, 320px);
    background-color: var(--charcoal);
    background-size: cover;
    background-position: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.profile-banner-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,19,17,0.1) 0%, rgba(18,19,17,0.7) 100%);
}

.profile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-brand-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.profile-logo {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--charcoal);
    border: 3px solid var(--surface);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.profile-title-block {
    min-width: 0;
    flex: 1;
}

.profile-title-block h1 {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: var(--charcoal);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-meta-row {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.profile-title-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-main-col,
.profile-sidebar-col {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.profile-content-card,
.profile-sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.profile-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.profile-realm-title {
    color: #5B21B6;
}

.profile-conn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-conn-box {
    background: var(--surface-alt);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-conn-box.realm-box {
    background: rgba(124, 58, 237, 0.05);
    border: 1.5px solid rgba(124, 58, 237, 0.3);
}

.profile-conn-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.profile-conn-val-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.profile-conn-val {
    font-family: var(--font-minecraft);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--charcoal);
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
    flex: 1;
}

.profile-conn-val.profile-conn-link {
    font-size: 13.5px;
    color: var(--primary-text);
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.profile-conn-val-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.profile-conn-hint {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
    word-break: break-word;
}

.profile-conn-port {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: var(--font-minecraft);
}

.profile-join-guide {
    background: var(--surface-alt);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-code-pill {
    font-family: var(--font-minecraft);
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.server-banner-spotlight {
    position: relative;
    margin-bottom: 24px;
    background: #0c0e0b;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-banner-spotlight-label {
    font-size: 11px;
    text-transform: uppercase;
    font-family: var(--font-minecraft);
    letter-spacing: 0.06em;
    color: #8F948B;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.server-banner-spotlight-label .pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.server-banner-spotlight-img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    display: inline-block;
    image-rendering: auto;
}

.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.motd-container {
    background: #0D0E0C;
    color: #AAAAAA;
    font-family: var(--font-minecraft);
    font-size: 14.5px;
    letter-spacing: 0.04em;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    line-height: 1.65;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255,255,255,0.08);
    image-rendering: pixelated;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.85);
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Community Voters & Supporter Grid */
.profile-voters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.profile-voter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 0;
    box-sizing: border-box;
}

.profile-voter-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.profile-voter-head {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    image-rendering: pixelated;
    flex-shrink: 0;
    background: #181916;
}

.profile-voter-head-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--charcoal);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-voter-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-voter-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--charcoal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.profile-voter-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

/* Explore Page Controls */
.explore-filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-card);
}

.explore-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.explore-inputs-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.explore-search-wrap {
    flex: 2;
    min-width: 240px;
}

.explore-select {
    flex: 1;
    min-width: 150px;
}

.explore-submit-btn {
    white-space: nowrap;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.explore-checkbox-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-wrap: wrap;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

.explore-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.explore-reset-btn {
    margin-left: auto;
    color: var(--danger);
    font-size: 12.5px;
    text-decoration: underline;
    font-weight: 600;
}

.explore-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

/* =====================================================================
   WORLD-CLASS MULTI-DEVICE RESPONSIVE SYSTEM
   Flawlessly adapted for Ultra-wide PCs, Laptops, Tablets, and Mobiles
   ===================================================================== */

/* Responsive Grid & Layout Utility Classes */
.ad-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.ad-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.ad-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card-404-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .card-404-box {
        padding: 32px 18px;
        border-radius: var(--radius-lg);
    }
}

.ad-payment-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-subtle);
}

.payment-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.payment-brand-logo {
    height: 18px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.pill-bkash {
    background: #FFF0F5;
    color: #D12053;
    border: 1px solid rgba(209, 32, 83, 0.28);
}

.pill-nagad {
    background: #FFF6E5;
    color: #E05305;
    border: 1px solid rgba(224, 83, 5, 0.28);
}

.pill-rocket {
    background: #F6EDFC;
    color: #8C25B8;
    border: 1px solid rgba(140, 37, 184, 0.28);
}

.pill-bank {
    background: var(--surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border);
}


.dash-player-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dash-bento-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.table-scroll-hint {
    display: none;
}

/* 1. Large Laptops & Desktops (>= 1101px) */
@media (min-width: 1101px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    .mobile-search-btn {
        display: none !important;
    }
    .main-nav {
        display: flex !important;
    }
    .desktop-auth-actions {
        display: flex !important;
    }
    .header-search-trigger {
        display: inline-flex !important;
    }
    .dashboard-mobile-nav {
        display: none !important;
    }
    .ad-placements-mobile {
        display: none !important;
    }
    .table-responsive-card {
        display: block !important;
    }
    .ad-wireframe-card,
    #adPreviewSection {
        display: block !important;
    }
}

/* Fluid Fitting for Medium-to-Large Laptops (1101px - 1380px) */
@media (min-width: 1101px) and (max-width: 1380px) {
    .site-header .container,
    .site-header .container.header-inner {
        padding-left: 16px !important;
        padding-right: 18px !important;
    }
    .header-inner {
        gap: 10px !important;
    }
    .brand-link {
        gap: 8px !important;
    }
    .brand-sub,
    .brand-collab-x {
        display: none !important;
    }
    .brand-name {
        font-size: 16px !important;
    }
    .main-nav {
        gap: 4px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    .nav-link {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
    }
    .header-search-trigger {
        padding: 0 11px !important;
        height: 35px !important;
    }
    .header-search-kbd {
        display: none !important;
    }
    .desktop-auth-actions {
        gap: 6px !important;
    }
    .header-btn-add-server,
    .header-btn-admin,
    .header-btn-ghost,
    .header-btn-primary,
    .header-user-btn {
        height: 35px !important;
        padding: 0 12px !important;
        font-size: 11.5px !important;
    }
}

/* Compact Fitting for Smaller Desktops / Large Tablets (1101px - 1220px) */
@media (min-width: 1101px) and (max-width: 1220px) {
    .site-header .container,
    .site-header .container.header-inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .header-inner {
        gap: 6px !important;
    }
    .brand-logo-img {
        height: 32px !important;
        width: 32px !important;
    }
    .brand-name {
        font-size: 14.5px !important;
    }
    .main-nav {
        gap: 2px !important;
    }
    .nav-link {
        padding: 5px 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    .nav-link .nav-icon {
        width: 12px !important;
        height: 12px !important;
    }
    .header-search-trigger {
        padding: 0 10px !important;
        height: 34px !important;
    }
    .header-search-trigger .search-label {
        display: none !important;
    }
    .header-btn-add-server,
    .header-btn-admin,
    .header-btn-ghost,
    .header-btn-primary,
    .header-user-btn {
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }
}

/* Mobile Header Navigation Trigger (<= 1100px) */
@media (max-width: 1100px) {
    .main-nav {
        display: none !important;
    }
    .desktop-auth-actions {
        display: none !important;
    }
    .header-search-trigger {
        display: none !important;
    }
    .mobile-search-btn {
        display: flex !important;
    }
    .mobile-nav-toggle {
        display: flex !important;
    }
}

/* 2. Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .ad-placements-mobile {
        display: flex !important;
    }
    .ad-table-card {
        display: none !important;
    }
    .ad-wireframe-card,
    #adPreviewSection {
        display: none !important;
    }

    .dashboard-mobile-nav {
        display: flex !important;
    }

    .hero-title {
        font-size: clamp(34px, 5vw, 48px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .servers-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 20px;
    }

    .profile-layout-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }

    .dashboard-shell {
        flex-direction: column;
        gap: 20px;
    }

    .dashboard-sidebar-card {
        display: none !important;
    }

    .dashboard-mobile-header {
        display: block !important;
    }

    .dashboard-mobile-nav {
        display: flex !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .ad-telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ad-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .dash-bento-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dash-analytics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dash-server-actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mockup-body-split {
        grid-template-columns: 1fr;
    }
}

/* 3. Phablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        height: 64px;
    }

    .announcement-ticker-inner {
        padding: 0 12px;
    }

    .announcement-ticker-badge-wrap {
        padding-right: 8px;
    }

    .announcement-ticker-badge {
        width: 24px;
        height: 22px;
        padding: 0;
        justify-content: center;
        border-radius: 4px;
        flex-shrink: 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .announcement-badge-text {
        display: none !important;
    }

    .announcement-badge-icon {
        width: 12.5px;
        height: 12.5px;
        margin: 0;
    }

    .announcement-ticker-divider {
        margin-left: 8px;
    }

    .announcement-ticker-item {
        font-size: 12px;
        padding-right: 0;
    }

    .announcement-sep {
        margin: 0 12px;
        font-size: 11px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .brand-logo-img {
        height: 36px;
        max-width: 42px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-sub {
        font-size: 10px;
    }

    .hero-editorial {
        padding: 40px 0 32px;
    }

    .hero-title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-search-box {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: var(--radius-lg);
    }

    .hero-search-box .search-input {
        width: 100%;
        font-size: 15px;
    }

    .hero-search-box .kbd-shortcut {
        display: none;
    }

    .search-filter-select {
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 10px 12px;
    }

    .hero-search-box .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .telemetry-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .telemetry-divider {
        display: none;
    }

    .telemetry-item {
        background: var(--surface);
        padding: 6px 12px;
        border-radius: var(--radius-full);
        border: 1px solid var(--border);
    }

    .hero-tags-wrapper {
        width: 100%;
        margin-top: 14px;
        align-items: flex-start;
    }

    .hero-tags-label {
        padding-left: 4px;
    }

    .quick-tags {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px 0 !important;
        scrollbar-width: none;
    }

    .quick-tags::-webkit-scrollbar {
        display: none;
    }

    .tag-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .profile-header-bar {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -36px;
        padding: 18px 16px;
        border-radius: var(--radius-lg);
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-brand-wrap {
        width: 100%;
        gap: 14px;
    }

    .profile-logo {
        width: 72px;
        height: 72px;
        flex-shrink: 0;
    }

    .profile-title-block {
        width: 100%;
        min-width: 0;
    }

    .profile-title-block h1 {
        font-size: clamp(20px, 4.5vw, 28px);
    }

    .profile-header-bar > div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
        width: 100%;
    }

    .profile-card-title {
        font-size: clamp(14px, 4.2vw, 17px);
        width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .profile-conn-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .profile-conn-box {
        padding: 14px 12px;
        border-radius: var(--radius-sm);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .profile-conn-val-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .profile-conn-val {
        font-size: 14px;
        width: 100%;
        text-align: left;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .profile-conn-val.profile-conn-link {
        white-space: normal;
        word-break: break-all;
        overflow-wrap: anywhere;
        font-size: 12.5px;
    }

    .profile-conn-val-row .btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    .profile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .profile-content-card,
    .profile-sidebar-card {
        padding: 18px 16px;
        margin-bottom: 16px;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .server-banner-spotlight {
        padding: 14px 12px;
        border-radius: var(--radius-lg);
        margin-bottom: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .server-banner-spotlight-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .profile-voters-list {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .profile-voter-item {
        padding: 8px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-header-bar .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .notifications-panel {
        padding: 20px;
    }

    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .notif-mark-read-btn {
        width: 100%;
        justify-content: center;
    }

    .explore-inputs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .explore-search-wrap,
    .explore-select,
    .explore-submit-btn {
        width: 100%;
        min-width: 100%;
    }

    .explore-checkbox-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .explore-reset-btn {
        margin-left: 0;
        margin-top: 4px;
    }

    .ad-bento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 32px;
    }

    .ad-faq-grid {
        grid-template-columns: 1fr;
    }

    .ad-payment-strip {
        padding: 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-layout-container {
        padding-top: 16px;
        padding-bottom: 48px;
    }

    .dash-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .dash-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .dash-card-header .btn {
        width: 100%;
        justify-content: center;
    }

    .dash-player-banner {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dash-user-flex {
        width: 100%;
        min-width: 0;
    }

    .dash-user-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dash-user-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
    }

    .dash-grid-2,
    .dash-grid-2-1,
    .dash-grid-3-1 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dash-avatar-upload-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dash-avatar-upload-info {
        width: 100%;
        min-width: 0;
    }

    .dash-server-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .dash-form-actions {
        flex-direction: column;
        width: 100%;
    }

    .dash-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dash-favorites-grid {
        grid-template-columns: 1fr;
    }

    /* Swipe hint for responsive tables on touch devices */
    .table-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px;
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--text-muted);
        background: var(--surface-alt);
        border-bottom: 1px solid var(--border);
    }

    .modern-table {
        min-width: 640px;
    }

    .mcbd-spotlight-block {
        padding: 44px 20px;
        margin: 40px 0;
    }

    .mcbd-spotlight-title {
        font-size: 26px;
        line-height: 1.22;
        letter-spacing: -0.02em;
    }

    .mcbd-spotlight-desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
}

/* 4. Small Phones (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .brand-name {
        font-size: 15px !important;
    }

    .brand-sub {
        font-size: 8px !important;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .card-body {
        padding: 18px 16px;
    }

    .card-vote-btn {
        max-width: 100%;
        flex: 1;
    }

    .table-scroll-container {
        padding-bottom: 6px;
    }

    .notifications-panel {
        padding: 16px;
    }

    .notification-item {
        padding: 14px;
        gap: 12px;
    }

    .ad-telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ad-bento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 32px;
    }

    .ad-faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dash-bento-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dash-analytics-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dash-user-actions {
        grid-template-columns: 1fr;
    }

    .dash-server-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dash-server-actions-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dash-server-actions-grid .btn {
        width: 100%;
    }

    .mcbd-spotlight-block {
        padding: 28px 14px;
        margin: 28px 0;
        border-radius: var(--radius-lg);
    }

    .mcbd-spotlight-badge {
        font-size: 9.5px;
        letter-spacing: 0.05em;
        padding: 5px 10px;
        line-height: 1.35;
        margin-bottom: 16px;
    }

    .mcbd-spotlight-title {
        font-size: 20px;
        line-height: 1.25;
        letter-spacing: -0.015em;
        margin-bottom: 14px;
    }

    .mcbd-spotlight-desc {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 22px;
    }

    .mcbd-spotlight-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .mcbd-spotlight-actions .btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 12px 14px;
        box-sizing: border-box;
    }

    /* Profile Mobile Overrides (<= 480px) */
    .profile-hero {
        margin-bottom: 20px;
    }

    .profile-banner-container {
        height: 140px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .profile-header-bar {
        padding: 14px 12px;
        margin-top: -24px;
        border-radius: var(--radius-md);
        gap: 12px;
    }

    .profile-brand-wrap {
        gap: 12px;
    }

    .profile-logo {
        width: 58px;
        height: 58px;
        border-radius: var(--radius-md);
    }

    .profile-title-block h1 {
        font-size: 19px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .profile-meta-row {
        font-size: 11.5px;
        gap: 4px 6px;
    }

    .profile-title-badges {
        gap: 6px;
        margin-top: 6px;
    }

    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .profile-card-title {
        font-size: 15px;
    }

    .profile-content-card,
    .profile-sidebar-card {
        padding: 14px 12px;
        border-radius: var(--radius-md);
        margin-bottom: 14px;
    }

    .profile-conn-box {
        padding: 12px 10px;
        border-radius: var(--radius-sm);
    }

    .profile-conn-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .profile-conn-val-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .profile-conn-val {
        font-size: 14px;
        width: 100%;
        text-align: left;
    }

    .profile-conn-val.profile-conn-link {
        white-space: normal;
        word-break: break-all;
        font-size: 12.5px;
    }

    .profile-conn-val-row .btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    .profile-conn-hint {
        font-size: 10.5px;
    }

    .profile-join-guide {
        padding: 12px;
        font-size: 12px;
        border-radius: var(--radius-sm);
    }

    .server-banner-spotlight {
        padding: 10px 8px;
        border-radius: var(--radius-md);
        margin-bottom: 14px;
    }

    .server-banner-spotlight-label {
        font-size: 9.5px;
        margin-bottom: 8px;
    }

    .server-banner-spotlight-img {
        width: 100%;
    }

    .motd-container {
        padding: 12px;
        font-size: 12.5px;
        border-radius: var(--radius-sm);
    }

    .profile-gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-voters-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-voter-item {
        padding: 8px 10px;
    }
}

/* =====================================================================
   NORMAL & MINIMAL HOVER EFFECTS SYSTEM
   Subtle, clean, native micro-interactions only where needed.
   No jarring transforms, no bouncing, just refined high-craft feedback.
   ===================================================================== */
a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    opacity: 0.94;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #FFFFFF;
}

.btn-charcoal:hover {
    background-color: #262924;
    border-color: #262924;
    color: #FFFFFF;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(114, 157, 72, 0.05);
}

.nav-link {
    transition: color 0.15s ease;
}

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

.server-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover {
    border-color: rgba(114, 157, 72, 0.4);
    box-shadow: 0 4px 18px rgba(18, 19, 17, 0.06);
}

.modern-table tbody tr {
    transition: background-color 0.12s ease;
}

.modern-table tbody tr:hover {
    background-color: rgba(114, 157, 72, 0.035);
}

.dim-chip {
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dim-chip:hover {
    background-color: #E2E6DD;
    border-color: #CBD0C4;
}

.slot-action-btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot-action-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.dash-nav-link {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dash-nav-link:hover {
    background-color: var(--surface-alt);
    color: var(--charcoal);
}

.dash-tab-pill {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dash-tab-pill:hover {
    border-color: var(--border-focus);
    color: var(--charcoal);
}

.footer-col a {
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #FFFFFF;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =====================================================================
   ANIMATED GIF BANNER & LOGO SUPPORT
   ===================================================================== */
.card-banner.is-animated-gif {
    background-size: cover;
    background-position: center;
}

.card-banner.is-animated-gif::after {
    background: linear-gradient(to bottom, rgba(18, 19, 17, 0.04) 0%, rgba(18, 19, 17, 0.38) 100%);
}

.profile-banner-container.is-animated-gif {
    background-size: cover;
    background-position: center;
}

.profile-banner-container.is-animated-gif::after {
    background: linear-gradient(180deg, rgba(18, 19, 17, 0.05) 0%, rgba(18, 19, 17, 0.40) 100%);
}

.server-logo.is-animated-gif,
.profile-logo.is-animated-gif {
    image-rendering: auto;
    object-fit: cover;
}

.server-banner-spotlight {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.server-banner-spotlight:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}


/* =====================================================================
   TOP OF SITE ADVERTISER BILLBOARD (SEAMLESS FULL-WIDTH GAMING BAR)
   ===================================================================== */
.ad-frame-wrapper {
    padding: 0;
    margin: 16px 0;
    background: #0B0E0B;
    position: relative;
    z-index: 40;
    width: 100%;
    border-top: 1.5px solid rgba(114, 157, 72, 0.45);
    border-bottom: 1.5px solid rgba(114, 157, 72, 0.45);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.ad-placement-top_banner {
    margin: 0 !important;
    border-top: none !important;
}

.flash-container:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.ad-gaming-frame {
    position: relative;
    border-radius: 0;
    background: #0B0E0B;
    border: none;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: all 0.25s ease;
}

.ad-gaming-frame:hover {
    border-color: transparent;
    box-shadow: none;
}

/* Dots Overlay (Centered at bottom of billboard stage) */
.top-ad-dots-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 8px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: auto;
}

/* Billboard Stage */
.ad-frame-stage {
    position: relative;
    height: 96px;
    width: 100%;
    overflow: hidden;
    background: #0B0E0B;
}

.ad-frame-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    transform: skewX(-25deg) translateX(-160%);
    pointer-events: none;
    z-index: 5;
    animation: adSheen 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes adSheen {
    0% { transform: skewX(-25deg) translateX(-160%); }
    22% { transform: skewX(-25deg) translateX(300%); }
    100% { transform: skewX(-25deg) translateX(300%); }
}

.top-ad-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.top-ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.top-ad-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.top-ad-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    transition: filter 0.25s ease;
}

.top-ad-slide-link:hover {
    filter: brightness(1.06);
}

.top-ad-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.top-ad-hover-badge {
    position: absolute;
    right: max(48px, calc((100% - 1240px) / 2 + 36px));
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10;
}

.top-ad-slide-link:hover .top-ad-hover-badge {
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.top-ad-pill-badge {
    font-family: var(--font-minecraft);
    font-size: 9.5px;
    font-weight: 800;
    background: #729D48;
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    display: inline-flex;
    align-items: center;
}



/* Circular Slide Navigation Arrows */
.top-ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(14, 18, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.2s ease;
    user-select: none;
}

.ad-gaming-frame:hover .top-ad-arrow {
    opacity: 1;
}

.top-ad-arrow:hover {
    background: #729D48;
    border-color: #8FD854;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 14px rgba(114, 157, 72, 0.6);
}

.top-ad-prev {
    left: max(16px, calc((100% - 1240px) / 2 + 12px));
}

.top-ad-next {
    right: max(16px, calc((100% - 1240px) / 2 + 12px));
}

/* Dots bar in HUD */
.top-ad-dots-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.top-ad-dot {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.top-ad-dot.active {
    background: #8FD854;
    width: 24px;
    box-shadow: 0 0 8px rgba(143, 216, 84, 0.6);
}

@media (max-width: 640px) {
    .ad-frame-stage {
        height: 82px;
    }
    .ad-hud-title {
        display: none;
    }
    .top-ad-arrow {
        opacity: 0.65;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    .top-ad-prev {
        left: 6px;
    }
    .top-ad-next {
        right: 6px;
    }
    .top-ad-hover-badge {
        right: 14px;
    }
}

/* =====================================================================
   WORLD-CLASS MODERN ANIMATIONS & MICRO-INTERACTIONS
   Scroll Reveals, Hover Dynamics, Particle Bursts, Vote Effects
   ===================================================================== */

/* 1. Global Scroll Progress Bar */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #507D2A, #729D48, #55FF55);
    z-index: 99999;
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.7);
    transition: width 0.1s ease-out;
    pointer-events: none;
}

/* 2. Scroll Reveal Transitions */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* 3. Modern Card Hover Dynamics */
.server-card {
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.28s ease !important;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(114, 157, 72, 0.55) !important;
    box-shadow: 0 14px 32px rgba(18, 19, 17, 0.10), 0 0 0 1px rgba(114, 157, 72, 0.25) !important;
}

.server-card .card-banner {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-card:hover .card-banner {
    transform: scale(1.04);
}

.server-card .server-logo {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.server-card:hover .server-logo {
    transform: scale(1.08) rotate(-2deg);
}

/* 4. Pulse Radar Animation for Live Indicators */
@keyframes radarPing {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(75, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(75, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(75, 175, 80, 0);
    }
}

.ping-indicator-dot,
.online-indicator-dot,
.status-dot-active,
.server-status-pill .status-dot {
    animation: radarPing 2s infinite !important;
}

/* 5. Button Press Tactile Physics */
.btn, .mc-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background-color 0.18s ease, 
                border-color 0.18s ease !important;
}

.btn:hover, .mc-btn:hover {
    transform: translateY(-2px);
}

.btn:active, .mc-btn:active {
    transform: translateY(2px) scale(0.98) !important;
}

/* Shine Sweep Effect on Hover for Primary Buttons */
.btn-primary::after,
.mc-btn-primary::after,
.mc-btn-green::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: left 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.btn-primary:hover::after,
.mc-btn-primary:hover::after,
.mc-btn-green:hover::after {
    left: 140%;
}

/* 6. Upvote Bouncy Chevron Hover */
.vote-counter {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease !important;
}

.vote-counter:hover {
    transform: scale(1.06);
    border-color: var(--primary) !important;
}

.vote-counter:hover .chevron,
.vote-counter:hover svg {
    animation: bounceUp 0.5s infinite alternate ease-in-out;
}

@keyframes bounceUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* 7. Vote Effect Particle Container & Animation */
.vote-xp-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 0 8px rgba(85, 255, 85, 0.8);
    animation: particleFly 1s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 0px), var(--ty, -80px)) scale(0.2) rotate(360deg);
    }
}

/* Floating '+1 VOTE' level up badge */
.floating-vote-badge {
    position: fixed;
    z-index: 999999;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: #55FF55;
    background: rgba(18, 19, 17, 0.92);
    border: 1px solid #55FF55;
    border-radius: 4px;
    padding: 6px 14px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px rgba(85, 255, 85, 0.5);
    animation: floatBadgeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    letter-spacing: 0.04em;
}

@keyframes floatBadgeUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -15px) scale(1.1);
    }
    40% {
        transform: translate(-50%, -25px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -65px) scale(0.9);
    }
}

/* 8. Star Rating Interactive Spin & Tilt */
.star-btn, .star-item {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease !important;
}

.star-btn:hover, .star-item:hover {
    transform: scale(1.3) rotate(-8deg) !important;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
}

/* 9. Brand Logo Tilt Animation on Hover */
.brand-link:hover .brand-logo-img {
    animation: blockTilt 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes blockTilt {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-8deg) scale(1.12); }
    70% { transform: rotate(6deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1.05); }
}

/* 10. Copy Button Morph Animation */
@keyframes copyMorph {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.copy-ip-btn.copied {
    animation: copyMorph 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================================
   OFFICIAL PARTNER NETWORK INFINITE MARQUEE SLIDER
   Continuous smooth hardware-accelerated logo scroll with gradient fade
   ===================================================================== */
.partner-marquee-container {
    background: #F9FAF7;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 0 20px;
    margin-top: 10px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.partner-marquee-header {
    text-align: center;
    margin-bottom: 12px;
}

.partner-marquee-eyebrow {
    font-family: var(--font-minecraft);
    font-size: 8.5px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.partner-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partner-marquee-track {
    display: flex;
    width: max-content;
    user-select: none;
}

.partner-marquee-track:hover .partner-marquee-group,
.partner-marquee-track:active .partner-marquee-group {
    animation-play-state: paused;
}

.partner-marquee-group {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px; /* EXACTLY matches gap for a 100% seamless transition */
    flex-shrink: 0;
    animation: partnerMarqueeSmooth 42s linear infinite;
    will-change: transform;
}

@keyframes partnerMarqueeSmooth {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.partner-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Naked Logo Link - Strictly NO background, NO border, NO box */
.partner-logo-link,
.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px;
    height: 44px;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    position: relative;
    outline: none;
}

.partner-logo-link:hover,
.partner-logo-card:hover {
    transform: scale(1.14);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.partner-logo-img {
    height: 32px;
    max-height: 38px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: auto;
    mix-blend-mode: multiply;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    opacity: 0.88;
}

.partner-logo-link:hover .partner-logo-img,
.partner-logo-card:hover .partner-logo-img {
    opacity: 1;
}

@media (max-width: 768px) {
    .partner-marquee-container {
        padding: 14px 0 16px;
        margin-top: 6px;
        margin-bottom: 20px;
    }
    .partner-marquee-group {
        gap: 32px;
        padding-right: 32px;
        animation-duration: 24s;
    }
    .partner-logo-link,
    .partner-logo-card {
        height: 36px;
        padding: 2px 6px;
    }
    .partner-logo-img {
        height: 26px;
        max-height: 28px;
        max-width: 100px;
    }
    .partner-marquee-wrapper {
        mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    }
}

/* =====================================================================
   COOKIE CONSENT BANNER & SETTINGS DIALOG (SERVER HUB THEME)
   Forest green accents, tactile buttons, Minecraft display titles
   ===================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 24px;
    right: 24px;
    max-width: 1240px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1.5px solid rgba(114, 157, 72, 0.35);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(114, 157, 72, 0.15);
    z-index: 99999;
    font-family: var(--font-sans);
    animation: cookieSlideUp 0.35s ease-out forwards;
}

.cookie-banner-inner {
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner-content {
    flex: 1;
    min-width: 0;
}

.cookie-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cookie-pixel-badge {
    color: var(--primary, #729D48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-title {
    font-family: var(--font-minecraft, 'Minecraftia', monospace);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary, #181916);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cookie-banner-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

.cookie-text-link {
    color: var(--primary, #729D48);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
}

.cookie-text-link:hover {
    color: var(--primary-hover, #5d823a);
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    height: 38px;
    padding: 0 20px;
    font-family: var(--font-minecraft, 'Minecraftia', monospace);
    font-size: 11px;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
}

.cookie-btn-accept {
    background: #729D48;
    border: 1px solid #5d823a;
    color: #FFFFFF;
    box-shadow: 0 2px 0 #4a6c2a;
}

.cookie-btn-accept:hover {
    background: #5d823a;
    box-shadow: 0 1px 0 #4a6c2a;
    transform: translateY(1px);
}

.cookie-btn-deny {
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    color: #4B5563;
}

.cookie-btn-deny:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
    color: #1F2937;
}

.cookie-btn-adjust {
    background: #FFFFFF;
    border: 1.5px solid #729D48;
    color: #729D48;
}

.cookie-btn-adjust:hover {
    background: rgba(114, 157, 72, 0.08);
    border-color: #5d823a;
    color: #5d823a;
}

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

/* Cookie Settings Modal */
.cookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal-card {
    background: #FFFFFF;
    border: 2px solid rgba(114, 157, 72, 0.3);
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-sans);
    animation: cookieModalScale 0.2s ease-out;
}

@keyframes cookieModalScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #FBFDF9;
}

.cookie-modal-title {
    font-family: var(--font-minecraft, 'Minecraftia', monospace);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #181916);
    margin: 0 0 4px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cookie-modal-subtitle {
    font-size: 12.5px;
    color: #6B7280;
    margin: 0;
    line-height: 1.45;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.cookie-modal-close:hover {
    color: #111827;
    background: #F3F4F6;
}

.cookie-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-info-box {
    background: rgba(114, 157, 72, 0.08);
    border: 1px solid rgba(114, 157, 72, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
}

.cookie-info-box p {
    margin: 0;
}

.cookie-pref-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
}

.cookie-pref-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.cookie-pref-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-pref-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}

.cookie-pref-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
    background: #ECFDF5;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cookie-cat-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary, #729D48);
    background: rgba(114, 157, 72, 0.12);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cookie-pref-desc {
    font-size: 12px;
    line-height: 1.55;
    color: #4B5563;
    margin: 0 0 10px 0;
}

.cookie-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cookie-chip {
    font-size: 11px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    padding: 2px 8px;
    border-radius: 4px;
    color: #374151;
}

.cookie-chip code {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: #1F2937;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: .2s;
    border-radius: 22px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #729D48;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(16px);
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #FBFDF9;
}

.cookie-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        border-radius: 10px;
    }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
        gap: 16px;
    }
    .cookie-banner-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        height: 38px;
    }
    .cookie-modal-card {
        max-height: 95vh;
    }
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }
    .cookie-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cookie-modal-footer-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
}

/* ==========================================================================
   Server Webstores - Complete Mobile Responsive System
   ========================================================================== */
.store-page-wrap {
    min-height: 100vh;
}
.store-hero-container {
    padding-top: 24px;
    margin-bottom: 28px;
}
.store-hero-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    background: var(--surface);
}
.store-hero-banner {
    height: 200px;
    background-color: #181916;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 20, 14, 0.15) 0%, rgba(17, 20, 14, 0.75) 100%);
}
.store-banner-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}
.store-badge-verified {
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.store-badge-players {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    color: #86EFAC;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
    box-shadow: 0 0 8px #22C55E;
}
.store-banner-promo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}
.store-badge-sale {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FCD34D;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Store Brand Bar */
.store-brand-bar {
    padding: 24px 28px 20px 28px;
    background: var(--surface);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.store-brand-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    flex: 1;
}
.store-brand-avatar-wrap {
    margin-top: -64px;
    position: relative;
    flex-shrink: 0;
    z-index: 4;
}
.store-brand-avatar {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid var(--surface);
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: block;
}
.store-avatar-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22C55E;
    border: 3px solid var(--surface);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}
.store-brand-text {
    min-width: 0;
    flex: 1;
}
.store-brand-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.store-brand-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -0.02em;
}
.store-partner-pill {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.store-brand-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.store-brand-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.store-btn-profile {
    font-weight: 700;
    padding: 8px 14px;
}
.store-btn-discord {
    background: #5865F2;
    color: #FFFFFF !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.store-brand-desc {
    padding: 0 28px 24px 28px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   MOBILE BREAKPOINT (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .store-hero-container {
        padding-top: 14px !important;
        margin-bottom: 20px !important;
    }
    .store-hero-banner {
        height: 140px !important;
    }
    /* Hide top-left promo pill on mobile to prevent collision with online count */
    .store-banner-promo {
        display: none !important;
    }
    .store-banner-badges {
        top: 10px !important;
        right: 10px !important;
        gap: 6px !important;
    }
    .store-badge-verified,
    .store-badge-players {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    /* Center the brand section and give 100% width on mobile */
    .store-brand-bar {
        padding: 16px 14px 14px 14px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .store-brand-main {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .store-brand-avatar-wrap {
        margin-top: -50px !important;
        margin-bottom: 2px !important;
    }
    .store-brand-avatar {
        width: 76px !important;
        height: 76px !important;
        border-radius: 16px !important;
        margin: 0 auto !important;
    }
    .store-brand-text {
        width: 100% !important;
        text-align: center !important;
    }
    .store-brand-title-row {
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 4px !important;
    }
    .store-brand-title {
        font-size: 20px !important;
        text-align: center !important;
    }
    .store-brand-sub {
        font-size: 12.5px !important;
        text-align: center !important;
        margin-top: 2px !important;
    }
    
    /* Full width 2-column touch buttons on mobile */
    .store-brand-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 6px !important;
    }
    .store-btn-profile,
    .store-btn-discord {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }
    .store-brand-desc {
        padding: 0 14px 16px 14px !important;
        text-align: center !important;
        font-size: 13px !important;
    }

    /* Top header bar on mobile */
    .store-topbar-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .store-topbar-left {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .store-player-session {
        width: 100% !important;
        justify-content: center !important;
    }
    .store-player-session input {
        width: 100% !important;
    }

    /* Trust Escrow Section on Mobile */
    .store-escrow-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 18px 16px !important;
    }
    .store-escrow-logos {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .store-escrow-logo-item {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        height: 38px !important;
    }

    /* Category pills scrolling on mobile */
    .store-category-bar {
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
    }
    .store-category-bar::-webkit-scrollbar {
        display: none !important;
    }

    /* Products grid 1-column on mobile */
    .store-products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Checkout Page on Mobile */
    .store-checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .store-gateway-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .store-checkout-box {
        padding: 18px 16px !important;
    }
    .store-banner-promo {
        display: none !important;
    }
}

/* =====================================================================
   AWWWARDS & DRIBBLE-INSPIRED SPECULAR MOTION & BENTO DESIGN SYSTEM
   ===================================================================== */

/* 1. Bento Cascade Entry Physics */
@keyframes bentoSpringUp {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.008);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-bento-in {
    animation: bentoSpringUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

.animate-delay-1 { animation-delay: 0.05s; }
.animate-delay-2 { animation-delay: 0.10s; }
.animate-delay-3 { animation-delay: 0.15s; }
.animate-delay-4 { animation-delay: 0.20s; }
.animate-delay-5 { animation-delay: 0.25s; }
.animate-delay-6 { animation-delay: 0.30s; }

/* 2. Specular Glass Bento Cards with Metallic Sheen Sweep */
.minecraft-package-card,
.modern-bento-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 218, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease;
    overflow: hidden;
}

.minecraft-package-card::after,
.modern-bento-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -130%;
    width: 80%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: rotate(26deg);
    pointer-events: none;
    transition: left 0.75s ease-in-out;
    z-index: 5;
}

.minecraft-package-card:hover::after,
.modern-bento-card:hover::after {
    left: 170%;
}

.minecraft-package-card:hover,
.modern-bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.10), 0 6px 14px rgba(0, 0, 0, 0.04);
}

/* 3. Pulsing Online Radar Indicator */
.online-radar-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
}

.online-radar-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    animation: radarRingGlow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarRingGlow {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* 4. Holographic Rank Crest 3D Shimmer */
.rank-crest-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-crest-box img {
    filter: drop-shadow(0 6px 14px rgba(5, 150, 105, 0.25));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.minecraft-package-card:hover .rank-crest-box img {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 12px 24px rgba(5, 150, 105, 0.45));
}

/* 5. Checkout Interactive Gateway Cards */
.checkout-gateway-card {
    position: relative;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    display: block;
    background: #FFFFFF;
    border: 1.5px solid var(--border);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.checkout-gateway-card:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.checkout-gateway-card.selected-bkash {
    border-color: #E2136E !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #FDF2F7 100%) !important;
    box-shadow: 0 8px 24px rgba(226, 19, 110, 0.18), inset 0 0 0 1px #E2136E !important;
}

.checkout-gateway-card.selected-rocket {
    border-color: #8C3494 !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #FDF4FF 100%) !important;
    box-shadow: 0 8px 24px rgba(140, 52, 148, 0.18), inset 0 0 0 1px #8C3494 !important;
}

.checkout-gateway-card.selected-nagad {
    border-color: #F7941D !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFBEB 100%) !important;
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.18), inset 0 0 0 1px #F7941D !important;
}

/* 6. Purchase Sheen Button with Magnetic Feedback */
.btn-buy-package {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-minecraft-bold);
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-buy-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.45);
    filter: brightness(1.05);
}

.btn-buy-package:active {
    transform: scale(0.96);
}

.btn-buy-package::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: left 0.5s ease;
}

.btn-buy-package:hover::after {
    left: 150%;
}

/* 7. Modal Spring Transitions */
.modal-backdrop-animated {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 16, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: modalFadeIn 0.25s ease-out;
}

.modal-card-animated {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 218, 0.9);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Server listing names use the heavier Minecraft Ten display face only. */
.server-title,
.server-title a,
.leaderboard-server-name {
    font-family: var(--font-minecraft-bold, 'Minecraft Ten', 'Minecraft', monospace) !important;
    font-weight: 700;
    letter-spacing: 0.015em;
}
.profile-title-block h1 {
    font-family: var(--font-minecraft-bold, 'Minecraft Ten', 'Minecraft', monospace) !important;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.mobile-leaderboard-btn { display:none; text-decoration:none; align-items:center; justify-content:center; height:34px; padding:0 10px; border:1px solid var(--border); border-radius:8px; color:var(--text-primary); background:var(--surface); font-size:11px; font-weight:800; white-space:nowrap; }
@media (max-width:1100px) { .mobile-leaderboard-btn { display:inline-flex; } }
