/**
 * ════════════════════════════════════════════════════════════════════════════
 * VISTA UAV - DRONE SUITE GLOBAL THEME
 * ════════════════════════════════════════════════════════════════════════════
 *
 * Single shared stylesheet for all Vista drone software:
 * SkyQuote, Prospects, and future suite modules.
 *
 * Load AFTER Bootstrap CSS + icon library (Font Awesome or Bootstrap Icons).
 * This is the ONLY custom CSS. No project-specific CSS. No inline styles.
 * No !important.
 *
 * Version: 5.0 — Semantic color tokens, composable classes, nav widget styles
 * ════════════════════════════════════════════════════════════════════════════
 */

/* ─── Design Tokens ────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --ds-primary: #3b82f6;
    --ds-primary-dark: #2563eb;
    --ds-primary-light: #60a5fa;
    --ds-primary-subtle: rgba(59, 130, 246, 0.08);

    /* Accent */
    --ds-accent: #06b6d4;
    --ds-accent-dark: #0891b2;
    --ds-accent-light: #22d3ee;

    /* Neutrals */
    --ds-gray-50: #f8fafc;
    --ds-gray-100: #f1f5f9;
    --ds-gray-200: #e2e8f0;
    --ds-gray-300: #cbd5e1;
    --ds-gray-400: #94a3b8;
    --ds-gray-500: #64748b;
    --ds-gray-600: #475569;
    --ds-gray-700: #334155;
    --ds-gray-800: #1e293b;
    --ds-gray-900: #0f172a;

    /* Status */
    --ds-success: #10b981;
    --ds-warning: #f59e0b;
    --ds-danger: #ef4444;
    --ds-info: #06b6d4;

    /* Glass */
    --ds-glass-bg: rgba(255, 255, 255, 0.72);
    --ds-glass-border: rgba(255, 255, 255, 0.45);
    --ds-glass-blur: 14px;
    --ds-glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);

    /* Page */
    --ds-page-bg: linear-gradient(135deg, #dfe9f3 0%, #cfd9e8 40%, #e3ecf7 100%);
    --ds-page-bg-fallback: #e4ecf4;

    /* Text */
    --ds-text: #1e293b;
    --ds-text-secondary: #64748b;
    --ds-text-muted: #94a3b8;

    /* Radius */
    --ds-radius: 12px;
    --ds-radius-sm: 8px;
    --ds-radius-lg: 16px;
}

/* ─── Dark Mode Tokens ───────────────────────────────────────────────── */
[data-bs-theme="dark"] {
    /* Brand — keep primary palette, adjust subtle */
    --ds-primary-subtle: rgba(59, 130, 246, 0.15);

    /* Neutrals — inverted */
    --ds-gray-50: #0f172a;
    --ds-gray-100: #1e293b;
    --ds-gray-200: #334155;
    --ds-gray-300: #475569;
    --ds-gray-400: #64748b;
    --ds-gray-500: #94a3b8;
    --ds-gray-600: #cbd5e1;
    --ds-gray-700: #e2e8f0;
    --ds-gray-800: #f1f5f9;
    --ds-gray-900: #f8fafc;

    /* Glass — dark variant */
    --ds-glass-bg: rgba(15, 23, 42, 0.82);
    --ds-glass-border: rgba(51, 65, 85, 0.6);
    --ds-glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

    /* Page */
    --ds-page-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    --ds-page-bg-fallback: #0f172a;

    /* Text */
    --ds-text: #e2e8f0;
    --ds-text-secondary: #94a3b8;
    --ds-text-muted: #64748b;

    color-scheme: dark;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════════════════ */

body {
    background: var(--ds-page-bg-fallback);
    background: var(--ds-page-bg);
    background-attachment: fixed;
    color: var(--ds-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--ds-primary); }
a:hover { color: var(--ds-primary-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--ds-text); }

.text-muted { color: var(--ds-text-muted); }

::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--ds-gray-900);
}


/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
    background: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.navbar-brand:hover {
    color: #ffffff;
}

.navbar-brand span {
    color: #ffffff;
}

