/* =============================================
   HookSpy — Design System & Themes
   ============================================= */

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* =============================================
   Design Tokens — Default theme: Gray
   ============================================= */
:root {
    /* ── Surfaces, text & borders (all theme-controlled) ── */
    --bg-base: #010409;
    --bg-primary: #0d1117;
    --bg-card: #161b22;
    --bg-raised: #21262d;

    --border: rgba(48, 54, 61, 0.85);

    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #586069;

    --scrollbar-thumb: #30363d;
    --scrollbar-thumb-hover: #484f58;

    /* Semantic (always fixed) */
    --success: #22c55e;
    --success-dim: rgba(34, 197, 94, 0.1);
    --danger: #f43f5e;
    --danger-dim: rgba(244, 63, 94, 0.1);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.1);
    --cyan: #38bdf8;
    --cyan-dim: rgba(56, 189, 248, 0.1);

    /* Radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-full: 9999px;

    /* Shadows (non-accent) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.65);

    /* Easing */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Accent palette (overridden per theme) ── */
    --accent: #2f81f7;
    --accent-2: #58a6ff;
    --accent-hover: #1f6feb;
    --accent-light: #cae8ff; /* lighter tint — code text, badges */
    --gradient: linear-gradient(135deg, #2f81f7 0%, #58a6ff 100%);

    /* Pre-baked alpha layers (also overridden per theme) */
    --accent-tint: rgba(47, 129, 247, 0.08); /* focus rings, active bg */
    --accent-subtle: rgba(47, 129, 247, 0.12); /* card borders, modal bg */
    --accent-glow: rgba(47, 129, 247, 0.2); /* general glow */
    --accent-border: rgba(47, 129, 247, 0.25); /* visible borders       */
    --accent-ring: rgba(47, 129, 247, 0.45); /* strong rings          */
    --accent-shadow: rgba(47, 129, 247, 0.28); /* shadow / logo glow    */
    --shadow-accent: 0 0 22px rgba(47, 129, 247, 0.18);

    /* Ambient body & auth-page glows */
    --ambient-1: rgba(47, 129, 247, 0.09);
    --ambient-2: rgba(88, 166, 255, 0.07);
    --auth-glow-1: rgba(47, 129, 247, 0.14);
    --auth-glow-2: rgba(88, 166, 255, 0.1);

    /* Derived border aliases */
    --border-hover: var(--accent-border);
    --border-focus: var(--accent-ring);

    /* ── UI component tokens (theme-controlled) ── */
    --modal-overlay: rgba(4, 6, 14, 0.78);
    --auth-card-bg: rgba(15, 22, 35, 0.88);
    --google-btn-bg: #ffffff;
    --google-btn-fg: #111827;
    --google-btn-border: transparent;
    --tooltip-bg: #161b22;
    --tooltip-fg: #c9d1d9;
    --tooltip-border: rgba(255, 255, 255, 0.08);

    /* ── Shadow tint (lightens on light themes) ── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.65);
}

/* =============================================
   Theme Overrides
   ============================================= */

/* ── Option A: Electric Sky ── */
:root[data-theme="sky"] {
    --tooltip-bg: #0b1a2c;
    --tooltip-fg: #dce8f5;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #05090f;
    --bg-primary: #07111e;
    --bg-card: #0b1a2c;
    --bg-raised: #10233e;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #dce8f5;
    --text-secondary: #7a9ab8;
    --text-muted: #3d6080;
    --scrollbar-thumb: #1a2e48;
    --scrollbar-thumb-hover: #2a4060;

    --accent: #0ea5e9;
    --accent-2: #38bdf8;
    --accent-hover: #0284c7;
    --accent-light: #7dd3fc;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);

    --accent-tint: rgba(14, 165, 233, 0.08);
    --accent-subtle: rgba(14, 165, 233, 0.12);
    --accent-glow: rgba(14, 165, 233, 0.2);
    --accent-border: rgba(14, 165, 233, 0.25);
    --accent-ring: rgba(14, 165, 233, 0.45);
    --accent-shadow: rgba(14, 165, 233, 0.28);
    --shadow-accent: 0 0 22px rgba(14, 165, 233, 0.18);

    --ambient-1: rgba(14, 165, 233, 0.09);
    --ambient-2: rgba(56, 189, 248, 0.07);
    --auth-glow-1: rgba(14, 165, 233, 0.14);
    --auth-glow-2: rgba(56, 189, 248, 0.1);
}

/* ── Option B: Seafoam / Teal ── */
:root[data-theme="teal"] {
    --tooltip-bg: #0c2320;
    --tooltip-fg: #d6eeea;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #05100d;
    --bg-primary: #071a17;
    --bg-card: #0c2320;
    --bg-raised: #11312c;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #d6eeea;
    --text-secondary: #78aaa4;
    --text-muted: #3d7068;
    --scrollbar-thumb: #1a3430;
    --scrollbar-thumb-hover: #284844;

    --accent: #14b8a6;
    --accent-2: #2dd4bf;
    --accent-hover: #0d9488;
    --accent-light: #5eead4;
    --gradient: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);

    --accent-tint: rgba(20, 184, 166, 0.08);
    --accent-subtle: rgba(20, 184, 166, 0.12);
    --accent-glow: rgba(20, 184, 166, 0.2);
    --accent-border: rgba(20, 184, 166, 0.25);
    --accent-ring: rgba(20, 184, 166, 0.45);
    --accent-shadow: rgba(20, 184, 166, 0.28);
    --shadow-accent: 0 0 22px rgba(20, 184, 166, 0.18);

    --ambient-1: rgba(20, 184, 166, 0.09);
    --ambient-2: rgba(45, 212, 191, 0.07);
    --auth-glow-1: rgba(20, 184, 166, 0.14);
    --auth-glow-2: rgba(45, 212, 191, 0.1);
}

