/* ============================================
   POM DASHBOARD — cuteco.re
   Pompompurin pastel-gold on warm dark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --pom: #F4D679;
    --pom-rgb: 244, 214, 121;
    --pom-light: #F9E8A8;
    --pom-dark: #D4B85C;
    --pom-muted: #A89870;

    --bg-100: #0E0D0B;
    --bg-200: #151311;
    --bg-300: #1C1916;
    --bg-400: #24211D;
    --bg-500: #2E2A24;

    --border: #2A2520;
    --border-light: #3D3628;

    --text: #EDE6D6;
    --text-secondary: #B8AD96;
    --text-muted: #7A7060;

    --success: #5DF076;
    --error: #FF6B6B;
    --warning: #FFB347;
    --info: #6BB5FF;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;

    --font: 'Quicksand', system-ui, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font);
    background: var(--bg-100);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a { color: var(--pom); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pom-light); }

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

::selection {
    background: rgba(var(--pom-rgb), 0.3);
    color: var(--text);
}

::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #0E0D0B; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #D4B85C; }

::-webkit-scrollbar { width: 0px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #0E0D0B; border-radius: 20px; }

::-webkit-scrollbar-thumb:hover { background: rgba(244,214,121,0.45); }
/* ---- DOT GRID BACKGROUND ---- */
.dot-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(var(--pom-rgb), 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}
body:has(.db-layout) .dot-bg {
    background-image: none;
    background: var(--bg-200);
}

/* ---- NAVBAR (floating pill) ---- */
.navbar {
    position: fixed;
    top: 8px; left: 8px; right: 8px;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1260px;
    margin: 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 13, 11, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0 12px;
    position: relative;
    overflow: visible;
}

.navbar-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(var(--pom-rgb), 0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(var(--pom-rgb), 0.06) 100%);
    border-radius: inherit;
    pointer-events: none;
}

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

.navbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.navbar-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition: opacity var(--transition);
}

.navbar-brand:hover img { opacity: 0.85; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Main nav links (Commands, Embeds, Premium) */
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-item svg { color: var(--pom); opacity: 0.85; flex-shrink: 0; }

.nav-item:hover {
    color: var(--pom);
    background: rgba(255, 255, 255, 0.07);
}

.nav-item:hover svg,
.nav-item.active svg { opacity: 1; }

.nav-item.active { color: var(--pom); }

/* Secondary nav links (Docs, Status) */
.navbar-secondary {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item-plain {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all var(--transition);
}

.nav-item-plain:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

/* Separator */
.navbar-sep {
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.09),
        rgba(255,255,255,0.03));
    margin: 0 6px;
    flex-shrink: 0;
}

/* Auth section */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-login-btn {
    background: rgba(var(--pom-rgb), 0.9);
    color: var(--bg-100) !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.navbar-login-btn:hover {
    background: var(--pom);
    color: var(--bg-100) !important;
    transform: none;
}

.navbar-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--pom-rgb), 0.18);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.navbar-discord-btn:hover {
    color: var(--pom);
    border-color: rgba(var(--pom-rgb), 0.35);
    background: rgba(var(--pom-rgb), 0.08);
}

/* Profile button (when logged in) */
.navbar-profile-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    transition: all var(--transition);
}

.navbar-profile-btn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.navbar-profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.navbar-profile-btn .profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 0;
    display: none;
    min-width: 150px;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.navbar-profile-btn.open .profile-dropdown { display: block; }

.navbar-profile-btn .profile-dropdown a,
.navbar-profile-btn .profile-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    font-size: 13px;
    font-family: var(--font);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}

.navbar-profile-btn .profile-dropdown a:hover,
.navbar-profile-btn .profile-dropdown button:hover { background: var(--bg-300); }

/* Mobile navbar right group (discord btn + toggle) */
.mobile-navbar-right {
    display: none;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .mobile-navbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* Colored Discord login button in mobile bar */
.mobile-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--pom-rgb), 0.9);
    border-radius: 8px;
    color: var(--bg-100);
    text-decoration: none;
    padding: 7px 10px;
    line-height: 0;
    transition: background var(--transition);
    flex-shrink: 0;
}
.mobile-discord-btn:hover { background: var(--pom); }
.mobile-discord-btn svg { width: 18px; height: 18px; }

/* Mobile toggle (hamburger / X) */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    padding: 7px;
    line-height: 0;
    transition: background var(--transition), border-color var(--transition);
}
.mobile-toggle:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}
.mobile-toggle svg { width: 18px; height: 18px; }