.navbar .navbar-brand img {
    filter: brightness(1.1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    border-radius: var(--ds-radius-sm);
    padding: 0.4rem 0.75rem;
    transition: color 0.2s, background 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.25rem;
    z-index: 1051;
}

.navbar .dropdown-item {
    color: var(--ds-text);
    border-radius: var(--ds-radius-sm);
    padding: 0.3rem 0.75rem;
    transition: background 0.15s;
}

.navbar .dropdown-item:hover {
    background: var(--ds-primary-subtle);
    color: var(--ds-primary-dark);
}

.navbar .dropdown-item.active {
    background: var(--ds-primary-subtle);
    color: var(--ds-primary-dark);
}

.navbar .dropdown-divider {
    border-color: var(--ds-gray-200);
    margin: 0.25rem 0;
}

.navbar .dropdown-header {
    color: var(--ds-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    margin-bottom: 0;
}

/* Landing page transparent navbar variant */
.navbar.navbar-landing {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.navbar-landing.scrolled {
    background: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CARDS (Glass)
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background: var(--ds-glass-bg);
    backdrop-filter: blur(var(--ds-glass-blur));
    -webkit-backdrop-filter: blur(var(--ds-glass-blur));
    border: 1px solid var(--ds-glass-border);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-glass-shadow);
    color: var(--ds-text);
    transition: box-shadow 0.2s;
    animation: fadeInUp 0.3s ease-out both;
}

.card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
}

.card .card-header {
    background: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--ds-radius) var(--ds-radius) 0 0;
    font-weight: 600;
    color: var(--ds-text);
}

.card .card-header.bg-primary {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-dark));
    color: white;
    border-bottom-color: transparent;
}

.card .card-body {
    background: transparent;
    color: var(--ds-text);
}

/* Staggered card animation */
.row > [class*="col-"]:nth-child(1) .card { animation-delay: 0.05s; }
.row > [class*="col-"]:nth-child(2) .card { animation-delay: 0.1s; }
.row > [class*="col-"]:nth-child(3) .card { animation-delay: 0.15s; }
.row > [class*="col-"]:nth-child(4) .card { animation-delay: 0.2s; }


/* ═══════════════════════════════════════════════════════════════════════════
   KPI / STAT CARDS (Dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */

.kpi-card {
    border-left: 4px solid var(--ds-primary);
    overflow: hidden;
    position: relative;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80px;
    height: 80px;
    background: var(--ds-primary-subtle);
    border-radius: 50%;
    opacity: 0.5;
}

.kpi-card h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ds-primary);
}

.stat-card .stat-label {
    color: var(--ds-text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════════════ */

.table {
    color: var(--ds-text);
}

.table thead th {
    background: rgba(241, 245, 249, 0.8);
    color: var(--ds-gray-600);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--ds-gray-200);
}

.table tbody td {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.table-clickable tbody tr {
    cursor: pointer;
}

.table-light {
    background: rgba(241, 245, 249, 0.6);
}

.table-light th {
    background: rgba(241, 245, 249, 0.6);
    color: var(--ds-gray-600);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    border-radius: var(--ds-radius-sm);
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-dark));
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--ds-primary-dark), #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}

.btn-outline-primary:hover {
    background: var(--ds-primary);
    border-color: var(--ds-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-outline-secondary {
    border-color: var(--ds-gray-300);
    color: var(--ds-gray-600);
}

.btn-outline-secondary:hover {
    background: var(--ds-gray-100);
    border-color: var(--ds-gray-400);
    color: var(--ds-gray-700);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-dark));
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1.1rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════ */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--ds-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    color: var(--ds-text);
}

.form-control::placeholder {
    color: var(--ds-gray-400);
}

.form-label {
    font-weight: 500;
    color: var(--ds-gray-700);
    font-size: 0.875rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--ds-gray-300);
}

.form-check-input:checked {
    background-color: var(--ds-primary);
    border-color: var(--ds-primary);
}

/* Toggle switch with spread label (name left, value right) */
.form-switch-spread {
    display: flex;
    align-items: center;
    padding-left: 3rem !important;
}
.form-switch-spread .form-check-input {
    margin-left: -3rem;
    flex-shrink: 0;
}
.form-switch-spread .form-check-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Locked/disabled deliverable style */
.deliverable-locked {
    opacity: 0.7;
}

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

/* Color picker inputs */
.form-control-color {
    border: 1px solid var(--ds-gray-300);
    border-radius: var(--ds-radius-sm);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 6px;
    padding: 0.35em 0.65em;
}

.badge.bg-success { background-color: var(--ds-success); }
.badge.bg-warning { background-color: var(--ds-warning); }
.badge.bg-danger { background-color: var(--ds-danger); }
.badge.bg-info { background-color: var(--ds-info); }

/* Priority badges */
.badge-high { background-color: var(--ds-danger); color: white; }
.badge-medium { background-color: var(--ds-warning); color: white; }
.badge-low { background-color: var(--ds-gray-400); color: white; }