/* ── Option C: Lime / Hacker ── */
:root[data-theme="lime"] {
    --tooltip-bg: #131e0e;
    --tooltip-fg: #dff0cf;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #070a05;
    --bg-primary: #0e1609;
    --bg-card: #131e0e;
    --bg-raised: #1b2c14;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #dff0cf;
    --text-secondary: #88a866;
    --text-muted: #4a6838;
    --scrollbar-thumb: #243218;
    --scrollbar-thumb-hover: #344828;

    --accent: #84cc16;
    --accent-2: #a3e635;
    --accent-hover: #65a30d;
    --accent-light: #bef264;
    --gradient: linear-gradient(135deg, #84cc16 0%, #a3e635 100%);

    --accent-tint: rgba(132, 204, 22, 0.08);
    --accent-subtle: rgba(132, 204, 22, 0.12);
    --accent-glow: rgba(132, 204, 22, 0.2);
    --accent-border: rgba(132, 204, 22, 0.25);
    --accent-ring: rgba(132, 204, 22, 0.45);
    --accent-shadow: rgba(132, 204, 22, 0.28);
    --shadow-accent: 0 0 22px rgba(132, 204, 22, 0.18);

    --ambient-1: rgba(132, 204, 22, 0.08);
    --ambient-2: rgba(163, 230, 53, 0.06);
    --auth-glow-1: rgba(132, 204, 22, 0.12);
    --auth-glow-2: rgba(163, 230, 53, 0.09);
}

/* ── Option D: Soft Blue ── */
:root[data-theme="blue"] {
    --tooltip-bg: #0c1b2e;
    --tooltip-fg: #dce6f5;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #060a10;
    --bg-primary: #08111e;
    --bg-card: #0c1b2e;
    --bg-raised: #122540;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #dce6f5;
    --text-secondary: #7898b8;
    --text-muted: #3d5c7c;
    --scrollbar-thumb: #1a2e48;
    --scrollbar-thumb-hover: #2a4060;

    --accent: #58a6ff;
    --accent-2: #79c0ff;
    --accent-hover: #388bfd;
    --accent-light: #a5c8ff;
    --gradient: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);

    --accent-tint: rgba(88, 166, 255, 0.08);
    --accent-subtle: rgba(88, 166, 255, 0.12);
    --accent-glow: rgba(88, 166, 255, 0.2);
    --accent-border: rgba(88, 166, 255, 0.25);
    --accent-ring: rgba(88, 166, 255, 0.45);
    --accent-shadow: rgba(88, 166, 255, 0.28);
    --shadow-accent: 0 0 22px rgba(88, 166, 255, 0.18);

    --ambient-1: rgba(88, 166, 255, 0.09);
    --ambient-2: rgba(121, 192, 255, 0.07);
    --auth-glow-1: rgba(88, 166, 255, 0.14);
    --auth-glow-2: rgba(121, 192, 255, 0.1);
}

