/* ============================================
   Parrot Bot Dashboard - Clean Design
   Inspired by Kayo's minimal aesthetic
   ============================================ */

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

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #1f1f1f;
    --bg-active: #1e1e2a;
    --border: #222222;
    --border-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #5865F2;
    --accent-hover: #4752C4;
    --accent-glow: rgba(88, 101, 242, 0.15);
    --green: #57F287;
    --red: #ED4245;
    --yellow: #FEE75C;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: dark;
}

/* Force dark native controls (select dropdowns, scrollbars, etc.) */
select, option, input, textarea {
    color-scheme: dark;
}
option {
    background: #1a1a1a;
    color: #ddd;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

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

a:hover {
    color: var(--accent-hover);
}

/* ============================================
   SETUP WIZARD OVERLAY
   ============================================ */
.wizard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wizard-overlay.active {
    display: flex;
}
.wizard-modal {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: wizardIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes wizardIn {
    from { opacity:0; transform: scale(0.93) translateY(12px); }
    to   { opacity:1; transform: scale(1)    translateY(0);    }
}
.wizard-progress-track {
    width: 100%;
    height: 3px;
    background: #1c1c1c;
    flex-shrink: 0;
}
.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865F2, #7983f5);
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

/* Crumb row */
.wizard-crumb-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 16px 0;
    flex-shrink: 0;
}
.wcrumb {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: default;
    transition: color 0.2s, background 0.2s;
}
.wcrumb.active {
    background: rgba(88,101,242,0.15);
    color: #8a9ffc;
    border: 1px solid rgba(88,101,242,0.3);
}
.wcrumb.done { color: #57F287; }
.wcrumb-sep  { font-size: 9px; color: #2a2a2a; margin: 0 1px; }

/* Step pane */
.wizard-step {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px 0;
}
.wizard-step.active { display: block; }
.wizard-step::-webkit-scrollbar { width: 4px; }
.wizard-step::-webkit-scrollbar-track { background: transparent; }
.wizard-step::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 4px; }

/* Step header (icon removed ??? replaced by Bootstrap Icon) */
.wizard-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    background: rgba(88,101,242,0.12);
    color: #8a9ffc;
}
.wizard-icon { display: none; } /* legacy emoji icon ??? hidden */
.wizard-title {
    font-size: 20px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 6px;
}
.wizard-desc {
    font-size: 13.5px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Fields */
.wizard-field-group { margin-bottom: 18px; }
.wizard-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.wizard-input {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 14px;
    color: #ddd;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.wizard-input:focus { border-color: var(--accent); }
.wizard-select {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 14px;
    color: #ddd;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.wizard-select:focus { border-color: var(--accent); }

/* Toggle row */
.wizard-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a1a;
}
.wizard-toggle-row:last-of-type { border-bottom: none; }
.wizard-toggle-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 2px;
}
.wizard-toggle-sub {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.wizard-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(88,101,242,0.15);
    color: #8a9ffc;
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
    margin-left: 5px;
}
.wizard-badge-optional {
    font-size: 10px;
    font-weight: 500;
    color: #444;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    margin-left: 6px;
}

/* Mode cards (step 2) */
.wizard-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wizard-mode-card {
    border: 2px solid #1e1e1e;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #0d0d0d;
}
.wizard-mode-card:hover   { border-color: #333; }
.wizard-mode-card.selected { border-color: #5865F2; background: rgba(88,101,242,0.06); }
.wizard-mode-preview {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.wmp-embed {
    display: flex;
    gap: 8px;
    width: 100%;
}
.wmp-bar {
    width: 3px;
    min-width: 3px;
    background: #5865F2;
    border-radius: 2px;
}
.wmp-inner { flex: 1; }
.wmp-title {
    font-size: 9px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 5px;
}
.wmp-line {
    height: 5px;
    background: #2a2a2a;
    border-radius: 3px;
    margin-bottom: 4px;
}
.wmp-line.short { width: 60%; }
.compact-preview { flex-direction: column; gap: 4px; align-items: flex-start; }
.wmp-compact-line {
    font-size: 9px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wmp-compact-line .wmp-icon { font-size: 9px; }
.wizard-mode-label {
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 2px;
}
.wizard-mode-sub { font-size: 11px; color: #555; }

/* Info note */
.wizard-info-note {
    background: rgba(88,101,242,0.07);
    border: 1px solid rgba(88,101,242,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #aab4e8;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.wizard-info-note i { flex-shrink: 0; margin-top: 2px; }
.wizard-field-hint { font-size: 11.5px; color: #777; margin-top: 6px; }

/* Done note */
.wizard-done-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(87,242,135,0.06);
    border: 1px solid rgba(87,242,135,0.18);
    border-radius: 10px;
    font-size: 13px;
    color: #57F287;
    font-weight: 600;
}

/* Footer */
.wizard-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px 24px;
    border-top: 1px solid #1c1c1c;
    margin-top: 8px;
}
.wizard-nav-btns { display: flex; align-items: center; gap: 8px; }
.wizard-btn-skip {
    background: none;
    border: none;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s;
}
.wizard-btn-skip:hover { color: #888; }
.wizard-btn-back {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.wizard-btn-back:hover { background: #222; color: #ddd; }
.wizard-btn-next,
.wizard-btn-finish {
    background: #5865F2;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, transform 0.1s;
}
.wizard-btn-next:hover,
.wizard-btn-finish:hover   { background: #4752C4; }
.wizard-btn-finish { background: #57F287; color: #0d0d0d; }
.wizard-btn-finish:hover   { background: #45d472; }

/* Tag picker (inside wizard) */
.wiz-tag-picker {
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
}
.wiz-tag-input-row { padding: 4px 6px; border-bottom: 1px solid #1c1c1c; }
.wiz-tag-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #aaa;
    font-size: 13px;
    padding: 7px 8px;
    cursor: pointer;
    font-family: inherit;
}
.wiz-tag-select:focus { color: #ddd; }
.wiz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    min-height: 38px;
}
.wiz-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.25);
    color: #a0b0f5;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.wiz-tag button {
    background: none;
    border: none;
    color: #6672b8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    transition: color 0.15s;
}
.wiz-tag button:hover { color: #ff6b6b; }

/* Join gate rows */
.wizard-jg-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 10px;
    margin-top: 4px;
}
.wiz-jg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 9px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #bbb;
}
.wiz-jg-row span { flex: 1; line-height: 1.4; }
.wiz-jg-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(88,101,242,0.05);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 9px;
    margin-bottom: 7px;
    margin-left: 16px;
    font-size: 13px;
    color: #888;
}

/* Small toggle variant */
.toggle-slider-sm {
    width: 34px !important;
    height: 18px !important;
}
.toggle-slider-sm::before {
    width: 12px !important;
    height: 12px !important;
    top: 3px !important;
    left: 3px !important;
}
input:checked + .toggle-slider-sm::before { transform: translateX(16px) !important; }

/* Verification preview (step 10) */
.wiz-verify-preview {
    margin-top: 20px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}
.wiz-verify-channel {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    background: #111;
    border-bottom: 1px solid #1e1e1e;
}
.wiz-verify-embed { display: flex; padding: 14px; }
.wiz-verify-embed-bar {
    width: 4px;
    border-radius: 4px;
    background: #5865F2;
    flex-shrink: 0;
    margin-right: 12px;
}
.wiz-verify-embed-body { flex: 1; }
.wiz-verify-embed-title { font-size: 14px; font-weight: 700; color: #ddd; margin-bottom: 8px; }
.wiz-verify-embed-desc  { font-size: 12.5px; color: #888; line-height: 1.6; margin-bottom: 10px; }
.wiz-verify-embed-footer { font-size: 11px; color: #444; margin-bottom: 12px; }
.wiz-verify-btns { display: flex; gap: 8px; }
.wiz-verify-btn-verify {
    background: #57F287; color: #0d0d0d;
    font-size: 12px; font-weight: 700;
    padding: 6px 16px; border-radius: 6px; cursor: default;
}
.wiz-verify-btn-help {
    background: #2c2c2c; color: #aaa;
    font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 6px; cursor: default;
}

/* "Done" animation flash */
.wizard-overlay.wizard-done .wizard-modal {
    animation: wizardDone 0.35s ease forwards;
}
@keyframes wizardDone {
    0%   { transform: scale(1);    opacity: 1; }
    50%  { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Wizard dividers */
.wizard-divider {
    border: none;
    border-top: 1px solid #1e1e1e;
    margin: 18px 0 14px;
}

/* Wizard summary (step 5) */
.wizard-summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}
.wizard-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid #1a1a1a;
}
.wizard-summary-row:last-child { border-bottom: none; }
.wizard-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
}
.wizard-summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
}

/* ============================================
   Welcome / Splash Screen
   ============================================ */

.splash-screen {
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-screen.splash-hide {
    opacity: 0;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: splashIn 0.4s ease;
}

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

.splash-greeting {
    font-size: 36px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.splash-time {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.splash-redirect {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 20px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.splash-redirect::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.7);
    animation: redirectDot 1.4s ease-in-out infinite;
}

@keyframes redirectDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

/* ============================================
   Landing Page - Kayo Style
   ============================================ */

.landing-page {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: url('/static/hero-bg.jpg') center center / cover no-repeat;
}

/* Left Navigation Panel */
.landing-nav {
    width: 280px;
    min-width: 280px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(10, 8, 18, 0.65);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--border);
}

.nav-brand-logo {
    font-size: 24px;
    line-height: 1;
}

.nav-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.nav-brand-info {
    display: flex;
    flex-direction: column;
}

.nav-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nav-brand-version {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-section-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 20px 24px 8px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 12px;
    position: relative;
    user-select: none;
    border: none;
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-item:not(.active) {
    border: none;
}

.nav-item-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: var(--transition-fast);
}

.nav-item:hover .nav-item-icon {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.nav-item.active .nav-item-icon {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-item-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    line-height: 1.3;
}

.nav-item:hover .nav-item-title {
    color: var(--text-primary);
}

.nav-item.active .nav-item-title {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-item-desc {
    color: var(--text-secondary);
}

.nav-item.active .nav-item-desc {
    color: var(--text-secondary);
}

.nav-item-arrow {
    display: none;
}

.nav-footer {
    margin-top: auto;
    padding: 20px 16px;
    border-top: 1px solid var(--border);
}

.nav-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.nav-footer-version {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.nav-footer-legal-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-footer-legal-link:hover {
    color: var(--text-secondary);
}

.nav-footer-legal-sep {
    font-size: 11px;
    color: var(--border-light);
}

.nav-footer-invite {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

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

.nav-footer-invite i {
    font-size: 13px;
}

/* Right Content - Bot Identity */
.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 1;
    /* dark gradient overlay so text + mockup are legible over the image */
    background: linear-gradient(
        to right,
        rgba(8, 6, 20, 0.72) 0%,
        rgba(8, 6, 20, 0.45) 50%,
        rgba(8, 6, 20, 0.15) 100%
    );
}

.bot-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5865F2, #7B68EE);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 12px 40px rgba(88, 101, 242, 0.3);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 60px rgba(88, 101, 242, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 80px rgba(88, 101, 242, 0.4);
        transform: scale(1.02);
    }
}

.bot-avatar-text {
    font-size: 72px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.bot-name {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.bot-tagline {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
    letter-spacing: 0.01em;
    animation: fadeIn 0.6s ease-out 0.35s backwards;
}

/* Home Panel Action Buttons */
.home-action-buttons {
    display: none;
}

/* Hero eyebrow label */
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-out backwards;
}

/* Hero CTA buttons */
.home-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.5s backwards;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 0 30px rgba(88,101,242,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(88,101,242,0.55);
    color: #ffffff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-hero-secondary:hover {
    border-color: rgba(255,255,255,0.28);
    color: #ffffff;
    background: rgba(255,255,255,0.07);
}

#panel-home {
    position: relative;
}

/* Landing Difference Section (in home panel) */
.home-difference {
    max-width: 600px;
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.home-difference-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.home-difference-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
}

/* Landing Difference Section (legacy - kept for backwards compatibility) */
.landing-difference {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.landing-difference-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-difference-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ============================================
   Home Panel Content
   ============================================ */

/* Full-screen ambient orb background */
.wave-bg {
    display: none;
}

.wave-orb {
    display: none;
}

@keyframes orbFadeIn {
    to { opacity: 1; }
}

.wave-orb-1 { display: none; }
.wave-orb-2 { display: none; }
.wave-orb-3 { display: none; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(50px, -50px) scale(1.07); }
    66%  { transform: translate(-30px, 30px) scale(0.93); }
}

/* Home pillars */
.home-pillars {
    display: flex;
    gap: 10px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.home-pillar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(88, 101, 242, 0.07);
    border: 1px solid rgba(88, 101, 242, 0.18);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    animation: fadeIn 0.6s ease-out backwards;
}

.home-pillar:nth-child(1) { animation-delay: 0.4s; }
.home-pillar:nth-child(2) { animation-delay: 0.52s; }
.home-pillar:nth-child(3) { animation-delay: 0.64s; }
.home-pillar:nth-child(4) { animation-delay: 0.76s; }

.home-pillar i {
    color: var(--accent);
    font-size: 14px;
}

.home-pillar:hover {
    background: rgba(88, 101, 242, 0.14);
    border-color: rgba(88, 101, 242, 0.35);
    color: var(--text-primary);
}

/* Embed Creator */
/* ── Embed Builder Layout ─────────────────────────────────────── */
.embed-builder-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(280px, 480px);
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .embed-builder-layout { grid-template-columns: 1fr; }
}
.embed-builder-form { min-width: 0; }
.embed-builder-preview {
    position: sticky;
    top: 20px;
    min-width: 0;
}
.embed-preview-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.embed-preview-wrap {
    background: #313338;
    border-radius: 10px;
    padding: 16px;
    overflow: hidden;
}

/* Discord message chrome */
.ep-message-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ep-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 40px;
    background: #5865F2;
}
.ep-avatar img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    display: block;
}
.ep-message-body { flex: 1; min-width: 0; overflow: hidden; }
.ep-message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.ep-bot-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}
.ep-bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 800;
    background: #5865F2;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ep-timestamp {
    font-size: 11px;
    color: #6d717b;
    font-weight: 400;
}
.ep-empty-hint {
    font-size: 12px;
    color: #4e5058;
    padding: 10px 0 4px;
    display: flex;
    align-items: center;
}

/* Embed card */
.embed-preview {
    display: flex;
    background: #2b2d31;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
}
.ep-bar {
    width: 4px;
    min-width: 4px;
    background: #5865F2;
    flex-shrink: 0;
}
.ep-body {
    padding: 10px 12px 10px 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ep-author {
    font-size: 12px;
    font-weight: 600;
    color: #dbdee1;
    margin-bottom: 4px;
}
.ep-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    word-break: break-word;
}
.ep-description {
    font-size: 13px;
    color: #dbdee1;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}
.ep-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.ep-field { min-width: 100%; }
.ep-field.ep-field-inline { min-width: 30%; flex: 1; }
.ep-field-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.ep-field-value { font-size: 12px; color: #dbdee1; }
.ep-image {
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}
.ep-image img {
    width: 100%;
    max-width: 100%;
    max-height: 240px;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}
.ep-thumbnail {
    float: right;
    margin-left: 12px;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.ep-thumbnail img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    max-width: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.ep-footer {
    font-size: 11px;
    color: #949ba4;
    margin-top: 10px;
    border-top: 1px solid #3b3d44;
    padding-top: 8px;
    clear: both;
}

/* ═══════════════════════════════════════════════════════════════
   Embed Creator — form cards (rehaul)
   ═══════════════════════════════════════════════════════════════ */
.eb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}
.eb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.eb-card-head i { color: var(--accent); margin-right: 7px; }
.eb-card-head-meta {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: 0.02em;
}
.eb-card-body { padding: 18px; }

/* Two-column row (color + author) */
.eb-grid-2 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 480px) { .eb-grid-2 { grid-template-columns: 1fr; } }

.eb-color-row { display: flex; align-items: center; gap: 8px; }
.eb-color-row input[type="color"] {
    width: 44px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: none; cursor: pointer; padding: 3px;
    flex-shrink: 0;
}
.eb-color-hex {
    max-width: 100px;
    font-family: 'JetBrains Mono','Fira Code',monospace;
    letter-spacing: 0.05em;
    font-size: 13px;
}

/* Field label inline hint + counter */
.eb-label-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 6px;
}
.eb-counter {
    float: right;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'JetBrains Mono','Fira Code',monospace;
}

/* ── Dynamic field items ── */
.eb-field-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.eb-field-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.eb-field-item-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.eb-field-item-tools { display: flex; align-items: center; gap: 8px; }
.eb-field-remove {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}
.eb-field-remove:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(237,66,69,0.1);
}

/* Empty + add-field */
.eb-fields-empty {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
}
.eb-fields-empty i { margin-right: 6px; opacity: 0.6; }
.eb-add-field {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px;
    border-radius: 10px;
    border: 1.5px dashed var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.eb-add-field:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(88,101,242,0.06);
}

/* Link buttons */
.eb-buttons-note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 14px;
}
.eb-buttons-note i { color: var(--accent); margin-right: 5px; }
.eb-btn-item {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.eb-btn-item .eb-btn-label { flex: 1; min-width: 0; }
.eb-btn-item .eb-btn-url   { flex: 1.4; min-width: 0; }

/* Preview link buttons */
.ep-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-left: 52px; /* align under embed, past avatar */
}
.ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4e5058;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: default;
}
.ep-btn i { font-size: 11px; opacity: 0.85; }
.ep-btn-invalid {
    background: transparent;
    border: 1px dashed #ed4245;
    color: #ed4245;
}

/* Inline custom emojis in preview text */
.ep-emoji {
    width: 20px; height: 20px;
    vertical-align: -4px;
    object-fit: contain;
    margin: 0 1px;
}
.ep-title-link { color: #00a8fc; }
.ep-author { display: flex; align-items: center; gap: 8px; }
.ep-author-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.ep-footer { display: flex; align-items: center; gap: 8px; }
.ep-footer-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.ep-footer-ts { color: #949ba4; }

/* Emoji picker button + popover */
.eb-emoji-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.eb-emoji-btn:hover { border-color: var(--accent); color: var(--accent); }
.eb-emoji-pop {
    position: absolute;
    right: 18px;
    top: 8px;
    z-index: 50;
    width: 280px;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.eb-emoji-pop-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.eb-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.eb-emoji-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: background 0.12s;
}
.eb-emoji-cell:hover { background: var(--bg-hover); }
.eb-emoji-cell img { width: 26px; height: 26px; object-fit: contain; }

/* Command-link block */
.eb-cmd-block code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    color: #8ea1e1;
}
.eb-cmd-saved { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.eb-cmd-empty { font-size: 12px; color: var(--text-muted); }
.eb-cmd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
}
.eb-cmd-row-name { font-weight: 700; font-size: 13px; color: var(--text-primary); white-space: nowrap; }
.eb-cmd-row-name i { color: var(--accent); margin-right: 5px; }
.eb-cmd-row-label { font-size: 12px; color: var(--text-secondary); }
.eb-cmd-row-spacer { flex: 1; }
.eb-cmd-load {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.eb-cmd-load:hover { border-color: var(--accent); color: var(--accent); }

/* Send block under preview */
.eb-send-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-top: 4px;
}
.eb-send-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 9px;
}

/* Inline toggle pill */
.eb-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 16px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card, #1a1a1a);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.eb-inline-toggle input[type="checkbox"] {
    display: none !important;
    pointer-events: none;
}
.eb-inline-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.eb-inline-toggle.eb-inline-on {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.5);
    color: #8ea1e1;
}
.eb-inline-toggle .eb-inline-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.embed-builder-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Button block under embed preview */
.eb-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.eb-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.eb-actions-row .btn-primary-custom,
.eb-actions-row .btn-secondary-custom { flex-shrink: 0; }
.eb-actions-row .form-select { min-width: 0; flex: 1; }

/* Image URL + file-pick row */
.eb-img-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.eb-img-row .form-input { flex: 1; min-width: 0; }

.eb-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.eb-file-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(88,101,242,0.08);
}
.eb-file-btn--loading {
    opacity: 0.5;
    pointer-events: none;
    animation: pulse 0.8s infinite alternate;
}
@keyframes pulse { to { opacity: 1; } }

/* ?????? Verification Preview ????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.verify-preview-msg {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(30, 31, 34, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.verify-preview-avatar img,
.verify-preview-avatar-fallback {
    width: 40px; height: 40px; border-radius: 50%;
}
.verify-preview-avatar-fallback {
    background: #5865F2; color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.verify-preview-body { flex: 1; min-width: 0; }
.verify-preview-author {
    font-size: 15px; font-weight: 600; color: #fff;
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.verify-preview-badge {
    background: #5865F2; color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 3px; letter-spacing: .3px;
}
.verify-preview-ts { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 400; }
.verify-preview-embed {
    display: flex; border-radius: 4px; overflow: hidden;
    background: rgba(43, 45, 49, 0.9); max-width: 520px; margin-top: 4px;
}
.verify-preview-embed-accent { width: 4px; flex-shrink: 0; background: #5865F2; }
.verify-preview-embed-content { padding: 12px 16px; flex: 1; }
.verify-preview-embed-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.verify-preview-embed-desc { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.45; }
.verify-preview-embed-footer {
    font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px;
    padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06);
}
.verify-preview-buttons { display: flex; gap: 8px; margin-top: 8px; }
.verify-preview-btn {
    padding: 6px 18px; border-radius: 3px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; transition: filter .15s;
}
.verify-preview-btn:hover { filter: brightness(1.15); }
.verify-preview-btn:active { transform: scale(0.97); }
.verify-preview-btn-green { background: #248046; color: #fff; }
.verify-preview-btn-gray  { background: #4e5058; color: #fff; }
.verify-preview-btn-blue  { background: #5865F2; color: #fff; }

/* Popup overlay */
.verify-popup-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    animation: verifyFadeIn .2s ease;
}
@keyframes verifyFadeIn { from { opacity: 0 } to { opacity: 1 } }
.verify-popup {
    background: #2b2d31; border-radius: 12px; padding: 0;
    max-width: 480px; width: 92%; box-shadow: 0 8px 32px rgba(0,0,0,.5);
    animation: verifySlideUp .25s ease;
    overflow: hidden;
}
@keyframes verifySlideUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
.verify-popup-header {
    padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between;
}
.verify-popup-header h3 { margin: 0; font-size: 16px; color: #fff; }
.verify-popup-close {
    background: none; border: none; color: rgba(255,255,255,0.4); font-size: 20px;
    cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.verify-popup-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.verify-popup-body { padding: 16px 20px 20px; }
.verify-popup-embed {
    display: flex; border-radius: 4px; overflow: hidden; background: rgba(30,31,34,0.6);
}
.verify-popup-embed-accent { width: 4px; flex-shrink: 0; }
.verify-popup-embed-content { padding: 12px 16px; flex: 1; }
.verify-popup-embed-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.verify-popup-embed-desc { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.45; }
.verify-popup-captcha-img {
    width: 100%; max-width: 360px; border-radius: 6px; margin-top: 12px;
    display: block;
}
.verify-popup-actions {
    display: flex; gap: 8px; padding: 0 20px 16px; justify-content: flex-end;
}
.verify-popup-ephemeral {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,0.3); padding: 0 20px 12px;
}

/* Captcha answer modal */
.verify-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    animation: verifyFadeIn .2s ease;
}
.verify-modal {
    background: #313338; border-radius: 12px; width: 440px; max-width: 92%;
    box-shadow: 0 8px 32px rgba(0,0,0,.5); animation: verifySlideUp .25s ease;
}
.verify-modal-header {
    padding: 20px 20px 8px;
}
.verify-modal-header h3 { margin: 0; font-size: 20px; color: #fff; font-weight: 600; }
.verify-modal-header p  { margin: 4px 0 0; font-size: 13px; color: rgba(255,255,255,0.4); }
.verify-modal-body { padding: 8px 20px 20px; }
.verify-modal-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: rgba(255,255,255,0.55); margin-bottom: 8px;
}
.verify-modal-input {
    width: 100%; padding: 10px 12px; background: #1e1f22; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; color: #fff; font-size: 16px; font-family: inherit;
    outline: none; box-sizing: border-box;
}
.verify-modal-input:focus { border-color: #5865F2; }
.verify-modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 20px; background: rgba(30,31,34,0.6); border-radius: 0 0 12px 12px;
}
.verify-modal-cancel {
    background: none; border: none; color: rgba(255,255,255,0.5); font-size: 14px;
    cursor: pointer; padding: 8px 16px;
}
.verify-modal-cancel:hover { color: #fff; text-decoration: underline; }
.verify-modal-submit {
    background: #5865F2; color: #fff; border: none; border-radius: 4px;
    padding: 8px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.verify-modal-submit:hover { background: #4752C4; }

.verify-result-icon { font-size: 36px; text-align: center; margin-bottom: 8px; }

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 40px;
    overflow: visible;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ?????? MEE6-style Hero Split ????????????????????????????????????????????????????????????????????????????????????????????????????????? */
#panel-home.active {
    display: flex !important;
    align-items: center;
    padding: 0;
    min-height: 100%;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
    min-height: calc(100vh - 60px);
    padding: 40px 64px;
    box-sizing: border-box;
}

.hero-text {
    flex: 1 1 380px;
    min-width: 0;
    text-align: left;
}

.hero-heading {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.06;
    color: #ffffff;
    margin: 18px 0 20px;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 15.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 36px;
}

.hero-text .home-eyebrow { margin-bottom: 4px; }
.hero-text .home-cta-row { justify-content: flex-start; }
.hero-text .home-pillars  { justify-content: flex-start; margin-top: 28px; }

.hero-visual {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(88,101,242,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ?????? Discord chat mockup ??????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.discord-mockup {
    background: rgba(28, 26, 40, 0.88);
    border-radius: 16px;
    width: 100%;
    max-width: 390px;
    box-shadow: 0 48px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07), 0 0 80px rgba(140,100,220,0.12);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: mockupRise 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s backwards;
}

@keyframes mockupRise {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dm-topbar {
    background: rgba(30, 28, 45, 0.9);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dm-hash { color: rgba(255,255,255,0.25); font-size: 16px; font-weight: 800; }
.dm-channel-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.dm-topbar-right { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.dm-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #23a55a;
}
.dm-member-count { font-size: 11px; color: rgba(255,255,255,0.35); }

.dm-body { padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 0; }

.dm-msg { display: flex; align-items: flex-start; gap: 10px; }
.dm-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
}
.dm-av-admin   { background: linear-gradient(135deg,#7289da,#4e5d94); }
.dm-av-member  { background: linear-gradient(135deg,#f59e0b,#d97706); }
.dm-av-member2 { background: linear-gradient(135deg,#34d399,#059669); }

.dm-content { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.dm-name { font-size: 12px; font-weight: 700; }
.dm-text { font-size: 12px; color: rgba(255,255,255,0.65); }

.dm-bot-embed {
    display: flex;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 42px;
    margin-top: 5px;
    margin-bottom: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}
.dm-embed-pill { width: 4px; flex-shrink: 0; }
.dm-embed-inner { padding: 8px 12px; flex: 1; }
.dm-embed-author {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}
.dm-bot-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #5865f2; flex-shrink: 0;
}
.dm-embed-title {
    font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 5px;
}
.dm-embed-row {
    font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px;
}
.dm-embed-row b { color: rgba(255,255,255,0.75); margin-right: 4px; }

.dm-xp-track {
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
}
.dm-xp-fill {
    height: 100%;
    background: linear-gradient(90deg,#7289da,#b9bfff);
    border-radius: 100px;
}

.dm-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.dm-typing-dots { display: flex; gap: 3px; align-items: center; }
.dm-typing-dots span {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    animation: typingBounce 1.2s ease-in-out infinite;
}
.dm-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.dm-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30%           { transform: translateY(-3px); opacity: 1; }
}

.bot-description {
    max-width: 560px;
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    line-height: 1.8;
    animation: fadeIn 0.6s ease-out 0.45s backwards;
}
}

.mini-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.mini-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.mini-stat:nth-child(1) { animation-delay: 0.3s; }
.mini-stat:nth-child(2) { animation-delay: 0.4s; }
.mini-stat:nth-child(3) { animation-delay: 0.5s; }

.mini-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.mini-stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mini-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Content Panels (slide in from nav)
   ============================================ */

.content-panel {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px;
    animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: smooth;
    position: relative;
}

.content-panel.active {
    display: block;
}

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

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.panel-header {
    margin-bottom: 48px;
    animation: fadeIn 0.5s ease-out;
}

.panel-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.panel-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

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

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.15);
}

.feature-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Command Categories */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.command-category-wrapper {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.command-category-wrapper:nth-child(1) { animation-delay: 0.05s; }
.command-category-wrapper:nth-child(2) { animation-delay: 0.1s; }
.command-category-wrapper:nth-child(3) { animation-delay: 0.15s; }
.command-category-wrapper:nth-child(4) { animation-delay: 0.2s; }
.command-category-wrapper:nth-child(5) { animation-delay: 0.25s; }
.command-category-wrapper:nth-child(6) { animation-delay: 0.3s; }
.command-category-wrapper:nth-child(7) { animation-delay: 0.35s; }
.command-category-wrapper:nth-child(8) { animation-delay: 0.4s; }

.command-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
    touch-action: manipulation;
}

.command-category:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.12);
}

.command-category-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.command-category-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.command-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    background: rgba(88, 101, 242, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.command-category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.command-category-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.command-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.command-category-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}

.command-category-wrapper.expanded .command-category-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Command Dropdown */
.command-category-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border);
    margin-left: 24px;
    margin-top: 8px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.command-category-wrapper.expanded .command-category-dropdown {
    max-height: 1000px;
    opacity: 1;
    padding: 16px 0;
}

.command-item {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}

.command-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-left-color: var(--accent);
    transform: translateX(6px);
}

.command-item .cmd {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Info Section */
.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    animation: fadeIn 0.5s ease-out backwards;
}

.info-block:nth-child(1) { animation-delay: 0.1s; }
.info-block:nth-child(2) { animation-delay: 0.2s; }
.info-block:nth-child(3) { animation-delay: 0.3s; }
.info-block:nth-child(4) { animation-delay: 0.4s; }
.info-block:nth-child(5) { animation-delay: 0.5s; }

.info-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-block p + p {
    margin-top: 16px;
}

/* Special Info Blocks */
.callout-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    text-align: center;
    animation: fadeIn 0.5s ease-out backwards;
}

.callout-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.callout-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.response-time-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    animation: fadeIn 0.5s ease-out backwards;
}

.response-time-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.response-time-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* Release Info Block */
.release-info-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    animation: fadeIn 0.5s ease-out backwards;
}

.release-info-block p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.info-block ul li:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.info-block ul li:last-child {
    border-bottom: none;
}

.info-block ul li::before {
    content: '→';
    display: block;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.info-block ul li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.info-block code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--border);
}

