/* Adlumeno - Main Stylesheet (Light Theme) */
:root {
    --navbar-height: 64px;
    --primary: #5b4fcf;
    --primary-dark: #4338ca;
    --primary-light: #7c6ef5;
    --accent: #f83b54;
    --bg-page: #f5f6fa;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    --bg-navbar: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

/* Base */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============================================================
   NAVBAR (horizontal, top)
   ============================================================ */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 32px;
}

/* Logo */
.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}

.navbar-logo:hover { text-decoration: none; }

.logo-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
    line-height: 1.1;
}

.logo-by {
    font-size: 8.5px;
    text-align: right;
    width: 100%;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.logo-by strong {
    font-weight: 700;
    color: var(--text-secondary);
}

.logo-by .logo-box {
    color: #f83b54;
}

/* Nav links */
.navbar-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

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

.nav-link-item:hover {
    background: var(--bg-page);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link-item.active {
    background: rgba(91, 79, 207, 0.08);
    color: var(--primary);
}

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

.nav-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}

/* Navbar right area */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.navbar-btn:hover {
    background: var(--bg-page);
    border-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.navbar-btn.btn-ai {
    background: linear-gradient(135deg, rgba(91, 79, 207, 0.08), rgba(124, 110, 245, 0.12));
    border-color: rgba(91, 79, 207, 0.2);
    color: var(--primary);
}

.navbar-btn.btn-ai:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* User avatar button */
.user-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: var(--text-primary);
}

.user-nav-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-input);
    color: var(--text-primary);
    text-decoration: none;
}

.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.user-nav-info { line-height: 1.2; }
.user-nav-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-nav-plan { font-size: 10.5px; color: var(--text-muted); text-transform: capitalize; }

/* Dropdown */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 200;
}

.navbar-dropdown.open .navbar-dropdown-menu { display: block; }

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.dropdown-item-link:hover {
    background: var(--bg-page);
    color: var(--text-primary);
    text-decoration: none;
}

.dropdown-item-link.danger { color: var(--danger); }
.dropdown-item-link.danger:hover { background: rgba(239,68,68,0.06); }

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

/* Navbar mobile toggle */
.navbar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page Content */
.page-content {
    padding: 28px 32px;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

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

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.2s;
}

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

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.stat-icon.primary { background: rgba(91, 79, 207, 0.10); color: var(--primary); }
.stat-icon.success { background: rgba(16, 185, 129, 0.10); color: var(--success); }
.stat-icon.danger  { background: rgba(239, 68, 68, 0.10);  color: var(--danger); }
.stat-icon.info    { background: rgba(59, 130, 246, 0.10); color: var(--info); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.10); color: var(--warning); }
.stat-icon.accent  { background: rgba(248, 59, 84, 0.10);  color: var(--accent); }

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   TABLES
   ============================================================ */
.table {
    font-size: 14px;
    color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-light);
    --bs-table-striped-bg: #fafbff;
    --bs-table-hover-bg: rgba(91, 79, 207, 0.04);
}

.table thead th {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-color: var(--border);
    padding: 11px 16px;
}

.table tbody td {
    border-color: var(--border-light);
    padding: 12px 16px;
    vertical-align: middle;
}

.table tbody tr:hover td { background: rgba(91, 79, 207, 0.03); }

/* Keep dark table variant for pages using it */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-light);
    --bs-table-striped-bg: #fafbff;
    --bs-table-hover-bg: rgba(91, 79, 207, 0.04);
    color: var(--text-primary);
}

.table-dark thead th {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-color: var(--border);
    padding: 11px 16px;
}

.table-dark tbody td {
    border-color: var(--border-light);
    padding: 12px 16px;
    vertical-align: middle;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }

