/* ============================================================
   MAILWOK DESIGN SYSTEM — Brevo-Inspired with Light/Dark Theme
   Font: Inter · Pill buttons · Generous spacing · Premium
   DEFAULT: Light Theme
   ============================================================ */

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

/* ── Light Theme (Default) ── */
:root {
    /* Core Brand */
    --orange: #FF5A28;
    --orange-hover: #e84d1e;
    --orange-light: rgba(255, 90, 40, 0.08);
    --orange-glow: 0 4px 20px rgba(255, 90, 40, 0.2);

    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F2F5;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --card-bg: #FFFFFF;
    --card-hover: #FAFAFA;
    --border: #E5E7EB;
    --border-light: #D1D5DB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --input-bg: #F9FAFB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --hero-glow: rgba(255, 90, 40, 0.06);
    --grid-line: rgba(0, 0, 0, 0.03);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --code-bg: #1E1E2E;

    /* Semantic */
    --success: #16A34A;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;

    /* Layout */
    --sidebar-width: 240px;
    --topnav-height: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 100px;
    --transition: 180ms ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --bg-primary: #070707;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #111111;
    --bg-nav: rgba(7, 7, 7, 0.92);
    --card-bg: #111111;
    --card-hover: #1A1A1A;
    --border: #1F1F1F;
    --border-light: #2A2A2A;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --input-bg: #0D0D0D;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --hero-glow: rgba(255, 90, 40, 0.08);
    --grid-line: rgba(255, 255, 255, 0.02);
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --code-bg: #0D0D0D;
}

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

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

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

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

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

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

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

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

/* ── Buttons (Brevo pill-shaped) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 2px 12px rgba(255, 90, 40, 0.2);
}

.btn-primary:hover {
    background: var(--orange-hover);
    box-shadow: var(--orange-glow);
    transform: translateY(-1px);
    color: #fff;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
    padding: 12px 20px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-danger {
    background: var(--error);
    color: #fff;
    border-color: var(--error);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.w-full {
    width: 100%;
}

/* ── Theme Toggle ── */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

.form-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 40, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* ── Cards ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.badge-error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error);
}

.badge-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--info);
}

.badge-orange {
    background: var(--orange-light);
    color: var(--orange);
}

/* ── Data Tables ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: var(--bg-secondary);
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--card-hover);
}

.data-table tbody td {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── Container ── */
.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Animations ── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.15s;
}

.fade-in-delay-2 {
    animation-delay: 0.3s;
}

.fade-in-delay-3 {
    animation-delay: 0.45s;
}

.fade-in-delay-4 {
    animation-delay: 0.6s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .topnav {
        left: 0;
    }
}

/* ============================================================
   AUTH PAGES — Login, Signup, Forgot Password
   ============================================================ */
.auth-card-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-secondary);
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, var(--hero-glow), transparent),
        radial-gradient(circle at 20% 80%, rgba(255, 90, 40, 0.03), transparent);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* Ensure auth card is always visible in dark mode */
[data-theme="dark"] .auth-card {
    border-color: #2A2A2A;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .auth-card-centered {
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 90, 40, 0.12), transparent),
        radial-gradient(circle at 20% 80%, rgba(255, 90, 40, 0.05), transparent);
}

.logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    font-family: var(--font-body);
    letter-spacing: -0.5px;
}

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

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.oauth-buttons {
    display: flex;
    gap: 12px;
}

.oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.oauth-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.oauth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--text-primary);
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--error);
}

.toast-info {
    background: #3B82F6;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .auth-form-header h1 {
        font-size: 22px;
    }

    .oauth-buttons {
        flex-direction: column;
    }
}

/* ============================================================
   AUTH TWO-PANEL LAYOUT (Signup page)
   ============================================================ */
.auth-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

.auth-panel-left {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 90, 40, 0.08), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 90, 40, 0.06), transparent 40%);
    z-index: 0;
}

.auth-panel-left h1,
.auth-panel-left h2,
.auth-panel-left h3,
.auth-panel-left h4,
.auth-panel-left p {
    color: #1e293b;
}

.auth-panel-left .card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Dark mode: auth left panel */
[data-theme="dark"] .auth-panel-left {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

[data-theme="dark"] .auth-panel-left::before {
    background: radial-gradient(circle at 30% 70%, rgba(255, 90, 40, 0.15), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 90, 40, 0.1), transparent 40%);
}