/* Buttons */
.btn-primary-custom {
    background: #5865F2;
    color: #ffffff;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary-custom:hover {
    background: #4752C4;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
    transform: translateY(-1px);
}

.btn-primary-custom:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary-custom {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-secondary-custom:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ============================================
   Dashboard (Post-Login)
   ============================================ */

.dashboard-navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: var(--text-primary);
}
.navbar-brand:hover .navbar-back-btn {
    background: rgba(88,101,242,0.15);
    border-color: rgba(88,101,242,0.4);
    color: var(--accent);
}

.navbar-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.15s;
}

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

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.navbar-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.navbar-home {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.navbar-home:hover {
    color: var(--text-primary);
}

.navbar-logout {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 16px;
    transition: var(--transition);
}

.navbar-logout:hover {
    color: var(--red);
}

/* Dashboard Content */
.dashboard-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 32px;
}

/* Page Header */
.dash-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.dash-page-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dash-page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dash-page-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    min-width: 220px;
    transition: var(--transition);
}

.dash-page-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.dash-page-search i {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.dash-page-search input {
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    font-family: inherit;
    width: 100%;
}

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

/* Navbar brand dot */
.navbar-brand-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 6px;
    position: relative;
    top: -1px;
}

.navbar-brand-icon {
    font-size: 22px;
    line-height: 1;
    margin-right: 2px;
}