/* ── Option E: Amber / Honey ── */
:root[data-theme="amber"] {
    --tooltip-bg: #201710;
    --tooltip-fg: #f0e8d8;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #100c04;
    --bg-primary: #19120a;
    --bg-card: #201710;
    --bg-raised: #2c2014;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #f0e8d8;
    --text-secondary: #b08850;
    --text-muted: #6a5030;
    --scrollbar-thumb: #3a2c18;
    --scrollbar-thumb-hover: #4a3c26;

    --accent: #f59e0b;
    --accent-2: #fbbf24;
    --accent-hover: #d97706;
    --accent-light: #fcd34d;
    --gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

    --accent-tint: rgba(245, 158, 11, 0.08);
    --accent-subtle: rgba(245, 158, 11, 0.12);
    --accent-glow: rgba(245, 158, 11, 0.2);
    --accent-border: rgba(245, 158, 11, 0.25);
    --accent-ring: rgba(245, 158, 11, 0.45);
    --accent-shadow: rgba(245, 158, 11, 0.28);
    --shadow-accent: 0 0 22px rgba(245, 158, 11, 0.18);

    --ambient-1: rgba(245, 158, 11, 0.08);
    --ambient-2: rgba(251, 191, 36, 0.06);
    --auth-glow-1: rgba(245, 158, 11, 0.12);
    --auth-glow-2: rgba(251, 191, 36, 0.09);
}

/* ── Option F: Gray Dark ── */
:root[data-theme="indigo"] {
    --tooltip-bg: #18213a;
    --tooltip-fg: #dde4f0;
    --tooltip-border: rgba(255, 255, 255, 0.07);

    --bg-base: #07090f;
    --bg-primary: #0c1018;
    --bg-card: #0f1623;
    --bg-raised: #18213a;
    --border: rgba(255, 255, 255, 0.09);
    --text-primary: #dde4f0;
    --text-secondary: #8895aa;
    --text-muted: #4a5e78;
    --scrollbar-thumb: #1e2d47;
    --scrollbar-thumb-hover: #2e4060;

    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-hover: #4f46e5;
    --accent-light: #a5b4fc;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --accent-tint: rgba(99, 102, 241, 0.08);
    --accent-subtle: rgba(99, 102, 241, 0.12);
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-border: rgba(99, 102, 241, 0.25);
    --accent-ring: rgba(99, 102, 241, 0.45);
    --accent-shadow: rgba(99, 102, 241, 0.28);
    --shadow-accent: 0 0 22px rgba(99, 102, 241, 0.18);

    --ambient-1: rgba(99, 102, 241, 0.09);
    --ambient-2: rgba(139, 92, 246, 0.07);
    --auth-glow-1: rgba(99, 102, 241, 0.14);
    --auth-glow-2: rgba(139, 92, 246, 0.1);
}

/* ── Option G: Gray Light ── */
:root[data-theme="gray-light"] {
    /* Surfaces */
    --bg-base: #f6f8fa;
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --bg-raised: #f6f8fa;
    --border: rgba(208, 215, 222, 0.9);
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --text-muted: #8c959f;
    --scrollbar-thumb: #c8ccd0;
    --scrollbar-thumb-hover: #9ba0a6;

    /* Accent */
    --accent: #0969da;
    --accent-2: #218bff;
    --accent-hover: #0550ae;
    --accent-light: #0550ae;
    --gradient: linear-gradient(135deg, #0969da 0%, #218bff 100%);

    --accent-tint: rgba(9, 105, 218, 0.07);
    --accent-subtle: rgba(9, 105, 218, 0.1);
    --accent-glow: rgba(9, 105, 218, 0.15);
    --accent-border: rgba(9, 105, 218, 0.3);
    --accent-ring: rgba(9, 105, 218, 0.4);
    --accent-shadow: rgba(9, 105, 218, 0.2);
    --shadow-accent: 0 0 20px rgba(9, 105, 218, 0.12);

    --ambient-1: rgba(9, 105, 218, 0.04);
    --ambient-2: rgba(33, 139, 255, 0.03);
    --auth-glow-1: rgba(9, 105, 218, 0.07);
    --auth-glow-2: rgba(33, 139, 255, 0.05);

    /* Shadows — softer on light backgrounds */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 28px rgba(0, 0, 0, 0.12);

    /* UI components */
    --modal-overlay: rgba(0, 0, 0, 0.45);
    --auth-card-bg: #ffffff;
    --google-btn-bg: #f6f8fa;
    --google-btn-fg: #1f2328;
    --google-btn-border: #d0d7de;
    --tooltip-bg: #24292f;
    --tooltip-fg: #f0f6fc;
    --tooltip-border: rgba(0, 0, 0, 0.15);
}

/* =============================================
   Base
   ============================================= */
html {
    font-size: 16px;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(
            ellipse 65% 45% at 10% -5%,
            var(--ambient-1) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 50% 40% at 90% 105%,
            var(--ambient-2) 0%,
            transparent 100%
        );
    background-attachment: fixed;
}

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

/* =============================================
   Layout
   ============================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* ── Header ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 1px;
    background: var(--gradient);
}

@media (max-width: 768px) {
    header {
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem 0;
    }
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px var(--accent-ring),
        var(--shadow-accent);
    transition: box-shadow 0.2s var(--ease);
}

.logo-icon:hover {
    box-shadow:
        0 0 0 1px var(--accent-ring),
        0 0 32px var(--accent-shadow);
}

.logo span {
    background: linear-gradient(
        135deg,
        var(--text-primary) 40%,
        rgba(140, 160, 210, 0.75)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Header right cluster ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =============================================
   Theme Switcher
   ============================================= */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
}

