/* ============================================
   Discord Dir — Modern Discord Directory
   Built for performance, beauty, and UX
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Brand Colors */
    --brand-primary: #5865F2;
    --brand-primary-hover: #4752C4;
    --brand-primary-light: #5865F220;
    --brand-secondary: #EB459E;
    --brand-accent: #57F287;
    --brand-warning: #FEE75C;
    --brand-danger: #ED4245;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5865F2, #EB459E);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #1a1145, #24243e);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    --gradient-glow: radial-gradient(circle, rgba(88, 101, 242, 0.15), transparent 70%);

    /* Backgrounds */
    --bg-primary: #0b0d14;
    --bg-secondary: #0f1119;
    --bg-tertiary: #141620;
    --bg-card: #161923;
    --bg-card-hover: #1c1f2e;
    --bg-elevated: #1e2133;
    --bg-input: #12141e;
    --bg-surface: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b0b5c9;
    --text-muted: #6b7089;
    --text-accent: #8891f2;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-active: rgba(88, 101, 242, 0.4);

    /* Spacing */
    --nav-height: 72px;
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(88, 101, 242, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

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

ul, ol {
    list-style: none;
}

::selection {
    background: var(--brand-primary);
    color: white;
}

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

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.btn-white {
    background: white;
    color: var(--bg-primary);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-ghost-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4), 0 0 40px rgba(88, 101, 242, 0.2);
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-base);
    background: rgba(11, 13, 20, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 13, 20, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 0;
    flex-shrink: 0;
}

.footer-brand .logo-icon-img {
    width: 52px;
    height: 52px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(88, 101, 242, 0.1);
}

.nav-link.active i {
    color: var(--brand-primary);
}

.nav-link i {
    font-size: 15px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 13, 20, 0.98);
    backdrop-filter: blur(8px);
    z-index: 999;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-110%);
    transition: transform var(--transition-smooth);
    display: none;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--brand-secondary);
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #7c3aed;
    top: 40%;
    left: 30%;
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

/* ---------- Hero Search ---------- */
.hero-search {
    max-width: 680px;
    margin: 0 auto 48px;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.search-container:focus-within {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.search-icon {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 16px;
}

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

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

.search-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}

.search-filter {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.search-filter:hover {
    color: var(--text-secondary);
}

.search-filter.active {
    background: var(--brand-primary);
    color: white;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--brand-primary-hover);
    transform: scale(1.05);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.search-result-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.search-result-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-result-type {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Hero Stats ---------- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    background: var(--bg-secondary);
}

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

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    position: relative;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.featured-card-banner {
    height: 80px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(254, 231, 92, 0.15);
    color: var(--brand-warning);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.verified-badge {
    color: var(--brand-primary);
    font-size: 18px;
}

.featured-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    margin: -30px 0 0 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 3px solid var(--bg-card);
}

.featured-card-avatar img,
.avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    border-radius: inherit;
}

.featured-card-body {
    padding: 12px 20px 16px;
}

.featured-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.featured-card-category {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.featured-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.featured-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.featured-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-card-stats .online i {
    color: var(--brand-accent);
    font-size: 8px;
}

.featured-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   DIRECTORY / LISTINGS
   ============================================ */
.directory-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px;
    position: relative;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
}

.tab-count {
    padding: 2px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    font-size: 11px;
}

/* Directory Filters */
.directory-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    padding: 10px 36px 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7089' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--border-hover);
}

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

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Listing Cards */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

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

.listing-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.listing-avatar img,
.listing-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    border-radius: inherit;
}

.bot-avatar {
    border-radius: 50%;
}

.bot-avatar .avatar-placeholder.bot {
    border-radius: 50%;
}

.listing-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: var(--brand-primary);
    font-size: 14px;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 1px;
}

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

.listing-name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-category {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.vote-btn-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.vote-btn-mini i {
    font-size: 12px;
}

.vote-btn-mini:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.vote-btn-mini.voted {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.listing-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.listing-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.listing-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.listing-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-stats .online i {
    color: var(--brand-accent);
    font-size: 8px;
}

.directory-more {
    text-align: center;
    margin-top: 48px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    background: var(--bg-secondary);
}

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

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

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

.category-card:hover .category-icon {
    background: var(--brand-primary);
    color: white;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-accent);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.category-arrow {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-base);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1145, #0f0c29);
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-primary);
    top: -20%;
    right: -5%;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--brand-secondary);
    bottom: -20%;
    left: -5%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 0;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: white;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px;
    position: relative;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.submit-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.submit-option {
    padding: 24px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.submit-option:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
    transform: translateY(-2px);
}

.submit-option-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.submit-option-icon.servers {
    background: rgba(88, 101, 242, 0.15);
    color: var(--brand-primary);
}

.submit-option-icon.bots {
    background: rgba(235, 69, 158, 0.15);
    color: var(--brand-secondary);
}

.submit-option h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.submit-option p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-2px);
}

/* ============================================
   SCROLLBAR
   ============================================ */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-primary);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--bg-elevated);
        border-radius: 4px;
    }
}