[data-theme="dark"] .auth-panel-left h1,
[data-theme="dark"] .auth-panel-left h2,
[data-theme="dark"] .auth-panel-left h3,
[data-theme="dark"] .auth-panel-left h4,
[data-theme="dark"] .auth-panel-left p {
    color: #fff;
}

[data-theme="dark"] .auth-panel-left .card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* Auth brand text */
.auth-brand-text {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 300;
    color: #475569;
}

.auth-brand-bold {
    font-weight: 800;
    color: #1e293b;
}

[data-theme="dark"] .auth-brand-text {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .auth-brand-bold {
    color: #fff;
}

.auth-panel-right {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
    overflow-y: auto;
    min-height: 100vh;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

/* Password strength */
.password-strength {
    margin-top: 6px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 3px;
    background: var(--orange);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero {
    text-align: center;
    padding: 80px 24px 40px;
    background: var(--bg-secondary);
}

.pricing-toggle {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-tertiary);
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 40px;
}

.pricing-toggle .btn-sub {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.pricing-toggle .btn-sub.active {
    background: var(--orange);
    color: #fff;
}

.save-badge {
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange), var(--shadow-md);
}

.pop-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.plan-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 14px;
}

.badge-green {
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Compare table */
.compare-section {
    margin: 0 auto;
    max-width: 1100px;
    padding: 40px 24px 60px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.compare-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.compare-check {
    color: var(--success);
    font-weight: 700;
}

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

/* FAQ */
.faq-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.faq-q:hover {
    background: var(--bg-tertiary);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a-inner {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-a {
    max-height: 300px;
}

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 72px);
}

.docs-sidebar {
    width: 260px;
    padding: 24px;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    flex-shrink: 0;
}

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

.docs-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Endpoint blocks */
.endpoint {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.endpoint-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.endpoint-method.post {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.endpoint-method.get {
    background: rgba(22, 163, 74, 0.1);
    color: #16A34A;
}

.endpoint-method.put {
    background: rgba(217, 119, 6, 0.1);
    color: #D97706;
}

.endpoint-method.delete {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    margin-left: 8px;
    font-weight: 500;
}

.endpoint-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Code blocks */
.code-block {
    background: var(--code-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-lang {
    font-size: 11px;
    color: #818cf8;
    font-weight: 600;
    text-transform: uppercase;
}

.code-block-copy {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.code-block-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.code-block pre {
    padding: 14px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
}

/* Syntax highlighting */
.hl-key {
    color: #818cf8;
}

.hl-str {
    color: #a5d6a7;
}

.hl-fn {
    color: #ffd54f;
}

.hl-comment {
    color: #6b7280;
    font-style: italic;
}

.hl-num {
    color: #f48fb1;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.param-table th,
.param-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.param-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.param-required {
    color: var(--error);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.response-block {
    margin: 12px 0;
}

.response-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.callout {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
    border-left: 4px solid;
}

.callout-tip {
    background: rgba(22, 163, 74, 0.05);
    border-color: var(--success);
    color: var(--text-primary);
}

.callout-info {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3B82F6;
    color: var(--text-primary);
}

.callout-warning {
    background: rgba(217, 119, 6, 0.05);
    border-color: var(--warning);
    color: var(--text-primary);
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.feat-hero {
    text-align: center;
    padding: 80px 24px 40px;
    background: var(--bg-secondary);
}

.feat-block {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.feat-block.reverse {
    flex-direction: row-reverse;
}

.feat-block-text {
    flex: 1;
}

.feat-block-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
    margin-bottom: 12px;
}

.feat-visual {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    min-height: 240px;
}

.feat-divider {
    max-width: 1100px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--border);
}

/* Code visual */
.code-visual,
.code-header {
    font-family: var(--font-mono);
    font-size: 12px;
}

.code-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Workflow visual */
.workflow-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wf-node {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.wf-node-icon {
    font-size: 18px;
}

.wf-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

/* Mock dashboard */
.mock-dash {
    display: grid;
    gap: 12px;
}

.mock-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.mock-card-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mock-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-top: 12px;
}

.mock-chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--orange);
    min-height: 8px;
}

.mock-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    overflow: hidden;
    margin-top: 4px;
}

.mock-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--orange);
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    flex-shrink: 0;
}

/* Logo dot animation */
.logo-dot {
    display: inline-block;
    color: var(--orange);
    animation: logoBlink 2s infinite;
}

@keyframes logoBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--orange), #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-sm {
    font-size: 13px;
}

.card-glow {
    box-shadow: 0 0 30px rgba(255, 90, 40, 0.08);
}

/* Counter animation */
.counter-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

/* Preview window */
.preview-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-url {
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-body {
    display: flex;
    min-height: 260px;
}

.preview-sidebar {
    width: 160px;
    padding: 16px;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
}

.preview-sidebar-item {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 4px;
    color: var(--text-secondary);
    cursor: default;
}

.preview-sidebar-item.active {
    background: var(--orange-light);
    color: var(--orange);
    font-weight: 600;
}

.preview-main {
    flex: 1;
    padding: 16px;
}

.preview-greeting {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.preview-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.preview-stat {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

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

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

.preview-chart-area {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
}

.preview-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
}

.preview-chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.preview-chart-label {
    font-size: 9px;
    color: var(--text-muted);
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

/* Responsive fixes — Tablet */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-panel-left {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 40px 24px 32px;
    }

    .auth-panel-right {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 32px 24px 48px;
    }
}

/* Responsive fixes — Mobile */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-panel-left {
        display: none;
    }

    .auth-panel-right {
        flex: none;
        width: 100%;
        min-height: 100vh;
        padding: 24px;
    }

    .feat-block,
    .feat-block.reverse {
        flex-direction: column;
        gap: 24px;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-main {
        padding: 20px;
    }

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

    .onboarding-steps-indicator {
        gap: 4px;
    }

    .step-dot-label {
        display: none;
    }

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .onboarding-card {
        padding: 28px 20px;
    }
}

/* ============================================================
   ONBOARDING WIZARD
   ============================================================ */
.onboarding-wrapper {
    min-height: 100vh;
    background: var(--bg-secondary);
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, var(--hero-glow), transparent),
        radial-gradient(circle at 20% 80%, rgba(255, 90, 40, 0.03), transparent);
    display: flex;
    flex-direction: column;
}

.onboarding-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.onboarding-progress {
    height: 3px;
    background: var(--border);
    position: relative;
}

.onboarding-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ff8a65);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.onboarding-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px 0;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: all 0.3s ease;
}

.step-dot-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.step-dot-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step-dot.active .step-dot-number {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255, 90, 40, 0.3);
}

.step-dot.active .step-dot-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step-dot.completed .step-dot-number {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.step-dot.completed .step-dot-number::after {
    content: '✓';
    font-size: 12px;
}

.step-dot.completed .step-dot-number {
    font-size: 0;
    /* hide number text, show checkmark via ::after */
}

.step-connector {
    width: 32px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    flex-shrink: 0;
}

.onboarding-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 24px 60px;
}

.onboarding-step {
    display: none;
    width: 100%;
    max-width: 580px;
}

.onboarding-step.active {
    display: block;
}

.onboarding-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.onboarding-step-header {
    margin-bottom: 28px;
}

.onboarding-step-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.onboarding-step-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Use Case Selection Grid */
.usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.usecase-option {
    cursor: pointer;
}

.usecase-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.usecase-card:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.usecase-card.selected {
    border-color: var(--orange);
    background: var(--orange-light);
    box-shadow: 0 0 0 1px var(--orange), 0 2px 12px rgba(255, 90, 40, 0.1);
}

.usecase-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.usecase-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.usecase-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Domain Setup Info Box */
.domain-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

/* Quick Actions Grid (Step 4) */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.quick-action-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.quick-action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-action-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quick-action-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   VERIFY EMAIL PAGE
   ============================================================ */
.verify-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.verify-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon-wrapper {
    background: rgba(22, 163, 74, 0.08);
}

.info-icon-wrapper {
    background: rgba(37, 99, 235, 0.08);
}

.error-icon-wrapper {
    background: rgba(220, 38, 38, 0.08);
}

/* Spinner utility */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* Confetti wrapper */
.confetti-wrapper {
    position: relative;
    display: inline-block;
}