/* Mobile menu dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 8px; right: 8px;
    background: rgba(14, 13, 11, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 8px;
    z-index: 999;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.mobile-menu.open { display: block; }

/* Login row (colored Discord button) */
.mm-login-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--pom-rgb), 0.9);
    color: var(--bg-100) !important;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}
.mm-login-row:hover { background: var(--pom); color: var(--bg-100) !important; }

/* Ghost button (Commands) — same shape, no color */
.mm-ghost-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text) !important;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.mm-ghost-btn:hover { background: rgba(255,255,255,0.09); color: #fff !important; }

/* Separator */
.mm-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
}

/* Nav items with icon + description */
.mm-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition);
}
.mm-nav-item:not(.mm-disabled):hover { background: rgba(255,255,255,0.05); }
.mm-disabled { opacity: 0.38; pointer-events: none; cursor: default; }

.mm-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pom);
}
.mm-content { flex: 1; min-width: 0; }
.mm-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.mm-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}
.mm-soon-badge {
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(var(--pom-rgb), 0.14);
    color: var(--pom);
    border: 1px solid rgba(var(--pom-rgb), 0.22);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Plain links (Commands row) */
.mm-plain-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition);
}
.mm-plain-link:hover { color: var(--pom); background: rgba(255,255,255,0.05); }

/* Status row */
.mm-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mm-status-link {
    flex: 1;
    gap: 8px;
}
.mm-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #3ba55d;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(59,165,93,0.55);
}
.mm-status-info {
    font-size: 12px;
    font-weight: 600;
    color: var(--pom);
    white-space: nowrap;
    padding-right: 12px;
}

/* Legacy compat */
.mobile-menu-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--pom);
    color: var(--bg-100);
    box-shadow: 0 4px 24px rgba(var(--pom-rgb), 0.25);
}

.btn-primary:hover {
    background: var(--pom-light);
    color: var(--bg-100);
    box-shadow: 0 6px 32px rgba(var(--pom-rgb), 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(var(--pom-rgb), 0.08);
    color: var(--pom);
    border: 1px solid rgba(var(--pom-rgb), 0.2);
}

.btn-secondary:hover {
    background: rgba(var(--pom-rgb), 0.15);
    color: var(--pom-light);
    border-color: rgba(var(--pom-rgb), 0.35);
}

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

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(var(--pom-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
    overflow: clip;
    display: flex;
}

.hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    margin-bottom: 32px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--pom), var(--pom-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- DISCORD MOCKUP (hero card) ---- */
.discord-mock {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin-top: 48px;
    background: #1E1F23;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    text-align: left;
}

.discord-mock-header {
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-mock-header .channel-icon { color: #72767d; font-size: 1.1rem; }
.discord-mock-header .channel-name { color: #fff; font-weight: 700; font-size: 0.9rem; }

.discord-msg {
    padding: 10px 16px;
    display: flex;
    gap: 12px;
}

.discord-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-msg-body { flex: 1; min-width: 0; }

.discord-msg-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.discord-msg-author .name { font-weight: 700; font-size: 0.875rem; }
.discord-msg-author {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
}
.discord-msg-author .time { color: #72767d; font-size: 0.7rem; margin-left: 4px; }

.discord-msg-content {
    color: #dcddde;
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: 'gg-sans'
}

.discord-msg-content .mention { color: #dee0fc; background: rgba(88,101,242,0.3); padding: 0 2px; border-radius: 3px; }

.discord-embed {
    margin-top: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 4px 4px 0;
    padding: 6px 12px;
    border-left: 3px solid var(--pom);
    max-width: 400px;
}

.discord-embed-builder {
    display: flex;
    max-width: 520px;
    border-radius: 4px;
    overflow: hidden;
}

.discord-embed-title { color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }

@font-face {
font-family: 'gg-sans';
src: url('/static/fonts/normal.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'gg-sans';
src: url('/static/fonts/bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}

.discord-embed-descX {
color: #dcddde;
font-family: 'gg-sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 0.875rem;
line-height: 1.125;
font-weight: 400;
letter-spacing: normal;
margin: 0;
}

.discord-embed-descX strong {
font-weight: 700;
}

.discord-embed-descX img {
width: 16px;
height: 16px;
vertical-align: -0.2em;
margin-right: 0.25rem;
display: inline;
}

/* ---- STATS BAR ---- */
.stats-bar {
    position: relative;
    padding: 60px 24px;
    background: var(--bg-200);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.stats-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.stats-bar-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.stats-bar-text .counter {
    color: var(--text);
    font-weight: 700;
}

.scroll-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.scroll-inner {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scroll 120s linear infinite;
}

.scroll-inner:hover { animation-play-state: paused; }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.guild-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-300);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px 8px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition);
}

.guild-pill:hover {
    border-color: var(--border-light);
    background: var(--bg-400);
}

.guild-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.guild-pill .guild-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.guild-pill .guild-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-pill .guild-members {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- SECTION LAYOUT ---- */
.section {
    position: relative;
    padding: 100px 24px;
    z-index: 1;
}

.section-inner {
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ---- FEATURE CARDS ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    /* align-items: start; */
}

@media (max-width: 1080px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }
}

.feature-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--pom-rgb), 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--pom-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--pom);
    font-size: 1.3rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(var(--pom-rgb), 0.08);
    color: var(--pom);
    border: 1px solid rgba(var(--pom-rgb), 0.15);
}

/* ---- COMMANDS PAGE ---- */
.commands-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 100px;
}

.commands-sidebar {
    position: sticky;
    top: 96px;
    height: fit-content;
}

.commands-sidebar .category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.commands-sidebar .category-btn:hover {
    background: var(--bg-300);
    color: var(--text);
}

.commands-sidebar .category-btn.active {
    background: rgba(var(--pom-rgb), 0.1);
    color: var(--pom);
}

.commands-sidebar .category-btn .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-400);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.commands-search {
    position: relative;
    margin-bottom: 24px;
}

.commands-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: all var(--transition);
}

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

.commands-search input:focus {
    border-color: rgba(var(--pom-rgb), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--pom-rgb), 0.08);
}

.commands-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.commands-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 80px; }