/* Hide custom scrollbar on mobile — use native overlay scrollbar */
@media (max-width: 768px) {
    html, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .nav-actions .btn span {
        display: none;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .search-filters {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 22px;
    }

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

    .directory-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-switcher {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    .directory-filters {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

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

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

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

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

    .submit-options {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 40px 0 30px;
    }

    .section {
        padding: 60px 0;
    }

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

    .hero-stats {
        gap: 16px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ============================================
   Auth & User Dropdown Styles
   ============================================ */

/* ---------- User Dropdown (Nav) ---------- */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-dropdown-trigger:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-nav {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-dropdown.active .user-dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-username {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

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

.dropdown-item-danger:hover {
    background: rgba(237, 66, 69, 0.1);
    color: var(--brand-danger);
}

/* ---------- Mobile User Info ---------- */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.mobile-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-info span {
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-danger {
    background: var(--brand-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c53b3e;
}

/* ---------- Discord Login Button ---------- */
.btn-discord {
    background: #5865F2;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.45), 0 0 40px rgba(88, 101, 242, 0.15);
}

.btn-discord:hover::before {
    opacity: 1;
}

.btn-discord:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.btn-discord i {
    font-size: 1.25rem;
}

/* ---------- Auth Page ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 60px) 20px 60px;
    overflow: hidden;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.25;
}

.auth-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: 5%;
    left: -150px;
    animation: float 10s infinite ease-in-out;
}

.auth-orb-2 {
    width: 450px;
    height: 450px;
    background: var(--brand-secondary);
    bottom: 5%;
    right: -120px;
    animation: float 12s infinite ease-in-out reverse;
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    animation: authFadeIn 0.6s ease-out;
}

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

.auth-card {
    background: rgba(22, 25, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card-header {
    text-align: center;
    padding: 44px 36px 20px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 
        0 0 30px rgba(88, 101, 242, 0.35),
        0 0 60px rgba(88, 101, 242, 0.15);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
}

.auth-logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: var(--gradient-primary);
    opacity: 0.2;
    animation: logoRing 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(88, 101, 242, 0.35), 0 0 60px rgba(88, 101, 242, 0.15); }
    50% { box-shadow: 0 0 40px rgba(88, 101, 242, 0.5), 0 0 80px rgba(88, 101, 242, 0.2); }
}

@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.12); opacity: 0.35; }
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 36px 4px;
    background: rgba(237, 66, 69, 0.08);
    border: 1px solid rgba(237, 66, 69, 0.25);
    border-radius: var(--radius-sm);
    color: #ff6b6e;
    font-size: 0.85rem;
    animation: authFadeIn 0.3s ease-out;
}

.auth-error i {
    flex-shrink: 0;
}

.auth-card-body {
    padding: 12px 36px 28px;
}

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

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    user-select: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast);
}

.auth-checkbox:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-checkbox input {
    display: none;
}

.auth-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    position: relative;
}

.auth-checkbox input:checked + .checkmark {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
}

.auth-checkbox input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label {
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
    cursor: default;
}

.auth-feature:hover {
    background: rgba(88, 101, 242, 0.06);
    border-color: rgba(88, 101, 242, 0.15);
    transform: translateY(-1px);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
}

/* Each feature icon gets its own color */
.auth-feature:nth-child(1) .auth-feature-icon {
    background: rgba(87, 242, 135, 0.1);
    color: #57F287;
}
.auth-feature:nth-child(2) .auth-feature-icon {
    background: rgba(88, 101, 242, 0.12);
    color: #5865F2;
}
.auth-feature:nth-child(3) .auth-feature-icon {
    background: rgba(254, 231, 92, 0.1);
    color: #FEE75C;
}
.auth-feature:nth-child(4) .auth-feature-icon {
    background: rgba(235, 69, 158, 0.1);
    color: #EB459E;
}

.auth-feature h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.auth-feature p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.auth-card-footer {
    padding: 20px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
}

.auth-card-footer p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-card-footer p + p {
    margin-top: 4px;
    opacity: 0.7;
}

.auth-card-footer a {
    color: var(--text-accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-card-footer a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Auth page responsive */
@media (max-width: 600px) {
    .auth-page {
        padding: calc(var(--nav-height) + 20px) 16px 20px;
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 32px);
    }

    .auth-card-header {
        padding: 32px 24px 16px;
    }

    .auth-card-body {
        padding: 8px 24px 24px;
    }

    .auth-card-footer {
        padding: 16px 24px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-subtitle {
        font-size: 0.82rem;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .btn-discord {
        padding: 14px 24px;
        font-size: 15px;
    }

    .auth-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        border-radius: 14px;
    }

    .user-name-nav {
        display: none;
    }

    .user-dropdown-arrow {
        display: none;
    }

    .user-dropdown-trigger {
        padding: 4px;
    }
}

/* ========================================
   SUBMIT PAGE (Redesigned)
   ======================================== */

/* ── Page Layout ─────────────────────────────────────────────────────── */
.sub-page {
    position: relative;
    min-height: 100vh;
    padding: 110px 0 80px;
    overflow: hidden;
}

/* ── Animated Background Blobs ───────────────────────────────────────── */
.sub-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.sub-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.30;
    animation: blobDrift 12s ease-in-out infinite alternate;
}
.sub-blob--purple {
    width: 500px; height: 500px;
    background: #5865F2;
    top: -80px; left: -100px;
}
.sub-blob--green {
    width: 380px; height: 380px;
    background: #3ba55d;
    bottom: -60px; right: -60px;
    animation-delay: -4s;
}
.sub-blob--pink {
    width: 300px; height: 300px;
    background: #eb459e;
    top: 40%; left: 55%;
    opacity: 0.15;
    animation-delay: -8s;
}
@keyframes blobDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

/* ── Compact Header ──────────────────────────────────────────────────── */
.sub-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.sub-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(88,101,242,0.15), rgba(235,69,158,0.12));
    border: 1px solid rgba(88,101,242,0.25);
    font-size: 0.78rem;
    font-weight: 700;
    color: #5865F2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.sub-header__badge i { font-size: 0.7rem; }
.sub-header__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #5865F2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.sub-header__desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 420px;
    margin: 0 auto;
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.sub-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.sub-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sub-progress__dot {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.sub-progress__step.active .sub-progress__dot {
    background: linear-gradient(135deg, #5865F2, #7c84f3);
    border-color: #5865F2;
    color: #fff;
    box-shadow: 0 0 20px rgba(88,101,242,0.5), 0 0 60px rgba(88,101,242,0.15);
}
.sub-progress__step.done .sub-progress__dot {
    background: linear-gradient(135deg, #3ba55d, #2d8049);
    border-color: #3ba55d;
    color: #fff;
}
.sub-progress__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sub-progress__step.active .sub-progress__label { color: #5865F2; }
.sub-progress__step.done .sub-progress__label { color: #3ba55d; }

.sub-progress__line {
    width: 80px; height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin: 0 8px;
    margin-bottom: 22px;
    overflow: hidden;
    position: relative;
}
.sub-progress__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #5865F2, #3ba55d);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.sub-progress__line.filled .sub-progress__fill { width: 100%; }

/* ── Panel (card wrapper) ────────────────────────────────────────────── */
.sub-panel {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto 40px;
    background: rgba(22, 25, 35, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 40px;
    animation: panelIn 0.5s ease-out;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Step 1: Connect ─────────────────────────────────────────────────── */
.sub-connect { text-align: center; }
.sub-connect__icon {
    width: 56px; height: 56px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub-connect__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sub-connect__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.sub-connect__desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 28px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sub-btn--discord {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(88,101,242,0.3) !important;
    width: 100%;
    max-width: 380px;
}
.sub-btn--discord:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15) !important;
}
.sub-btn__arrow {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.sub-btn--discord:hover .sub-btn__arrow { transform: translateX(3px); }

.sub-btn--verify {
    background: #3ba55d !important;
    color: #fff !important;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(59,165,93,0.25) !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-btn--verify:hover { background: #fff !important; color: #000 !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,165,93,0.4) !important; }
.sub-btn--verify:disabled { opacity: 0.6; cursor: wait; transform: none; }

.sub-btn--submit {
    width: 100%;
    padding: 16px 32px;
    background: #5865F2 !important;
    color: #fff !important;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(88,101,242,0.3) !important;
    border-radius: 16px;
    margin-top: 8px;
}
.sub-btn--submit:hover { background: #fff !important; color: #000 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15) !important; }
.sub-btn--submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.sub-btn--primary {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(88,101,242,0.25) !important;
}
.sub-btn--primary:hover { background: #fff !important; color: #000 !important; transform: translateY(-1px); }

.sub-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}
.sub-btn--ghost:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.15); }

/* ── Divider ─────────────────────────────────────────────────────────── */
.sub-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 24px;
}
.sub-divider::before, .sub-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.sub-divider span {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Verify Input ────────────────────────────────────────────────────── */
.sub-verify { text-align: left; max-width: 440px; margin: 0 auto; }
.sub-verify__row { display: flex; gap: 10px; margin-top: 8px; }

/* ── Labels & Inputs ─────────────────────────────────────────────────── */
.sub-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.sub-label i {
    color: #5865F2;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}
.sub-label-hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 4px;
}
.sub-req { color: #ed4245; font-weight: 700; }
.sub-lock {
    font-size: 0.65rem;
    color: #5865F2;
    background: rgba(88,101,242,0.12);
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
}
.sub-lock i { font-size: 0.55rem; color: #5865F2; }

.sub-input, .sub-select, .sub-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.sub-input:focus, .sub-select:focus, .sub-textarea:focus {
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}
.sub-input::placeholder, .sub-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}
.sub-input--locked {
    background: rgba(0,0,0,0.25);
    color: var(--text-muted);
    cursor: default;
    border-color: rgba(255,255,255,0.03);
    opacity: 0.8;
}
.sub-input--locked:focus { border-color: rgba(255,255,255,0.03); box-shadow: none; }

.sub-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

.sub-select-wrap { position: relative; }
.sub-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}
.sub-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}
.sub-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ── Hints & Char Counts ─────────────────────────────────────────────── */
.sub-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.sub-hint i { font-size: 0.68rem; }
.sub-hint a { color: #5865F2; text-decoration: none; }
.sub-hint a:hover { text-decoration: underline; }

.sub-field { margin-bottom: 20px; }
.sub-field-footer, .sub-tags-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.sub-char {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.sub-submit-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.sub-submit-hint i { font-size: 0.72rem; }

/* ── Error ────────────────────────────────────────────────────────────── */
.sub-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(237,66,69,0.08);
    border: 1px solid rgba(237,66,69,0.2);
    border-radius: 12px;
    color: #ed4245;
    font-size: 0.88rem;
    margin-top: 12px;
}
.sub-error i { flex-shrink: 0; font-size: 0.85rem; }

/* ── Auto-filled Fields Row ──────────────────────────────────────────── */
.sub-auto-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.sub-auto-field label { margin-bottom: 4px; }

/* ── Verified Server Card ────────────────────────────────────────────── */
.sub-server-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59,165,93,0.08), rgba(59,165,93,0.03));
    border: 1px solid rgba(59,165,93,0.2);
    border-radius: 16px;
    margin-bottom: 28px;
}
.sub-server-card__img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(59,165,93,0.3);
    object-fit: cover;
}
.sub-server-card__placeholder {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(59,165,93,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3ba55d;
    font-size: 1.1rem;
    border: 2px solid rgba(59,165,93,0.25);
}
.sub-server-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.sub-server-card__verified {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3ba55d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sub-server-card__verified i { font-size: 0.65rem; margin-right: 3px; }
.sub-server-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-server-card__members {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.sub-server-card__change {
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-server-card__change:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Form Layout ─────────────────────────────────────────────────────── */
.sub-form {
    display: flex;
    flex-direction: column;
}

/* ── Tags Box ────────────────────────────────────────────────────────── */
.sub-tags-box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 8px 12px;
    min-height: 48px;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sub-tags-box:focus-within {
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15);
}
.sub-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sub-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(88,101,242,0.15), rgba(235,69,158,0.08));
    color: #8891f2;
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 8px;
    padding: 4px 8px 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    animation: tagPop 0.2s ease;
}
@keyframes tagPop {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.sub-tag-pill button {
    background: none;
    border: none;
    color: rgba(136,145,242,0.5);
    cursor: pointer;
    font-size: 0.68rem;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    transition: color 0.15s, background 0.15s;
}
.sub-tag-pill button:hover { color: #fff; background: rgba(88,101,242,0.25); }

.sub-tags-input {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    padding: 4px 0;
}
.sub-tags-input::placeholder { color: var(--text-muted); opacity: 0.45; }
.sub-tags-input:disabled { opacity: 0.35; cursor: default; }

.sub-tags-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    padding: 4px;
}
.sub-tags-dropdown.visible { display: block; }

.sub-tags-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.86rem;
    transition: background 0.12s;
}
.sub-tags-suggestion:hover, .sub-tags-suggestion.highlighted {
    background: rgba(88,101,242,0.1);
    color: var(--text-primary);
}
.sub-tags-suggestion i { font-size: 0.72rem; color: #5865F2; opacity: 0.6; }
.sub-tags-suggestion strong { color: #5865F2; }
.sub-tags-suggestion--new { color: #3ba55d; }
.sub-tags-suggestion--new i { color: #3ba55d; }
.sub-tags-suggestion--new:hover { background: rgba(59,165,93,0.1); }

.sub-tags-count {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── NSFW Toggle ─────────────────────────────────────────────────────── */
.sub-nsfw-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(237,66,69,0.04);
    border: 1px solid rgba(237,66,69,0.12);
    border-radius: 14px;
    margin-bottom: 24px;
    transition: border-color 0.2s, background 0.2s;
}
.sub-nsfw-field:has(input:checked) {
    background: rgba(237,66,69,0.08);
    border-color: rgba(237,66,69,0.25);
}
.sub-nsfw-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sub-nsfw-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(237,66,69,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ed4245;
    flex-shrink: 0;
}
.sub-nsfw-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}
.sub-nsfw-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Toggle switch ───────────────────────────────────────────────────── */
.sub-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.sub-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.sub-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 26px;
    transition: all 0.3s ease;
}
.sub-toggle__slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 2px; top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sub-toggle input:checked + .sub-toggle__slider {
    background: rgba(237,66,69,0.3);
    border-color: rgba(237,66,69,0.5);
}
.sub-toggle input:checked + .sub-toggle__slider::before {
    transform: translateX(22px);
    background: #ed4245;
    box-shadow: 0 0 8px rgba(237,66,69,0.5);
}

/* ── Success ─────────────────────────────────────────────────────────── */
.sub-success { text-align: center; padding: 24px 0; }
.sub-success__icon {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 24px;
}
.sub-success__check {
    width: 80px; height: 80px;
    animation: checkDraw 0.8s ease forwards;
}
.sub-success__check circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: circDraw 0.6s ease forwards; }
.sub-success__check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: pathDraw 0.3s 0.6s ease forwards; }
@keyframes circDraw { to { stroke-dashoffset: 0; } }
@keyframes pathDraw { to { stroke-dashoffset: 0; } }

.sub-success__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.sub-success__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 28px;
}
.sub-success__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Info Strip (replaces sidebar) ───────────────────────────────────── */
.sub-info-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.sub-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(22,25,35,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
}
.sub-info-card__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sub-info-card__icon--purple {
    background: rgba(88,101,242,0.12);
    color: #5865F2;
}
.sub-info-card__icon--green {
    background: rgba(59,165,93,0.12);
    color: #3ba55d;
}
.sub-info-card__icon--blue {
    background: rgba(88,166,242,0.12);
    color: #58a6f2;
}
.sub-info-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.sub-info-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sub-page { padding: 96px 0 60px; }
    .sub-header__title { font-size: 1.6rem; }
    .sub-panel { padding: 28px 20px; border-radius: 20px; }
    .sub-auto-fields { grid-template-columns: 1fr; }
    .sub-info-strip { grid-template-columns: 1fr; }
    .sub-progress__line { width: 40px; }
    .sub-nsfw-field { flex-direction: row; gap: 12px; }
}

@media (max-width: 480px) {
    .sub-header__title { font-size: 1.35rem; }
    .sub-panel { padding: 24px 16px; }
    .sub-verify__row { flex-direction: column; }
    .sub-connect__icon { width: 48px; height: 48px; }
    .sub-btn--discord { padding: 14px 20px; font-size: 0.92rem; }
    .sub-btn--submit { padding: 14px 24px; font-size: 0.95rem; }
    .sub-success__actions { flex-direction: column; }
    .sub-progress__label { font-size: 0.64rem; }
    .sub-progress__dot { width: 32px; height: 32px; font-size: 0.75rem; }
    .sub-progress__line { width: 28px; }
}

/* ============================================
   Dashboard / Profile Control Panel
   ============================================ */

/* ── Background & Layout ─────────────────────────── */
.dash {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 32px) 0 60px;
    overflow: hidden;
}
.dash-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.dash-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: dashFloat 18s ease-in-out infinite;
}
.dash-blob--1 {
    width: 500px; height: 500px;
    background: #5865F2;
    top: -100px; right: -100px;
}
.dash-blob--2 {
    width: 400px; height: 400px;
    background: #57F287;
    bottom: -80px; left: -80px;
    animation-delay: -9s;
}
@keyframes dashFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}
.dash-container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Profile Header ──────────────────────────────── */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    margin-bottom: 24px;
}
.dash-header__left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dash-avatar {
    position: relative;
    flex-shrink: 0;
}
.dash-avatar__img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(88,101,242,0.4);
    object-fit: cover;
}
.dash-avatar__status {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 16px; height: 16px;
    background: #57F287;
    border: 3px solid #161923;
    border-radius: 50%;
}
.dash-header__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.dash-header__tag {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.dash-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}
.dash-header__badge--admin {
    background: rgba(237,66,69,0.15);
    color: #ED4245;
    border: 1px solid rgba(237,66,69,0.3);
}
.dash-header__badge--moderator {
    background: rgba(254,231,92,0.15);
    color: #FEE75C;
    border: 1px solid rgba(254,231,92,0.3);
}

/* ── Dashboard Buttons ───────────────────────────── */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    vertical-align: middle;
    line-height: 1.2;
}
.dash-btn i {
    font-size: inherit;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
}
.dash-btn--primary {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}
.dash-btn--primary:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.dash-btn--primary:hover i {
    color: #000;
}
.dash-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}
.dash-btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ── Quick Stats ─────────────────────────────────── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.dash-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
}
.dash-stat__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.dash-stat__icon--blue  { background: rgba(88,101,242,0.15); color: #5865F2; }
.dash-stat__icon--amber { background: rgba(254,231,92,0.15); color: #FEE75C; }
.dash-stat__icon--green { background: rgba(87,242,135,0.15); color: #57F287; }
.dash-stat__icon--pink  { background: rgba(235,69,158,0.15); color: #EB459E; }
.dash-stat__number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.dash-stat__label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Main Grid ───────────────────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.dash-main {
    min-width: 0;
}

/* ── Tabs ────────────────────────────────────────── */
.dash-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 16px;
}
.dash-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dash-tab:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
}
.dash-tab.active {
    background: rgba(88,101,242,0.12);
    color: #5865F2;
}
.dash-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(88,101,242,0.2);
    color: #5865F2;
    font-size: 0.72rem;
    font-weight: 700;
}
.dash-tab__count--amber {
    background: rgba(254,231,92,0.2);
    color: #FEE75C;
}

/* ── Tab Content ─────────────────────────────────── */
.dash-tab-content {
    display: none;
}
.dash-tab-content.active {
    display: block;
}

/* ── Listing Cards ───────────────────────────────── */
.dash-listing-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dash-listing {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: default;
}
.dash-listing:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(28, 31, 46, 0.8);
}
.dash-listing__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1rem;
}
.dash-listing__icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.dash-listing__info {
    flex: 1;
    min-width: 0;
}
.dash-listing__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-listing__meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.dash-listing__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dash-listing__meta i {
    font-size: 0.68rem;
}
.dash-listing__type {
    text-transform: capitalize;
}
.dash-listing__status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.dash-listing__status--live {
    background: rgba(87,242,135,0.12);
    color: #57F287;
}
.dash-listing__status--live i {
    font-size: 0.45rem;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.dash-listing__status--pending {
    background: rgba(254,231,92,0.12);
    color: #FEE75C;
}
.dash-listing__status--rejected {
    background: rgba(237,66,69,0.12);
    color: #ED4245;
}

/* ── Empty State ─────────────────────────────────── */
.dash-empty {
    text-align: center;
    padding: 48px 24px;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}
.dash-empty i {
    font-size: 1rem !important;
    color: #fff !important;
    opacity: 0.8 !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}
.dash-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}
.dash-empty p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* ── Submit Button (empty state) ─────────────────── */
.dash-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #5865F2;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    line-height: 1;
}
.dash-submit-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
}
.dash-submit-btn:active {
    transform: scale(0.97);
}
.dash-submit-btn__icon {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* ── Sidebar ─────────────────────────────────────── */
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Cards ───────────────────────────────────────── */
.dash-card {
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
}
.dash-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
}
.dash-card__title i {
    font-size: 0.9rem;
    color: #5865F2;
}