/* ═══════════════════════════════════════════════════════════════════════════
   STATUS BADGES (Pipeline / CRM)
   ═══════════════════════════════════════════════════════════════════════════ */

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-not_called { background-color: var(--ds-gray-200); color: var(--ds-gray-600); }
.status-voicemail { background-color: #fef3c7; color: #92400e; }
.status-spoke { background-color: #dbeafe; color: #1e40af; }
.status-scheduled { background-color: #dcfce7; color: #166534; }
.status-won { background-color: var(--ds-success); color: white; }
.status-lost { background-color: #fecaca; color: #991b1b; }
.status-sent { background-color: var(--ds-info); color: white; }
.status-pending { background-color: var(--ds-warning); color: var(--ds-gray-800); }
.status-accepted { background-color: var(--ds-success); color: white; }
.status-rejected { background-color: var(--ds-danger); color: white; }


/* ═══════════════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════════════ */

.alert {
    border-radius: var(--ds-radius);
    border: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ds-glass-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    color: var(--ds-text);
}

.modal-header {
    border-bottom-color: var(--ds-gray-200);
}

.modal-footer {
    border-top-color: var(--ds-gray-200);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */

.accordion-item {
    background: var(--ds-glass-bg);
    border: 1px solid var(--ds-glass-border);
    border-radius: var(--ds-radius);
}

.accordion-button {
    background: transparent;
    color: var(--ds-text);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: var(--ds-primary-subtle);
    color: var(--ds-primary-dark);
}

.accordion-body {
    color: var(--ds-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   LIST GROUP
   ═══════════════════════════════════════════════════════════════════════════ */

.list-group-item {
    background: transparent;
    border-color: rgba(226, 232, 240, 0.5);
    color: var(--ds-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

footer,
.footer {
    margin-top: auto;
    background: var(--ds-gray-800);
    color: var(--ds-gray-400);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a,
.footer a {
    color: var(--ds-gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover,
.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer h5, footer h6,
.footer h5, .footer h6 {
    color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ICON ACCENT
   ═══════════════════════════════════════════════════════════════════════════ */

.icon-primary {
    color: var(--ds-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES (Login, Register)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-container {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card .card-header {
    text-align: center;
    padding: 1.5rem;
}

.auth-card .card-body {
    padding: 1.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADERS
   ═══════════════════════════════════════════════════════════════════════════ */

.page-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1,
.page-header h2 {
    font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANALYSIS / AI RESULTS
   ═══════════════════════════════════════════════════════════════════════════ */

.analysis-result {
    background: var(--ds-glass-bg);
    backdrop-filter: blur(var(--ds-glass-blur));
    -webkit-backdrop-filter: blur(var(--ds-glass-blur));
    border-radius: var(--ds-radius);
    padding: 1.5rem;
    font-family: inherit;
    line-height: 1.6;
}

.analysis-result h1,
.analysis-result h2 {
    color: var(--ds-primary);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ds-primary-light);
}

.analysis-result h3 {
    color: var(--ds-text);
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.8) 0%, rgba(224, 242, 254, 0.8) 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--ds-radius-sm);
    border-left: 4px solid var(--ds-primary);
}

.analysis-result h1:first-child,
.analysis-result h2:first-child {
    margin-top: 0;
}

.analysis-result ul,
.analysis-result ol {
    margin-left: 1.5rem;
}

.analysis-result blockquote {
    background: #fefce8;
    border-left: 4px solid var(--ds-warning);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--ds-radius-sm) var(--ds-radius-sm) 0;
    font-style: italic;
}

.analysis-result strong {
    color: var(--ds-text);
}

.analysis-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.analysis-result th {
    background: var(--ds-primary);
    color: white;
    padding: 0.5rem;
    text-align: left;
}

.analysis-result td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--ds-gray-200);
}

.analysis-result tr:hover {
    background: var(--ds-gray-50);
}

.analysis-result hr {
    border: none;
    border-top: 2px dashed var(--ds-gray-300);
    margin: 1.5rem 0;
}

.analysis-result p {
    margin-bottom: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing-card {
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid var(--ds-glass-border);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border-color: var(--ds-primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card .card-header {
    padding: 1.5rem;
}

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

.plan-name {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price .period {
    color: var(--ds-text-secondary);
    font-size: 1rem;
}

.plan-description {
    color: var(--ds-text-secondary);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ds-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-label {
    color: var(--ds-text-secondary);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--ds-text);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════
   LANDING / MARKETING PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--ds-gray-800) 0%, var(--ds-primary-dark) 50%, #3730a3 100%);
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    line-height: 1.1;
}

.hero-section h2,
.hero-section h3 {
    color: white;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Dashboard Preview (marketing) */
.dashboard-preview {
    background: white;
    border-radius: var(--ds-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.preview-header {
    background: var(--ds-gray-200);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.preview-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-header .dot.red { background: var(--ds-danger); }
.preview-header .dot.yellow { background: var(--ds-warning); }
.preview-header .dot.green { background: var(--ds-success); }

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

.preview-stat {
    text-align: center;
    padding: 20px;
    background: var(--ds-gray-50);
    border-radius: var(--ds-radius-sm);
}

.preview-stat.highlight {
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-light));
    color: white;
}

.preview-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ds-primary);
}

.preview-stat.highlight .stat-number {
    color: white;
}

.preview-stat .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ds-text-secondary);
}

.preview-stat.highlight .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Feature Cards (marketing) */
.features-section {
    background: var(--ds-gray-50);
}

.feature-card {
    background: var(--ds-glass-bg);
    backdrop-filter: blur(var(--ds-glass-blur));
    -webkit-backdrop-filter: blur(var(--ds-glass-blur));
    border-radius: var(--ds-radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ds-glass-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-light));
    border-radius: var(--ds-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* How It Works Steps */
.how-it-works-section {
    background: white;
}

.step-card {
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--ds-gray-800) 0%, var(--ds-primary-dark) 100%);
    color: white;
}

.cta-section h2,
.cta-section h3 {
    color: white;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ds-gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ds-gray-400); }


/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.glass-container {
    z-index: 1;
    position: relative;
}

.bg-light {
    background: rgba(248, 250, 252, 0.5);
}

.bg-white {
    background: rgba(255, 255, 255, 0.7);
}

.border-bottom {
    border-bottom-color: rgba(226, 232, 240, 0.5);
}

.shadow-sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.container-fluid,
.container {
    flex: 1;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --ds-radius: 10px;
        --ds-radius-lg: 12px;
    }

    .kpi-card::before {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE COMPONENT OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

[data-bs-theme="dark"] body {
    background: var(--ds-page-bg-fallback);
    background: var(--ds-page-bg);
    color: var(--ds-text);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: var(--ds-text);
}

/* Dark Cards */
[data-bs-theme="dark"] .card {
    background: var(--ds-glass-bg);
    border-color: var(--ds-glass-border);
    box-shadow: var(--ds-glass-shadow);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .card .card-header {
    background: rgba(30, 41, 59, 0.6);
    border-bottom-color: var(--ds-glass-border);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .card .card-body {
    color: var(--ds-text);
}

/* Dark Navbar — already dark, just ensure consistency */
[data-bs-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

[data-bs-theme="dark"] .navbar .dropdown-menu {
    background: rgba(30, 41, 59, 0.96);
    border-color: var(--ds-glass-border);
}

[data-bs-theme="dark"] .navbar .dropdown-item {
    color: var(--ds-text);
}

[data-bs-theme="dark"] .navbar .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--ds-primary-light);
}

[data-bs-theme="dark"] .navbar .dropdown-divider {
    border-color: rgba(51, 65, 85, 0.6);
}

/* Dark Forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--ds-primary);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--ds-text-muted);
}

[data-bs-theme="dark"] .form-label {
    color: var(--ds-text-secondary);
}

[data-bs-theme="dark"] .form-check-input {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.6);
}

/* Dark Tables */
[data-bs-theme="dark"] .table {
    color: var(--ds-text);
}

[data-bs-theme="dark"] .table thead th {
    background: rgba(30, 41, 59, 0.8);
    color: var(--ds-text-secondary);
    border-bottom-color: var(--ds-glass-border);
}

[data-bs-theme="dark"] .table tbody td {
    border-bottom-color: rgba(51, 65, 85, 0.4);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Dark Modals */
[data-bs-theme="dark"] .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--ds-glass-border);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: var(--ds-glass-border);
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: var(--ds-glass-border);
}

/* Dark Alerts */
[data-bs-theme="dark"] .alert {
    backdrop-filter: blur(8px);
}

/* Dark Accordion */
[data-bs-theme="dark"] .accordion-item {
    background: var(--ds-glass-bg);
    border-color: var(--ds-glass-border);
}

[data-bs-theme="dark"] .accordion-button {
    background: transparent;
    color: var(--ds-text);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--ds-primary-subtle);
    color: var(--ds-primary-light);
}

/* Dark List Groups */
[data-bs-theme="dark"] .list-group-item {
    background: transparent;
    border-color: rgba(51, 65, 85, 0.4);
    color: var(--ds-text);
}

/* Dark Footer */
[data-bs-theme="dark"] footer,
[data-bs-theme="dark"] .footer {
    background: rgba(15, 23, 42, 0.9);
    border-top-color: rgba(51, 65, 85, 0.5);
}

/* Dark Auth Pages */
[data-bs-theme="dark"] .auth-card .card-header {
    background: rgba(30, 41, 59, 0.6);
}

/* Dark Pricing Cards */
[data-bs-theme="dark"] .pricing-card {
    border-color: var(--ds-glass-border);
}

[data-bs-theme="dark"] .pricing-card.featured {
    border-color: var(--ds-primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Dark Analysis/AI Results */
[data-bs-theme="dark"] .analysis-result {
    background: var(--ds-glass-bg);
}

[data-bs-theme="dark"] .analysis-result h3 {
    background: rgba(30, 41, 59, 0.8);
    color: var(--ds-text);
}

[data-bs-theme="dark"] .analysis-result blockquote {
    background: rgba(245, 158, 11, 0.1);
}

[data-bs-theme="dark"] .analysis-result th {
    background: var(--ds-primary-dark);
}

[data-bs-theme="dark"] .analysis-result td {
    border-bottom-color: rgba(51, 65, 85, 0.4);
}

[data-bs-theme="dark"] .analysis-result tr:hover {
    background: rgba(30, 41, 59, 0.6);
}

/* Dark Scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.8);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.9);
}

/* Dark Utilities */
[data-bs-theme="dark"] .bg-light {
    background: rgba(30, 41, 59, 0.5);
}

[data-bs-theme="dark"] .bg-white {
    background: rgba(30, 41, 59, 0.7);
}

[data-bs-theme="dark"] .text-muted {
    color: var(--ds-text-muted);
}

[data-bs-theme="dark"] .border-bottom {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BETA OVERLAY (SkyRadar / Coming Soon modules)
   ═══════════════════════════════════════════════════════════════════════════ */

.beta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.beta-overlay-content {
    text-align: center;
    color: white;
    padding: 3rem;
    max-width: 500px;
}

.beta-overlay-content h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.beta-overlay-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.beta-overlay-banner {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--ds-warning), #d97706);
    color: var(--ds-gray-900);
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1035;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dark mode: how-it-works section */
[data-bs-theme="dark"] .how-it-works-section {
    background: var(--ds-gray-100);
}

/* Dark mode: table-light override */
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th {
    background: rgba(30, 41, 59, 0.4);
}
/* ═══════════════════════════════════════════════════════════════════════════
   SEMANTIC COLOR TOKENS (aliases for --ds-* design tokens)
   Use these in templates and components.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Surfaces */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: var(--ds-gray-50);
    --color-bg-tertiary: var(--ds-gray-100);

    /* Text */
    --color-text-primary: var(--ds-text);
    --color-text-secondary: var(--ds-text-secondary);
    --color-text-muted: var(--ds-text-muted);
    --color-text-inverse: #ffffff;

    /* Borders */
    --color-border: var(--ds-gray-200);
    --color-border-strong: var(--ds-gray-300);

    /* Interactive / Accent */
    --color-accent: var(--ds-primary);
    --color-accent-hover: var(--ds-primary-dark);
    --color-accent-text: #ffffff;

    /* Status */
    --color-success: var(--ds-success);
    --color-warning: var(--ds-warning);
    --color-error: var(--ds-danger);

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;

    /* Nav-specific tokens (used by skybase-nav.js) */
    --nav-bg: rgba(15, 23, 42, 0.98);
    --nav-sub-bg: rgba(30, 41, 59, 0.95);
    --nav-border: rgba(51, 65, 85, 0.5);
    --nav-text: #94a3b8;
    --nav-text-hover: #e2e8f0;
    --nav-brand: #38bdf8;
    --nav-active: #38bdf8;
    --nav-active-bg: rgba(56, 189, 248, 0.12);
    --nav-dd-bg: #1e293b;
    --nav-dd-border: rgba(51, 65, 85, 0.8);
    --nav-dd-text: #cbd5e1;
    --nav-dd-hover-bg: rgba(59, 130, 246, 0.15);
    --nav-dd-active: #60a5fa;
    --nav-sub-title: #60a5fa;
    --nav-pg-active-border: #60a5fa;
}

/* Dark mode semantic tokens */
[data-bs-theme="dark"],
[data-theme="dark"] {
    --color-bg-primary: var(--ds-gray-900);
    --color-bg-secondary: var(--ds-gray-800);
    --color-bg-tertiary: var(--ds-gray-700);

    --color-text-primary: var(--ds-text);
    --color-text-secondary: var(--ds-text-secondary);
    --color-text-muted: var(--ds-text-muted);
    --color-text-inverse: var(--ds-gray-900);

    --color-border: rgba(51, 65, 85, 0.6);
    --color-border-strong: rgba(71, 85, 105, 0.8);
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSABLE LAYOUT CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stack-sm { gap: var(--space-sm); }
.stack-lg { gap: var(--space-lg); }
.stack-xl { gap: var(--space-xl); }

.row-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
}

.row-layout-sm { gap: var(--space-sm); }
.row-layout-lg { gap: var(--space-lg); }

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


/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSABLE TYPOGRAPHY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.heading-lg {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.heading-md {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.heading-sm {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.body {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.body-secondary {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.caption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSABLE COMPONENT CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Secondary button (complement to existing .btn-primary) */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-secondary);
    border-radius: var(--ds-radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Input (extends .form-control) */
.input {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--ds-radius-sm);
    color: var(--color-text-primary);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

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

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-md) 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SKY SUITE NAVIGATION WIDGET STYLES
   Moved from skybase-nav.js embedded <style> to global CSS
   ═══════════════════════════════════════════════════════════════════════════ */

#sbn {
    position: sticky;
    top: 0;
    z-index: 1070;
    font-family: var(--font-sans);
}

/* Row 1: Main bar */
#sbn .sbn-main {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 42px;
}

/* Brand */
#sbn .sbn-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

#sbn .sbn-brand-icon {
    font-size: 1.25rem;
    color: var(--nav-brand);
    margin-right: 0.4rem;
}

#sbn .sbn-brand-text {
    font-weight: 700;
    color: var(--nav-text-hover);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Module tabs */
#sbn .sbn-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

#sbn .sbn-tab {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 5px;
    color: var(--nav-text);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    font-weight: 500;
}

#sbn .sbn-tab:hover {
    color: var(--nav-text-hover);
    background: rgba(255, 255, 255, 0.07);
}

#sbn .sbn-tab.active {
    color: var(--nav-active);
    background: var(--nav-active-bg);
    font-weight: 600;
}

/* Right side of main bar */
#sbn .sbn-right {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-left: auto;
}

#sbn .sbn-sep {
    width: 1px;
    height: 20px;
    background: rgba(71, 85, 105, 0.5);
    margin: 0 0.4rem;
}

#sbn .sbn-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#sbn .sbn-link:hover {
    color: var(--nav-text-hover);
}

/* Dropdown */
#sbn .sbn-dd {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

#sbn .sbn-dd-toggle {
    cursor: pointer;
}

#sbn .sbn-dd-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 0.25rem;
    vertical-align: 0.12em;
    border-top: 0.28em solid;
    border-right: 0.22em solid transparent;
    border-left: 0.22em solid transparent;
    opacity: 0.5;
}

#sbn .sbn-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% - 12px);
    z-index: 1090;
    min-width: 190px;
    padding: 0.4rem 0;
    background: var(--nav-dd-bg);
    border: 1px solid var(--nav-dd-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 0;
    padding-top: 0.5rem;
}

/* Invisible hover bridge above dropdown to prevent gap-induced close */
#sbn .sbn-dd-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -8px;
    right: -8px;
    height: 18px;
    background: transparent;
}

#sbn .sbn-dd-menu.sbn-dd-menu-right {
    right: 0;
    left: auto;
}

#sbn .sbn-dd.hover-open > .sbn-dd-menu,
#sbn .sbn-dd.open > .sbn-dd-menu {
    display: block;
}

#sbn .sbn-dd-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    color: var(--nav-dd-text);
    text-decoration: none;
    transition: background 0.1s;
    white-space: nowrap;
}

#sbn .sbn-dd-item:hover {
    background: var(--nav-dd-hover-bg);
    color: var(--nav-text-hover);
}

#sbn .sbn-dd-item.active {
    color: var(--nav-dd-active);
}