.badge-enabled  { background: rgba(16, 185, 129, 0.10); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-paused   { background: rgba(245, 158, 11, 0.10);  color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-removed  { background: rgba(239, 68, 68, 0.10);   color: var(--danger);  border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-fraud    { background: rgba(239, 68, 68, 0.10);   color: var(--danger);  border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-clean    { background: rgba(16, 185, 129, 0.10);  color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 9px;
    padding: 8px 18px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(91, 79, 207, 0.3);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-danger  { background: var(--danger);  border: none; color: white; font-weight: 600; border-radius: 9px; }
.btn-success { background: var(--success); border: none; color: white; font-weight: 600; border-radius: 9px; }
.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 9px;
    font-weight: 500;
}
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 207, 0.12);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

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

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: rgba(16, 185, 129, 0.08); color: #065f46; border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-danger  { background: rgba(239, 68, 68, 0.08);  color: #991b1b; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.08); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-info    { background: rgba(59, 130, 246, 0.08); color: #1e40af; border: 1px solid rgba(59, 130, 246, 0.2); }

/* ============================================================
   AUTH LAYOUT (login / register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #f0eeff 0%, #fafafa 60%, #fff0f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-panel-header {
    padding: 36px 36px 28px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.auth-logo-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.auth-logo-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
    line-height: 1.1;
}

.auth-logo-by {
    font-size: 8.5px;
    text-align: right;
    width: 100%;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.auth-logo-by strong {
    font-weight: 700;
    color: var(--text-secondary);
}

.auth-logo-by .logo-box { color: #f83b54; }

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.auth-panel-body { padding: 28px 36px 32px; }

.btn-google {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    border-color: var(--primary);
    background: rgba(91, 79, 207, 0.04);
    color: var(--text-primary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 12px;
    position: relative;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   AI CHAT
   ============================================================ */
.chat-wrapper {
    display: flex;
    height: calc(100vh - var(--navbar-height) - 56px);
    gap: 16px;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message { display: flex; gap: 12px; max-width: 80%; }
.message.user-msg { align-self: flex-end; flex-direction: row-reverse; }
.message.ai-msg   { align-self: flex-start; }

.msg-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: bold;
}

.user-msg .msg-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.ai-msg   .msg-avatar { background: linear-gradient(135deg, #f0eeff, #e0dcff); color: var(--primary); }

.msg-content {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-msg .msg-content {
    background: var(--primary);
    color: white;
    border-radius: 14px 4px 14px 14px;
}

.ai-msg .msg-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px 14px 14px 14px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: var(--bg-input);
}

.chat-input {
    flex: 1;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 207, 0.12);
}

.chat-send-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(91,79,207,0.3); }
.chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.chat-sidebar { width: 240px; display: flex; flex-direction: column; gap: 12px; }

.suggestions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.suggestion-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.suggestion-btn:hover {
    background: rgba(91, 79, 207, 0.06);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Typing indicator */
.typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
.typing-indicator span {
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-7px); opacity: 1; }
}

/* ============================================================
   TABS
   ============================================================ */
.nav-tabs { border-color: var(--border-light); margin-bottom: 0; }
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    background: transparent;
}
.nav-tabs .nav-link:hover { color: var(--text-primary); }
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ============================================================
   CONNECTION STATUS
   ============================================================ */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.connection-status.connected   { background: rgba(16,185,129,0.08); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.connection-status.disconnected { background: rgba(239,68,68,0.08);  color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.connected    .status-dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.disconnected .status-dot { background: var(--danger); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--border-light); padding: 20px 24px; }
.modal-title  { font-size: 16px; font-weight: 600; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 16px 24px; }
.btn-close    { opacity: 0.6; }
.btn-close:hover { opacity: 1; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 46px; margin-bottom: 16px; opacity: 0.35; }
.empty-state h4 { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; margin: 0; }

.input-group-text {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-muted);
}

.code-block {
    background: #f8f9ff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    position: relative;
    overflow-x: auto;
    color: var(--text-primary);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page {
    background: var(--bg-card);
}

.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.landing-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.landing-nav-link:hover { color: var(--primary); }

.landing-cta-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hero */
.hero-section {
    padding: 96px 48px 80px;
    text-align: center;
    background: linear-gradient(180deg, #f0eeff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(91, 79, 207, 0.08);
    color: var(--primary);
    border: 1px solid rgba(91, 79, 207, 0.2);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.13;
    margin: 0 auto 20px;
    max-width: 760px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(91,79,207,0.35);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-hero-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

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

/* Features section */
.features-section {
    padding: 80px 48px;
    background: var(--bg-page);
}

.section-tag {
    display: inline-block;
    background: rgba(91, 79, 207, 0.08);
    color: var(--primary);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 52px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.2s;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

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

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

/* How it works */
.how-section {
    padding: 80px 48px;
    background: var(--bg-card);
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content { flex: 1; }
.step-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.step-desc  { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* CTA section */
.cta-section {
    padding: 80px 48px;
    background: linear-gradient(135deg, #f0eeff 0%, #fff0f2 100%);
    text-align: center;
}

/* Landing Footer */
.landing-footer {
    padding: 32px 48px;
    background: var(--bg-page);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-link:hover { color: var(--primary); }

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

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 32px 72px;
}

.privacy-hero {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.privacy-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.privacy-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.privacy-toc {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.privacy-toc h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.privacy-toc ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.privacy-toc li { font-size: 13.5px; }
.privacy-toc a  { color: var(--primary); text-decoration: none; }
.privacy-toc a:hover { text-decoration: underline; }

.privacy-section { margin-bottom: 40px; }

.privacy-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
    padding-top: 8px;
    border-top: 2px solid var(--border-light);
    padding-top: 32px;
}

.privacy-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 20px 0 8px;
}

.privacy-section p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 12px;
}

.privacy-section ul, .privacy-section ol {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    padding-left: 22px;
    margin: 8px 0 12px;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 12px 0;
}
.privacy-table th {
    background: var(--bg-input);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border);
}
.privacy-table td {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
}

.privacy-contact-box {
    background: linear-gradient(135deg, rgba(91,79,207,0.06), rgba(124,110,245,0.04));
    border: 1px solid rgba(91,79,207,0.15);
    border-radius: 14px;
    padding: 24px;
    margin-top: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .navbar-nav-links { display: none; }
    .navbar-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        box-shadow: var(--shadow);
        z-index: 99;
    }
    .navbar-mobile-toggle { display: flex; align-items: center; }
    .page-content { padding: 20px 18px; }
    .hero-section  { padding: 64px 24px 56px; }
    .features-section, .how-section, .cta-section { padding: 56px 24px; }
    .landing-navbar { padding: 0 24px; }
    .landing-footer { padding: 24px; }
    .chat-sidebar { display: none; }
}

@media (max-width: 576px) {
    .hero-stats { gap: 28px; }
    .privacy-toc ol { grid-template-columns: 1fr; }
    .landing-navbar { padding: 0 16px; }
}

/* Secondary (neutral) badge — light theme */
.badge-secondary-light {
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