.navbar-brand-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.navbar-brand-feather {
    font-size: 18px;
    color: var(--accent);
}

.navbar-user-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

/* Server Cards */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(88,101,242,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.server-card:hover {
    border-color: rgba(88,101,242,0.4);
}

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

.server-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.server-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card-body {
    flex: 1;
    min-width: 0;
}

.server-card-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.server-badge-owner {
    background: rgba(255, 185, 0, 0.12);
    color: #ffb900;
    border: 1px solid rgba(255,185,0,0.2);
}

.server-badge-admin {
    background: rgba(88,101,242,0.1);
    color: var(--accent);
    border: 1px solid rgba(88,101,242,0.2);
}

.server-card-manage {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 2;
    min-height: 44px;
    min-width: 44px;
    line-height: 28px;
    text-align: center;
}

.server-card-manage:hover {
    background: #4752c4;
}

.server-card-manage:active {
    background: #3c46a8;
}

.server-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0 60px;
}

.server-empty-icon { font-size: 48px; margin-bottom: 16px; color: var(--text-muted); }

.server-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.server-card:hover .server-card-arrow {
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateX(2px);
}

.server-card-manage-mobile {
    display: none;
}

.server-empty-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.server-empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.server-no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

/* ============================================
   Security Cards
   ============================================ */

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.security-card:has(input:checked) {
    border-color: rgba(255,255,255,0.1);
}