#sbn .sbn-dd-divider {
    height: 1px;
    margin: 0.3rem 0;
    background: rgba(51, 65, 85, 0.6);
}

/* Row 2: Module submenu */
#sbn .sbn-sub {
    background: var(--nav-sub-bg);
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 36px;
    gap: 2px;
}

#sbn .sbn-sub-title {
    color: var(--nav-sub-title);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#sbn .sbn-pg {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    color: var(--nav-text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

#sbn .sbn-pg:hover {
    color: var(--nav-text-hover);
    border-bottom-color: rgba(96, 165, 250, 0.3);
}

#sbn .sbn-pg.active {
    color: var(--nav-text-hover);
    border-bottom-color: var(--nav-pg-active-border);
    font-weight: 500;
}

/* Collapse section — display:contents on desktop, column on mobile */
#sbn .sbn-collapse {
    display: contents;
}

/* Mobile toggle */
#sbn .sbn-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--nav-text);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
    line-height: 1;
}

/* Mobile responsive */
@media (max-width: 992px) {
    #sbn .sbn-toggle {
        display: block;
    }

    #sbn .sbn-collapse {
        display: none;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--nav-border);
    }

    #sbn .sbn-collapse.open {
        display: flex;
    }

    #sbn .sbn-tabs {
        flex-wrap: wrap;
    }

    #sbn .sbn-right {
        margin-left: 0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(51, 65, 85, 0.4);
    }

    #sbn .sbn-sub {
        flex-wrap: wrap;
        padding: 0.25rem 0.75rem;
    }

    #sbn .sbn-dd-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(30, 41, 59, 0.9);
        border-radius: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKY SUITE GLOBAL FOOTER (injected by skybase-nav.js)
   Same dark background as the header navbar.
   ═══════════════════════════════════════════════════════════════════════════ */