.command-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.command-card:hover { border-color: var(--border-light); }

.command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
}

.command-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pom);
    font-family: 'Courier New', monospace;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 12px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-chevron {
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.command-card.open .command-chevron { transform: rotate(180deg); }

.command-details {
    display: none;
    padding: 0 18px 14px;
    border-top: 1px solid var(--border);
}

.command-card.open .command-details { display: block; }

.command-detail-row {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
}

.command-detail-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 80px;
}

.command-detail-value {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* ---- STATUS PAGE ---- */
.status-hero {
    text-align: center;
    padding: 140px 24px 60px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.status-indicator.online {
    background: rgba(93, 240, 118, 0.1);
    color: var(--success);
    border: 1px solid rgba(93, 240, 118, 0.2);
}

.status-indicator.issues {
    background: rgba(255, 107, 107, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.status-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.online .dot { background: var(--success); }
.status-indicator.issues .dot { background: var(--error); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.stat-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.stat-card:hover { border-color: var(--border-light); }

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--pom);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-card .stat-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.shard-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.shard-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.shard-card:hover { border-color: var(--border-light); }

.shard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
}

.shard-header .shard-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shard-header .shard-num {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(var(--pom-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pom);
    font-size: 0.85rem;
}

.shard-header .shard-name { font-weight: 700; }
.shard-header .shard-meta { color: var(--text-secondary); font-size: 0.85rem; }

.shard-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.shard-stats .shard-stat {
    text-align: right;
}

.shard-stats .shard-stat-label { font-size: 0.75rem; color: var(--pom-muted); }
.shard-stats .shard-stat-value { font-weight: 700; font-size: 0.9rem; }

.shard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.shard-detail {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--border);
}

.shard-card.open .shard-detail { display: block; }

.shard-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding-top: 16px;
}

.shard-detail-item {
    background: var(--bg-300);
    border-radius: var(--radius-xs);
    padding: 12px;
}

.shard-detail-item .label { font-size: 0.75rem; color: var(--text-muted); }
.shard-detail-item .value { font-weight: 700; font-size: 1rem; margin-top: 2px; }

/* ---- SERVICE STATUS ---- */
.services-list {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
}

.service-row .service-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-row .service-icon {
    color: var(--pom);
    font-size: 1.1rem;
}

.service-row .service-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-status.online { color: var(--success); }
.service-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

/* ---- PREMIUM PAGE ---- */
.premium-hero {
    text-align: center;
    padding: 140px 24px 60px;
    position: relative;
    overflow: hidden;
}

.premium-hero .premium-glow {
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(var(--pom-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.pricing-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transition: all var(--transition);
    text-align: center;
}

.pricing-card.featured {
    border-color: rgba(var(--pom-rgb), 0.3);
    box-shadow: 0 0 60px rgba(var(--pom-rgb), 0.08);
}

.pricing-card .plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-card .plan-brief {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-card .plan-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pom);
}

.pricing-card .plan-price-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-card .plan-fine {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-card .plan-option {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pom);
    margin-bottom: 2px;
}

.pricing-card .plan-options {
    margin-bottom: 24px;
}

.pricing-card .plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-card .plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-card .plan-features li .check {
    color: var(--pom);
    font-weight: 700;
}

/* ---- EMBED BUILDER ---- */
.embed-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

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

.embed-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
}

.embed-form input,
.embed-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
    resize: vertical;
}

.embed-form input:focus,
.embed-form textarea:focus {
    border-color: rgba(var(--pom-rgb), 0.4);
}

.embed-form input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 2px;
    cursor: pointer;
}

