/* ==========================================================
   DISCORD SENSOR — OFFICIAL STYLE SYSTEM & THEME
   Pixel-perfect replication of discord-sensor.com
   ========================================================== */

:root {
    --bg-base: #0b0c0f;
    --bg-surface: #121318;
    --bg-surface-elevated: #181920;
    --bg-card: #1c1d25;
    --bg-card-hover: #232530;
    --bg-input: #0f1015;
    
    --blurple: #5865f2;
    --blurple-hover: #4752c4;
    --blurple-subtle: rgba(88, 101, 242, 0.12);
    --blurple-border: rgba(88, 101, 242, 0.35);
    
    --green-like: #23a55a;
    --green-like-hover: #2dc76d;
    --green-like-bg: rgba(35, 165, 90, 0.15);
    --green-like-border: rgba(35, 165, 90, 0.4);
    --green-glow: rgba(35, 165, 90, 0.3);
    
    --gender-male: #00a8fc;
    --gender-male-bg: rgba(0, 168, 252, 0.12);
    --gender-male-border: rgba(0, 168, 252, 0.35);
    
    --gender-female: #eb459e;
    --gender-female-bg: rgba(235, 69, 158, 0.12);
    --gender-female-border: rgba(235, 69, 158, 0.35);
    
    --gender-mix: #9b59b6;
    --gender-mix-bg: rgba(155, 89, 182, 0.12);
    --gender-mix-border: rgba(155, 89, 182, 0.35);
    
    --gold: #f1c40f;
    --gold-gradient: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --gold-subtle: rgba(241, 196, 15, 0.12);
    
    --text-primary: #f2f3f5;
    --text-secondary: #949ba4;
    --text-muted: #656972;
    
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.14);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.6);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.theme-light {
    --bg-base: #f4f5f8;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f0f2f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #ebeef3;
    --text-primary: #1f2328;
    --text-secondary: #59636e;
    --text-muted: #8c959f;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.16);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.15);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(88, 101, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(35, 165, 90, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================
   NAVIGATION BAR
   ========================================================== */
.navbar {
    background: rgba(18, 19, 24, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #5865f2 0%, #3ba55d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
    position: relative;
}

.brand-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #5865f2, #3ba55d);
    z-index: -1;
    filter: blur(6px);
    opacity: 0.6;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--green-like);
    background: var(--green-like-bg);
    border: 1px solid var(--green-like-border);
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--green-like);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-like);
    animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.brand-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Nav Tabs */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.nav-link.active {
    color: #ffffff;
    background: var(--blurple);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.nav-badge-ultra {
    background: var(--gold-gradient);
    color: #0b0c0f;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Center Search */
.nav-center {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.nav-search-box {
    position: relative;
    width: 100%;
}

.nav-search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 38px 8px 36px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}

.nav-search-box input:focus {
    outline: none;
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
    background: var(--bg-surface-elevated);
}

.nav-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 10.5px;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

/* Nav Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blurple);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--blurple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.btn-discord-login {
    background: #2b2d31;
    color: #f2f3f5;
    border: 1px solid var(--border-subtle);
}

.btn-discord-login:hover {
    background: #35373c;
    border-color: var(--blurple-border);
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.btn-icon-only:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
}

/* ==========================================================
   HERO BANNER
   ========================================================== */
.hero-wrapper {
    max-width: 1440px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.hero-box {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.14) 0%, rgba(35, 165, 90, 0.1) 50%, rgba(18, 19, 24, 0.95) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blurple-subtle);
    border: 1px solid var(--blurple-border);
    color: #8ea1e1;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hero-box h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.hero-box h1 span {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-box p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 680px;
    margin: 0 auto 26px;
    line-height: 1.6;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(18, 19, 24, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-pill:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.stat-num {
    font-weight: 800;
    color: var(--text-primary);
}

.stat-pill.online .stat-num {
    color: var(--green-like);
}

/* ==========================================================
   MAIN CONTENT LAYOUT
   ========================================================== */
.main-wrapper {
    max-width: 1440px;
    margin: 24px auto 60px;
    padding: 0 24px;
}

/* View Sections / Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Catalog Layout Grid (Sidebar + Cards) */
.catalog-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 26px;
    align-items: start;
}

/* ==========================================================
   SIDEBAR FILTERS
   ========================================================== */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 76px;
}

.filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.filter-header h3 {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.filter-tag-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.filter-btn:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--blurple);
    color: #ffffff;
    font-weight: 600;
}

.filter-btn .cat-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 7px;
    border-radius: 10px;
    opacity: 0.8;
}