.security-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.security-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.antinuke-icon  { background: rgba(237,66,69,0.12);  color: #ED4245; }
.antiraid-icon  { background: rgba(255,185,0,0.12);   color: #ffb900; }
.automod-icon   { background: rgba(88,101,242,0.12);  color: var(--accent); }

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

.security-card-title {
    font-size: 14px;
    font-weight: 600;
}

.security-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.security-sub-config {
    border-top: 1px solid var(--border);
    padding: 20px;
    background: rgba(255,255,255,0.01);
}

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

.automod-filters {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.automod-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    font-size: 13px;
    color: var(--text-secondary);
    gap: 12px;
}

.automod-filter-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch-sm {
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch-sm .toggle-slider::before {
    width: 14px;
    height: 14px;
    top: 3px;
    left: 3px;
}

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

/* ?????? Chip Picker (roles / users) ?????? */
.chip-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.chip-picker .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    color: #aaa;
    transition: all 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.chip-picker .chip i { font-size: 14px; }
.chip-picker .chip:hover {
    border-color: #555;
    background: #252525;
    color: #ddd;
}
.chip-picker .chip.active {
    background: rgba(87,242,135,0.12);
    border-color: rgba(87,242,135,0.45);
    color: #8bdfab;
}
.chip-picker .chip.active i { color: #57F287; }
.chip-picker .chip.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* User tag chips (removable) */
.user-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    padding: 4px 0;
}
.user-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(87,242,135,0.10);
    border: 1px solid rgba(87,242,135,0.25);
    color: #8bdfab;
}
.user-tag button {
    background: none;
    border: none;
    color: #5a9c73;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}
.user-tag button:hover { color: #ff6b6b; }
.user-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.user-search-row input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.user-search-row input:focus {
    border-color: var(--accent);
}
.user-search-row button {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.user-search-row button:hover { opacity: 0.85; }
.user-search-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.whitelist-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin: 16px 0 8px;
}
.whitelist-section-label:first-child { margin-top: 0; }

/* ============================================
   Guild Settings Page
   ============================================ */

.settings-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.settings-sidebar {
    width: 272px;
    min-width: 272px;
    background: #0f0f0f;
    border-right: 1px solid #1c1c1c;
    padding: 20px 12px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}
.settings-sidebar::-webkit-scrollbar { width: 4px; }
.settings-sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

.settings-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #444;
    padding: 14px 12px 6px;
    margin: 0;
}

/* Guild identity header in sidebar */
.settings-guild-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 16px;
    border-bottom: 1px solid #1c1c1c;
    margin-bottom: 4px;
}

.sidebar-guild-meta {}

.settings-guild-sub {
    font-size: 11px;
    color: #444;
    font-weight: 500;
    margin-top: 1px;
}

.settings-guild-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.settings-guild-icon-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.settings-guild-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #888;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    margin-bottom: 1px;
    position: relative;
}

.settings-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: #ccc;
}