.embed-preview {
    position: sticky;
    top: 96px;
}

.embed-preview-card {
    background: #2F3136;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--pom);
}

.embed-preview-title { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.embed-preview-desc { color: #dcddde; font-size: 0.875rem; line-height: 1.5; }
.embed-preview-footer { margin-top: 12px; font-size: 0.75rem; color: #72767d; }

/* ---- LEGAL PAGES ---- */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.legal-page .legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--pom);
}

.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-page ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page ul li { margin-bottom: 8px; }

/* ---- FOOTER ---- */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: var(--bg-100);
    position: relative;
    z-index: 1; /* above dot-bg (z-index:0); commands-body uses z-index:2 so its dropdown still wins */
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.footer-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: 240px;
}

.footer-cols {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    align-items: flex-start;
}

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

.footer-col-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

/* ---- PAGE LOADER ---- */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-100);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

#page-loader img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    animation: loader-pulse 1.1s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.9); }
}

#page-loader.done {
    opacity: 0;
    pointer-events: none;
}

/* ---- CTA SECTION ---- */
.cta-section {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-100);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .navbar-left .nav-item { display: none; }
    .navbar-right { display: none; }
    .mobile-navbar-right { display: flex; }

    .commands-layout {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .commands-sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .commands-sidebar .category-btn { white-space: nowrap; }

    .embed-layout { grid-template-columns: 1fr; }

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

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

    .shard-stats { gap: 12px; }
    .shard-stats .shard-stat:nth-child(-n+2) { display: none; }

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

    .footer { padding: 40px 20px; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-logo { width: 72px; height: 72px; border-radius: 16px; }
    .footer-cols { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .status-grid { grid-template-columns: 1fr; }
    .discord-mock { margin: 24px 0 0; }
}

/* ---- UTILITY ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-pom { color: var(--pom); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

@font-face {
font-family: 'gg-sans';
src: url('/static/fonts/normal.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'gg-sans';
src: url('/static/fonts/bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}

.discord-embed-descX {
    color: #dcddde;
    font-family: 'gg-sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.125;
    font-weight: 400;
    letter-spacing: normal;
    margin: 0;
}

.discord-embed-descX strong {
    font-weight: 700;
}

.discord-embed-descX img {
    width: 16px;
    height: 16px;
    vertical-align: -0.2em;
    margin-right: 0.25rem;
    display: inline;
}

.bot-tag {
    display: inline-flex;
    align-items: center;
    background: #3f48cc;
    color: #ffffff;
    border-radius: 4px;
    height: 0.9375rem;
    padding: 0 0.275rem;
    margin-inline-start: 0.25rem;
    margin-top: 0.2em;
    position: relative;
    top: 0px;
    vertical-align: top;
    font-family: 'gg-sans', sans-serif;
    font-size: 0.625rem;
    line-height: 0.9375rem;
}

.bot-tag svg {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    margin-inline-start: -0.2rem;
    margin-top: -0.02rem;
    flex-shrink: 0;
}

.bot-tag span {
    font-weight: 700;
    position: relative;
    vertical-align: top;
}









.font-satoshi {
	font-family: var(--font);
}

.font-cal-sans {
	font-family: var(--font);
}
.flex {
	display: flex
}

.flex-col {
	flex-direction: column
}

.min-h-screen {
	min-height: 100vh
}

.justify-between {
	justify-content: space-between
}

.bg-pom-100 {
	background-color: var(--bg-100);
}

.bg-pom-100\/30 {
	background-color: rgba(24, 21, 28, .3)
}

.bg-pom-100\/5 {
	background-color: rgba(24, 21, 28, .05)
}

.bg-pom-100\/50 {
	background-color: rgba(24, 21, 28, .5)
}

.bg-pom-100\/95 {
	background-color: rgba(24, 21, 28, .95)
}

.gap-4 {
	gap: 1rem
}

.h-screen {
	height: 100vh
}

.-mt-\[20vh\] {
	margin-top: -20vh
}

.justify-center {
	justify-content: center
}

.items-center {
	align-items: center
}

.text-8xl {
	font-size: 6rem;
	line-height: 1
}

.font-bold {
	font-weight: 700
}

.text-white {
	color: var(--text);
}

.text-xl {
	font-size: 1.25rem;
	line-height: 1.75rem
}

.font-semibold {
	font-weight: 600
}

.text-\[\#6A6F71\] {
	color: var(--text-muted);
}

.text-center {
	text-align: center
}

.flex-row {
	flex-direction: row
}

.pl-4 {
	padding-left: 1rem
}

.items-center {
	align-items: center
}

.rounded-2xl {
	border-radius: 1rem
}

.gap-3 {
	gap: .75rem
}

.h-\[50px\] {
	height: 50px
}

.w-\[120px\] {
	width: 120px
}

.bg-\[\#1E1F1F\] {
	background-color: var(--bg-300);
}

.hover\:bg-\[\#2a2c2c\]:hover {
	background-color: var(--bg-400);
}

.font-medium {
	font-weight: 500
}

.text-neutral-300 {
	color: var(--text-secondary);
}

/* ---- METRICS SECTION ---- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.metric-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.metric-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pom);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- TESTIMONIALS ---- */
.testimonials-section { display: none; }
.testimonials-section.visible { display: block; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-light);
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.testimonial-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--pom-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pom);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.testimonial-quote {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
}

/* ---- GUILD SHOWCASE GRID ---- */
.guild-showcase { display: none; }
.guild-showcase.visible { display: block; }

.guild-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.guild-grid-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: all var(--transition);
}