/* ── Account Info Rows ───────────────────────────── */
.dash-account-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dash-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}
.dash-account-row__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.dash-account-row__value {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.dash-account-row__value--mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* ── Quick Actions ───────────────────────────────── */
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.dash-action:hover {
    background: rgba(255,255,255,0.05);
}
.dash-action:hover .dash-action__arrow {
    opacity: 1;
    transform: translateX(2px);
}
.dash-action__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.dash-action__icon--blue { background: rgba(88,101,242,0.15); color: #5865F2; }
.dash-action__icon--purple { background: rgba(149,0,255,0.15); color: #9B59B6; }
.dash-action__icon--gold { background: rgba(254,231,92,0.15); color: #FEE75C; }
.dash-action__icon--green { background: rgba(87,242,135,0.15); color: #57F287; }
.dash-action__icon--red { background: rgba(237,66,69,0.15); color: #ED4245; }
.dash-action__text {
    flex: 1;
    min-width: 0;
}
.dash-action__name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}
.dash-action__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.dash-action__arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.2s ease;
}
.dash-action--danger:hover .dash-action__name { color: #ED4245; }

/* ── Partner Modal ───────────────────────────────── */
.dash-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 24px;
}
.dash-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.dash-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}
.dash-modal-overlay.active .dash-modal {
    transform: scale(1) translateY(0);
}
.dash-modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-modal__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.dash-modal__icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(254,231,92,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FEE75C;
}
.dash-modal__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.dash-modal__desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}
.dash-modal__requirements {
    text-align: left;
    margin-bottom: 28px;
}
.dash-modal__requirements h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-modal__requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash-modal__requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.dash-modal__requirements li i {
    color: #57F287;
    font-size: 0.75rem;
}
.dash-modal__actions {
    display: flex;
    gap: 10px;
}
.dash-modal__actions .dash-btn {
    flex: 1;
    justify-content: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dash-header {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }
    .dash-header__left {
        flex-direction: column;
        gap: 14px;
    }
    .dash-header__actions {
        width: 100%;
    }
    .dash-header__actions .dash-btn {
        width: 100%;
        justify-content: center;
    }
    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .dash-stat {
        padding: 16px;
        gap: 10px;
    }
    .dash-stat__number {
        font-size: 1.2rem;
    }
    .dash-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 2px;
    }
    .dash-tab {
        padding: 10px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .dash-listing {
        padding: 14px 16px;
    }
    .dash-listing__meta {
        gap: 10px;
    }
    .dash-card {
        padding: 20px;
    }
    .dash-modal {
        padding: 28px 20px;
    }
    .dash-modal__actions {
        flex-direction: column;
    }
}

/* ═══════ Dashboard: Edit/Delete Extensions ═══════ */

/* Listing right section (status + action buttons) */
.dash-listing__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Action buttons (edit / delete) */
.dash-listing__actions {
    display: flex;
    gap: 6px;
}
.dash-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.dash-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s;
}
.dash-action-btn:active {
    transform: scale(0.9);
}

/* Edit button */
.dash-action-btn--edit {
    background: rgba(88,101,242,0.10);
    color: #7289da;
    border-color: rgba(88,101,242,0.15);
}
.dash-action-btn--edit:hover {
    background: rgba(88,101,242,0.22);
    color: #5865F2;
    border-color: rgba(88,101,242,0.35);
    box-shadow: 0 0 12px rgba(88,101,242,0.20);
    transform: translateY(-1px);
}

/* Delete button */
.dash-action-btn--delete {
    background: rgba(237,66,69,0.08);
    color: #f04747;
    border-color: rgba(237,66,69,0.12);
}
.dash-action-btn--delete:hover {
    background: rgba(237,66,69,0.20);
    color: #ED4245;
    border-color: rgba(237,66,69,0.35);
    box-shadow: 0 0 12px rgba(237,66,69,0.18);
    transform: translateY(-1px);
}

/* Pending edit badge */
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 4px;
}
.dash-badge--edit {
    background: rgba(254,168,47,0.12);
    color: #FEA82F;
}