.theme-swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: var(--swatch-color);
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.15s var(--ease-spring),
        border-color 0.15s;
}

.theme-swatch:hover {
    transform: scale(1.28);
}

.theme-swatch.active {
    border-color: rgba(255, 255, 255, 0.75);
    transform: scale(1.18);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--accent-glow) inset;
}

.btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px var(--accent-glow),
        0 0 0 1px var(--accent-glow) inset;
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    background: var(--danger-dim);
    border-color: var(--danger);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* =============================================
   Main Layout Grid
   ============================================= */
.layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.125rem;
    height: fit-content;
    position: sticky;
    top: 1.5rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    padding: 0.1rem 0.5rem;
    border-radius: var(--r-full);
    min-width: 20px;
    text-align: center;
}

.sidebar-new-btn {
    width: 100%;
    background: var(--bg-raised);
    border: 1px solid var(--accent-border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
    font-family: inherit;
}

.sidebar-new-btn:hover {
    color: var(--accent-2);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.sidebar-new-btn:active {
    opacity: 0.75;
}

.webhook-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.webhook-item {
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.16s var(--ease);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.webhook-item:hover {
    background: var(--bg-raised);
    border-color: var(--border);
}

.webhook-item.active {
    background: var(--accent-tint);
    border-color: var(--accent-border);
}

.webhook-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2.5px;
    background: var(--gradient);
    border-radius: 0 2px 2px 0;
}

.webhook-item.unread {
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.04);
}

.webhook-item.unread:hover {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.07);
}

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

.webhook-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
}

.unread-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.webhook-id {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    letter-spacing: -0.01em;
}

.webhook-created-at {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.webhook-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.webhook-item:hover .webhook-actions {
    opacity: 1;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 0.875rem;
}

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

.icon-btn.danger:hover {
    color: var(--danger);
    background: var(--danger-dim);
}

/* =============================================
   Main Content Panel
   ============================================= */
.main-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    min-height: 560px;
    overflow: hidden;
    min-width: 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.content-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* =============================================
   Search & Filter
   ============================================= */
.search-filter {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5625rem 0.875rem 0.5625rem 2.375rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

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

.search-box.has-value .search-input {
    padding-right: 2.25rem;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--r-xs);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        color 0.15s,
        background 0.15s;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: var(--bg-base);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-btn {
    padding: 0.5625rem 0.875rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.16s;
    font-size: 0.875rem;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.search-results-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0 0.125rem 0.625rem;
}

mark.search-highlight {
    background: var(--accent-tint);
    color: var(--accent-light);
    border-radius: 2px;
    padding: 0 2px;
    font-style: normal;
    font-weight: 600;
    border-bottom: 1.5px solid var(--accent);
}

/* =============================================
   Request Cards
   ============================================= */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.request-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition:
        border-color 0.16s,
        box-shadow 0.16s;
    min-width: 0;
}

.request-card:hover {
    border-color: var(--accent-glow);
}

.request-card.expanded {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 1px var(--accent-tint) inset;
}

.request-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.14s;
}

.request-header:hover {
    background: var(--accent-tint);
}

.request-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

/* =============================================
   Badges
   ============================================= */