.guild-grid-card:hover {
    border-color: var(--border-light);
    background: var(--bg-300);
}

.guild-grid-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.guild-grid-card .guild-grid-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.guild-grid-card .guild-grid-info { min-width: 0; }

.guild-grid-card .guild-grid-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-grid-card .guild-grid-members {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- DOCS NAV LINK WITH "NEW" BADGE ---- */
.nav-docs-link {
    position: relative;
}

.nav-docs-link::after {
    content: 'New';
    position: absolute;
    top: 8px;
    right: 8px;
    transform: translate(55%, -45%) rotate(30deg);
    transform-origin: center;
    font-size: 0.45rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    background: rgba(var(--pom-rgb), 0.22);
    color: var(--pom);
    letter-spacing: 0.04em;
    line-height: 1.4;
    animation: badge-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: translate(55%, -45%) rotate(30deg) scale(1); }
    50%      { opacity: 0.75; transform: translate(55%, -45%) rotate(30deg) scale(1.08); }
}

/* Mobile "New" badge */
.mm-new-badge {
    font-size: 9.5px;
    font-weight: 700;
    background: rgba(var(--pom-rgb), 0.14);
    color: var(--pom);
    border: 1px solid rgba(var(--pom-rgb), 0.22);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.4px;
}

/* ---- LOGIN CARD ---- */
.login-card {
    background: rgba(var(--pom-rgb), 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.login-card h1 .accent {
    background: linear-gradient(135deg, var(--pom), var(--pom-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.login-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.login-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--pom-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pom);
    flex-shrink: 0;
    font-size: 1rem;
}

.login-feature-text .login-feature-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}

.login-feature-text .login-feature-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- PREMIUM ENHANCEMENTS ---- */
.plan-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: var(--pom);
    color: var(--bg-100);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    letter-spacing: 0.03em;
}

.premium-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.premium-highlight-card {
    background: var(--bg-200);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.premium-highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--pom);
}

.premium-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.premium-includes {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
    padding: 0 24px;
}

.premium-includes strong {
    color: var(--text);
}

/* ---- RESPONSIVE ADDITIONS ---- */
@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .guild-grid { grid-template-columns: repeat(2, 1fr); }
    .premium-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .guild-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
}

/* utility helpers */
.hidden { display: none !important; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

.db-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.db-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow: hidden;
}

/* Sidebar header (brand + X close button) */
.db-sidebar-header {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.db-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.db-brand-link img {
    width: 28px; height: 28px;
    border-radius: 8px;
}

.db-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    line-height: 0;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.db-sidebar-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Guild selector ── */
.db-guild-selector {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.db-guild-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    user-select: none;
}

.db-guild-current:hover { border-color: rgba(255, 255, 255, 0.12); }

.db-guild-icon {
    width: 24px; height: 24px;
    border-radius: 8px;
    background: rgba(var(--pom-rgb), 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pom);
}

.db-guild-menu {
    display: none;
    position: absolute;
    left: 12px; right: 12px;
    top: calc(100% - 8px);
    background: rgb(19, 19, 19);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    z-index: 300;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.db-guild-selector.open .db-guild-menu { display: block; }

.db-guild-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition);
}