/* ── Edit Modal (wider) ──────────────────────────── */
.dash-modal--wide {
    max-width: 640px;
}
.dash-modal__icon--blue {
    background: rgba(88,101,242,0.12);
    color: #5865F2;
}
.dash-modal__icon--red {
    background: rgba(237,66,69,0.12);
    color: #ED4245;
}

/* Edit Form Styles */
.dash-edit-form {
    text-align: left;
    margin-top: 20px;
}
.dash-edit-field {
    margin-bottom: 16px;
}
.dash-edit-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b0b5c9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dash-edit-req {
    color: #ED4245;
}
.dash-edit-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(12,14,22,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.dash-edit-input:focus {
    border-color: #5865F2;
}
.dash-edit-input--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
textarea.dash-edit-input {
    resize: vertical;
    min-height: 100px;
}
select.dash-edit-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.dash-edit-hint {
    display: block;
    font-size: 0.72rem;
    color: #6b7089;
    margin-top: 4px;
}
.dash-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Edit Toggle */
.dash-edit-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}
.dash-edit-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.dash-edit-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.dash-edit-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 24px;
    transition: 0.2s;
}
.dash-edit-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6b7089;
    transition: 0.2s;
}
.dash-edit-toggle input:checked + .dash-edit-toggle__slider {
    background: rgba(237,66,69,0.3);
}
.dash-edit-toggle input:checked + .dash-edit-toggle__slider::before {
    transform: translateX(20px);
    background: #ED4245;
}
.dash-edit-toggle__label {
    font-size: 0.82rem;
    color: #8b90a5;
}