#sbn-footer {
    background: var(--nav-bg);
    border-top: 1px solid var(--nav-border);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--nav-text);
}

#sbn-footer .sbn-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#sbn-footer .sbn-footer-links {
    display: flex;
    gap: 1.5rem;
}

#sbn-footer .sbn-footer-links a {
    color: var(--nav-text);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

#sbn-footer .sbn-footer-links a:hover {
    opacity: 1;
    color: var(--nav-text-hover);
}

@media (max-width: 576px) {
    #sbn-footer {
        padding: 1.25rem 1rem;
    }
    #sbn-footer .sbn-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE STYLES (moved from inline <style> block in landing.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30,58,138,0.3) 0%, rgba(15,23,42,0.95) 50%, rgba(30,58,138,0.2) 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(99,102,241,0.06) 0%, transparent 40%);
    animation: subtleFloat 20s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.landing-hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--ds-primary-light);
    margin-bottom: 1.5rem;
}

.module-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pipeline-section { background: rgba(15,23,42,0.8); }

.pipeline-step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.pipeline-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59,130,246,0.2);
    border: 2px solid var(--ds-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    color: var(--ds-primary-light);
}

.pipeline-arrow {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ds-primary);
    font-size: 1.25rem;
    z-index: 1;
}

.pricing-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--ds-primary);
    background: rgba(30,41,59,0.8);
    transform: scale(1.02);
}