.db-guild-item:hover { background: rgba(255, 255, 255, 0.05); }

.db-guild-item-empty {
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.db-guild-icon-placeholder {
    width: 24px; height: 24px;
    border-radius: 8px;
    background: rgba(var(--pom-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pom);
}

/* ── Sidebar nav (scrollable region) ── */
.db-nav {
    flex: 1;
    min-height: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.db-nav::-webkit-scrollbar { width: 4px; }
.db-nav::-webkit-scrollbar-track { background: transparent; }
.db-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.db-nav-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 12px 4px;
    opacity: 0.6;
}
.db-nav-premium { color: #F4D679; opacity: 1; }

.db-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.db-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.db-nav-link.active {
    color: var(--pom);
    background: rgba(var(--pom-rgb), 0.08);
    border: 1px solid rgba(var(--pom-rgb), 0.1);
}

.db-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.db-nav-link.active svg,
.db-nav-link:hover svg { opacity: 1; }

/* ── Sidebar footer ── */
.db-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.db-footer-user {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.db-footer-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    position: relative;
}

.db-avatar-svg {
    display: block;
}

.db-footer-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.db-footer-names {
    min-width: 0;
    flex: 1;
}

.db-footer-display {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.db-footer-display-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.db-clan-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0 4px;
    line-height: 16px;
    flex-shrink: 0;
    gap: 2px;
    vertical-align: middle;
    max-width: 72px;
}

.db-clan-tag-badge {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.db-clan-tag-text {
    font-family: 'gg-sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-footer-username {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.db-footer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.db-footer-logout:hover {
    color: var(--error);
    background: rgba(255, 107, 107, 0.08);
}

/* ── Overlay (mobile sidebar backdrop) ── */
.db-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 190;
}
.db-overlay.active { display: block; }

/* ── Mobile topbar (hidden on desktop) ── */
.db-mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 140;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}

.db-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background var(--transition);
    flex-shrink: 0;
    line-height: 0;
}
.db-mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.06); }

.db-mobile-topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Main content ── */
.db-main {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.db-topbar {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.db-topbar h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.db-topbar-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.db-content {
    padding: 32px;
    flex: 1;
}

/* ── Cards ── */
.db-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.db-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--pom-rgb), 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.db-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.45);
}

.db-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.db-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.db-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.01em;
}

/* ── Form controls ── */
.db-form-group {
    margin-bottom: 16px;
}

.db-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.db-input,
.db-select,
.db-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    transition: all 0.2s ease;
    outline: none;
}

.db-input:focus,
.db-select:focus,
.db-textarea:focus {
    border-color: rgba(var(--pom-rgb), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--pom-rgb), 0.06);
}

.db-textarea {
    min-height: 100px;
    resize: vertical;
}

.db-select option { background: var(--bg-200); }

/* ── Toggle switch ── */
.db-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.db-toggle-row:last-child { border-bottom: none; }

.db-toggle-info { flex: 1; }
.db-toggle-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.db-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.db-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}

.db-toggle input { opacity: 0; width: 0; height: 0; }

.db-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.db-toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}

.db-toggle input:checked + .db-toggle-slider { background: rgba(var(--pom-rgb), 0.25); }
.db-toggle input:checked + .db-toggle-slider::before {
    transform: translateX(20px);
    background: var(--pom);
}

/* ── Table-style list ── */
.db-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.db-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.db-list-item:hover {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.06);
}

.db-list-item-phrase {
    font-weight: 600;
    color: var(--pom);
    min-width: 120px;
}

.db-list-item-value {
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-list-item-del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    flex-shrink: 0;
}

.db-list-item-del:hover { color: var(--error); }

/* ── Stats grid (overview) ── */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.db-stat-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
}
.db-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.db-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.db-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pom);
}

/* ── Save button row ── */
.db-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

/* ── Module grid (antinuke) ── */
.db-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.db-module-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.3s ease;
}
.db-module-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.db-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.db-module-name {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: capitalize;
    color: var(--text);
}

.db-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.db-inline-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 80px;
}