/* Tags */
.dash-edit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.dash-edit-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(88,101,242,0.12);
    color: #5865F2;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-edit-tag:hover {
    background: rgba(237,66,69,0.15);
    color: #ED4245;
}
.dash-edit-tag i {
    font-size: 0.6rem;
}

/* Error box */
.dash-edit-errors {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(237,66,69,0.1);
    border: 1px solid rgba(237,66,69,0.25);
    color: #ED4245;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Danger button */
.dash-btn--danger {
    background: #ED4245;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dash-btn--danger:hover {
    background: #c93b3e;
}
.dash-btn--danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast notification */
.dash-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(22,25,35,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 400;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.dash-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.dash-toast--success {
    border-left: 3px solid #57F287;
    color: #57F287;
}
.dash-toast--error {
    border-left: 3px solid #ED4245;
    color: #ED4245;
}

/* Responsive adjustments for edit features */
@media (max-width: 768px) {
    .dash-listing__right {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    .dash-edit-row {
        grid-template-columns: 1fr;
    }
    .dash-modal--wide {
        max-width: 100%;
    }
}


/* ═══════════════════════════════════════════════════
   EXPLORE PAGE (xpl-*)
   ═══════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────── */
.xpl-hero {
    position: relative;
    padding: calc(var(--nav-height) + 40px) 0 48px;
    text-align: center;
    overflow: hidden;
}
.xpl-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.xpl-hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(88,101,242,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(87,242,135,0.08) 0%, transparent 60%);
}
.xpl-hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
}
.xpl-hero__inner {
    position: relative;
    z-index: 1;
}
.xpl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.25);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #818cf8;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.xpl-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 12px;
}
.xpl-hero__accent {
    background: linear-gradient(135deg, #5865F2, #818cf8, #57F287);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: xplGrad 4s ease infinite;
}
@keyframes xplGrad {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.xpl-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    margin: 0 0 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.xpl-hero__counters {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}
.xpl-hero__counter {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xpl-hero__counter strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: #fff;
}
.xpl-hero__counter span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.xpl-hero__counter-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.1);
}