.method-badge {
    padding: 0.175rem 0.575rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.method-post {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.method-get {
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.method-put {
    background: var(--accent-tint);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
}
.method-patch {
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.method-delete {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.duration-badge {
    padding: 0.175rem 0.575rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.size-badge {
    padding: 0.175rem 0.575rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    background: var(--accent-tint);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Timestamps ── */
.request-time {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.request-time-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: right;
}

.request-time-precise {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    letter-spacing: -0.025em;
}

.request-time-relative {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.expand-icon {
    color: var(--text-secondary);
    transition: transform 0.22s var(--ease);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.request-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* ── Expanded body ── */
.request-body {
    display: none;
    border-top: 1px solid var(--border);
}

.request-card.expanded .request-body {
    display: block;
}

.request-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-width: 0;
}

.request-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 10px;
    border-radius: 1.5px;
    background: var(--gradient);
    flex-shrink: 0;
}

/* =============================================
   Code Block
   ============================================= */
.code-block {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.875rem 1rem;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 480px;
    max-width: 100%;
    line-height: 1.65;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    color: var(--accent-light);
    position: relative;
}

.code-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--gradient);
    opacity: 0.45;
    border-radius: var(--r-md) var(--r-md) 0 0;
}

/* =============================================
   Key / Value Table
   ============================================= */
.key-value-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.key-value-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-base);
    border-radius: var(--r-xs);
    border: 1px solid transparent;
    transition: border-color 0.14s;
}

.key-value-item:hover {
    border-color: var(--border);
}

.key {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
}

.value {
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    word-break: break-all;
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.2;
    display: block;
    filter: grayscale(0.4);
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.45;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.empty-state p {
    font-size: 0.875rem;
    opacity: 0.35;
}

/* =============================================
   Modal
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    width: 90%;
    max-width: 440px;
    border: 1px solid var(--accent-subtle);
    box-shadow:
        var(--shadow-lg),
        0 0 80px var(--accent-tint);
    animation: modalIn 0.2s var(--ease);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.375rem;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.125rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input {
    width: 100%;
    padding: 0.5625rem 0.75rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}

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

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

.modal-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    margin-top: 1.375rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--border);
}

/* =============================================
   Endpoint Display
   ============================================= */
.endpoint-display {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.endpoint-display::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5px;
    background: var(--gradient);
}

.endpoint-url {
    font-family:
        "JetBrains Mono", "Fira Code", "Cascadia Code", "Courier New", monospace;
    font-size: 0.875rem;
    color: var(--accent-light);
    word-break: break-all;
    flex: 1;
    min-width: 0;
    padding-left: 0.5rem;
    letter-spacing: -0.01em;
}

.copy-btn {
    background: var(--accent-tint);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.375rem 0.875rem;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.16s;
}

.copy-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-ring);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* =============================================
   Auth Page
   ============================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 55% at 20% 10%,
            var(--auth-glow-1) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 55% 50% at 80% 90%,
            var(--auth-glow-2) 0%,
            transparent 70%
        );
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 380px;
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--accent-subtle);
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    box-shadow:
        var(--shadow-lg),
        0 0 120px var(--accent-tint);
    text-align: center;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px var(--accent-ring),
        0 8px 32px var(--accent-shadow);
}

.auth-logo span {
    background: linear-gradient(
        135deg,
        var(--text-primary) 40%,
        rgba(140, 160, 210, 0.75)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--google-btn-bg);
    color: var(--google-btn-fg);
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--google-btn-border);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}

.google-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 14px 32px rgba(0, 0, 0, 0.25);
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.auth-footer a {
    color: var(--accent);
}

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

/* =============================================
   Toast
   ============================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
    pointer-events: none;
}

.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-primary);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
        justify-content: space-between;
    }
    .theme-switcher {
        padding: 4px 7px;
        gap: 4px;
    }
    .theme-swatch {
        width: 11px;
        height: 11px;
    }
    .sidebar {
        padding: 0.875rem;
        border-radius: var(--r-md);
    }
    .sidebar-header {
        margin-bottom: 0.75rem;
    }
    .main-content {
        padding: 1rem;
        border-radius: var(--r-md);
        min-height: unset;
    }
    .content-header {
        margin-bottom: 0.875rem;
    }
    .search-filter {
        margin-bottom: 0.875rem;
    }
    .key-value-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .empty-state {
        padding: 3rem 1rem;
    }
    .endpoint-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        padding-left: 1.125rem;
    }
    .copy-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .request-header {
        padding: 0.625rem 0.875rem;
        align-items: flex-start;
    }
    .request-time {
        margin-left: 0;
        width: 100%;
        text-align: left;
        margin-top: 0.3rem;
    }
    .request-time-block {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }
    .request-time-precise {
        font-size: 0.75rem;
    }
    .request-time-relative {
        font-size: 0.7rem;
    }
    .request-section {
        padding: 0.875rem 1rem;
    }
    .modal-content {
        padding: 1.375rem 1.125rem;
        border-radius: var(--r-lg);
    }
}

/* =============================================
   LANDING PAGE
   ============================================= */