/* ── Toast ── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.db-toast {
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    max-width: 320px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.db-toast.show { opacity: 1; transform: none; }
.db-toast-success { background: rgba(93,240,118,0.1); border: 1px solid rgba(93,240,118,0.15); color: var(--success); }
.db-toast-error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.15); color: var(--error); }
.db-toast-info { background: rgba(107,181,255,0.1); border: 1px solid rgba(107,181,255,0.15); color: var(--info); }

/* ── No-guild placeholder ── */
.db-no-guild {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.db-no-guild svg { opacity: 0.3; }
.db-no-guild p { font-size: 0.95rem; }

/* ── User Data Panels ── */
.db-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.db-panels-grid > .db-card { margin-bottom: 0; min-width: 448px; }

/* Narrow: single column before cards squeeze below min-width */
@media (max-width: 960px) {
    .db-panels-grid { grid-template-columns: 1fr; }
    .db-panels-grid > .db-card { min-width: 0; }
}

/* Wide layout: charts get their own columns, avatars + names stack in a 3rd column */
@media (min-width: 1440px) {
    .db-panels-grid {
        grid-template-columns: 1fr 1fr minmax(300px, 380px);
        grid-template-rows: auto auto;
        max-width: 1500px;
    }
    .db-panels-grid > .db-card { min-width: 0; }
    #st-panel  { grid-column: 1; grid-row: 1 / 3; }
    #act-panel { grid-column: 2; grid-row: 1 / 3; }
    #av-panel  { grid-column: 3; grid-row: 1; }
    #names-panel { grid-column: 3; grid-row: 2; }
}
.db-panel-actions {
    display: flex; gap: 10px; align-items: center;
}
.db-empty-state {
    text-align: center; padding: 44px 20px; color: var(--text-muted);
}
.db-empty-state p { margin: 8px 0 0; font-size: 0.85rem; letter-spacing: 0.01em; }
.db-optin-prompt {
    text-align: center; padding: 36px 24px;
}
.db-optin-prompt p {
    color: var(--text-muted); font-size: 0.88rem; margin: 0 0 18px;
    letter-spacing: 0.01em; line-height: 1.6;
}
.btn-sm { font-size: 0.8rem; padding: 7px 18px; border-radius: 12px; }
.btn-danger {
    background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.2);
    color: var(--error); border-radius: 10px; cursor: pointer; font-size: 0.73rem;
    padding: 5px 14px; transition: all 0.2s ease; font-family: var(--font); font-weight: 600;
}
.btn-danger:hover {
    background: rgba(255, 107, 107, 0.15); border-color: rgba(255, 107, 107, 0.35);
}