/* ── Hero Search Bar ─────────────────────────────── */
.xpl-hero-search {
    max-width: 620px;
    margin: 0 auto 28px;
    position: relative;
    text-align: left;
}
.xpl-hero-search__inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.xpl-hero-search__inner:focus-within {
    border-color: rgba(88,101,242,0.6);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.15), 0 8px 32px rgba(0,0,0,0.3);
}
.xpl-hero-search__icon {
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.35);
    font-size: 0.92rem;
    pointer-events: none;
    z-index: 1;
}
.xpl-hero-search__input {
    flex: 1;
    padding: 15px 16px 15px 48px;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.xpl-hero-search__input::placeholder {
    color: rgba(255,255,255,0.35);
}
.xpl-hero-search__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    margin: 5px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}
.xpl-hero-search__btn:hover {
    background: #4752c4;
}
.xpl-hero-search__btn:active {
    transform: scale(0.97);
}
.xpl-hero-search__btn i { font-size: 0.75rem; }

/* Hero search results dropdown */
.xpl-hero-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(22, 25, 35, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.xpl-hero-search__results.active { display: block; }
.xpl-hero-search__results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
    font-size: 0.84rem;
}
.xpl-hero-search__results a:hover { background: rgba(255,255,255,0.06); }
.xpl-hero-search__results a:first-child { border-radius: 14px 14px 0 0; }
.xpl-hero-search__results a:last-child { border-radius: 0 0 14px 14px; }

/* Popular search hints */
.xpl-hero-search__hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.xpl-hero-search__hints span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}
.xpl-hero-search__hints a {
    font-size: 0.72rem;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
}
.xpl-hero-search__hints a:hover {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.3);
    color: #818cf8;
}

/* ── Popular Categories Grid ─────────────────────── */
.xpl-cat-grid-section {
    padding: 0 0 32px;
    margin-top: -12px;
}
.xpl-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.xpl-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(22, 25, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 13px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s;
    cursor: pointer;
}
.xpl-cat-card:hover {
    background: rgba(30, 33, 50, 0.8);
    border-color: rgba(88,101,242,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.xpl-cat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(88,101,242,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #818cf8;
    flex-shrink: 0;
    transition: background 0.25s;
}
.xpl-cat-card:hover .xpl-cat-card__icon {
    background: rgba(88,101,242,0.2);
}
.xpl-cat-card__info {
    flex: 1;
    min-width: 0;
}
.xpl-cat-card__info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xpl-cat-card__info span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}
.xpl-cat-card__arrow {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s, transform 0.2s;
}
.xpl-cat-card:hover .xpl-cat-card__arrow {
    color: #818cf8;
    transform: translateX(2px);
}

/* ── Featured Spotlight ──────────────────────────── */
.xpl-spotlight {
    padding: 12px 0 32px;
}
.xpl-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.xpl-spotlight-card {
    position: relative;
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.xpl-spotlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.06);
}
.xpl-spotlight-card__banner {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
}
.xpl-spotlight-card__banner img {
    width: 100%; height: 100%; object-fit: cover;
}
.xpl-spotlight-card__banner-ph {
    width: 100%; height: 100%; opacity: 0.35;
}
.xpl-spotlight-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(22,25,35,0.95) 100%);
}
.xpl-spotlight-card__body {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.xpl-spotlight-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -36px;
    border: 3px solid rgba(22, 25, 35, 0.85);
    position: relative;
    z-index: 1;
}
.xpl-spotlight-card__avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.xpl-spotlight-card__info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xpl-spotlight-card__info p {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
    margin: 3px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.xpl-spotlight-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}
.xpl-spotlight-card__meta i {
    margin-right: 4px;
    font-size: 0.65rem;
}
.xpl-spotlight-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(250, 204, 21, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* ── Random Discover Button ──────────────────────── */
.xpl-random-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(87,242,135,0.08);
    border: 1px solid rgba(87,242,135,0.15);
    border-radius: 10px;
    color: #57F287;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.xpl-random-btn:hover {
    background: rgba(87,242,135,0.15);
    border-color: rgba(87,242,135,0.3);
    transform: translateY(-1px);
}
.xpl-random-btn i { transition: transform 0.3s; }
.xpl-random-btn:hover i { transform: rotate(180deg); }

/* ── Tag Quick Filters ───────────────────────────── */
.xpl-controls__row--tags {
    width: 100%;
}
.xpl-tags-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
}
.xpl-tags-bar::-webkit-scrollbar { display: none; }
.xpl-tags-bar__label {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}
.xpl-tags-bar__label i { font-size: 0.62rem; }
.xpl-tag-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.xpl-tag-chip:hover {
    background: rgba(88,101,242,0.12);
    border-color: rgba(88,101,242,0.25);
    color: #818cf8;
}
.xpl-tag-chip.active {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.35);
    color: #818cf8;
}
.xpl-tag-chip__count {
    font-size: 0.58rem;
    opacity: 0.5;
}

/* ── "New" Ribbon Badge ──────────────────────────── */
.xpl-card__ribbon--new {
    background: rgba(87,242,135,0.2);
    color: #57F287;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* ── Quick Join Button ───────────────────────────── */
.xpl-card__join {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 8px;
    color: #818cf8;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.xpl-card__join:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
}
.xpl-card__join i { font-size: 0.6rem; }

/* ── Better Empty State ──────────────────────────── */
.xpl-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(88,101,242,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.xpl-empty__icon i {
    font-size: 1.5rem;
    color: rgba(88,101,242,0.6);
}
.xpl-empty__suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.xpl-empty__suggestions span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
.xpl-empty__pill {
    padding: 4px 12px;
    background: rgba(88,101,242,0.1);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    color: #818cf8;
    text-decoration: none;
    transition: all 0.2s;
}
.xpl-empty__pill:hover {
    background: rgba(88,101,242,0.2);
    border-color: rgba(88,101,242,0.4);
}

/* ── Enhanced CTA ────────────────────────────────── */
.xpl-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(88,101,242,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #818cf8;
}
.xpl-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.xpl-cta__btn--secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}
.xpl-cta__btn--secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
}
.xpl-cta__note {
    display: block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(87,242,135,0.6);
}
.xpl-cta__note i {
    margin-right: 4px;
}

/* ── Controls Bar ────────────────────────────────── */
.xpl-controls {
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    background: rgba(14, 16, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
}
.xpl-controls .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.xpl-controls__row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.xpl-controls__row--top {
    justify-content: space-between;
}
.xpl-controls__row--search {
    width: 100%;
}
.xpl-controls__row--cats {
    width: 100%;
}

/* Mode toggle */
.xpl-mode {
    display: inline-flex;
    position: relative;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 3px;
    flex-shrink: 0;
}
.xpl-mode__btn {
    position: relative;
    z-index: 1;
    padding: 7px 18px;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s;
    border-radius: 8px;
    text-decoration: none;
}
.xpl-mode__btn.active { color: #fff; }
.xpl-mode__slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #5865F2;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.xpl-mode__btn[data-mode="bots"].active ~ .xpl-mode__slider {
    transform: translateX(100%);
}

/* Sort dropdown */
.xpl-sort {
    position: relative;
    flex-shrink: 0;
}
.xpl-sort__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.xpl-sort__trigger:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.xpl-sort__arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}
.xpl-sort.open .xpl-sort__arrow {
    transform: rotate(180deg);
}
.xpl-sort__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: rgba(22, 25, 35, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 4px;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.xpl-sort.open .xpl-sort__menu {
    display: block;
}
.xpl-sort__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.15s;
}
.xpl-sort__option:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.xpl-sort__option.active {
    color: #818cf8;
    font-weight: 600;
}
.xpl-sort__option i {
    font-size: 0.65rem;
    color: #818cf8;
}