/* Gender Filter Specific Badges */
.gender-btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-gender {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-gender:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-gender.active {
    border-color: currentColor;
    box-shadow: 0 0 14px currentColor;
}

.btn-gender[data-gender="all"].active {
    color: #ffffff;
    background: var(--blurple);
    border-color: var(--blurple);
}

.btn-gender[data-gender="male"] {
    color: var(--gender-male);
}
.btn-gender[data-gender="male"].active {
    background: var(--gender-male-bg);
    border-color: var(--gender-male);
}

.btn-gender[data-gender="female"] {
    color: var(--gender-female);
}
.btn-gender[data-gender="female"].active {
    background: var(--gender-female-bg);
    border-color: var(--gender-female);
}

.btn-gender[data-gender="mix"] {
    color: var(--gender-mix);
    grid-column: span 2;
}
.btn-gender[data-gender="mix"].active {
    background: var(--gender-mix-bg);
    border-color: var(--gender-mix);
}

/* Select Input */
.custom-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.custom-select:focus {
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

/* Telegram Promo Card */
.tg-promo-card {
    background: linear-gradient(145deg, #1b2636 0%, #151d29 100%);
    border: 1px solid rgba(40, 167, 237, 0.3);
    border-radius: var(--radius-lg);
    padding: 18px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-promo-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-icon {
    width: 32px;
    height: 32px;
    background: #28a7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tg-promo-card h4 {
    font-size: 14px;
    font-weight: 700;
}

.tg-promo-card p {
    font-size: 12px;
    color: #a0c2dc;
    line-height: 1.4;
}

.btn-telegram {
    background: #28a7ed;
    color: #ffffff;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
}
.btn-telegram:hover {
    background: #1e92d3;
}

/* ==========================================================
   SERVERS CATALOG CONTENT
   ========================================================== */
.catalog-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
}

.catalog-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-title-group h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.badge-count {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.view-mode-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-view-toggle {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-toggle:hover {
    color: var(--text-primary);
}

.btn-view-toggle.active {
    background: var(--blurple);
    color: #fff;
    border-color: var(--blurple);
}

/* Servers Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Server Card */
.server-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: var(--shadow-md);
}

.server-card-banner {
    height: 72px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.server-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(18, 19, 24, 0.95) 100%);
}

.server-card-body {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.server-top-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -32px;
}

.server-avatar-wrap {
    position: relative;
}

.server-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 3px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.server-online-pulse {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--green-like);
    border: 3px solid var(--bg-surface);
    border-radius: 50%;
}

.server-badges-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-top1 {
    background: var(--gold-subtle);
    color: var(--gold);
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.badge-verified {
    background: var(--blurple-subtle);
    color: #8ea1e1;
    border: 1px solid var(--blurple-border);
}

.badge-male {
    background: var(--gender-male-bg);
    color: var(--gender-male);
    border: 1px solid var(--gender-male-border);
}

.badge-female {
    background: var(--gender-female-bg);
    color: var(--gender-female);
    border: 1px solid var(--gender-female-border);
}

.badge-mix {
    background: var(--gender-mix-bg);
    color: var(--gender-mix);
    border: 1px solid var(--gender-mix-border);
}

.server-header-info {
    margin-top: 4px;
}

.server-header-info h3 {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.server-header-info h3:hover {
    color: var(--blurple);
}

.server-category-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.server-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Stats Row */
.server-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item strong {
    color: var(--text-primary);
}

.stat-item.online-text strong {
    color: var(--green-like);
}

/* ==========================================================
   AUTHENTIC GREEN LIKE BUTTON & VOTING ROW
   ========================================================== */
.server-card-voting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    gap: 12px;
}

.card-like-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-like-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--green-like);
    font-family: var(--font-sans);
    min-width: 32px;
}

.card-like-btn {
    background: var(--green-like-bg);
    border: 1px solid var(--green-like-border);
    color: var(--green-like);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.card-like-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.card-like-btn:hover {
    background: var(--green-like);
    color: #ffffff;
    border-color: var(--green-like);
    transform: scale(1.08);
    box-shadow: 0 4px 14px var(--green-glow);
}

.card-like-btn:active {
    transform: scale(0.92);
}

.card-like-btn.voted {
    background: var(--green-like);
    color: #ffffff;
}

.card-actions-group {
    display: flex;
    gap: 8px;
}

.btn-card-join {
    background: var(--blurple);
    color: #fff;
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn-card-join:hover {
    background: var(--blurple-hover);
}

.btn-card-details {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-card-details:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

/* ==========================================================
   TAB: MINI-GAMES IN VOICE CHANNELS
   ========================================================== */
.games-section-header {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(155, 89, 182, 0.12) 100%), var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 24px;
    text-align: center;
}

.games-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.games-section-header p {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow: var(--shadow-md);
}

.game-card-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
}

.game-cover-durak { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.game-cover-alias { background: linear-gradient(135deg, #f39c12 0%, #d35400 100%); }
.game-cover-codenames { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.game-cover-monopoly { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.game-cover-tictactoe { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.game-cover-mafia { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }

.game-players-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.game-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.game-card-body h3 {
    font-size: 17px;
    font-weight: 800;
}

.game-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    flex: 1;
}

.btn-launch-game {
    background: var(--blurple);
    color: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    width: 100%;
}
.btn-launch-game:hover {
    background: var(--blurple-hover);
}

/* ==========================================================
   TAB: OSINT & PROFILE LOOKUP
   ========================================================== */
.osint-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.osint-search-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.osint-search-box h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.osint-search-box p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.osint-input-group {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 16px;
}

.osint-input-group input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-mono);
}
.osint-input-group input:focus {
    outline: none;
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.quick-profiles-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-chip {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11.5px;
}
.btn-chip:hover {
    color: var(--text-primary);
    border-color: var(--blurple);
}

/* Profile Result Card */
.profile-result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-top-banner {
    height: 140px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    position: relative;
}

.profile-main-info {
    padding: 0 28px 24px;
    position: relative;
}

.profile-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -50px;
    margin-bottom: 16px;
}

.user-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: #232530;
    border: 5px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.user-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: var(--green-like);
    border: 4px solid var(--bg-surface);
    border-radius: 50%;
}

.user-discord-badges {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.discord-badge {
    font-size: 18px;
    cursor: default;
}

.user-names-block h3 {
    font-size: 22px;
    font-weight: 800;
}

.user-handle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.user-custom-status {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.meta-box {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.meta-value.highlight-green {
    color: var(--green-like);
}

.profile-history-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.history-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.history-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-family: var(--font-mono);
}

/* ==========================================================
   TAB: ULTRA & PREMIUM PLANS
   ========================================================== */
.pricing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.pricing-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.price-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(241, 196, 15, 0.05) 0%, var(--bg-surface) 100%);
}

.price-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #0b0c0f;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-title h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.price-title p {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.price-amount span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.feature-list li.active {
    color: var(--text-primary);
}

.feature-list li .check-icon {
    color: var(--green-like);
    font-weight: 800;
}

.btn-price {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.btn-price.gold {
    background: var(--gold-gradient);
    color: #0b0c0f;
}
.btn-price.gold:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

/* ==========================================================
   TAB: DISCORD NEWS
   ========================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-body h3 {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.news-body p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
    flex: 1;
}

/* ==========================================================
   SERVER PROFILE CARD (FULL VIEW / KAWAII STYLE)
   ========================================================== */
.server-profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.server-profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: var(--shadow-md);
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar-super {
    width: 80px;
    height: 80px;
    background: var(--blurple);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.profile-details-super h1 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.profile-tags-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-category-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag-gender-blue-text {
    color: #4193ff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.profile-desc-super {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.profile-stats-super {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

/* ==========================================================
   EXACT SCREENSHOT VOTING BANNER
   ========================================================== */
.voting-banner {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

.voting-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gender-label {
    color: #4193ff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.vote-counter-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vote-number {
    font-size: 34px;
    font-weight: 900;
    color: #23a55a;
    font-family: var(--font-sans);
    line-height: 1;
}

.vote-like-btn {
    background: rgba(35, 165, 90, 0.12);
    border: 1px solid rgba(35, 165, 90, 0.35);
    color: #23a55a;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-like-btn svg {
    width: 26px;
    height: 26px;
}

.vote-like-btn:hover {
    background: #23a55a;
    color: #ffffff;
    border-color: #23a55a;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(35, 165, 90, 0.4);
}

.vote-like-btn.liked {
    animation: votePop 0.35s ease;
}

@keyframes votePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.btn-large {
    padding: 14px 30px;
    font-size: 15.5px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
}

/* Comments Section */
.comments-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-input-wrap {
    display: flex;
    gap: 10px;
}

.comment-input-wrap input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.comment-card {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 14px 18px;
    border-radius: var(--radius-md);
}

.comment-author {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13.5px;
}

.comment-date {
    color: var(--text-muted);
    font-size: 11.5px;
}

/* ==========================================================
   MODALS
   ========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 800;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-field input, .form-field select, .form-field textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* Discord OAuth Modal Mock */
.discord-auth-box {
    text-align: center;
    padding: 10px 0;
}

.discord-logo-large {
    width: 64px;
    height: 64px;
    background: var(--blurple);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.discord-perms-list {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 18px 0;
    text-align: left;
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    animation: toastSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.toast-success {
    border-left: 4px solid var(--green-like);
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1100px) {
    .catalog-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .hero-box h1 {
        font-size: 24px;
    }
    
    .voting-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .voting-banner .btn-large {
        width: 100%;
        text-align: center;
    }
}


/* === DISCORD CHECKER: VERIFIED NAVBAR CLUSTER & DROPDOWN (1:1 PIXEL-PERFECT) === */
.notif-bell-container {
    cursor: pointer;
    border-radius: 50%;
    transition: all .25s ease;
    display: inline-block;
    position: relative;
    overflow: visible;
}
.notif-bell-wrap {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    transition: all .2s ease;
    display: flex;
}
.notif-bell-wrap:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.notif-bell-wrap .bell-icon {
    color: #cbd5e1;
    font-size: 1.15rem;
    transition: color 0.2s;
}
.notif-bell-wrap:hover .bell-icon {
    color: #ffffff;
}

.navbar-profile-cluster {
    position: relative;
    display: inline-block;
}
.profile-container {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 3px 14px 3px 4px;
    height: 40px;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    position: relative;
    overflow: visible;
    background: rgba(255, 255, 255, 0.06);
    user-select: none;
}
.profile-container:hover,
.profile-container.profile-menu-open {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}
.profile-link {
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    line-height: 0;
    display: flex;
}
.profile-container .avatar-img {
    border: none;
    transition: box-shadow 0.25s ease;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-container:hover .avatar-img,
.profile-container.profile-menu-open .avatar-img {
    box-shadow: 0 0 0 2px #5865F2, 0 2px 8px rgba(0, 0, 0, 0.4);
}
.profile-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1;
}

.show-profile-menu {
    z-index: 99999 !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    background: #171822 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    margin: 0 !important;
    padding: 8px !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    animation: profileMenuPop 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    list-style: none !important;
}

@keyframes profileMenuPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.show-profile-menu .dropdown-item {
    color: #ffffff !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 42px !important;
    margin: 2px 0 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    display: flex !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}
.show-profile-menu .dropdown-item:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.show-profile-menu .profile-menu-icon-wrap {
    flex-shrink: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
}
.show-profile-menu .profile-menu-icon {
    color: #cbd5e1 !important;
    stroke: currentColor !important;
    width: 18px !important;
    height: 18px !important;
    transition: color 0.2s !important;
}
.show-profile-menu .dropdown-item:hover .profile-menu-icon {
    color: #ffffff !important;
}
.show-profile-menu .profile-menu-label {
    flex: auto !important;
    min-width: 0 !important;
    line-height: 1.25 !important;
    font-size: 14px !important;
}

.theme-switch {
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
}
.theme-switch-label {
    white-space: nowrap !important;
    flex: auto !important;
    min-width: 0 !important;
    padding-right: 8px !important;
}
.theme-icon-stack {
    width: 18px;
    height: 18px;
    display: block;
    position: relative;
}
.theme-icon-stack .theme-icon {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, color 0.2s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.theme-icon-stack .theme-icon.is-active {
    opacity: 1;
}
.theme-switch .slider {
    background: #2f3448;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    margin-left: auto;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.theme-switch .handle {
    will-change: transform;
    background: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.theme-switch input:checked ~ .slider {
    background: #5865F2;
}
.theme-switch input:checked ~ .slider .handle {
    transform: translateX(18px);
}

.logout-item {
    text-align: left !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    margin-top: 6px !important;
    padding-top: 10px !important;
    border-radius: 0 0 10px 10px !important;
}
.logout-item:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}
.logout-item:hover .profile-menu-icon {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
}

html.theme-light body {
    background-color: #f6f8fb;
    color: #1e293b;
}
html.theme-light .profile-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}
html.theme-light .profile-container:hover,
html.theme-light .profile-container.profile-menu-open {
    background: rgba(0, 0, 0, 0.08);
}
html.theme-light .profile-name {
    color: #0f172a;
}
html.theme-light .notif-bell-wrap {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}
html.theme-light .notif-bell-wrap .bell-icon {
    color: #475569;
}
html.theme-light .show-profile-menu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .show-profile-menu .dropdown-item {
    color: #1e293b !important;
}
html.theme-light .show-profile-menu .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
html.theme-light .show-profile-menu .profile-menu-icon {
    color: #64748b !important;
}
html.theme-light .logout-item {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}


.sensor-bell-badge {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    min-width: 16px !important;
    height: 16px !important;
    background-color: #ed4245 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border: 2px solid #111214 !important;
    pointer-events: none !important;
    line-height: 1 !important;
    z-index: 10 !important;
}


/* Clean navbar and hide admin links */
a[href*="/admin"],
.nav-link[href*="/admin"],
li:has(a[href*="/admin"]),
.mobile-nav-item:has(a[href*="/admin"]) {
    display: none !important;
}

/* Ensure bell badge */
.sensor-bell-badge {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    min-width: 16px !important;
    height: 16px !important;
    background-color: #ed4245 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border: 2px solid #111214 !important;
    pointer-events: none !important;
    line-height: 1 !important;
    z-index: 10 !important;
}