/* ── Bar Charts (Screentime / Activity) ── */
.chart-wrapper {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 24px; margin-top: 16px;
    transition: border-color 0.3s ease;
}
.chart-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.07);
}
.chart-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.chart-header-left {}
.chart-total {
    font-size: 1.6rem; font-weight: 700; color: var(--text);
    letter-spacing: -0.02em;
}
.chart-avg {
    font-size: 0.78rem; color: var(--text-muted); margin-top: 3px;
    letter-spacing: 0.01em;
}
.chart-pct {
    font-size: 0.75rem; padding: 3px 10px; border-radius: 9999px;
    display: inline-block; margin-top: 6px; font-weight: 600;
    letter-spacing: 0.01em;
}
.chart-pct.up { color: #5DF076; background: rgba(93,240,118,0.1); border: 1px solid rgba(93,240,118,0.12); }
.chart-pct.down { color: var(--error); background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.12); }
.chart-nav {
    display: flex; align-items: center; gap: 6px;
}
.chart-nav button {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted); width: 30px; height: 30px; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; font-size: 0.85rem;
}
.chart-nav button:hover {
    border-color: rgba(var(--pom-rgb), 0.25);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.35);
}
.chart-nav button:disabled { opacity: 0.25; cursor: not-allowed; }
.chart-nav .chart-week-label {
    font-size: 0.73rem; color: var(--text-muted); min-width: 100px; text-align: center;
    letter-spacing: 0.01em;
}
.chart-area {
    display: flex; align-items: flex-end; gap: 4px; height: 170px;
    padding: 0 4px; position: relative;
}
.chart-bar-col {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    height: 100%; cursor: pointer; position: relative;
    transition: transform 0.15s ease;
}
.chart-bar-col:hover { transform: scaleY(1.02); transform-origin: bottom; }
.chart-bar-col:hover .chart-bar { opacity: 0.85; }
.chart-bar-col.active .chart-bar-label { color: var(--pom); font-weight: 700; }
.chart-bar-col.active .chart-bar { box-shadow: 0 0 12px rgba(var(--pom-rgb), 0.15); }
.chart-bar {
    width: 100%; max-width: 28px; display: flex; flex-direction: column-reverse;
    border-radius: 6px 6px 2px 2px; overflow: hidden; margin-top: auto;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.chart-seg { width: 100%; min-height: 0; }
/* Screentime status colors */
.chart-seg.online { background: linear-gradient(180deg, #3DE868, #28B84A); }
.chart-seg.idle { background: linear-gradient(180deg, #FFB030, #E08A00); }
.chart-seg.dnd { background: linear-gradient(180deg, #FF5C52, #D93025); }
/* Activity ranked colors (dashboard themed) */
.chart-seg.rank-1 { background: linear-gradient(180deg, #F9E8A8, #D4B85C); }
.chart-seg.rank-2 { background: linear-gradient(180deg, #C0A870, #8A7548); }
.chart-seg.rank-3 { background: linear-gradient(180deg, #8B92A0, #555B66); }
.chart-seg.rank-other { background: rgba(255, 255, 255, 0.06); }
.chart-bar-label {
    font-size: 0.68rem; color: var(--text-muted); margin-top: 6px;
    text-align: center; height: 1em; line-height: 1em; flex-shrink: 0;
    transition: color 0.2s ease;
}
.chart-grid-lines {
    position: absolute; top: 0; left: 0; right: 0; bottom: 22px;
    pointer-events: none; display: flex; flex-direction: column;
    justify-content: space-between;
}
.chart-grid-line {
    border-top: 1px solid rgba(255, 255, 255, 0.04); width: 100%;
}
.chart-legend {
    display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap;
}
.chart-legend-item {
    display: flex; align-items: center; gap: 6px; font-size: 0.73rem;
    color: var(--text-muted); letter-spacing: 0.01em;
}
.chart-legend-dot {
    width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px currentColor;
}
.chart-tooltip {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 10px 14px; font-size: 0.73rem;
    color: var(--text); white-space: nowrap; pointer-events: none;
    z-index: 10; display: none; line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.chart-bar-col:hover .chart-tooltip { display: block; }

/* ── Hourly Detail (Day Drill-down) ── */
.chart-hourly {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.chart-hourly-title {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    letter-spacing: -0.01em;
}
.chart-hourly .chart-area { height: 100px; }
.chart-hourly .chart-bar { max-width: 14px; border-radius: 4px 4px 1px 1px; }
.chart-hourly .chart-bar-label { font-size: 0.58rem; }

/* ── Top Apps List ── */
.top-apps-list {
    margin-top: 18px; display: flex; flex-direction: column; gap: 6px;
}
.top-app-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2); border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}
.top-app-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}
.top-app-icon {
    width: 32px; height: 32px; border-radius: 10px;
    object-fit: cover; background: rgba(255, 255, 255, 0.04);
}
.top-app-info { flex: 1; min-width: 0; }
.top-app-name {
    font-size: 0.85rem; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-app-category {
    font-size: 0.7rem; color: var(--text-muted); text-transform: capitalize;
}
.top-app-time {
    font-size: 0.8rem; color: var(--text-muted); white-space: nowrap;
    font-weight: 500;
}
.top-app-rank {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

/* ── Avatar Gallery ── */
.av-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px; margin-top: 16px;
}
.av-tile {
    position: relative; aspect-ratio: 1; border-radius: 14px;
    overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.av-tile:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.av-tile img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.av-tile-date {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 18px 6px 6px; font-size: 0.6rem; color: rgba(255,255,255,0.85);
    text-align: center; opacity: 0;
    transition: opacity 0.3s ease;
}
.av-tile:hover .av-tile-date { opacity: 1; }
.av-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; margin-top: 16px;
}
.av-pagination button {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted); padding: 7px 16px; border-radius: 10px; cursor: pointer;
    font-size: 0.8rem; transition: all 0.2s ease; font-family: var(--font);
}
.av-pagination button:hover {
    border-color: rgba(var(--pom-rgb), 0.25);
    color: var(--text-secondary);
}
.av-pagination button:disabled { opacity: 0.25; cursor: not-allowed; }
.av-pagination span {
    font-size: 0.78rem; color: var(--text-muted);
}

/* ── Names List ── */
.names-list {
    display: flex; flex-direction: column; gap: 6px; margin-top: 16px;
}
.names-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 16px; background: rgba(0, 0, 0, 0.2); border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}
.names-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}
.names-item-name {
    font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.names-item-time {
    font-size: 0.73rem; color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .db-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .db-sidebar.open { transform: translateX(0); }
    .db-sidebar-close { display: flex; }
    .db-mobile-topbar { display: flex; }
    .db-main { margin-left: 0; padding-top: 56px; }
    .db-topbar { padding: 16px 20px; }
    .db-content { padding: 20px 16px; }
}