/* Mobile filter toggle */
.xpl-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
}
.xpl-filter-toggle__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: #5865F2;
    border-radius: 50%;
}

/* Search */
.xpl-search {
    position: relative;
    width: 100%;
}
.xpl-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    pointer-events: none;
}
.xpl-search__input {
    width: 100%;
    padding: 10px 60px 10px 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.xpl-search__input:focus {
    border-color: rgba(88,101,242,0.5);
    background: rgba(255,255,255,0.08);
}
.xpl-search__input::placeholder { color: rgba(255,255,255,0.3); }
.xpl-search__kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

/* Search results dropdown */
.xpl-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(22, 25, 35, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.xpl-search__results.active { display: block; }
.xpl-search__results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
    font-size: 0.84rem;
}
.xpl-search__results a:hover { background: rgba(255,255,255,0.06); }
.xpl-sr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.xpl-sr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xpl-sr-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xpl-sr-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xpl-sr-type {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.xpl-sr-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.84rem;
}
.xpl-sr-empty i { font-size: 0.8rem; opacity: 0.5; }

/* Category pills */
.xpl-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.xpl-cats::-webkit-scrollbar { display: none; }
.xpl-cat {
    flex-shrink: 0;
    padding: 5px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none;
}
.xpl-cat i { font-size: 0.68rem; }
.xpl-cat:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}
.xpl-cat.active {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
}
.xpl-cat__count {
    font-size: 0.6rem;
    background: rgba(255,255,255,0.1);
    padding: 1px 5px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
}
.xpl-cat.active .xpl-cat__count {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}

/* ── Active Filters Bar ──────────────────────────── */
.xpl-active-filters {
    background: rgba(88,101,242,0.06);
    border-bottom: 1px solid rgba(88,101,242,0.1);
    padding: 8px 0;
}
.xpl-active-filters__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.xpl-active-filters__label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.xpl-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(88,101,242,0.15);
    border: 1px solid rgba(88,101,242,0.25);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #818cf8;
    text-decoration: none;
    transition: all 0.2s;
}
.xpl-filter-chip:hover {
    background: rgba(88,101,242,0.25);
    color: #a5b4fc;
}
.xpl-filter-chip i { font-size: 0.55rem; opacity: 0.7; }
.xpl-active-filters__clear {
    margin-left: auto;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}
.xpl-active-filters__clear:hover { color: #fff; }

/* ── Sections ────────────────────────────────────── */
.xpl-section { padding: 32px 0; }
.xpl-section--grid { padding: 24px 0 48px; }

/* ── Card Grid ───────────────────────────────────── */
.xpl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.xpl-card-grid.hidden { display: none; }

/* Cards — redesigned with div wrapper + link inside */
.xpl-card {
    background: rgba(22, 25, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.xpl-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.xpl-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.xpl-card--featured { border-color: rgba(250, 204, 21, 0.15); }
.xpl-card--featured:hover { border-color: rgba(250, 204, 21, 0.35); box-shadow: 0 8px 30px rgba(250,204,21,0.08); }
.xpl-card--partner { border-color: rgba(88,101,242,0.15); }
.xpl-card--partner:hover { border-color: rgba(88,101,242,0.35); box-shadow: 0 8px 30px rgba(88,101,242,0.08); }

/* NSFW card styling */
.xpl-card--nsfw .xpl-card__banner img,
.xpl-card--nsfw .xpl-card__banner-ph {
    filter: blur(8px);
}
.xpl-card__nsfw-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0,0,0,0.5);
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 1;
}

/* Card banner */
.xpl-card__banner {
    width: 100%;
    height: 85px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.xpl-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.xpl-card:hover .xpl-card__banner img { transform: scale(1.05); }
.xpl-card__banner-ph {
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

/* Card ribbon badge (top-right) */
.xpl-card__ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: rgba(250, 204, 21, 0.2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #fbbf24;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.xpl-card__ribbon--partner {
    background: rgba(88,101,242,0.2);
    color: #818cf8;
}

/* Card body (below banner) */
.xpl-card__body {
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Card top row: avatar + text */
.xpl-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.xpl-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -30px;
    border: 3px solid rgba(22, 25, 35, 0.85);
    position: relative;
    z-index: 1;
}
.xpl-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xpl-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 10px;
}
.xpl-card__text { min-width: 0; flex: 1; }
.xpl-card__text h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xpl-card__cat {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.xpl-card__cat i { font-size: 0.6rem; }
.xpl-card__desc {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Card tags */
.xpl-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.xpl-card__tag-pill {
    padding: 2px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.xpl-card__tag-more {
    padding: 2px 6px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
}

/* Card footer */
.xpl-card__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 8px 16px;
}
.xpl-card__foot i { font-size: 0.6rem; }

/* Online count */
.xpl-card__online {
    display: flex;
    align-items: center;
    gap: 4px;
}
.xpl-card__online i {
    color: #57F287;
    font-size: 0.4rem;
}

/* Mini vote button */
.xpl-vote-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}
.xpl-vote-mini:hover:not(.voted) {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.3);
    color: #818cf8;
}
.xpl-vote-mini.voted {
    background: rgba(87,242,135,0.1);
    border-color: rgba(87,242,135,0.2);
    color: #57F287;
    cursor: default;
}
.xpl-vote-mini i { font-size: 0.6rem; }

/* View link */
.xpl-card__view {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5865F2;
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}
.xpl-card:hover .xpl-card__view { opacity: 1; transform: translateX(0); }

.xpl-v { color: #5865F2; font-size: 0.7rem; margin-left: 3px; }

/* ── Section head ────────────────────────────────── */
.xpl-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.xpl-section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.xpl-section-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* ── Pagination ──────────────────────────────────── */
.xpl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.xpl-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.xpl-pagination__btn:hover:not(.disabled) {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.3);
    color: #818cf8;
}
.xpl-pagination__btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.xpl-pagination__btn i { font-size: 0.65rem; }
.xpl-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.xpl-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s;
}
.xpl-pagination__page:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.xpl-pagination__page.active {
    background: #5865F2;
    color: #fff;
    font-weight: 700;
}
.xpl-pagination__ellipsis {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    padding: 0 4px;
}

/* ── Empty State ─────────────────────────────────── */
.xpl-empty {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.4);
    grid-column: 1 / -1;
}
.xpl-empty i { font-size: 1.5rem; margin-bottom: 8px; display: block; opacity: 0.4; }
.xpl-empty h3 { font-size: 1rem; color: #fff; margin: 0 0 4px; }
.xpl-empty p { font-size: 0.82rem; margin: 0; }
.xpl-empty a { color: #5865F2; text-decoration: underline; }

/* ── CTA ─────────────────────────────────────────── */
.xpl-cta { padding: 48px 0 64px; }
.xpl-cta__box {
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, rgba(88,101,242,0.12), rgba(87,242,135,0.06));
    border: 1px solid rgba(88,101,242,0.15);
    border-radius: 20px;
}
.xpl-cta__box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.xpl-cta__box p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 20px;
}
.xpl-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 28px;
    background: #5865F2;
    color: #fff;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.xpl-cta__btn:hover { background: #4752c4; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════
   DETAIL PAGES (server.php / bot.php)
   ═══════════════════════════════════════════════════ */