.pricing-card:hover { border-color: rgba(59,130,246,0.4); }

.price { font-size: 2.5rem; font-weight: 700; color: var(--ds-gray-900); }
.price small { font-size: 1rem; font-weight: 400; color: var(--ds-text-secondary); }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }

.section-subtitle {
    color: var(--ds-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(30,58,138,0.4) 0%, rgba(15,23,42,0.95) 100%);
    padding: 5rem 0;
}

.landing-nav {
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.landing-footer {
    background: rgba(15,23,42,0.95);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 0;
    color: var(--ds-text-muted);
    font-size: 0.875rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ds-text-secondary);
    font-size: 0.9rem;
}

/* ─── Landing page: module icon color variants ───────────────────────── */
.module-icon-purple  { background: rgba(168,85,247,0.15); color: #a855f7; }
.module-icon-blue    { background: rgba(59,130,246,0.15);  color: var(--ds-primary); }
.module-icon-green   { background: rgba(34,197,94,0.15);   color: #22c55e; }
.module-icon-amber   { background: rgba(245,158,11,0.15);  color: var(--ds-warning); }
.module-icon-red     { background: rgba(239,68,68,0.15);   color: var(--ds-danger); }
.module-icon-indigo  { background: rgba(99,102,241,0.15);  color: #6366f1; }

/* ─── Landing page: dashboard preview stat cards ─────────────────────── */
.stat-card-blue    { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.2); }
.stat-card-green   { background: rgba(34,197,94,0.1);   border: 1px solid rgba(34,197,94,0.2); }
.stat-card-purple  { background: rgba(168,85,247,0.1);  border: 1px solid rgba(168,85,247,0.2); }
.stat-card-amber   { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.2); }

/* ─── Landing page: hero preview card accent border ──────────────────── */
.module-card-accent { border-color: rgba(59,130,246,0.3); }

/* ─── Landing page: window dot decorations ───────────────────────────── */
.window-dot {
    width: 10px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}
.window-dot-red    { background: var(--ds-danger); }
.window-dot-yellow { background: #eab308; }
.window-dot-green  { background: #22c55e; }

/* ─── Color utility classes for specific text colors ─────────────────── */
.text-purple  { color: #a855f7; }
.text-amber   { color: var(--ds-warning); }

/* ─── Landing page: section background ───────────────────────────────── */
.landing-section-bg { background: rgba(15,23,42,0.6); }

/* ─── Landing page: lead text max-width variants ─────────────────────── */
.lead-narrow    { max-width: 540px; }
.lead-narrower  { max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── Pipeline step label ────────────────────────────────────────────── */
.pipeline-label { font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME PREVIEW CARDS (admin/themes.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.theme-preview-dark {
    background: var(--ds-glass-bg);
    color: var(--ds-text);
    border-color: var(--ds-glass-border);
}

.theme-preview-dark h5 { color: var(--ds-text); }
.theme-preview-dark p  { color: var(--ds-text-secondary); }

.theme-preview-light {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ds-gray-800);
}

.theme-preview-light h5 { color: var(--ds-gray-800); }
.theme-preview-light p  { color: var(--ds-gray-500); }

/* ─── Color swatch for theme variable reference ──────────────────────── */
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-block;
}

/* ─── Form select max-width for compact selects ──────────────────────── */
.form-select-narrow { max-width: 200px; }

/* ═══════════════════════════════════════════════════════════════════════════
   BASE NAV UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-icon-brand {
    font-size: 1.5rem;
    color: var(--ds-accent);
}

.nav-disabled {
    cursor: default;
    opacity: 0.5;
}

.nav-coming-soon {
    cursor: default;
}

.badge-xs { font-size: 0.55rem; }
.badge-sm { font-size: 0.6rem; }

/* ─── Impersonation banner z-index ───────────────────────────────────── */
.impersonation-banner { z-index: 1060; }

/* ═══════════════════════════════════════════════════════════════════════════
   JOB DETAIL PIPELINE
   ═══════════════════════════════════════════════════════════════════════════ */

.pipeline-node {
    width: 40px;
    height: 40px;
}

.pipeline-node-active {
    background: var(--ds-accent);
    color: var(--color-text-inverse);
}

.pipeline-node-inactive {
    background: var(--ds-gray-200);
    color: var(--ds-gray-400);
}

.pipeline-dot { font-size: 0.5rem; }

.pipeline-connector { margin-top: -16px; }

.pipeline-hr-active {
    border-color: var(--ds-accent);
    border-width: 2px;
}

.pipeline-hr-inactive {
    border-color: var(--color-border);
    border-width: 2px;
}

/* ─── Activity timeline node ─────────────────────────────────────────── */
.timeline-node {
    width: 32px;
    height: 32px;
}

.timeline-icon { font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   ICON HERO SIZES (for large decorative icons)
   ═══════════════════════════════════════════════════════════════════════════ */

.icon-hero-lg {
    font-size: 5rem;
}

.icon-hero-md {
    font-size: 4rem;
}

.icon-hero-sm {
    font-size: 3rem;
    color: var(--ds-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTRACTS
   ═══════════════════════════════════════════════════════════════════════════ */

.terms-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.signature-input {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
}

.clickable-row { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PRICING COMPACT INPUT
   ═══════════════════════════════════════════════════════════════════════════ */

.input-compact-sm { max-width: 120px; }
.input-compact-xs { max-width: 100px; }

/* ─── Discount code uppercase ────────────────────────────────────────── */
.text-uppercase-input { text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════════════════════
   MISC UTILITY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Empty state icon (e.g. contacts empty) */
.empty-state-icon {
    font-size: 3rem;
    opacity: 0.3;
}

/* Dashboard module card maintenance */
.module-maintenance { filter: grayscale(0.6); }

/* Color input display (profile branding) */
.color-preview-input { max-width: 100px; }

/* white-space pre-wrap for ticket content */
.pre-wrap { white-space: pre-wrap; }

/* Subscription featured card border */
.border-featured { border-width: 2px; }

/* Leaderboard #1 card */

/* ─── Color swatches for theme variable reference (admin/themes) ─────── */
.swatch-primary  { background: var(--ds-primary); }
.swatch-accent   { background: var(--ds-accent); }
.swatch-success  { background: var(--ds-success); }
.swatch-warning  { background: var(--ds-warning); }
.swatch-danger   { background: var(--ds-danger); }

/* ============================================
   Card Glow Utility
   ============================================ */
.card-glow {
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08), 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-glow:hover {
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
}
[data-bs-theme='dark'] .card-glow {
    border-color: rgba(148, 163, 184, 0.15);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.05), 0 2px 12px rgba(0, 0, 0, 0.2);
}
[data-bs-theme='dark'] .card-glow:hover {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Vista Action Button
   ============================================ */
.btn-vista {
    background: var(--ds-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background 0.15s, box-shadow 0.15s;
}
.btn-vista:hover {
    background: var(--ds-primary-dark, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-vista:active {
    background: var(--ds-primary-dark, #1d4ed8);
    color: white;
}
.btn-vista:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
[data-bs-theme='dark'] .btn-vista {
    background: var(--ds-primary-light, #60a5fa);
    color: #0f172a;
}
[data-bs-theme='dark'] .btn-vista:hover {
    background: var(--ds-primary, #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}
