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

:root {
    --bg-base: #090a0f;
    --bg-surface: #0f1118;
    --bg-card: #141622;
    --bg-card-hover: #1a1d2d;
    --bg-input: #0c0e15;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --discord-blurple: #5865f2;
    --discord-blurple-hover: #4752c4;
    --discord-green: #57f287;
    --discord-red: #ed4245;
    --discord-yellow: #fee75c;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar-global {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-glow-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 2px;
    transition: border-color 0.2s ease;
}

.brand-link:hover .brand-glow-avatar {
    border-color: var(--discord-blurple);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.badge-version {
    font-size: 0.68rem;
    background: rgba(88, 101, 242, 0.15);
    color: var(--discord-blurple);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 6px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.15s;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.highlight {
    color: var(--text-main);
}

/* Language Switcher Pill */
.lang-switcher-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 3px 4px;
    gap: 3px;
    backdrop-filter: blur(8px);
}

.lang-choice-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-choice-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-choice-btn.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.8), rgba(0, 229, 255, 0.8));
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.mobile-lang-pill {
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
}

/* Nav Auth */
.btn-discord-login {
    background: var(--discord-blurple);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-discord-login:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-1px);
}

.btn-quick-login {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-quick-login:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.user-auth-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-manage-servers {
    background: var(--discord-blurple);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.btn-manage-servers:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-1px);
}

.user-pill-dropdown {
    position: relative;
}

.user-pill-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
}

.user-pill-btn:hover {
    border-color: var(--border-hover);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-menu-box {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 160px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-menu-box.show {
    display: block;
}

.menu-item {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.menu-item.logout {
    color: var(--discord-red);
}

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

/* ─── PAGE VIEW ROUTER (SPA) ─────────────────────────────────────────────── */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

/* ─── VIEW 1: HERO & LANDING PAGE ────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 88px 24px 64px 24px;
    text-align: center;
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 380px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.12) 0%, rgba(88, 101, 242, 0.03) 60%, transparent 80%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    max-width: 780px;
    margin: 0 auto;
}

.hero-bot-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 24px auto;
}

.hero-bot-circle {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.hero-online-status-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1118;
    border: 1px solid rgba(87, 242, 135, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--discord-green);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--discord-green);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    background: var(--discord-blurple);
    color: #fff;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
    transition: all 0.15s ease;
}

.btn-hero-primary:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.btn-hero-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-hover);
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-hero-discord-join {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-hero-discord-join:hover {
    color: #fff;
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Trusted Community / Stats Bar */
.trusted-bar {
    max-width: 920px;
    margin: 0 auto;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

/* Counters Grid */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.counter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    transition: border-color 0.15s;
}

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

.counter-val {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.counter-lbl {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 88px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading-center {
    text-align: center;
    margin-bottom: 48px;
}

.sub-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-headline {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 8px 0;
    letter-spacing: -0.025em;
}

.section-subtext {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* ─── INTERACTIVE PLACEHOLDERS SYSTEM ─────────────────────────────────── */
.placeholder-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
}
.placeholder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.placeholder-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-info-guide {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: #5865F2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-info-guide:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: #5865F2;
    color: #fff;
}
.placeholder-section {
    margin-bottom: 12px;
}
.placeholder-section:last-child {
    margin-bottom: 0;
}
.placeholder-sec-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 600;
}
.placeholder-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 9px;
    font-family: var(--font-mono, monospace);
    font-size: 0.76rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.tag-chip-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
    color: #fff;
    transform: translateY(-1px);
}
.tag-chip-btn:active {
    transform: scale(0.96);
}
.tag-chip-btn.member {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
    color: #d8b4fe;
}
.tag-chip-btn.member:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.25);
    color: #fff;
}
.tag-chip-btn.server {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}
.tag-chip-btn.server:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.25);
    color: #fff;
}
.tag-chip-btn.invite {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
    color: #67e8f9;
}
.tag-chip-btn.invite:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.25);
    color: #fff;
}
.placeholder-guide-modal {
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 280px;
    overflow-y: auto;
}
.placeholder-guide-modal.active {
    display: block;
}
.placeholder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}
.placeholder-table th {
    text-align: left;
    padding: 6px 8px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}
.placeholder-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #b9bbbe;
}
.placeholder-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.feature-card--featured:hover {
    border-color: var(--discord-blurple);
}

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

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #141724;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 16px;
}