.detail-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
}

/* Banner */
.detail-banner {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}
.detail-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-banner__ph {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}
.detail-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(11,13,20,1) 100%);
}
.detail-back {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 2;
}
.detail-back:hover {
    background: rgba(0,0,0,0.7);
    color: #fff;
}

/* Content */
.detail-content {
    margin-top: -60px;
    position: relative;
    z-index: 1;
    padding-bottom: 64px;
}

/* Header */
.detail-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
}
.detail-avatar {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--bg-primary, #0b0d14);
    background: var(--bg-primary, #0b0d14);
}
.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-avatar__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.4rem;
    border-radius: 12px;
}
.detail-info {
    flex: 1;
    min-width: 0;
}
.detail-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.detail-name-row h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}
.detail-verified {
    color: #5865F2;
    font-size: 0.9rem;
}
.detail-badges {
    display: flex;
    gap: 6px;
}
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.detail-badge--featured {
    background: rgba(250, 204, 21, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(250, 204, 21, 0.2);
}
.detail-badge--partner {
    background: rgba(88,101,242,0.12);
    color: #818cf8;
    border: 1px solid rgba(88,101,242,0.2);
}
.detail-badge--nsfw {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.detail-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}
.detail-category a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.detail-category a:hover { color: #818cf8; }
.detail-prefix {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.detail-prefix code {
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.82rem;
    color: #818cf8;
}

/* Main grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Main content */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.detail-section {
    background: rgba(22, 25, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
}
.detail-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.detail-description {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: all 0.2s;
}
.detail-tag:hover {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.3);
    color: #818cf8;
}
.detail-tag__hash {
    color: rgba(255,255,255,0.25);
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.detail-btn--join {
    background: #5865F2;
    color: #fff;
}
.detail-btn--join:hover {
    background: #4752c4;
    transform: translateY(-1px);
}
.detail-btn--vote {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}
.detail-btn--vote:hover:not(.voted) {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.3);
    color: #818cf8;
}
.detail-btn--vote.voted {
    background: rgba(87,242,135,0.1);
    border-color: rgba(87,242,135,0.2);
    color: #57F287;
    cursor: default;
}

/* Stats card */
.detail-stats-card,
.detail-info-card {
    background: rgba(22, 25, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
}
.detail-stats-card h3,
.detail-info-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}
.detail-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.detail-stat + .detail-stat {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.detail-stat i {
    width: 20px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}
.detail-stat--online {
    color: #57F287 !important;
    font-size: 0.5rem !important;
}
.detail-stat div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.detail-stat strong {
    font-size: 0.88rem;
    color: #fff;
    font-weight: 700;
}
.detail-stat span {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

/* Info card rows */
.detail-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.8rem;
}
.detail-info-row + .detail-info-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.detail-info-row span:first-child {
    color: rgba(255,255,255,0.4);
}
.detail-info-row span:last-child {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.detail-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5) !important;
}

/* Detail links */
.detail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.detail-link + .detail-link {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.detail-link:hover { color: #818cf8; }
.detail-link__ext {
    margin-left: auto;
    font-size: 0.6rem;
    opacity: 0.4;
}

/* ── Explorer Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .xpl-hero__title { font-size: 2rem; }
    .xpl-hero__counters { gap: 16px; }
    .xpl-hero__counter strong { font-size: 1.1rem; }

    .xpl-hero-search__btn span { display: none; }
    .xpl-hero-search__btn { padding: 10px 14px; }
    .xpl-hero-search__input { font-size: 0.88rem; }

    .xpl-cat-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .xpl-spotlight__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

    .xpl-random-btn span { display: none; }
    .xpl-random-btn { padding: 7px 10px; }

    .xpl-controls { position: static; }

    /* Mobile filter behavior */
    .xpl-filter-toggle { display: flex; }
    .xpl-controls__row--search,
    .xpl-controls__row--cats {
        display: none;
    }
    .xpl-controls__row--search.mobile-visible,
    .xpl-controls__row--cats.mobile-visible {
        display: flex;
    }

    .xpl-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    .xpl-card__view { opacity: 1; transform: translateX(0); }

    /* Pagination mobile */
    .xpl-pagination { flex-wrap: wrap; gap: 6px; }
    .xpl-pagination__pages { gap: 2px; }

    /* Detail page mobile */
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-header {
        flex-direction: row;
        align-items: center;
    }
    .detail-name-row h1 {
        font-size: 1.4rem;
    }
    .detail-avatar {
        width: 72px;
        height: 72px;
    }
    .detail-banner {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .xpl-hero { padding: calc(var(--nav-height) + 24px) 0 32px; }
    .xpl-hero__title { font-size: 1.6rem; }
    .xpl-hero__sub { font-size: 0.88rem; }
    .xpl-hero__counters { flex-wrap: wrap; gap: 12px; }
    .xpl-mode__btn { padding: 6px 12px; font-size: 0.75rem; }
    .xpl-section-head h2 { font-size: 1.1rem; }
    .xpl-cta__box { padding: 28px 20px; }
    .xpl-cta__box h2 { font-size: 1.3rem; }

    .xpl-card-grid { grid-template-columns: 1fr; }
    .xpl-card__banner { height: 75px; }
    .xpl-card__join span { display: none; }

    .xpl-sort__trigger span { display: none; }

    .xpl-cat-grid { grid-template-columns: 1fr; }
    .xpl-spotlight__grid { grid-template-columns: 1fr; }

    .xpl-hero-search__hints { gap: 6px; }
    .xpl-hero-search__hints a { font-size: 0.66rem; padding: 2px 8px; }

    /* Detail mobile */
    .detail-banner { height: 120px; }
    .detail-name-row h1 { font-size: 1.2rem; }
    .detail-avatar { width: 60px; height: 60px; }
    .detail-section { padding: 16px; }
}