.settings-nav-item.active {
    background: rgba(255,255,255,0.06);
    color: #f0f0f0;
    font-weight: 600;
}
.settings-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* Nav icon box */
.nav-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.nav-icon-purple  { background: rgba(132,94,247,0.15);  color: #9775fa; }
.nav-icon-green   { background: rgba(64,192,87,0.15);   color: #51cf66; }
.nav-icon-blue    { background: rgba(88,101,242,0.15);  color: #748ffc; }
.nav-icon-amber   { background: rgba(255,169,64,0.15);  color: #ffa940; }
.nav-icon-orange  { background: rgba(253,126,20,0.15);  color: #fd7e14; }
.nav-icon-red     { background: rgba(250,82,82,0.15);   color: #ff6b6b; }
.nav-icon-yellow  { background: rgba(255,212,59,0.15);  color: #ffd43b; }
.nav-icon-pink    { background: rgba(240,101,149,0.15); color: #f06595; }
.nav-icon-teal    { background: rgba(32,201,151,0.15);  color: #20c997; }
.nav-icon-indigo  { background: rgba(102,102,255,0.15); color: #818cf8; }
.nav-icon-gray    { background: rgba(134,142,150,0.15); color: #868e96; }

.nav-label { flex: 1; }

/* ON badge */
.nav-status-on {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(87,242,135,0.12);
    color: #57F287;
    border: 1px solid rgba(87,242,135,0.25);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.6;
    flex-shrink: 0;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 12px 8px 16px;
    border-top: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}
.sidebar-back-link {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.sidebar-back-link:hover { color: #aaa; }
.sidebar-version-tag {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    background: #181818;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 2px 7px;
    font-family: monospace;
}

.settings-main {
    flex: 1;
    padding: 32px 40px;
    max-width: 800px;
    position: relative;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.settings-section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

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

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

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

.toggle-switch input:checked + .toggle-slider {
    background: #3b8a5a;
}

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

/* Save Bar */
.save-bar {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 50;
}

.save-bar.visible {
    transform: translateY(0);
}

/* ============================================
   Error Pages
   ============================================ */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 24px;
}

.error-content {
    max-width: 440px;
}

.error-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.7;
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -0.05em;
    line-height: 1;
}

.error-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
}

.error-detail {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary-custom:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ============================================
   Stat Cards
   ============================================ */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.15);
}

.stat-card-icon {
    font-size: 40px;
    line-height: 1;
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .landing-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* ?????? top mobile nav bar ?????? */
    .landing-nav {
        width: 100%;
        min-width: unset;
        padding: 0;
        order: 1;            /* sits ABOVE the content */
        border-right: none;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(10,10,10,0.95);
        backdrop-filter: blur(12px);
    }

    .nav-brand {
        display: none;
    }

    .nav-section-label {
        display: none;
    }

    .nav-footer {
        display: none;
    }

    /* all nav items in a single scrollable row */
    .nav-home-item,
    .nav-items {
        display: flex;
        flex-direction: row;
    }

    .landing-nav > .nav-home-item {
        margin-bottom: 0 !important;
    }

    /* wrap both sections into one row */
    .landing-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 8px;
        gap: 0;
    }
    .landing-nav::-webkit-scrollbar { display: none; }

    .nav-items {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
    }

    .nav-item {
        padding: 14px 14px;
        flex-shrink: 0;
    }

    .nav-item-icon {
        width: 22px;
        height: 22px;
        background: none;
        box-shadow: none;
    }

    .nav-item-desc {
        display: none;
    }

    .nav-item.active::before {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        border-radius: 3px 3px 0 0;
    }

    .landing-main {
        padding: 32px 20px 80px;
        order: 2;
    }

    /* hero split stacks vertically */
    .hero-split {
        flex-direction: column;
        padding: 32px 20px;
        gap: 40px;
        min-height: unset;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        flex: none;
    }

    .hero-heading {
        font-size: 42px;
        letter-spacing: -0.02em;
    }

    .hero-visual {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .discord-mockup {
        width: 100%;
    }

    .home-cta-row,
    .hero-text .home-cta-row {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .home-content {
        padding: 20px;
    }

    .bot-avatar {
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .bot-avatar-text {
        font-size: 56px;
    }

    .bot-name {
        font-size: 24px;
    }

    .bot-description {
        max-width: 100%;
        font-size: 14px;
    }

    .mini-stats {
        gap: 24px;
        margin-top: 32px;
    }

    .home-action-buttons {
        position: static;
        justify-content: center;
        margin-bottom: 24px;
        order: -1;
    }

    .home-difference {
        max-width: 100%;
        margin-top: 32px;
    }

    .settings-layout {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .settings-sidebar-title {
        display: none;
    }

    .settings-main {
        padding: 24px;
    }

    .save-bar {
        left: 0;
    }
}

@media (max-width: 768px) {
    .landing-page {
        min-height: 100vh;
    }

    .hero-heading {
        font-size: 34px;
    }

    .hero-split {
        padding: 24px 16px;
        gap: 32px;
    }

    .nav-item {
        padding: 12px 12px;
    }

    .nav-item-icon {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .nav-item-title {
        font-size: 11px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .feature-card-title {
        font-size: 15px;
    }

    .feature-card-desc {
        font-size: 13px;
    }

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

    .stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
        gap: 16px;
    }

    .stat-card-icon {
        font-size: 32px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    .stat-card-label {
        font-size: 13px;
    }

    .stat-card-desc {
        font-size: 12px;
    }

    .home-content {
        padding: 20px 16px;
    }

    .bot-avatar {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .bot-avatar-text {
        font-size: 48px;
    }

    .bot-name {
        font-size: 22px;
    }

    .bot-tagline {
        font-size: 13px;
    }

    .bot-description {
        font-size: 14px;
        margin-top: 20px;
        max-width: 100%;
    }

    .mini-stats {
        gap: 12px;
        margin-top: 28px;
        width: 100%;
    }

    .mini-stat {
        flex: 1;
        min-width: 85px;
        padding: 14px 12px;
    }

    .mini-stat-value {
        font-size: 22px;
    }

    .mini-stat-label {
        font-size: 11px;
    }

    .home-difference {
        margin-top: 28px;
        padding: 20px;
    }

    .home-difference-title {
        font-size: 14px;
    }

    .home-difference-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .home-action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 12px;
    }

    .home-action-buttons .btn-primary-custom,
    .home-action-buttons .btn-secondary-custom {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }

    .dashboard-content {
        padding: 20px 16px;
    }

    .content-panel {
        padding: 28px 16px;
    }

    .panel-header {
        margin-bottom: 32px;
    }

    .panel-title {
        font-size: 26px;
    }

    .panel-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .command-list {
        gap: 12px;
    }

    .command-category {
        padding: 18px 20px;
    }

    .command-category-icon {
        font-size: 22px;
        width: 40px;
    }

    .command-category-name {
        font-size: 15px;
    }

    .command-category-desc {
        font-size: 12px;
    }

    .command-count {
        font-size: 11px;
        padding: 4px 10px;
    }

    .command-item {
        padding: 10px 20px;
        font-size: 13px;
    }

    .command-item .cmd {
        font-size: 12px;
    }

    .info-block {
        padding: 24px;
        margin-bottom: 20px;
    }

    .info-block h3 {
        font-size: 15px;
    }

    .info-block p {
        font-size: 14px;
    }

    .callout-block {
        padding: 20px;
        margin-bottom: 24px;
    }

    .callout-block h3 {
        font-size: 16px;
    }

    .callout-block p {
        font-size: 14px;
    }

    .response-time-block {
        padding: 20px;
    }

    .response-time-block h3 {
        font-size: 15px;
    }

    .response-time-block p {
        font-size: 14px;
    }

    .release-info-block {
        padding: 16px;
    }

    .release-info-block p {
        font-size: 13px;
    }

    .btn-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .btn-group .btn-primary-custom,
    .btn-group .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 480px) {
    .hero-heading {
        font-size: 30px;
    }

    .hero-split {
        padding: 20px 14px;
        gap: 28px;
    }

    .nav-item {
        padding: 12px 10px;
        gap: 6px;
    }

    .nav-item-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .nav-item-title {
        font-size: 10px;
    }

    .landing-main {
        padding: 20px 14px 60px;
    }

    .home-content {
        padding: 16px 12px;
    }

    .bot-avatar {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .bot-avatar-text {
        font-size: 40px;
    }

    .bot-name {
        font-size: 20px;
    }

    .bot-tagline {
        font-size: 12px;
    }

    .bot-description {
        font-size: 13px;
    }

    .mini-stats {
        gap: 8px;
        margin-top: 24px;
    }

    .mini-stat {
        min-width: 75px;
        padding: 12px 8px;
    }

    .mini-stat-value {
        font-size: 20px;
    }

    .mini-stat-label {
        font-size: 10px;
    }

    .home-difference {
        margin-top: 24px;
        padding: 16px;
    }

    .home-difference-title {
        font-size: 13px;
    }

    .home-difference-text {
        font-size: 12px;
    }

    .home-action-buttons {
        max-width: 100%;
        gap: 10px;
    }

    .home-action-buttons .btn-primary-custom,
    .home-action-buttons .btn-secondary-custom {
        padding: 12px 20px;
        font-size: 13px;
    }

    .content-panel {
        padding: 24px 12px;
    }

    .panel-header {
        margin-bottom: 24px;
    }

    .panel-title {
        font-size: 22px;
    }

    .panel-subtitle {
        font-size: 13px;
    }

    .command-category {
        padding: 16px;
    }

    .command-category-icon {
        font-size: 20px;
        width: 36px;
    }

    .command-category-name {
        font-size: 14px;
    }

    .command-category-desc {
        font-size: 11px;
    }

    .command-category-left {
        gap: 12px;
    }

    .command-category-right {
        gap: 8px;
    }

    .command-count {
        font-size: 10px;
        padding: 3px 8px;
    }

    .command-item {
        padding: 8px 16px;
        font-size: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card-icon {
        font-size: 24px;
    }

    .feature-card-title {
        font-size: 14px;
    }

    .feature-card-desc {
        font-size: 12px;
    }

    .info-block {
        padding: 20px;
    }

    .info-block h3 {
        font-size: 14px;
    }

    .info-block p {
        font-size: 13px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-card-icon {
        font-size: 28px;
    }

    .stat-card-value {
        font-size: 22px;
    }

    .stat-card-label {
        font-size: 12px;
    }

    .stat-card-desc {
        font-size: 11px;
    }

    .callout-block {
        padding: 16px;
    }

    .callout-block h3 {
        font-size: 15px;
    }

    .callout-block p {
        font-size: 13px;
    }
}
/* ?????? Utility classes used in settings sections ????????????????????????????????????????????????????????????????????? */

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.settings-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 20px 0 10px;
}

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

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   SIDEBAR REDESIGN
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.nav-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.nav-icon-purple  { background: rgba(132,94,247,0.15);  color: #9775fa; }
.nav-icon-green   { background: rgba(64,192,87,0.15);   color: #51cf66; }
.nav-icon-blue    { background: rgba(88,101,242,0.15);  color: #748ffc; }
.nav-icon-amber   { background: rgba(255,169,64,0.15);  color: #ffa940; }
.nav-icon-orange  { background: rgba(253,126,20,0.15);  color: #fd7e14; }
.nav-icon-red     { background: rgba(250,82,82,0.15);   color: #ff6b6b; }
.nav-icon-yellow  { background: rgba(255,212,59,0.15);  color: #ffd43b; }
.nav-icon-pink    { background: rgba(240,101,149,0.15); color: #f06595; }
.nav-icon-teal    { background: rgba(32,201,151,0.15);  color: #20c997; }
.nav-icon-indigo  { background: rgba(102,102,255,0.15); color: #818cf8; }
.nav-icon-gray    { background: rgba(134,142,150,0.15); color: #868e96; }
.nav-label { flex: 1; }

.nav-status-on {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(87,242,135,0.12);
    color: #57F287;
    border: 1px solid rgba(87,242,135,0.25);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.6;
    flex-shrink: 0;
}
.sidebar-footer {
    margin-top: auto;
    padding: 12px 8px 16px;
    border-top: 1px solid #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.sidebar-back-link {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.sidebar-back-link:hover { color: #aaa; }
.sidebar-version-tag {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    background: #181818;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 2px 7px;
    font-family: monospace;
}
.settings-guild-sub {
    font-size: 11px;
    color: #444;
    font-weight: 500;
    margin-top: 1px;
}
.sidebar-guild-meta { min-width: 0; }

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   WIZARD CRUMB NAV
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.wizard-crumb-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 14px 16px 0;
    flex-shrink: 0;
}
.wcrumb {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a3a3a;
    padding: 3px 8px;
    border-radius: 20px;
    cursor: default;
    white-space: nowrap;
}
.wcrumb.active {
    background: rgba(88,101,242,0.15);
    color: #8a9ffc;
    border: 1px solid rgba(88,101,242,0.3);
}
.wcrumb.done { color: #57F287; }
.wcrumb-sep { font-size: 9px; color: #2a2a2a; margin: 0 1px; }

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   WIZARD SHARED EXTRAS
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.wizard-info-note {
    background: rgba(88,101,242,0.07);
    border: 1px solid rgba(88,101,242,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #7888cc;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.wizard-info-note i { flex-shrink: 0; margin-top: 1px; }
.wizard-field-hint { font-size: 11.5px; color: #555; margin-top: 6px; }

/* ?????? Tag picker ?????? */
.wiz-tag-picker {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
}
.wiz-tag-input-row { padding: 4px 6px; border-bottom: 1px solid #1c1c1c; }
.wiz-tag-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #aaa;
    font-size: 13px;
    padding: 7px 8px;
    cursor: pointer;
    font-family: inherit;
}
.wiz-tag-select:focus { color: #ddd; }
.wiz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    min-height: 38px;
}
.wiz-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.25);
    color: #a0b0f5;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.wiz-tag button {
    background: none;
    border: none;
    color: #6672b8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    transition: color 0.15s;
}
.wiz-tag button:hover { color: #ff6b6b; }

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   WIZARD JOIN GATE STEP
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.wizard-jg-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
    margin-top: 4px;
}
.wiz-jg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 9px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #bbb;
    transition: border-color 0.15s;
}
.wiz-jg-row:hover { border-color: #2c2c2c; }
.wiz-jg-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #0d0d0d;
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 9px;
    margin-bottom: 7px;
    margin-left: 16px;
    font-size: 13px;
    color: #888;
}
/* Small toggle variant */
.toggle-slider-sm {
    width: 34px;
    height: 18px;
}
.toggle-slider-sm::before {
    width: 12px;
    height: 12px;
    top: 3px;
    left: 3px;
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   WIZARD VERIFICATION PREVIEW
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.wiz-verify-preview {
    margin-top: 20px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}
.wiz-verify-channel {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #111;
    border-bottom: 1px solid #1e1e1e;
}
.wiz-verify-embed {
    display: flex;
    gap: 0;
    padding: 14px;
}
.wiz-verify-embed-bar {
    width: 4px;
    border-radius: 4px;
    background: #5865F2;
    flex-shrink: 0;
    margin-right: 12px;
}
.wiz-verify-embed-body { flex: 1; }
.wiz-verify-embed-title {
    font-size: 14px;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 8px;
}
.wiz-verify-embed-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 10px;
}
.wiz-verify-embed-footer {
    font-size: 11px;
    color: #444;
    margin-bottom: 12px;
}
.wiz-verify-btns { display: flex; gap: 8px; }
.wiz-verify-btn-verify {
    background: #57F287;
    color: #0d0d0d;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: default;
}
.wiz-verify-btn-help {
    background: #2c2c2c;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: default;
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   ANTI-SPAM SECTION
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.spam-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
@media (max-width: 700px) { .spam-cards-grid { grid-template-columns: 1fr; } }
.spam-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    transition: border-color 0.2s;
}
.spam-card:hover { border-color: #2c2c2c; }
.spam-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.spam-card-body { flex: 1; min-width: 0; }
.spam-card-title { font-size: 13px; font-weight: 600; color: #ddd; margin-bottom: 2px; }
.spam-card-desc  { font-size: 11px; color: #666; line-height: 1.4; }

/* Punishment ladder */
.punishment-ladder { display: flex; flex-direction: column; gap: 8px; }
.punishment-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
}
.punishment-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 115px;
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}
.punishment-badge {
    font-size: 10px;
    font-weight: 700;
    border-radius: 5px;
    padding: 2px 7px;
    letter-spacing: 0.04em;
}
.punishment-badge.warn  { background: rgba(255,212,59,0.15);  color: #ffd43b; border: 1px solid rgba(255,212,59,0.25); }
.punishment-badge.mute  { background: rgba(253,126,20,0.15);  color: #fd7e14; border: 1px solid rgba(253,126,20,0.25); }
.punishment-badge.mute2 { background: rgba(250,82,82,0.15);   color: #ff6b6b; border: 1px solid rgba(250,82,82,0.25); }
.punishment-badge.kick  { background: rgba(132,94,247,0.15);  color: #9775fa; border: 1px solid rgba(132,94,247,0.25); }
.punishment-step-action {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.punishment-input {
    width: 68px !important;
    padding: 5px 8px !important;
    text-align: center;
    display: inline-block;
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   COMMANDS REFERENCE SECTION
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.cmd-search-wrap { position: relative; margin-bottom: 24px; }
.cmd-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 14px;
    pointer-events: none;
}
.cmd-search-input {
    width: 100%;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 10px 14px 10px 40px;
    font-size: 14px;
    color: #ddd;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.cmd-search-input:focus { border-color: var(--accent); }
.cmd-search-input::placeholder { color: #444; }
#cmd-categories { display: flex; flex-direction: column; gap: 10px; }
.cmd-category {
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}
.cmd-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #141414;
    border-bottom: 1px solid #1e1e1e;
}
.cmd-cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.cmd-cat-title { font-size: 14px; font-weight: 700; color: #ddd; flex: 1; }
.cmd-cat-count { font-size: 11px; color: #444; font-weight: 500; }
.cmd-list { padding: 8px 0; }
.cmd-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 7px 16px;
    transition: background 0.15s;
}
.cmd-row:hover { background: rgba(255,255,255,0.025); }
.cmd-name {
    font-family: 'Consolas','Monaco',monospace;
    font-size: 12.5px;
    color: #9d7cff;
    background: rgba(132,94,247,0.08);
    border: 1px solid rgba(132,94,247,0.15);
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cmd-desc { font-size: 12.5px; color: #666; line-height: 1.4; }
.cmd-category.cmd-hidden { display: none; }

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   DASHBOARD ACCESS (in Anti-Spam section)
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.owner-only-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffd43b;
    background: rgba(255,212,59,0.1);
    border: 1px solid rgba(255,212,59,0.25);
    border-radius: 5px;
    padding: 2px 7px;
    vertical-align: middle;
    text-transform: uppercase;
}
.access-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}
.access-add-icon {
    color: #555;
    font-size: 15px;
    flex-shrink: 0;
}
.access-add-row .form-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 6px 2px;
    font-size: 13px;
    color: #ddd;
    font-family: monospace;
}
.access-add-row .form-input::placeholder { color: #444; }
.btn-access-grant {
    flex-shrink: 0;
    background: rgba(88,101,242,0.15);
    color: #8a9ffc;
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.btn-access-grant:hover { background: rgba(88,101,242,0.25); color: #aab8ff; }
.btn-access-grant:disabled { opacity: 0.5; cursor: not-allowed; }
.access-list { display: flex; flex-direction: column; gap: 6px; }
.access-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    transition: border-color 0.15s;
}
.access-user-row:hover { border-color: #2c2c2c; }
.access-user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(88,101,242,0.18);
    color: #8a9ffc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.access-user-info { flex: 1; min-width: 0; }
.access-user-name { font-size: 13px; font-weight: 600; color: #ddd; }
.access-user-id   { font-size: 11px; color: #555; font-family: monospace; margin-top: 1px; }
.access-revoke-btn {
    flex-shrink: 0;
    background: rgba(250,82,82,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(250,82,82,0.2);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.access-revoke-btn:hover { background: rgba(250,82,82,0.2); }
.access-empty {
    padding: 18px 14px;
    font-size: 13px;
    color: #444;
    text-align: center;
    border: 1px dashed #1e1e1e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.access-loading {
    padding: 16px 14px;
    font-size: 13px;
    color: #444;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modpanel trusted users */
.mp-trusted-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.mp-trusted-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.mp-trusted-header-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.22);
    color: #57F287;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.mp-owner-notice {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.22);
    border-radius: 10px;
    font-size: 13px;
    color: #aab8ff;
    line-height: 1.45;
}
.mp-trusted-block:not(.mp-can-manage) .mp-owner-notice { display: flex; }
.mp-trusted-block:not(.mp-can-manage) .mp-owner-controls {
    pointer-events: none;
    opacity: 0.55;
}
.mp-trusted-card {
    background: var(--bg-card, #141414);
    border: 1px solid var(--border, #222);
    border-radius: 12px;
    padding: 18px 20px;
}
.mp-trusted-card .form-hint { margin-bottom: 14px; }
.mp-trusted-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-trusted-card-title i { color: #5865F2; }
.mp-add-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}
.mp-user-id-input {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 100%;
}
.mp-add-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mp-trusted-list {
    min-height: 48px;
    margin-top: 14px;
}
.mp-trusted-error {
    color: #ff8a8a;
    border-color: rgba(237, 66, 69, 0.25);
    flex-wrap: wrap;
    gap: 10px;
}
.mp-retry-btn { margin-left: 0 !important; }
.mp-perms-list { margin-top: 4px; }
.mp-perms-list .toggle-row { margin-bottom: 10px; }
.mp-trusted-block .toggle-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.mp-trusted-save-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #222);
}
.mp-save-hint {
    flex: 1 1 200px;
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #666);
    line-height: 1.45;
}
.mp-save-hint code {
    font-size: 11px;
    color: #8bdfab;
}
.mp-save-btn {
    flex-shrink: 0;
    background: #57F287 !important;
    color: #0d1f14 !important;
    border: 1px solid rgba(87, 242, 135, 0.5) !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(87, 242, 135, 0.25);
    pointer-events: auto !important;
}
.mp-save-btn:hover:not(:disabled) {
    background: #6ef59a !important;
    color: #0a1810 !important;
    box-shadow: 0 6px 20px rgba(87, 242, 135, 0.35);
    transform: translateY(-1px);
}
.mp-save-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(87, 242, 135, 0.2);
}
.mp-save-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
.mp-save-btn-dirty {
    animation: mpSavePulse 1.5s ease-in-out infinite;
}
@keyframes mpSavePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(87, 242, 135, 0.25); }
    50% { box-shadow: 0 4px 22px rgba(87, 242, 135, 0.55); }
}
.mp-save-btn-loading {
    background: #3b8a5a !important;
    color: #e8fff0 !important;
}

/* ?????? Spin animation (used by save buttons + loading spinner) ?????? */
.spin {
    display: inline-block;
    animation: spinAnim 1s linear infinite;
}

@keyframes spinAnim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   MOBILE-ONLY IMPROVEMENTS
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

/* ?????? iOS input zoom prevention ???????????????????????????????????????????????????????????????????????????????????????????????????
   iOS Safari auto-zooms when a focused input has font-size < 16px,
   which jerks the whole page. Force 16px on all form controls on
   mobile so the viewport never jumps on focus.                   */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ?????? Safe-area insets (notch / Dynamic Island / home indicator) ???
   env() values are 0 on devices without a notch, so this is safe
   to apply globally.                                             */
@media (max-width: 992px) {
    .landing-nav {
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: calc(8px + env(safe-area-inset-left, 0px));
        padding-right: calc(8px + env(safe-area-inset-right, 0px));
    }
}

.save-bar {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ?????? Overscroll containment ???????????????????????????????????????????????????????????????????????????????????????????????????????????????
   Prevents the horizontal nav strip from dragging the whole page
   sideways, and stops pull-to-refresh from fighting the scroll.  */
@media (max-width: 992px) {
    .landing-nav {
        overscroll-behavior-x: contain;
    }

    .landing-main,
    .dashboard-content,
    .settings-main {
        overscroll-behavior-y: contain;
    }

    .settings-sidebar {
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .settings-sidebar::-webkit-scrollbar {
        display: none;
    }
}

/* ?????? Touch-friendly minimum tap targets ???????????????????????????????????????????????????????????????????????????
   Apple's HIG minimum is 44 ?? 44 pt; Google recommends 48 dp.   */
@media (max-width: 768px) {
    .nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        min-height: 48px;
    }

    .command-category {
        min-height: 56px;
    }

    .settings-sidebar .sidebar-nav-item,
    .settings-sidebar [class*="nav-item"] {
        min-height: 44px;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ?????? Active / press states for touch devices ????????????????????????????????????????????????????????????
   :hover doesn't fire reliably on touch screens; :active does.   */
@media (hover: none) and (pointer: coarse) {
    .nav-item:active {
        background: var(--bg-hover);
    }

    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn-primary-custom:active {
        opacity: 0.82;
        transform: scale(0.97);
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    .btn-secondary-custom:active {
        opacity: 0.82;
        transform: scale(0.97);
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    .server-card:active {
        transform: translateY(0) scale(0.98);
        border-color: var(--border-light);
        transition: transform 0.1s ease;
    }

    .command-category:active {
        background: var(--bg-hover);
    }

    .spam-card:active {
        border-color: var(--border-light);
    }
}

/* ?????? Wizard modal: bottom sheet on mobile ?????????????????????????????????????????????????????????????????????
   Slide the setup wizard up from the bottom on small screens
   instead of centering it ??? much more natural on phones.         */
@media (max-width: 768px) {
    .wizard-overlay {
        align-items: flex-end;
    }

    .wizard-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92dvh;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        animation: wizardSlideUp 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
    }

    @keyframes wizardSlideUp {
        from { transform: translateY(100%); opacity: 0.6; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}

/* ?????? Form grid: force single column on small screens ?????????????????????????????????  */
@media (max-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr;
    }
}

/* ?????? Hide decorative hero visual on very small screens ??????????????????????????????
   The stats card is decorative; remove it so the text
   and CTA buttons get full width on tiny phones.                 */
@media (max-width: 400px) {
    .hero-visual,
    .hero-stats-card {
        display: none;
    }

    .hero-split {
        gap: 16px;
    }

    .home-cta-row {
        flex-direction: column;
        width: 100%;
    }

    .home-cta-row .btn-primary-custom,
    .home-cta-row .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
}

/* ?????? Word-break for user-generated / long content ?????????????????????????????????????????????
   Prevents long URLs or unbroken strings from causing horizontal
   overflow on narrow viewports.                                  */
@media (max-width: 768px) {
    .info-block p,
    .callout-block p,
    .home-difference-text,
    .release-info-block p,
    .feature-card-desc {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   HERO STATS CARD
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

.hero-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 340px;
    box-shadow:
        0 0 0 1px rgba(88, 101, 242, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle accent glow at the top */
.hero-stats-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(88, 101, 242, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* ?????? Header row ?????? */
.hsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hsc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hsc-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #0d0d0d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

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

.hsc-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hsc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.hsc-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.hsc-online-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #57F287;
}

.hsc-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #57F287;
    flex-shrink: 0;
    animation: hscPulse 2s ease-in-out infinite;
}

@keyframes hscPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(87, 242, 135, 0); }
}

/* ?????? Divider ?????? */
.hsc-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

/* ?????? Stats grid ?????? */
.hsc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.hsc-tile {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hsc-tile:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.hsc-tile-icon {
    font-size: 18px;
    line-height: 1;
}

.hsc-tile-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hsc-tile-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ?????? Footer bar ?????? */
.hsc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.hsc-footer i {
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}

/* ?????? Responsive ?????? */
@media (max-width: 992px) {
    .hero-stats-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-stats-card {
        max-width: 100%;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .hsc-header {
        margin-bottom: 16px;
    }

    .hsc-name {
        font-size: 14px;
    }

    .hsc-tag {
        font-size: 10px;
    }

    .hsc-online-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .hsc-divider {
        margin-bottom: 18px;
    }

    .hsc-grid {
        gap: 10px;
        margin-bottom: 16px;
    }

    .hsc-tile {
        padding: 14px 12px;
        gap: 5px;
    }

    .hsc-tile-icon {
        font-size: 16px;
    }

    .hsc-tile-value {
        font-size: 24px;
    }

    .hsc-tile-label {
        font-size: 10px;
    }

    .hsc-footer {
        font-size: 11px;
        padding-top: 14px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero-stats-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .hsc-avatar {
        width: 44px;
        height: 44px;
    }

    .hsc-grid {
        gap: 8px;
        margin-bottom: 14px;
    }

    .hsc-tile {
        padding: 12px 10px;
        gap: 4px;
    }

    .hsc-tile-icon {
        font-size: 15px;
    }

    .hsc-tile-value {
        font-size: 21px;
    }

    .hsc-tile-label {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .hsc-footer {
        font-size: 10.5px;
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* ---------------------------------------------------------------
   SYSTEM STATUS DROPDOWN  (hero card + dashboard navbar)
   REDESIGNED ? cleaner button, proper row layout
   --------------------------------------------------------------- */

/* -- Pulse animation for live dot ----------------------------- */
@keyframes statusPulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.6; transform: scale(1.35); }
}

/* -- Dot colours (shared) ------------------------------------- */
.dot-online      { background: #57F287; box-shadow: 0 0 0 3px rgba(87,242,135,0.18);  animation: statusPulse 2.4s ease-in-out infinite; }
.dot-degraded    { background: #FEE75C; box-shadow: 0 0 0 3px rgba(254,231,92,0.18);  animation: statusPulse 2.4s ease-in-out infinite; }
.dot-maintenance { background: #ED4245; box-shadow: 0 0 0 3px rgba(237,66,69,0.18);   animation: statusPulse 1.6s ease-in-out infinite; }

/* -- Hero card toggle button ---------------------------------- */
.status-toggle-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 14px;
    margin-top: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-align: left;
    letter-spacing: 0.01em;
    user-select: none;
    -webkit-user-select: none;
}
.status-toggle-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
/* Open / active state ? clearly shows the button is pressed */
.status-toggle-btn[aria-expanded="true"] {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.status-toggle-btn[aria-expanded="true"] .status-toggle-chevron {
    transform: rotate(180deg);
    color: var(--text-primary);
}
.status-toggle-btn:active {
    transform: scale(0.99);
    transition: transform 0.1s ease, background 0.1s;
}
.status-toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #444;
    transition: background 0.3s, box-shadow 0.3s;
}
.status-toggle-label { flex: 1; }
.status-toggle-chevron {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}

/* -- Hero card dropdown panel --------------------------------- */
.status-dropdown {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 8px;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1),
                opacity 0.22s ease;
}
.status-dropdown.open {
    max-height: 460px;
    opacity: 1;
    pointer-events: auto;
}
.status-dropdown-inner {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* -- Summary header ------------------------------------------- */
.status-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.summary-online  { background: rgba(87,242,135,0.07);  color: #57F287; border-bottom: 1px solid rgba(87,242,135,0.12);  }
.summary-issues  { background: rgba(254,231,92,0.07);  color: #FEE75C; border-bottom: 1px solid rgba(254,231,92,0.12);  }

/* -- Row items ------------------------------------------------ */
.status-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.status-row-item:last-child { border-bottom: none; }

.status-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-row-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-row-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.badge-online      { background: rgba(87,242,135,0.12);  color: #57F287;  border: 1px solid rgba(87,242,135,0.2);  }
.badge-degraded    { background: rgba(254,231,92,0.12);   color: #FEE75C;  border: 1px solid rgba(254,231,92,0.2);  }
.badge-maintenance { background: rgba(237,66,69,0.12);    color: #ED4245;  border: 1px solid rgba(237,66,69,0.2);   }

/* -- Loading / error states ----------------------------------- */
.status-loading, .status-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* -- Dashboard navbar status pill ----------------------------- */
.dash-status-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.dash-status-pill:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
}
.dash-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #444;
    transition: background 0.3s, box-shadow 0.3s;
}
.dash-status-chevron {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

/* -- Dashboard dropdown --------------------------------------- */
.dash-status-pill[aria-expanded="true"] {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.22);
}
.dash-status-pill[aria-expanded="true"] .dash-status-chevron {
    transform: rotate(180deg);
    color: var(--text-primary);
}
.dash-status-pill:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}
.dash-status-chevron {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.dash-status-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    z-index: 9999;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1),
                opacity 0.22s ease;
}
.dash-status-dropdown.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
}
.dash-status-inner { padding: 4px 0; }

/* Ensure relative positioning for the dropdown anchor */
.dashboard-navbar { position: relative; }
.navbar-user      { position: relative; }


/* ---------------------------------------------------------------
   COMMANDS PANEL ? SEARCH BAR + IMPROVED ITEMS
   --------------------------------------------------------------- */

/* Search bar */
.cmd-search-wrap {
    position: relative;
    margin-bottom: 20px;
}
.cmd-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.cmd-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 40px 12px 40px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.cmd-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.cmd-search-input::placeholder { color: #444; }
.cmd-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.cmd-search-clear:hover { background: var(--border-light); color: var(--text-primary); }
.cmd-no-results {
    text-align: center;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Two-line command items */
.command-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 11px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
    min-height: 44px;
}
.command-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-left-color: var(--accent);
}
.command-item .cmd {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.cmd-item-desc {
    font-size: 13px;
    color: var(--text-muted);
}
.cmd-item-desc::before {
    content: '?';
    margin-right: 6px;
    opacity: 0.4;
}

/* ---------------------------------------------------------------
   MANAGE BUTTON ? redesigned
   --------------------------------------------------------------- */
.server-card-manage {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    position: relative;
    z-index: 2;
    min-height: 44px;
    min-width: 44px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}
.server-card-manage:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(88,101,242,0.35);
    transform: translateY(-1px);
    color: #fff;
}
.server-card-manage:active {
    background: #3c46a8;
    transform: translateY(0);
    box-shadow: none;
}

/* ---------------------------------------------------------------
   GENERAL POLISH
   --------------------------------------------------------------- */

/* info-block hover lift */
.info-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ---------------------------------------------------------------
   MOBILE OVERRIDES (= 768px)
   --------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Command items ? two-line layout */
    .command-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 12px 16px;
    }
    .cmd-item-desc {
        font-size: 12px;
    }
    .cmd-item-desc::before { display: none; }

    /* Cards: hide arrow, show manage button on mobile */
    .server-card {
        flex-wrap: wrap;
    }
    .server-card-body {
        flex: 1 1 0;
        min-width: 0;
    }
    .server-card-arrow {
        display: none;
    }
    .server-card-manage-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1 1 100%;
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
        background: var(--accent);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
    }

    /* Dash status pill — shrink slightly on mobile but keep label */
    .dash-status-pill {
        padding: 5px 10px;
        font-size: 11px;
    }
    .dash-status-dropdown {
        right: 0;
        width: 250px;
    }

    /* ── Dashboard navbar ── */
    .dashboard-navbar {
        padding: 0 16px;
        height: 52px;
    }
    .navbar-username {
        display: none;
    }
    .navbar-link-label {
        display: none;
    }
    .navbar-divider {
        display: none;
    }

    /* ── Page header ── */
    .dash-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }
    .dash-page-title {
        font-size: 20px;
    }
    .dash-page-subtitle {
        font-size: 13px;
    }
    .dash-page-search {
        width: 100%;
        min-width: unset;
        box-sizing: border-box;
    }

    /* ── Dashboard content padding ── */
    .dashboard-content {
        padding: 16px 12px 32px;
    }

    /* ── Server cards ── */
    .server-grid {
        gap: 10px;
    }
    .server-card {
        padding: 14px 14px;
        gap: 12px;
    }
    .server-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 18px;
    }
    .server-card-name {
        font-size: 14px;
    }
    .server-card-manage-mobile {
        padding: 9px;
        font-size: 12px;
        border-radius: 7px;
    }
}

/* -- Extra small (= 480px) ------------------------------------ */
@media (max-width: 480px) {

    /* Hide command count pill to save space */
    .command-count {
        display: none;
    }

    /* Tighten category header */
    .command-category {
        padding: 14px 14px;
    }
    .command-category-right {
        gap: 6px;
    }

    /* Search bar */
    .cmd-search-input {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    /* Status toggle button on small screens */
    .status-toggle-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}


/* ---------------------------------------------------------------
   WHY PARROT ? card grid
   --------------------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.why-card:hover {
    background: var(--bg-hover);
    border-color: rgba(88,101,242,0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.why-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(88,101,242,0.15);
    border: 1px solid rgba(88,101,242,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--accent);
    margin-bottom: 14px;
    flex-shrink: 0;
}
.why-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
.why-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .why-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }
    .why-card-icon { margin-bottom: 0; flex-shrink: 0; }
    .why-card-body { display: flex; flex-direction: column; }
}

@media (max-width: 480px) {
    .why-card { padding: 15px 14px; gap: 12px; }
    .why-card-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 8px; }
    .why-card-title { font-size: 13px; }
    .why-card-desc { font-size: 12px; }
}

/* ---------------------------------------------------------------
   LEGAL PAGES (Terms of Service / Privacy Policy)
   --------------------------------------------------------------- */
.legal-page {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* Top bar */
.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(16px);
    z-index: 100;
}

.legal-topbar-brand {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.legal-topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-topbar-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.legal-topbar-link:hover {
    color: var(--text-primary);
}

.legal-topbar-btn {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.legal-topbar-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-hover);
}

/* Hero */
.legal-hero {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 72px 24px 56px;
    text-align: center;
}

.legal-hero-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.legal-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

.legal-hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.legal-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Back button */
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.15s ease;
    margin-top: 4px;
}

.legal-back-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-hover);
}

/* Content wrapper */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.legal-card {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color 0.15s ease;
}

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

.legal-card-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    padding-top: 2px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.legal-card-body {
    flex: 1;
    min-width: 0;
}

.legal-card-body h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.legal-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 10px;
}

.legal-card-body p:last-child {
    margin-bottom: 0;
}

.legal-card-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-card-body a {
    color: var(--accent);
    text-decoration: none;
}

.legal-card-body a:hover {
    text-decoration: underline;
}

/* List inside cards */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-left: 18px;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.legal-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Bottom row */
.legal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.legal-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.legal-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.legal-bottom-links a:hover {
    color: var(--text-primary);
}

/* Mobile */
@media (max-width: 768px) {
    .legal-topbar {
        padding: 14px 20px;
    }
    .legal-topbar-btn {
        display: none;
    }
    .legal-hero {
        padding: 48px 20px 40px;
    }
    .legal-hero-title {
        font-size: 30px;
    }
    .legal-content {
        padding: 36px 16px 64px;
    }
    .legal-card {
        flex-direction: column;
        gap: 8px;
        padding: 20px;
    }
    .legal-card-num {
        font-size: 11px;
    }
    .legal-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Customizations module — complete rehaul
   ═══════════════════════════════════════════════════════════════ */

/* Card shell */
.cust-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}

/* Card header */
.cust-block-head {
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.cust-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.cust-block-icon { font-size: 16px; flex-shrink: 0; }
.cust-block-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-left: 26px; /* align under icon */
}

/* Card body */
.cust-block-body {
    padding: 20px 22px 22px;
}

/* ── Setting rows (for non-toggle controls) ── */
.cust-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cust-setting-info { flex: 1; min-width: 0; }
.cust-setting-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.cust-setting-hint {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.cust-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

/* Color picker */
.cust-color-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cust-color-pick input[type="color"] {
    width: 44px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    padding: 3px;
    flex-shrink: 0;
}
.cust-color-pick .form-input {
    max-width: 100px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.06em;
    font-size: 13px;
}

/* XP multiplier */
.cust-xp-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 9px;
    border: 1px solid rgba(88,101,242,0.3);
    line-height: 1.4;
}
.cust-xp-wrap {
    min-width: 170px;
    flex-shrink: 0;
}
.cust-xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}
.cust-xp-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
    height: 4px;
}

/* ── Command module grid ── */
.cust-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 18px 22px 22px;
}
.cust-mod-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 16px 14px;
    transition: border-color 0.15s ease, opacity 0.2s ease;
    position: relative;
}
.cust-mod-card:hover { border-color: var(--border-light); }
.cust-mod-card--off {
    opacity: 0.45;
}
.cust-mod-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.cust-mod-icon {
    font-size: 24px;
    line-height: 1;
}
.cust-mod-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.cust-mod-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Ticket Reasons ── */
.cust-tr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.cust-tr-empty {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-light);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}
.cust-tr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    transition: border-color 0.15s;
}
.cust-tr-row:hover { border-color: var(--border-light); }
.cust-tr-row-info { flex: 1; min-width: 0; }
.cust-tr-row-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}
.cust-tr-row-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cust-tr-add {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.cust-tr-add-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.cust-tr-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cust-tr-add-row .form-input { flex: 1; min-width: 0; }
.cust-tr-add-row .form-input:first-child { flex: 1.1; }
.cust-tr-add-row button { flex-shrink: 0; white-space: nowrap; }
.cust-tr-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 9px;
}

/* Send updated ticket panel */
.cust-tr-send {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.cust-tr-send-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cust-tr-send-row .form-select { flex: 1; min-width: 0; }
.cust-tr-send-row button { flex-shrink: 0; white-space: nowrap; }

/* Responsive: stack modules to 1 col on narrow screens */
@media (max-width: 560px) {
    .cust-modules-grid { grid-template-columns: 1fr; }
}