.landing {
    min-height: 100vh;
    background: var(--bg-base);
    overflow-x: hidden;
}

/* ── Nav ── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.landing-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px var(--accent-ring),
        0 4px 16px var(--accent-shadow);
}

/* ── Hero ── */
.landing-hero {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: calc(100vh - 60px);
}

.landing-hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 80% 60% at 0% 20%,
            var(--auth-glow-1) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 100% 80%,
            var(--auth-glow-2) 0%,
            transparent 60%
        );
    z-index: 0;
}

.landing-hero-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.875rem;
    background: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
}

.landing-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: landing-pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes landing-pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.landing-title {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.375rem;
    background: linear-gradient(
        135deg,
        var(--text-primary) 40%,
        var(--accent-2) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.landing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.825rem 1.75rem;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    box-shadow: 0 4px 24px var(--accent-shadow);
    letter-spacing: -0.01em;
    font-family: inherit;
}

.landing-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
    filter: brightness(1.1);
}

.landing-cta-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.landing-cta-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: white;
    border-radius: 3px;
    padding: 1px;
}

/* ── Mockup panel ── */
.landing-mockup {
    flex: 1;
    min-width: 0;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.landing-mockup-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow:
        var(--shadow-lg),
        0 0 80px var(--accent-tint);
}

.landing-mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.landing-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.landing-mockup-dot.red {
    background: #ff5f57;
}
.landing-mockup-dot.yellow {
    background: #febc2e;
}
.landing-mockup-dot.green {
    background: #28c840;
}

.landing-mockup-url {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    padding: 0.25rem 0.625rem;
    font-size: 0.725rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    margin-left: 0.375rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-mockup-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-mock-request {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.landing-mock-request.is-new {
    border-color: var(--accent-border);
    box-shadow:
        0 0 0 1px var(--accent-tint),
        0 0 20px var(--accent-tint);
    animation: mock-slide-in 0.55s var(--ease-spring) both;
}

.landing-mock-request.is-old {
    animation: mock-fade-in 0.4s var(--ease) both;
}

@keyframes mock-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mock-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-mock-req-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
}

.landing-mock-method {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", monospace;
    padding: 0.125rem 0.45rem;
    border-radius: var(--r-xs);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.landing-mock-method.post {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.landing-mock-method.get {
    background: var(--cyan-dim);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.landing-mock-path {
    font-size: 0.775rem;
    color: var(--text-secondary);
    font-family: "SF Mono", "Fira Code", monospace;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-mock-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.landing-mock-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.landing-mock-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    animation: landing-pulse-dot 1.4s ease-in-out infinite;
}

.landing-mock-req-body {
    padding: 0.5rem 0.75rem 0.65rem;
    border-top: 1px solid var(--border);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.725rem;
    line-height: 1.65;
}

.jk {
    color: var(--accent-2);
}
.js {
    color: var(--success);
}
.jn {
    color: var(--warning);
}
.jb {
    color: var(--text-muted);
}

/* ── Features ── */
.landing-divider {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    border: none;
    border-top: 1px solid var(--border);
}

.landing-features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 6rem;
}

.landing-features-eyebrow {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
}

.landing-features-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.landing-features-sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.65;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.landing-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    transition:
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.landing-feature-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.landing-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-2);
    flex-shrink: 0;
}

.landing-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.landing-feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Footer ── */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .landing-hero {
        flex-direction: column;
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
        gap: 3rem;
        align-items: flex-start;
    }

    .landing-subtitle {
        max-width: 100%;
    }

    .landing-mockup {
        max-width: 100%;
        width: 100%;
    }

    .landing-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .landing-features-grid {
        grid-template-columns: 1fr;
    }

    .landing-title {
        font-size: 2.25rem;
    }
}