.feature-card-header-row .feature-icon-wrap {
    margin-bottom: 0;
}

.feature-pill {
    background: rgba(88, 101, 242, 0.12);
    color: var(--discord-blurple);
    border: 1px solid rgba(88, 101, 242, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ─── SECURITY & ANTI-SPAM SECTION ─────────────────────────────────────────── */
.antispam-showcase {
    padding: 88px 24px;
    background: #0b0d14;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.antispam-inner {
    max-width: 1080px;
    margin: 0 auto;
}

/* Real Discord Client Window Mockup */
.discord-mockup-wrapper {
    margin: 40px auto 36px auto;
    max-width: 760px;
}

.discord-mockup-window {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.discord-header-bar {
    background: #313338;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
}

.discord-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.discord-hash {
    color: #80848e;
    font-weight: 700;
    font-size: 1.1rem;
}

.discord-chan-name {
    color: #f2f3f5;
}

.discord-divider {
    color: #4e5058;
}

.discord-chan-topic {
    color: #949ba4;
    font-size: 0.8rem;
    font-weight: 400;
}

.discord-messages-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discord-msg-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.discord-avatar.user-av {
    background: #35373c;
    font-size: 1.1rem;
}

.discord-avatar.bot-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.discord-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.discord-author {
    font-weight: 600;
    font-size: 0.92rem;
}

.discord-author.scammer-tag {
    color: #f23f43;
}

.discord-author.bot-author {
    color: #f2f3f5;
}

.discord-bot-badge {
    background: var(--discord-blurple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.discord-timestamp {
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-fwd-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #b5bac1;
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
}

.discord-text-deleted {
    background: rgba(242, 63, 67, 0.08);
    border-left: 3px solid #f23f43;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.deleted-tag-badge {
    color: #f23f43;
    font-size: 0.78rem;
    font-weight: 700;
}

.deleted-reason-text {
    color: #b5bac1;
    font-size: 0.85rem;
}

.discord-embed-card {
    background: #1e1f22;
    border-left: 4px solid var(--discord-blurple);
    border-radius: 4px;
    padding: 14px 16px;
    margin-top: 6px;
    max-width: 520px;
}

.embed-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f2f3f5;
    margin-bottom: 6px;
}

.embed-desc {
    font-size: 0.85rem;
    color: #dbdee1;
    line-height: 1.45;
    margin-bottom: 12px;
}

.embed-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.field-name {
    font-size: 0.75rem;
    color: #949ba4;
    font-weight: 600;
    text-transform: uppercase;
}

.field-val {
    font-size: 0.85rem;
    color: #f2f3f5;
    font-weight: 500;
}

/* Security Matrix */
.scam-detect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.scam-detect-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: left;
    transition: border-color 0.15s;
}

.scam-detect-card:hover {
    border-color: var(--border-hover);
}

.scam-detect-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.scam-detect-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.scam-detect-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Footer */
.footer-global {
    background: #08090d;
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 8px;
    max-width: 320px;
}

.footer-heading {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.footer-col-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.15s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 24px;
}

/* ─── VIEW 2: SERVER SELECTION ───────────────────────────────────────────── */
.servers-container {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 24px;
}

.servers-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

.servers-search-row {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.search-input-wrap {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.search-input-wrap input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    width: 100%;
}

.guilds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guild-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.2s ease;
}

.guild-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.guild-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.guild-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #252840;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

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

.guild-meta {
    flex: 1;
    overflow: hidden;
}

.guild-name-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-status-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.guild-status-tag.active {
    background: rgba(87, 242, 135, 0.15);
    color: var(--discord-green);
}

.guild-status-tag.inactive {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.btn-card-manage {
    width: 100%;
    background: var(--discord-blurple);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-card-manage:hover {
    background: var(--discord-blurple-hover);
}

.btn-card-invite {
    width: 100%;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-card-invite:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

/* ─── VIEW 3: DASHBOARD SHELL ────────────────────────────────────────────── */
.dashboard-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
}

.dash-sidebar {
    background: #0c0e14;
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

.active-guild-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 24px;
}

.dash-guild-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1e2230;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.dash-guild-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.dash-switch-guild-btn {
    background: none;
    border: none;
    color: var(--discord-blurple);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
}

.dash-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    padding: 0 8px 8px 8px;
}

.dash-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.dash-nav-tab:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

.dash-nav-tab.active {
    background: rgba(88, 101, 242, 0.12);
    color: #fff;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.dash-sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dash-back-servers-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

.dash-back-servers-btn:hover {
    color: #fff;
}

.dash-content-viewport {
    padding: 30px 40px;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

.dash-tab-content {
    display: none;
}

.dash-tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.tab-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dash-tab-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.dash-tab-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.btn-save-primary {
    background: var(--discord-blurple);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s;
}

.btn-save-primary:hover {
    background: var(--discord-blurple-hover);
    transform: translateY(-1px);
}

/* Glass Card & Form Elements */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.max-w-700 { max-width: 700px; }

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.88rem;
    outline: none;
    transition: border 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--discord-blurple);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }

/* Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

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

.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #24273f;
    transition: .25s;
    border-radius: 20px;
}

.switch-toggle .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider {
    background: var(--discord-blurple);
}

.switch-toggle input:checked + .slider:before {
    transform: translateX(18px);
}

/* 3-Col Builder */
.builder-3col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

.col-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-neon-mini {
    background: var(--discord-blurple);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-neon-mini:hover {
    background: var(--discord-blurple-hover);
}

/* Discord Mockup Box */
.discord-mockup-box {
    background: #313338;
    border-radius: 10px;
    padding: 14px;
}

.discord-msg-row {
    display: flex;
    gap: 10px;
}

.discord-avatar-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.discord-body-mini {
    flex: 1;
}

.discord-head-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.discord-bot-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.discord-bot-tag {
    background: var(--discord-blurple);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.discord-embed-card {
    background: #2b2d31;
    border-left: 4px solid var(--discord-blurple);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.discord-embed-t {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00a8fc;
    margin-bottom: 4px;
}

.discord-embed-d {
    font-size: 0.8rem;
    color: #dbdee1;
}

.discord-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mock-discord-btn {
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.mock-discord-btn.blurple { background: #5865f2; }
.mock-discord-btn.green { background: #248046; }
.mock-discord-btn.grey { background: #4e5058; }
.mock-discord-btn.red { background: #da373c; }

/* Overview cards */
.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-icon-tag {
    font-size: 1.8rem;
}

.card-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 700;
}

.card-status-pill {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
}

.card-status-pill.green { color: var(--discord-green); }
.card-status-pill.blue { color: var(--primary-cyan); }

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.guide-steps-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.link-cyan {
    display: block;
    color: var(--primary-cyan);
    font-size: 0.85rem;
    word-break: break-all;
    margin-top: 4px;
}

.code-box-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #090a10;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 6px;
}

.code-box-copy code {
    color: var(--primary-cyan);
    font-family: var(--font-code);
    font-size: 0.85rem;
}

.btn-copy-url {
    background: var(--primary-purple);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.btn-modal-quick {
    background: linear-gradient(135deg, var(--primary-purple), var(--discord-blurple));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-close {
    background: #252840;
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
}

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

.toast-msg {
    background: #191b2c;
    border: 1px solid var(--primary-purple);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM
   Breakpoints:
     - Desktop   : > 1024px  (default above)
     - Laptop    : ≤ 1024px
     - Tablet    : ≤ 768px
     - Mobile    : ≤ 480px
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hamburger Menu Button (hidden on desktop) ─────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(11, 12, 19, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 6px;
    animation: drawerSlide 0.2s ease;
}
@keyframes drawerSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    transition: background 0.15s;
}
.mobile-nav-drawer .nav-link:hover { background: rgba(255,255,255,0.06); }
.mobile-nav-drawer .nav-link.highlight {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.mobile-nav-drawer .btn-discord-login {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
}

/* Mobile Sidebar Overlay for Dashboard */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* Mobile Dashboard Sidebar Toggle Button */
.dash-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

/* ─── LAPTOP (≤ 1024px) ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Nav: hide nav links, show hamburger */
    .nav-menu-links { display: none; }
    .nav-hamburger  { display: flex; }

    /* Hero */
    .hero-title     { font-size: 3rem; }
    .hero-tagline   { font-size: 1.1rem; }

    /* Features: 2 columns */
    .features-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Stats: 2x2 */
    .counters-grid  { grid-template-columns: repeat(2, 1fr); }

    /* Servers: 2 columns */
    .guilds-grid    { grid-template-columns: repeat(2, 1fr); }

    /* Overview cards: 2x2 */
    .overview-cards-grid { grid-template-columns: repeat(2, 1fr); }

    /* Builder */
    .builder-3col-grid { grid-template-columns: 1fr; }

    /* Dashboard: sidebar slides in as overlay */
    .dashboard-shell {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        position: fixed;
        top: 70px;
        left: -280px;
        width: 260px;
        height: calc(100vh - 70px);
        z-index: 300;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,0.6);
    }
    .dash-sidebar.mobile-open {
        left: 0;
    }
    .dash-sidebar-toggle { display: flex; }

    /* Footer: 2 columns */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── TABLET (≤ 768px) ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container { padding: 0 16px; }
    .brand-name    { font-size: 1rem; }
    /* Hide manage servers text on tablet, keep icon */
    .btn-manage-servers span { display: none; }
    .btn-manage-servers {
        padding: 8px 10px;
        min-width: unset;
    }
    .nav-user-name { display: none; }

    /* Hero */
    .hero-section   { padding: 60px 20px 40px; }
    .hero-title     { font-size: 2.4rem; }
    .hero-tagline   { font-size: 1rem; max-width: 100%; }
    .hero-bot-avatar-wrap {
        width: 90px;
        height: 90px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    /* Features: 1 column */
    .features-grid  { grid-template-columns: 1fr; gap: 16px; }
    .features-section { padding: 60px 20px; }
    .section-headline { font-size: 1.8rem; }

    /* Stats */
    .counters-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .counter-val    { font-size: 1.5rem; }

    /* Servers */
    .guilds-grid    { grid-template-columns: 1fr; }
    .servers-container { padding: 0 16px; margin: 24px auto; }

    /* Dashboard */
    .dash-panel     { padding: 20px 16px; }
    .overview-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .builder-3col-grid  { grid-template-columns: 1fr; }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-global { padding: 40px 20px 24px; }

    /* Commands section */
    .commands-section { padding: 60px 20px; }

    /* Toast: full width on tablet */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast-msg { text-align: center; }
}

/* ─── MOBILE (≤ 480px) ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Navbar */
    .nav-container { padding: 0 12px; }
    .brand-name    { font-size: 0.9rem; }
    .badge-version { display: none; }
    .btn-discord-login span { display: none; }
    .btn-discord-login {
        padding: 8px 10px;
        min-width: unset;
    }

    /* Hero */
    .hero-section   { padding: 48px 16px 32px; }
    .hero-title     { font-size: 2rem; letter-spacing: -0.02em; }
    .hero-tagline   { font-size: 0.9rem; margin-bottom: 24px; }
    .hero-bot-avatar-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Stats: 2x2 compact */
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .counter-card   { padding: 14px; }
    .counter-val    { font-size: 1.3rem; }
    .counter-lbl    { font-size: 0.72rem; }

    /* Features */
    .features-section { padding: 48px 16px; }
    .features-grid  { grid-template-columns: 1fr; gap: 14px; }
    .section-headline { font-size: 1.6rem; }
    .feature-card   { padding: 20px; }

    /* Servers */
    .servers-container { padding: 0 12px; margin: 16px auto; }
    .guilds-grid    { grid-template-columns: 1fr; gap: 14px; }
    .page-title     { font-size: 1.6rem; }
    .search-input-wrap { padding: 8px 12px; }

    /* Dashboard */
    .dash-panel     { padding: 16px 12px; }
    .overview-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .overview-stat-card { padding: 16px; }
    .builder-3col-grid  { grid-template-columns: 1fr; }

    /* Commands */
    .commands-section   { padding: 48px 16px; }
    .cmd-grid           { grid-template-columns: 1fr !important; }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-global  { padding: 32px 16px 20px; }
    .footer-tagline { max-width: 100%; }

    /* Modal: full screen on mobile */
    .modal-box {
        width: 100vw !important;
        max-width: 100% !important;
        margin: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 92vh;
        overflow-y: auto;
    }
    .modal-overlay {
        align-items: flex-end;
    }

    /* Toast */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* ─── TAG INSERT BUTTONS ─────────────────────────────────────────────────── */
.tag-insert-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-code);
    font-size: 0.73rem;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.tag-insert-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
}
.tag-insert-btn.highlight-blue {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.25);
    color: #67e8f9;
}
.tag-insert-btn.highlight-blue:hover {
    background: rgba(0, 229, 255, 0.22);
    border-color: rgba(0, 229, 255, 0.6);
    color: #ffffff;
}
