/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   Premium "Stripe meets Aviation" Aesthetic
   ============================================ */
:root {
    /* Primary Brand Colors — Figma */
    --color-brand: #14C2F3;
    --color-brand-dark: #5D5A98;
    --color-brand-light: #14C2F3;
    --color-navy: #0f172a;
    --color-deep-blue: #2a3a6e;
    --color-violet-blue: #4c5c96;
    --color-royal-blue: #3b5998;
    --color-cyan: #14C2F3;
    --color-soft-violet: #6b7fd4;
    --color-sky-light: #7dd3fc;
    --concierge-navy: #0B2144;
    --concierge-gold: #D4AF37;
    --concierge-focus-glow: rgba(20, 194, 243, 0.15);
    --concierge-cta-gradient: linear-gradient(135deg, #0B2144, #000000);

    /* Neutral Palette */
    --color-white: #ffffff;
    --color-off-white: #F8FAFC;
    --color-grey-50: #f9fafb;
    --color-grey-100: #f3f4f6;
    --color-grey-200: #e5e7eb;
    --color-grey-300: #d1d5db;
    --color-grey-400: #9ca3af;
    --color-grey-500: #6b7280;
    --color-grey-600: #4b5563;
    --color-grey-700: #374151;
    --color-grey-800: #1f2937;
    --color-grey-900: #111827;

    /* Navy for buttons */
    --color-navy-dark: #101828;

    /* Glass Effects */
    --glass-white-subtle: rgba(255, 255, 255, 0.08);
    --glass-white-light: rgba(255, 255, 255, 0.15);
    --glass-white-medium: rgba(255, 255, 255, 0.25);
    --glass-white-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-strong: rgba(255, 255, 255, 0.5);

    /* Shadows - Layered for depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-cyan: 0 0 40px rgba(20, 194, 243, 0.3);
    --shadow-glow-focus: 0 0 0 4px rgba(20, 194, 243, 0.25);
    --shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-inset-white: inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Rubik', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-grey-700);
    background: var(--color-off-white);
    overflow-x: hidden;
}

h1, h2, h3,
.hero-title,
.card-title,
.resource-title {
    font-family: var(--font-heading);
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #14C2F3;
    outline-offset: 2px;
}

::selection {
    background: rgba(20, 194, 243, 0.2);
    color: #0F172A;
}

.prompt-chip:focus-visible {
    outline-color: var(--color-cyan);
    background: rgba(0, 15, 40, 0.45);
}

.hero[data-state="ready"] .prompt-chip:focus-visible {
    background: #f3f4f6;
}

.info-card:focus-visible {
    outline-offset: 4px;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* ============================================
   HERO BACKGROUND - ATMOSPHERIC BLUE
   ============================================ */
.hero-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 75vh;
    min-height: 560px;
    opacity: 1;
    overflow: hidden;
    z-index: 0;
    will-change: height, opacity;
    transition:
        height 0.6s var(--ease-out),
        min-height 0.6s var(--ease-out),
        opacity 0.6s var(--ease-out) 0.2s;
}

.hero-atmosphere[data-state="thinking"] {
    height: 28vh;
    min-height: 200px;
    opacity: 0;
}

.hero-atmosphere[data-state="response"] {
    height: 20vh;
    min-height: 160px;
    opacity: 0;
}

.hero-atmosphere[data-state="ready"] {
    height: 20vh;
    min-height: 160px;
    opacity: 0;
}

/* Clean brand gradient (Figma) */
.hero-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0B2144 0%, #0F6FAD 58%, #14C2F3 100%);
}

/* Sharp geometric diagonal cut (Figma match) */
.hero-atmosphere::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--color-off-white);
    border-radius: 0;
    clip-path: polygon(0 100%, 0 80%, 100% 18%, 100% 100%);
    z-index: 1;
    transition:
        height 0.6s var(--ease-out),
        opacity 0.4s var(--ease-out);
}

.hero-atmosphere[data-state="thinking"]::after {
    height: 0;
    opacity: 0;
}

.hero-atmosphere[data-state="response"]::after {
    height: 0;
    opacity: 0;
}

.hero-atmosphere[data-state="ready"]::after {
    height: 0;
    opacity: 0;
}

/* Floating Orbs Container */
.orbs-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Individual Orbs - Animated */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 194, 243, 0.5) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: orb-drift-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 194, 243, 0.4) 0%, transparent 70%);
    top: 50%;
    left: -10%;
    animation: orb-drift-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(95, 184, 230, 0.35) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation: orb-drift-3 18s ease-in-out infinite;
}

.hero[data-state="active"] .orb-1 {
    animation-duration: 14s;
}

.hero[data-state="active"] .orb-2 {
    animation-duration: 18s;
}

.hero[data-state="active"] .orb-3 {
    animation-duration: 13s;
}

@keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

@keyframes orb-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -20px) scale(1.08); }
}

/* ============================================
   HEADER - Sofema Brand Match
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf2;
    will-change: box-shadow;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.45);
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 0;
}

.header-logo-image {
    height: 42px;
    width: auto;
    display: block;
}

/* Navigation — right-aligned (Figma match) */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: #3a4556;
    text-decoration: none;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.nav-link:hover {
    color: #2b3850;
    background: #f6f8fb;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.nav-dropdown-menu li a:hover {
    background: #f3f4f6;
    color: #14C2F3;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #586274;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-icon-btn:hover {
    color: #2a3447;
    background: #f5f7fa;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.75;
}

.header-icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-icon-btn:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.header-divider {
    width: 1px;
    height: 32px;
    background: #e3e8ef;
    margin: 0 8px;
}

.header-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: #ffffff;
    background: #0F172A;
    border: 1px solid #0F172A;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.9);
}

.header-signin-btn:hover {
    background: #172948;
    border-color: #172948;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -16px rgba(15, 29, 56, 0.95);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   MORPH ANIMATION SYSTEM
   ============================================ */
:root {
    --morph-duration: 600ms;
    --morph-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fade-duration: 400ms;
    --stagger-delay: 100ms;
    --typewriter-speed: 20ms;
}

/* ============================================
   HERO SECTION — STATE-BASED STYLING
   ============================================ */
.hero {
    position: relative;
    z-index: 5;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 104px 1.5rem 1.25rem;
    text-align: center;
    transition: none;
}

.hero[data-state="active"],
.hero[data-state="ready"] {
    z-index: 20;
}

.hero[data-state="thinking"] {
    min-height: 0;
    padding: 92px 1.5rem 0;
    gap: 0;
}

.hero[data-state="response"] {
    min-height: 0;
    padding: 92px 1.5rem 0;
    gap: 0;
}

.hero[data-state="ready"] {
    min-height: 0;
    padding: 76px 1.5rem 0.5rem;
    gap: 0;
}


.hero-content {
    max-width: 960px;
    width: 100%;
    opacity: 1;
    animation: heroEntrance 0.6s ease-out 0.1s backwards;
}

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

/* ============================================
   COLLAPSIBLE HERO CONTENT
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.related-header,
.response-header,
.section-title,
.resource-header {
    letter-spacing: 0.05em !important;
}

.hero-collapsible {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    transform: translateY(0) scale(1);
    opacity: 1;
    clip-path: inset(0 0 0 0);
    will-change: transform, opacity, clip-path;
    transform-origin: center top;
    transition:
        transform var(--morph-duration) var(--morph-ease),
        opacity calc(var(--morph-duration) * 0.6) var(--morph-ease),
        clip-path var(--morph-duration) var(--morph-ease),
        height var(--morph-duration) var(--morph-ease),
        margin var(--morph-duration) var(--morph-ease),
        padding var(--morph-duration) var(--morph-ease);
}

.hero[data-state="thinking"] .hero-collapsible,
.hero[data-state="response"] .hero-collapsible,
.hero[data-state="ready"] .hero-collapsible {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 0.625rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-rendering: optimizeLegibility;
    transition: opacity 300ms var(--morph-ease),
                transform 300ms var(--morph-ease);
}

.hero-title em {
    font-style: normal;
    color: #ffffff;
    font-weight: 100;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto 1.25rem;
    transition: opacity 300ms var(--morph-ease),
                transform 300ms var(--morph-ease);
}

.hero[data-state="active"] .hero-title {
    opacity: 0.85;
}

.hero[data-state="active"] .hero-subtitle {
    opacity: 0.65;
}

.hero[data-state="thinking"] .hero-title,
.hero[data-state="thinking"] .hero-subtitle {
    opacity: 0;
    transform: translateY(-20px);
}

/* ============================================
   SEARCH CONTAINER — MORPH BEHAVIOR
   ============================================ */
.search-container {
    width: 100%;
    max-width: 800px;
    margin: 0.25rem auto 0.5rem;
    position: relative;
    z-index: 80;
    transition:
        top 0.5s var(--ease-out),
        max-width 0.5s var(--ease-out),
        width 0.5s var(--ease-out);
}

.hero[data-state="active"] .search-container {
    z-index: 1200;
}

.hero[data-state="thinking"] .search-container,
.hero[data-state="response"] .search-container {
    position: fixed;
    top: 112px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: calc(100% - 3rem);
    margin: 0;
    z-index: 100;
    background: var(--color-off-white, #F8FAFC);
    padding: 4px 0 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero[data-state="ready"] .search-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 0.75rem;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1200;
    background: transparent;
    padding: 0;
}

/* ============================================
   SEARCH BOX — THE MORPHING ELEMENT
   ============================================ */
.search-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    isolation: isolate;
}

.search-box {
    position: relative;
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: visible;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform, border-radius, box-shadow, background;
    transition:
        transform var(--morph-duration) var(--morph-ease),
        border-radius var(--morph-duration) var(--morph-ease),
        border-color 140ms ease,
        box-shadow var(--morph-duration) var(--morph-ease),
        background var(--morph-duration) var(--morph-ease);
}

.search-box.ambient-thinking {
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25), 0 0 24px -4px rgba(250, 204, 21, 0.15);
}

.search-box::before {
    display: none !important;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero[data-state="active"] .search-box {
    transform: scale(1.02);
}

.hero[data-state="active"] .search-box::before,
.search-box:focus-within::before {
    opacity: 1;
}

.search-box:focus-within {
    border-color: #14C2F3;
    box-shadow: 0 0 0 4px rgba(20, 194, 243, 0.15), 0 12px 40px rgba(0, 0, 0, 0.12);
}

.search-box.is-specialist-subject,
.search-box.specialist-mode {
    border-color: #C5A059;
    box-shadow: 0 0 0 1px #C5A059, 0 8px 20px rgba(197, 160, 89, 0.2);
}

.search-box.is-specialist-subject:focus-within,
.search-box.specialist-mode:focus-within {
    border-color: #C5A059;
    box-shadow: 0 0 0 1px #C5A059, 0 8px 20px rgba(197, 160, 89, 0.2);
}

.search-box.specialist-verification-mode {
    border-color: #14C2F3;
    box-shadow: 0 0 0 1px #14C2F3, 0 8px 20px rgba(20, 194, 243, 0.24);
    animation: specialist-verification-pulse 1.2s ease-in-out infinite;
}

.search-box.specialist-verification-mode:focus-within {
    border-color: #14C2F3;
    box-shadow: 0 0 0 1px #14C2F3, 0 8px 20px rgba(20, 194, 243, 0.24);
}

.search-box.is-briefing-sent {
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16), 0 14px 36px rgba(22, 101, 52, 0.16);
}

.hero[data-state="thinking"] .search-box,
.hero[data-state="response"] .search-box {
    border-radius: 16px;
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 16px rgba(0, 0, 0, 0.05);
}

.hero[data-state="ready"] .search-box {
    border-radius: 16px;
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 16px rgba(0, 0, 0, 0.05);
}

.hero[data-state="thinking"] .search-box::before,
.hero[data-state="response"] .search-box::before {
    opacity: 0;
}

.hero[data-state="response"] .search-box::before {
    opacity: 0;
    display: none;
}

.hero[data-state="ready"] .search-box::before {
    opacity: 0;
    display: none;
}

/* ============================================
   SEARCH INPUT WRAPPER
   ============================================ */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 1.125rem 1.5rem;
    gap: 0.5rem;
    transform: translateX(0);
    will-change: transform;
    transition: transform var(--morph-duration) var(--morph-ease);
}

.hero[data-state="thinking"] .search-input-wrapper,
.hero[data-state="response"] .search-input-wrapper {
    transform: translateX(6px);
}

.hero[data-state="ready"] .search-input-wrapper {
    transform: translateX(6px);
}

.search-input-wrapper.is-specialist-console {
    padding-right: 1.35rem;
}

.search-input-wrapper.is-specialist-hint {
    padding-right: 16rem;
}

.search-input-wrapper.is-specialist-hint::after {
    content: attr(data-specialist-hint);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(122, 79, 0, 0.8);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .search-input-wrapper.is-specialist-hint {
        padding-right: 1.35rem;
    }

    .search-input-wrapper.is-specialist-hint::after {
        display: none;
    }
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #9ca3af;
    transform: scale(1);
    will-change: transform, opacity;
    transition: opacity var(--fade-duration) ease, transform var(--fade-duration) ease, color 120ms ease;
}

.hero[data-state="thinking"] .search-icon-wrapper,
.hero[data-state="response"] .search-icon-wrapper {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.hero[data-state="ready"] .search-icon-wrapper {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.search-input-wrapper.is-specialist-console .search-icon-wrapper {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto;
    color: #C5A059;
}

.search-input-wrapper.is-specialist-verification .search-icon-wrapper {
    color: #14C2F3;
}

.search-box.is-briefing-sent .search-icon-wrapper {
    opacity: 1 !important;
    transform: scale(1) !important;
    color: #22C55E;
}

/* Container for the graphic */
.ai-sparkle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Ensure the old rotating square is completely removed */
.sparkle-diamond::after {
    display: none !important;
}

/* The New Circular Aura Core */
.sparkle-diamond {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14C2F3, #5D5A98);
    transform: none;
    animation: aura-breathe 3s ease-in-out infinite;
    transition: background 0.3s ease;
}

/* 1. Hover & Focus (Active) State - Sonar Ripple */
.search-box:focus-within .sparkle-diamond,
.search-box:hover .sparkle-diamond {
    background: linear-gradient(135deg, #1cd1ff, #6b68ab);
    animation: aura-ripple 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* 2. Thinking / Processing State - Rapid Heartbeat */
.hero[data-state="thinking"] .sparkle-diamond,
.hero[data-state="response"] .sparkle-diamond {
    background: #14C2F3;
    animation: aura-thinking 0.8s ease-in-out infinite alternate;
}

/* --- KEYFRAMES --- */
@keyframes aura-breathe {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(20, 194, 243, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 8px 2px rgba(20, 194, 243, 0.15);
    }
}

@keyframes aura-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 194, 243, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(20, 194, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(20, 194, 243, 0);
    }
}

@keyframes aura-thinking {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 10px rgba(20, 194, 243, 0.4), 0 0 0 0 rgba(93, 90, 152, 0.3);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(20, 194, 243, 0.8), 0 0 0 6px rgba(93, 90, 152, 0.1);
    }
}

.input-stack {
    position: relative;
    flex: 1;
    display: flex;
    min-width: 0;
}

.search-input,
.search-input--ghost {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    border: none;
    line-height: normal;
    padding: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    outline: none;
    background: transparent;
    position: relative;
    z-index: 2;
    color: #0F172A;
    padding-left: 4px;
    transition: color var(--fade-duration) ease;
}

.search-input--ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    pointer-events: none;
    color: #94A3B8 !important;
    background: transparent !important;
    user-select: none;
    opacity: 0.62;
    -webkit-text-fill-color: #94A3B8;
    padding-left: 4px;
}

.search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.5;
}

.search-input:disabled {
    color: #6b7280;
}

.hero[data-state="thinking"] .search-input,
.hero[data-state="response"] .search-input {
    font-weight: 600;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.hero[data-state="ready"] .search-input {
    font-weight: 400;
    color: #0F172A;
    letter-spacing: 0;
}

.ai-sparkle.is-flash .sparkle-diamond {
    animation: ghost-accept-flash 420ms cubic-bezier(0.22, 1, 0.36, 1) 1 !important;
    background: linear-gradient(135deg, #38d8ff, #7b74c9);
}

@keyframes ghost-accept-flash {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 216, 255, 0.45);
    }
    40% {
        transform: scale(1.24);
        box-shadow: 0 0 0 8px rgba(56, 216, 255, 0.12);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 216, 255, 0);
    }
}

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

/* ============================================
   "ASK ANOTHER" BUTTON
   ============================================ */
.ask-another-btn {
    display: none !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 8px;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-another-btn svg {
    width: 16px;
    height: 16px;
}

.ask-another-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.hero[data-state="response"] .ask-another-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition-delay: 400ms;
}

.hero[data-state="ready"] .ask-another-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    right: 12px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    pointer-events: none;
    transition:
        opacity 0.25s var(--ease-out),
        transform 0.25s var(--ease-out),
        background 0.2s ease,
        color 0.2s ease;
}

.search-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

.hero[data-state="response"] .search-clear-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
    transition-delay: 400ms;
}

.hero[data-state="response"] .search-input-wrapper {
    padding-right: 3.25rem;
}

/* ============================================
   SEARCH DROPDOWN — Instant Results
   ============================================ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block !important;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    z-index: 9999;
    opacity: 0;
    transform: translate3d(0, -4px, 0) scale(0.99);
    transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1), opacity 0.08s linear;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: normal;
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    isolation: isolate;
    contain: layout paint;
    will-change: transform, opacity;
    backface-visibility: hidden;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.search-dropdown.is-active {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.search-dropdown[data-mode="quickstart"] {
    border-color: rgba(20, 194, 243, 0.26);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(20, 194, 243, 0.08);
}

.search-dropdown[data-mode="results"] {
    border-color: rgba(93, 90, 152, 0.22);
}

.search-dropdown[data-mode="no-results"] {
    border-color: rgba(20, 194, 243, 0.3);
}

.search-dropdown[data-mode="inline-briefing"],
.search-dropdown.specialist-mode {
    border-color: #C5A059;
    box-shadow: 0 0 0 1px #C5A059, 0 8px 20px rgba(197, 160, 89, 0.2);
}

.search-dropdown.specialist-verification-mode {
    border-color: #14C2F3;
    box-shadow: 0 0 0 1px #14C2F3, 0 8px 20px rgba(20, 194, 243, 0.24);
    animation: specialist-verification-pulse 1.2s ease-in-out infinite;
}

.search-dropdown[data-mode="inline-briefing"] .search-dropdown__list {
    max-height: none !important;
    overflow: hidden !important;
}

.search-dropdown__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 28vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding: 10px 12px 6px;
    background: transparent;
}

.search-dropdown__embedded-briefing {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    background: transparent;
    opacity: 1;
    transform: translateY(0);
    max-height: 460px;
    overflow: hidden;
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        max-height 220ms ease;
}

.search-dropdown__embedded-briefing.concierge-dock-hidden {
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    pointer-events: none;
}

.search-dropdown__embedded-briefing .inline-briefing-form {
    border-radius: 16px;
}

.search-dropdown__embedded-briefing .ticket-preview-box {
    margin: 0;
}

.search-dropdown__section-title {
    padding: 0.15rem 0.35rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.related-header,
.tip-label,
.response-confidence,
.search-dropdown__section-title,
.success-path__checkpoint,
.success-path__badge-copy strong {
    letter-spacing: 0.05em;
}

.search-dropdown__status {
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.search-dropdown__status.is-searching {
    color: #0f172a;
}

.smart-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    margin: -10px -10px 4px;
    padding: 12px;
    border-bottom: 1px solid rgba(20, 194, 243, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.smart-chips-row::-webkit-scrollbar {
    display: none !important;
    width: 0;
    height: 0;
}

.smart-chips-row.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.smart-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(20, 194, 243, 0.2);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 6px 12px;
    color: #0B2144;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smart-chip:hover,
.smart-chip:focus-visible {
    background: #14C2F3;
    border-color: #14C2F3;
    color: #ffffff;
    transform: translateY(-1px);
}

.smart-chip__icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
}

.smart-chip__icon svg {
    width: 100%;
    height: 100%;
}

/* Each item = clean white card */
.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 140ms ease;
    will-change: transform, opacity;
}

.search-dropdown__footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 8px 14px 12px;
    background: transparent;
    position: relative;
    margin-top: 0;
    z-index: 2;
    flex-shrink: 0;
}

.search-dropdown__item:hover,
.search-dropdown__item[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(20, 194, 243, 0.6);
    box-shadow: 0 10px 22px rgba(20, 194, 243, 0.12);
    transform: translateY(-1px);
}

/* Category icon — thin-line style */
.search-dropdown__item-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(240, 249, 255, 0.85);
    border: 1px solid rgba(20, 194, 243, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14C2F3;
}

.search-dropdown__item-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
}

/* Text content */
.search-dropdown__item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-dropdown__item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown__item-title mark {
    background: rgba(20, 194, 243, 0.2);
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
}

.search-dropdown__item-snippet {
    font-size: 0.77rem;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-dropdown__item-snippet mark {
    background: rgba(93, 90, 152, 0.16);
    color: #334155;
    border-radius: 3px;
    padding: 0 2px;
}

.search-dropdown__item-category {
    font-size: 0.69rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.search-dropdown__item-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.search-dropdown__item-source-link {
    font-size: 0.69rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    line-height: 1.2;
}

.search-dropdown__item-source-link:hover,
.search-dropdown__item-source-link:focus-visible {
    color: #334155;
    border-bottom-color: currentColor;
    outline: none;
}

/* Arrow hint on right */
.search-dropdown__item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    color: #0B2144;
    background: rgba(20, 194, 243, 0.08);
    border: 1px solid rgba(20, 194, 243, 0.18);
    border-radius: 999px;
    transition:
        color 120ms ease,
        transform 120ms ease,
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.search-dropdown__item-arrow svg {
    width: 16px;
    height: 16px;
}

.search-dropdown__item:hover .search-dropdown__item-arrow,
.search-dropdown__item[aria-selected="true"] .search-dropdown__item-arrow {
    color: #14C2F3;
    background: rgba(20, 194, 243, 0.14);
    border-color: rgba(20, 194, 243, 0.3);
    box-shadow: 0 8px 18px rgba(20, 194, 243, 0.16);
    transform: translateX(2px);
}

.search-dropdown__item-chip,
.search-dropdown__trend-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.search-dropdown__item-chip {
    color: #0f172a;
    background: rgba(226, 232, 240, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.search-dropdown__trend-status {
    color: #14532d;
    background: rgba(220, 252, 231, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.34);
}

.search-dropdown__command-card {
    display: block;
    background: #0F172A;
    border-color: rgba(20, 194, 243, 0.45);
    color: #e2f6ff;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
    padding: 0.85rem 0.95rem;
}

.search-dropdown__command-card:hover,
.search-dropdown__command-card[aria-selected="true"] {
    border-color: rgba(20, 194, 243, 0.8);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.26), 0 0 0 1px rgba(20, 194, 243, 0.25);
    transform: translateY(-1px);
}

/* Force the Power Action card to stay dark on hover/selection. */
.power-action-card:hover,
.power-action-card[aria-selected="true"],
.search-dropdown__command-card:not(.dropdown-card--priority):hover,
.search-dropdown__command-card:not(.dropdown-card--priority)[aria-selected="true"] {
    background: linear-gradient(135deg, #0B2144 0%, #1a3c70 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 33, 68, 0.35) !important;
    border-color: #14C2F3 !important;
}

.power-action-card:hover h3,
.power-action-card:hover p,
.power-action-card:hover .action-badge,
.power-action-card[aria-selected="true"] h3,
.power-action-card[aria-selected="true"] p,
.power-action-card[aria-selected="true"] .action-badge,
.search-dropdown__command-card:not(.dropdown-card--priority):hover .search-dropdown__command-title,
.search-dropdown__command-card:not(.dropdown-card--priority):hover .search-dropdown__item-snippet,
.search-dropdown__command-card:not(.dropdown-card--priority):hover .search-dropdown__command-badge,
.search-dropdown__command-card:not(.dropdown-card--priority):hover .search-dropdown__command-confidence,
.search-dropdown__command-card:not(.dropdown-card--priority)[aria-selected="true"] .search-dropdown__command-title,
.search-dropdown__command-card:not(.dropdown-card--priority)[aria-selected="true"] .search-dropdown__item-snippet,
.search-dropdown__command-card:not(.dropdown-card--priority)[aria-selected="true"] .search-dropdown__command-badge,
.search-dropdown__command-card:not(.dropdown-card--priority)[aria-selected="true"] .search-dropdown__command-confidence {
    color: #ffffff !important;
}

.search-dropdown__command-card.is-high-confidence {
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28), var(--shadow-glow-cyan);
    animation: power-action-breathe 3s ease-in-out infinite;
}

.search-dropdown__command-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.search-dropdown__command-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-width: 0;
}

.search-dropdown__command-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(20, 194, 243, 0.45);
    background: rgba(20, 194, 243, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-dropdown__command-icon svg {
    width: 12px;
    height: 12px;
    transition: transform 150ms ease;
}

.search-dropdown__command-badge,
.search-dropdown__command-confidence {
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-dropdown__command-badge {
    background: rgba(20, 194, 243, 0.22);
    border: 1px solid rgba(20, 194, 243, 0.5);
    color: #d9f5ff;
}

.search-dropdown__command-confidence {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #cbd5e1;
}

.search-dropdown__command-title {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.28rem;
}

.search-dropdown__command-card .search-dropdown__item-snippet {
    color: rgba(226, 246, 255, 0.85);
    margin-bottom: 0.55rem;
}

.search-dropdown__command-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 10px;
    padding: 0 0.65rem;
    background: #14C2F3;
    color: #0f172a;
    border: 1px solid rgba(20, 194, 243, 0.55);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.search-dropdown__quick-action .search-dropdown__item-title,
.search-dropdown__trend-item .search-dropdown__item-title {
    font-size: 0.84rem;
}

.search-dropdown__history-item .search-dropdown__item-icon {
    color: #5d5a98;
    border-color: rgba(93, 90, 152, 0.24);
    background: rgba(238, 242, 255, 0.88);
}

.search-dropdown__history-item .search-dropdown__item-chip {
    background: rgba(224, 231, 255, 0.82);
    border-color: rgba(93, 90, 152, 0.34);
    color: #3730a3;
}

.dropdown-card--priority {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fff8e7 0%, #fffdf8 100%);
    animation: priority-pulse 2s infinite;
    color: #78350f;
}

.dropdown-card--priority .search-dropdown__command-badge {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.5);
    color: #92400e;
}

.dropdown-card--priority .search-dropdown__command-confidence {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.36);
    color: #92400e;
}

.dropdown-card--priority .search-dropdown__command-title {
    color: #7c2d12;
}

.dropdown-card--priority .search-dropdown__item-snippet {
    color: #92400e;
}

.dropdown-card--priority .search-dropdown__command-cta {
    background: #f59e0b;
    border-color: #d97706;
    color: #111827;
}

.search-dropdown__greeting-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.86rem 0.92rem;
    border-radius: 12px;
    border: 1px solid #C5A059;
    background: linear-gradient(135deg, rgba(255, 249, 235, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
    box-shadow: 0 10px 24px rgba(197, 160, 89, 0.16);
    color: #0B2144;
}

.search-dropdown__greeting-head {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.search-dropdown__greeting-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.44);
    background: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-dropdown__greeting-icon svg {
    width: 18px;
    height: 18px;
}

.search-dropdown__greeting-badge {
    border-radius: 999px;
    padding: 0.16rem 0.52rem;
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(197, 160, 89, 0.13);
    color: #854d0e;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-dropdown__greeting-title {
    margin: 0;
    color: #0B2144;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
}

.search-dropdown__greeting-body {
    margin: 0;
    color: #334155;
    font-size: 0.77rem;
    line-height: 1.45;
}

.search-dropdown__command-card:hover .search-dropdown__command-icon svg,
.search-dropdown__command-card[aria-selected="true"] .search-dropdown__command-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

@keyframes priority-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes power-action-breathe {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28), 0 0 0 0 rgba(20, 194, 243, 0.06);
    }
    50% {
        box-shadow: 0 16px 32px rgba(2, 6, 23, 0.32), 0 0 18px rgba(20, 194, 243, 0.26);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-dropdown__item {
        opacity: 1;
        transform: none;
    }
}

@keyframes path-shimmer {
    0% {
        background-position: 0 -220px;
    }
    100% {
        background-position: 0 calc(100% + 220px);
    }
}

/* No results */
.search-dropdown__no-results {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    text-align: left;
    font-size: 0.8125rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 194, 243, 0.18);
    border-radius: 12px;
}

.search-dropdown__no-results strong {
    color: #0f172a;
    font-size: 0.83rem;
}

.search-dropdown__no-results-cta {
    width: fit-content;
    border: 1px solid rgba(20, 194, 243, 0.45);
    background: rgba(20, 194, 243, 0.12);
    color: #0f172a;
    border-radius: 10px;
    padding: 0.45rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.search-dropdown__no-results-cta:hover {
    background: rgba(20, 194, 243, 0.2);
    border-color: rgba(20, 194, 243, 0.7);
}

.smart-pivot-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.74rem 0.86rem;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid rgba(20, 194, 243, 0.24);
    border-bottom: 1px dashed rgba(20, 194, 243, 0.3);
    background: rgba(240, 249, 255, 0.88);
    color: #0B2144;
    opacity: 0;
    transform: translate3d(0, -10px, 0);
    transition: transform 0.14s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s linear;
    will-change: transform, opacity;
}

.smart-pivot-card[hidden] {
    display: none;
}

.smart-pivot-card.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.smart-pivot-card__text {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #0f172a;
}

.smart-pivot-card__text strong {
    color: #0B2144;
}

.smart-pivot-card__cta {
    justify-self: start;
    border: 1px solid rgba(11, 33, 68, 0.2);
    border-radius: 10px;
    min-height: 32px;
    padding: 0 0.76rem;
    background: #0B2144;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.smart-pivot-card__cta:hover,
.smart-pivot-card__cta:focus-visible {
    background: #163A72;
    border-color: #163A72;
    transform: translateY(-1px);
}

.specialist-console {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    box-shadow: 0 50px 100px -20px rgba(11, 33, 68, 0.12), 0 30px 60px -30px rgba(11, 33, 68, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    transform: translate3d(0, -8px, 0);
    opacity: 0;
    animation: specialist-console-reveal 120ms cubic-bezier(0, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.specialist-console.specialist-console--verification {
    border-color: rgba(20, 194, 243, 0.42);
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.08), 0 50px 100px -20px rgba(11, 33, 68, 0.12), 0 30px 60px -30px rgba(11, 33, 68, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.specialist-console__header {
    display: grid;
    gap: 10px;
    color: #0f172a;
    line-height: 1.35;
}

.specialist-console__identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.specialist-console__avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 194, 243, 0.2), rgba(15, 23, 42, 0.08));
    color: #0b2144;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 14px -10px rgba(11, 33, 68, 0.55);
}

.specialist-console__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.specialist-console__presence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #dcfce7;
    background: #f0fdf4;
}

.specialist-console__presence-label {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    letter-spacing: 0.02em;
}

.specialist-console__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: specialist-live-link-pulse 920ms ease-out infinite;
    flex-shrink: 0;
}

.specialist-console__form {
    display: grid;
    gap: 10px;
    margin: 0;
}

.inline-briefing-form {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin: 0;
    box-shadow: 0 50px 100px -20px rgba(11, 33, 68, 0.12), 0 30px 60px -30px rgba(11, 33, 68, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    position: relative;
    z-index: 3;
}

.inline-briefing-form.specialist-console--verification {
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.08), 0 50px 100px -20px rgba(11, 33, 68, 0.12), 0 30px 60px -30px rgba(11, 33, 68, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    border-color: rgba(20, 194, 243, 0.42);
}

.inline-briefing-form .concierge-header-text {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.inline-briefing-form .specialist-console__status {
    display: block;
}

.ticket-preview-box {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ticket-preview-box .preview-label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
    letter-spacing: 0.01em;
    margin: 0;
}

textarea.live-query-preview {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    resize: none;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    min-height: 112px;
    outline: none;
    font-family: inherit;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #1E293B;
    font-style: normal;
    padding: 12px 14px;
    margin: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

textarea.live-query-preview:focus {
    background: #ffffff;
    border-color: #14C2F3;
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.15);
    outline: none;
}

.search-highlight {
    background: transparent;
    color: #0F172A;
    font-weight: 700;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.specialist-console__email {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1E293B;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
    padding: 0 14px;
    height: 44px;
    outline: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

.specialist-console__email:focus {
    background: #ffffff;
    border-color: #14C2F3;
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.15);
}

.specialist-console.specialist-console--verification .specialist-console__email:focus {
    border-color: #14C2F3;
}

.concierge-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.concierge-action-row input[type="email"] {
    margin: 0;
    height: 44px;
    border-radius: 12px;
}

.concierge-action-row button {
    height: 44px;
    margin: 0;
    padding: 0 18px;
    font-size: 0.85rem;
    border-radius: 12px;
}

.specialist-console__submit {
    border: 1px solid #0F172A;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 18px;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(15, 23, 42, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.specialist-console__submit:hover,
.specialist-console__submit:focus-visible {
    background: #1E293B;
    border-color: #1E293B;
    transform: translateY(-1px);
}

.specialist-console__submit.is-ready {
    background: #0F172A;
    border-color: #0F172A;
}

.specialist-console__submit.is-ready:hover,
.specialist-console__submit.is-ready:focus-visible {
    background: #1E293B;
    border-color: #1E293B;
}

.specialist-console__submit.is-error {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 8px rgba(239, 68, 68, 0.28);
}

.specialist-console__submit:disabled {
    opacity: 1;
    background: #E2E8F0;
    border-color: #CBD5E1;
    color: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.specialist-console__status {
    margin: 0;
    min-height: 1rem;
    color: #0f766e;
    font-size: 0.74rem;
    line-height: 1.35;
}

.specialist-console__status.is-error {
    color: #b91c1c;
}

@keyframes specialist-console-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, -12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes specialist-live-link-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes specialist-verification-pulse {
    0% {
        box-shadow: 0 0 0 1px rgba(20, 194, 243, 0.95), 0 8px 20px rgba(20, 194, 243, 0.16);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(20, 194, 243, 0.75), 0 12px 28px rgba(20, 194, 243, 0.24);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(20, 194, 243, 0.95), 0 8px 20px rgba(20, 194, 243, 0.16);
    }
}

@keyframes briefing-check-pop {
    0% {
        transform: scale(0.6);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-dropdown {
        margin-top: 6px;
    }

    .search-dropdown__item {
        padding: 10px 16px;
        gap: 10px;
        border-radius: 14px;
    }

    .search-dropdown__item-icon {
        width: 30px;
        height: 30px;
    }

    .search-dropdown__item-icon svg {
        width: 15px;
        height: 15px;
    }

    .search-dropdown__item-title {
        font-size: 0.8125rem;
    }

    .search-dropdown__item-snippet {
        font-size: 0.72rem;
    }
}

/* ============================================
   PROMPT CHIPS — COLLAPSE BEHAVIOR
   ============================================ */
.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 680px;
    margin: 0.875rem auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    opacity: 1;
    clip-path: inset(0 0 0 0);
    will-change: transform, opacity, clip-path;
    transition:
        transform var(--fade-duration) var(--morph-ease),
        opacity var(--fade-duration) var(--morph-ease),
        clip-path var(--fade-duration) var(--morph-ease),
        height var(--fade-duration) var(--morph-ease),
        margin var(--fade-duration) var(--morph-ease),
        padding var(--fade-duration) var(--morph-ease);
}

.hero[data-state="active"] .prompt-chips {
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.875rem;
}

.hero[data-state="thinking"] .prompt-chips,
.hero[data-state="response"] .prompt-chips {
    opacity: 0;
    transform: translateY(30px);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero[data-state="ready"] .prompt-chips {
    position: relative;
    transform: none;
    width: 100%;
    z-index: 2;
    margin: 0.75rem auto 0;
    padding: 0 4px;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
    height: auto;
    max-width: 740px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    padding-bottom: 8px;
}

.hero[data-state="ready"] .prompt-chips::-webkit-scrollbar {
    display: none;
}

/* Idle state — deep glass pills on gradient */
.prompt-chip {
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 8px 18px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    will-change: transform, opacity;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-chip:hover {
    background: #ffffff;
    color: #14C2F3;
    border-color: #14C2F3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Ready state — on white background */
.hero[data-state="ready"] .prompt-chip {
    font-size: 0.8125rem;
    padding: 0 1rem;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #475569;
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.35s var(--ease-out),
        transform 0.35s var(--ease-out),
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero[data-state="ready"] .prompt-chip.chip-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero[data-state="ready"] .prompt-chip:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.prompt-chip svg {
    width: 15px;
    height: 15px;
    opacity: 0.75;
}

/* ============================================
   SALES MODAL
   ============================================ */
.sales-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vh, 1.25rem);
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sales-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sales-modal {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1.5rem 1rem;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.sales-modal-overlay.is-open .sales-modal {
    transform: translateY(0) scale(1);
}

.sales-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sales-modal__close:hover {
    background: #f1f5f9;
    color: #475569;
}

.sales-modal__close svg {
    width: 18px;
    height: 18px;
}

.sales-modal__header {
    text-align: center;
    margin-bottom: 1rem;
}

.sales-modal__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(20, 194, 243, 0.08);
    color: #0891b2;
}

.sales-modal__icon svg {
    width: 22px;
    height: 22px;
}

.sales-modal__title {
    font-family: var(--font-primary);
    font-size: 1.3125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.sales-modal__subtitle {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    max-width: 40ch;
    margin: 0 auto;
}

.sales-modal__helper {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.01em;
}

.sales-modal__helper span {
    color: #b91c1c;
    font-weight: 700;
}

.sales-modal__notes {
    margin-top: 0.1rem;
}

.sales-modal__helper--bottom {
    margin-top: 0.25rem;
    text-align: left;
    line-height: 1.45;
}

.sales-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sales-modal__form[hidden] {
    display: none !important;
}

.sales-modal__field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.32rem;
    letter-spacing: 0.01em;
}

.sales-modal__required {
    color: #b91c1c;
    font-weight: 700;
}

.sales-modal__optional {
    font-weight: 400;
    color: #94a3b8;
}

.sales-modal__field input,
.sales-modal__field select,
.sales-modal__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.58rem 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sales-modal__field input:focus,
.sales-modal__field select:focus,
.sales-modal__field textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.12);
    background: #fff;
}

.sales-modal__field input::placeholder,
.sales-modal__field textarea::placeholder {
    color: #94a3b8;
}

.sales-modal__field textarea {
    resize: vertical;
    min-height: 82px;
}

.sales-modal__field input.is-invalid,
.sales-modal__field select.is-invalid,
.sales-modal__field textarea.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.sales-modal__actions {
    position: sticky;
    bottom: -1px;
    z-index: 3;
    margin-top: 0.1rem;
    padding-top: 0.7rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 26%);
}

.sales-modal__submit {
    width: 100%;
    height: 46px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy-dark, #101828);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.sales-modal__submit:hover {
    background: #1e293b;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
}

.sales-modal__submit:active {
    transform: scale(0.98);
}

.sales-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sales-modal__submit--sent {
    background: #059669 !important;
    cursor: default;
}

.sales-modal__submit--sent:hover {
    background: #059669 !important;
}

.sales-success[hidden] {
    display: none;
}

.sales-success {
    display: grid;
    gap: 0.7rem;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 12px;
    padding: 1rem;
}

.sales-success-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 1.1rem;
}

.sales-success-title {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.sales-success-text {
    margin: 0;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.45;
}

.sales-success-ref {
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
}

.sales-success-ref strong {
    color: #0f172a;
    font-weight: 700;
}

.sales-success-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.sales-success-email {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .sales-modal {
        width: min(100%, 560px);
        padding: 1.25rem 1rem 0.9rem;
        max-height: calc(100dvh - 1rem);
    }

    .sales-modal__actions {
        padding-top: 0.55rem;
    }

    .sales-success-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* ============================================
   SUPPORT MODAL
   ============================================ */
.support-modal-backdrop[hidden],
.support-modal[hidden] {
    display: none;
}

.support-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 2100;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.support-modal-backdrop.is-visible {
    opacity: 1;
}

.support-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -48%, 0) scale(0.995);
    width: min(520px, calc(100% - 2rem));
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 0;
    z-index: 2101;
    opacity: 0;
    transition: opacity 0.09s linear, transform 0.1s cubic-bezier(0, 0, 0.2, 1);
    isolation: isolate;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.support-modal.is-visible {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    animation: modalPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-modal.is-auto-open.is-visible {
    transition-delay: 0ms;
}

.support-modal.is-specialist-briefing {
    border-color: rgba(255, 215, 0, 0.46);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.18), 0 10px 10px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 215, 0, 0.24);
}

.support-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.15rem 1.2rem;
}

.support-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.support-modal-header h2.is-concierge-title {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
}

.support-modal.is-specialist-briefing .support-modal-header h2 {
    color: #7a4f00;
}

.support-modal-title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    filter: none;
}

.support-modal-title-badge svg {
    width: 20px;
    height: 20px;
}

.support-modal-title-badge.is-specialist {
    background: #fff7ed;
    border-color: #f59e0b;
}

.support-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.support-modal-close:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.support-modal-subtitle {
    margin: 0;
    padding: 0.9rem 1.2rem 0;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}

.support-modal.is-specialist-briefing .support-modal-subtitle {
    color: #5b4b26;
}

.support-live-link {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin: 0.1rem 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #166534;
}

.support-modal.is-live-link .support-live-link {
    display: inline-flex;
}

.support-live-link__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: live-link-pulse 900ms ease-out infinite;
}

.support-live-link__label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.support-live-link__typing {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.support-live-link__typing i {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #16a34a;
    opacity: 0.28;
    animation: terminal-dot 880ms ease-in-out infinite;
}

.support-live-link__typing i:nth-child(2) {
    animation-delay: 140ms;
}

.support-live-link__typing i:nth-child(3) {
    animation-delay: 280ms;
}

@keyframes live-link-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes terminal-dot {
    0%, 100% {
        opacity: 0.24;
        transform: translate3d(0, 0, 0);
    }
    50% {
        opacity: 1;
        transform: translate3d(0, -1px, 0);
    }
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -46%, 0) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}

.support-form {
    display: grid;
    gap: 1rem;
    padding: 1.05rem 1.2rem 1.2rem;
}

.support-form[hidden] {
    display: none;
}

.support-field {
    display: grid;
    gap: 0.5rem;
}

.support-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.support-optional {
    font-weight: 400;
    color: #94a3b8;
}

.support-input-wrapper {
    position: relative;
}

.support-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-field input,
.support-field textarea {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: #0f172a;
    background: #F5F7FA;
    transition: all 0.2s ease;
}

.support-input-wrapper input {
    padding-left: 42px;
}

.support-field textarea {
    resize: vertical;
    min-height: 108px;
}

.support-field textarea::placeholder {
    color: #9ca3af;
}

.support-helper {
    margin: -0.1rem 0 0.2rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.support-field input:focus,
.support-field textarea:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #0A84FF;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

.support-form-actions {
    display: grid;
    gap: 0.6rem;
}

.support-cancel-btn,
.support-submit-btn {
    border-radius: 12px;
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.support-cancel-btn {
    background: transparent;
    border: none;
    color: #667085;
    font-weight: 600;
}

.support-cancel-btn:hover {
    background: #F3F4F6;
    color: #111827;
}

.support-submit-btn {
    background: linear-gradient(135deg, #0B2144 0%, #1a3c70 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(11, 33, 68, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 33, 68, 0.25);
}

.support-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.support-form-result {
    margin: 0;
    min-height: 1.2rem;
    font-size: 0.82rem;
    color: #475569;
}

.support-form-result.is-error {
    color: #b91c1c;
}

.support-form-result.is-success {
    color: #047857;
}

.support-success[hidden] {
    display: none;
}

.support-success {
    display: grid;
    gap: 0.7rem;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 12px;
    margin: 1.05rem 1.2rem 1.2rem;
    padding: 1rem;
}

.support-success-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 1.1rem;
}

.support-success-title {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.support-success-text {
    margin: 0;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.45;
}

.support-success-ref {
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
}

.support-success-ref strong {
    color: #0f172a;
    font-weight: 700;
}

.support-success-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.support-success-email {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .support-modal {
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        padding: 0.95rem;
        border-radius: 24px;
    }

    .support-success-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}


/* ============================================
   RESPONSE CONTAINER
   ============================================ */
.response-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    display: none;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition:
        transform var(--fade-duration) var(--morph-ease),
        opacity var(--fade-duration) var(--morph-ease);
    pointer-events: none;
}

.response-container:focus {
    outline: none;
}

.response-container:focus-visible {
    outline: none;
}

.hero[data-state="thinking"] .response-container,
.hero[data-state="response"] .response-container {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    height: auto;
    overflow: visible;
    transition-delay: 300ms;
    padding-top: 110px;
    margin-top: 0;
}

.hero[data-state="idle"] .response-container,
.hero[data-state="active"] .response-container,
.hero[data-state="ready"] .response-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition:
        opacity 0.3s var(--ease-out),
        transform 0.3s var(--ease-out);
}

.hero,
.search-box,
.search-container,
.response-container,
.hero-collapsible,
.prompt-chips {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   RESPONSE CARD
   ============================================ */
.response-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    overflow: visible;
    transform-origin: top center;
    transform: scaleY(0.98);
    opacity: 0.8;
    transition:
        transform 400ms var(--morph-ease),
        opacity 400ms var(--morph-ease);
}

.response-card > * {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.4s var(--ease-out),
        transform 0.4s var(--ease-out);
}

.response-card.visible > *:nth-child(1) {
    transition-delay: 40ms;
    opacity: 1;
    transform: none;
}

.response-card.visible > *:nth-child(2) {
    transition-delay: 80ms;
    opacity: 1;
    transform: none;
}

.response-card.visible > *:nth-child(3) {
    transition-delay: 120ms;
    opacity: 1;
    transform: none;
}

.response-card.visible > *:nth-child(4) {
    transition-delay: 160ms;
    opacity: 1;
    transform: none;
}

.response-card.ambient-response {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12), 0 0 20px -6px rgba(34, 197, 94, 0.08);
    border-left: 2px solid rgba(34, 197, 94, 0.4);
    transition:
        box-shadow 0.6s var(--ease-out),
        border-left-color 0.6s var(--ease-out);
}

.hero[data-state="thinking"] .response-card {
    box-shadow:
      0 0 0 1px rgba(20, 194, 243, 0.1),
      0 0 20px -4px rgba(20, 194, 243, 0.06),
      0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.6s var(--ease-out);
}

.hero[data-state="thinking"] .response-card.is-requery {
    transform: scaleY(1);
    opacity: 1;
    transition-delay: 0ms;
}

.hero[data-state="thinking"] .response-card.is-requery .response-main,
.hero[data-state="thinking"] .response-card.is-requery .response-sidebar {
    opacity: 0.3;
    transition: opacity 200ms ease;
}

.hero[data-state="response"] .response-card {
    transform: scaleY(1);
    opacity: 1;
    transition-delay: 200ms;
    padding: 1.25rem 1.5rem;
}

.hero[data-state="response"] .response-card.is-no-match-state {
    border-left: 4px solid #14C2F3;
    background: #f0f9ff;
}

.response-card.is-concierge-active {
    border-left: 4px solid var(--color-brand, #14C2F3);
    background: linear-gradient(to right, #f0f9ff, #ffffff);
}

.response-main {
    min-width: 0;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.response-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
        transform 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero[data-state="response"] .response-main {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 350ms;
}

.hero[data-state="response"] .response-sidebar {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 500ms;
}

/* ============================================
   RESPONSE HEADER
   ============================================ */
.response-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #14C2F3 0%, #5D5A98 100%);
    box-shadow: 0 4px 12px rgba(93, 90, 152, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition:
        opacity 400ms var(--morph-ease),
        transform 400ms var(--morph-ease);
}

.hero[data-state="thinking"] .ai-avatar,
.hero[data-state="response"] .ai-avatar {
    opacity: 1;
    transform: scale(1);
    transition-delay: 500ms;
}

.ai-avatar svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.response-title-area {
    flex: 1;
    min-width: 0;
}

.response-title-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.response-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 300ms var(--morph-ease),
        transform 300ms var(--morph-ease);
}

.response-title-meta .response-title {
    margin: 0;
}

.response-legacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 8px;
    border-radius: 12px;
    max-width: 100%;
}

.response-legacy-badge[hidden] {
    display: none;
}

.response-legacy-badge__icon {
    display: inline-flex;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.response-legacy-badge__icon svg {
    width: 100%;
    height: 100%;
}

.hero[data-state="response"] .response-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 400ms;
}

.response-line {
    height: 2px;
    background: linear-gradient(90deg, #14C2F3, #5D5A98);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 400ms var(--morph-ease);
}

.hero[data-state="response"] .response-line {
    transform: scaleX(1);
    transition-delay: 500ms;
}

/* ============================================
   THINKING INDICATOR
   ============================================ */
.thinking-indicator {
    display: flex;
    gap: 6px;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 300ms ease;
}

.hero[data-state="thinking"] .thinking-indicator {
    opacity: 1;
}

.hero[data-state="response"] .thinking-indicator {
    display: none;
}

.thinking-dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    animation: thinking-bounce 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes thinking-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        background: #d1d5db;
    }
    30% {
        transform: translateY(-10px);
        background: #14C2F3;
        box-shadow: 0 4px 8px rgba(20, 194, 243, 0.3);
    }
}

/* ============================================
   RESPONSE BODY
   ============================================ */
.response-body {
    padding-left: 60px;
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 400ms var(--morph-ease),
        transform 400ms var(--morph-ease),
        padding-left 400ms var(--morph-ease);
}

.hero[data-state="response"] .response-body {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
    padding-left: 0;
}

.response-precision-alert {
    grid-column: 1 / -1;
    margin: 0.9rem 0 1rem;
}

.response-precision-alert[hidden] {
    display: none;
}

.precision-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border-left: 3px solid #C5A059;
    background: rgba(197, 160, 89, 0.1);
}

.precision-alert__icon {
    width: 20px;
    height: 20px;
    color: #8a6a2c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.precision-alert__icon svg {
    width: 16px;
    height: 16px;
}

.precision-alert__text {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.45;
    color: #4b3f23;
}

.precision-alert__cta {
    border: 1px solid #0B2144;
    background: #0B2144;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.35rem 0.58rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.precision-alert__cta:hover,
.precision-alert__cta:focus-visible {
    background: #163A72;
    border-color: #163A72;
}

@media (max-width: 760px) {
    .precision-alert {
        grid-template-columns: auto 1fr;
        gap: 0.55rem;
    }

    .precision-alert__cta {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.response-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.response-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #14C2F3;
    margin-left: 2px;
    animation: cursor-blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

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

.response-freedom-pass-pricing {
    margin: 0 0 1.25rem;
}

.response-freedom-pass-pricing[hidden] {
    display: none;
}

.response-corporate-configurator {
    margin: 0 0 1.25rem;
}

.response-corporate-configurator[hidden] {
    display: none;
}

.freedom-pass-pricing {
    border: 1px solid rgba(11, 33, 68, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 12px 24px rgba(11, 33, 68, 0.08);
    padding: 0.95rem;
}

.freedom-pass-pricing__header {
    display: grid;
    gap: 0.25rem;
    margin-top: 24px;
    margin-bottom: 0.85rem;
}

.freedom-pass-pricing__title {
    margin: 0;
    color: #0B2144;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
}

.freedom-pass-pricing__subtitle {
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.45;
}

.freedom-pass-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.freedom-flight-plan {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed #E5E7EB;
}

.flight-plan-header {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #9CA3AF;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

.flight-step-card {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.flight-step-card:last-child {
    padding-bottom: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-line {
    width: 2px;
    flex-grow: 1;
    background: #E5E7EB;
    margin-top: 4px;
}

.step-badge {
    background: rgba(20, 194, 243, 0.1);
    color: #0B2144;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(20, 194, 243, 0.3);
}

.step-content {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.flight-step-card:hover .step-content {
    transform: translateY(-1px);
    border-color: rgba(20, 194, 243, 0.4);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.step-title {
    display: block;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.freedom-pass-tier {
    position: relative;
    display: grid;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.72rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.freedom-pass-tier.is-highlight {
    border-color: rgba(197, 160, 89, 0.78);
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.18);
    background: linear-gradient(160deg, rgba(255, 249, 235, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.freedom-pass-tier__ribbon {
    position: absolute;
    top: -11px;
    right: 12px;
    border-radius: 999px;
    padding: 0.16rem 0.56rem;
    background: #C5A059;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 12px rgba(197, 160, 89, 0.28);
}

.freedom-pass-tier__title {
    margin: 0;
    color: #0B2144;
    font-size: 0.88rem;
    line-height: 1.3;
    font-weight: 750;
}

.freedom-pass-tier__price {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.2;
    font-weight: 800;
    display: inline-flex;
    align-items: baseline;
    gap: 0.24rem;
}

.freedom-pass-tier__price-value {
    font-weight: 800;
}

.freedom-pass-tier__period {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.freedom-pass-tier__features {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.34rem;
    color: #334155;
    font-size: 0.75rem;
    line-height: 1.42;
}

.freedom-pass-tier__cta {
    border: 1px solid rgba(20, 194, 243, 0.7);
    border-radius: 10px;
    min-height: 34px;
    padding: 0 0.68rem;
    background: linear-gradient(135deg, #14C2F3 0%, #0ea5c7 100%);
    color: #0B2144;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.freedom-pass-tier__cta:hover,
.freedom-pass-tier__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(20, 194, 243, 0.26);
    filter: brightness(1.03);
}

.freedom-pass-tier__cta.is-highlight {
    border-color: rgba(197, 160, 89, 0.85);
    background: linear-gradient(135deg, #C5A059 0%, #d9b36d 100%);
    color: #0B2144;
}

.freedom-pass-tier__cta.is-highlight:hover,
.freedom-pass-tier__cta.is-highlight:focus-visible {
    box-shadow: 0 10px 18px rgba(197, 160, 89, 0.3);
}

@media (max-width: 1024px) {
    .freedom-pass-pricing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .freedom-pass-pricing {
        padding: 0.82rem;
    }

    .freedom-pass-pricing__grid {
        grid-template-columns: 1fr;
    }
}

.corporate-card-container {
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #0B2144 0%, #050D1E 58%, #02050c 100%);
    box-shadow: 0 14px 28px rgba(3, 7, 18, 0.34);
    padding: 1rem;
    color: #e2e8f0;
}

.corp-header {
    display: grid;
    gap: 0.32rem;
    margin-bottom: 0.85rem;
}

.corp-badge {
    width: fit-content;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.14);
    color: #f8e7bc;
    font-size: 0.62rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.corp-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 800;
}

.corp-header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.82rem;
    line-height: 1.5;
}

.team-size-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.82rem;
}

.size-btn {
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.52);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.size-btn:hover,
.size-btn:focus-visible {
    border-color: rgba(20, 194, 243, 0.72);
    box-shadow: 0 8px 16px rgba(20, 194, 243, 0.22);
    transform: translateY(-1px);
}

.size-btn.active {
    border-color: rgba(20, 194, 243, 0.88);
    background: linear-gradient(135deg, #14C2F3 0%, #0ea5c7 100%);
    color: #0B2144;
    box-shadow: 0 8px 16px rgba(20, 194, 243, 0.28);
}

.corp-display-area {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.48);
    padding: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.corp-tier-label {
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
}

.corp-price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.62rem;
    align-items: stretch;
}

.price-block {
    display: grid;
    gap: 0.18rem;
}

.price-label {
    color: rgba(203, 213, 225, 0.9);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 740;
}

.price-value {
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 820;
}

.price-divider {
    width: 1px;
    background: rgba(148, 163, 184, 0.36);
}

.corp-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.38rem;
}

.corp-highlights-list li {
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.72rem;
    line-height: 1.38;
    padding-left: 1rem;
    position: relative;
}

.corp-highlights-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #14C2F3;
    box-shadow: 0 0 0 2px rgba(20, 194, 243, 0.22);
}

.corp-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.corp-meta-item {
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    background: rgba(15, 23, 42, 0.45);
}

.highlight-pill {
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.72);
    background: rgba(212, 175, 55, 0.16);
    color: #f8e7bc;
    font-size: 0.68rem;
    font-weight: 760;
    padding: 0.22rem 0.56rem;
}

.corp-cta-btn {
    width: 100%;
    min-height: 40px;
    margin-top: 0.78rem;
    border-radius: 11px;
    border: 1px solid rgba(212, 175, 55, 0.82);
    background: linear-gradient(135deg, #C5A059 0%, #E3C174 100%);
    color: #0B2144;
    font-size: 0.78rem;
    font-weight: 790;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.corp-cta-btn:hover,
.corp-cta-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(212, 175, 55, 0.26);
    filter: brightness(1.03);
}

.corp-trust-badge {
    margin-top: 0.78rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.34);
    padding-top: 0.72rem;
    display: grid;
    gap: 0.35rem;
}

.corp-trust-badge p {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 0.72rem;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .team-size-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .corp-price-row {
        grid-template-columns: 1fr;
        gap: 0.48rem;
    }

    .price-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 520px) {
    .team-size-selector {
        grid-template-columns: 1fr;
    }
}

.response-steps {
    margin-bottom: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.response-step {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    appearance: none;
    cursor: default;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        opacity 300ms var(--morph-ease),
        transform 300ms var(--morph-ease);
}

.response-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.response-step.is-actionable {
    background: var(--glass-white-strong);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.response-step.is-actionable:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-lg);
}

.response-step.is-actionable:focus-visible {
    box-shadow: var(--shadow-glow-focus);
}

.response-step.is-static {
    padding: 0.625rem 0;
    border: none;
    box-shadow: none;
    grid-template-columns: auto 1fr;
}

.response-step.is-feedback {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0e7490;
    flex-shrink: 0;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(76, 92, 150, 0.08);
    display: grid;
    place-items: center;
    color: var(--color-deep-blue);
}

.step-icon svg {
    width: 16px;
    height: 16px;
}

.step-text {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.7;
}

.step-action-icon {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.response-step.is-actionable:hover .step-action-icon {
    transform: translateX(4px);
    color: #14C2F3;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease;
}

.response-gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.inline-gateway-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-gateway-card:hover,
.inline-gateway-card:focus-visible {
    transform: translateY(-2px);
    border-color: #14C2F3;
    box-shadow: 0 10px 20px rgba(20, 194, 243, 0.1);
}

.inline-gateway-card__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.05);
    color: #64748B;
}

.inline-gateway-card__icon svg {
    width: 20px;
    height: 20px;
}

.inline-gateway-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B2144;
    line-height: 1.35;
}

.inline-gateway-card__description {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #64748B;
}

.inline-gateway-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #14C2F3;
}

.inline-gateway-card:focus-visible {
    outline: 2px solid rgba(20, 194, 243, 0.35);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .response-gateway-grid {
        grid-template-columns: 1fr;
    }
}

.response-steps.is-success-path {
    display: block;
    margin-bottom: 1.6rem;
}

.success-path {
    position: relative;
    padding-left: 2.9rem;
}

.success-path::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(20, 194, 243, 0.12), rgba(93, 90, 152, 0.22));
    pointer-events: none;
}

.success-path__track {
    position: absolute;
    left: 0.45rem;
    top: 0.3rem;
    width: 24px;
    height: calc(100% - 0.3rem);
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.success-path__track-line {
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(20, 194, 243, 0.24));
}

.success-path__track svg {
    width: 100%;
    height: 100%;
    display: block;
}

.success-path__track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #14C2F3 50%, transparent 100%);
    background-size: 100% 200px;
    animation: path-shimmer 3s linear infinite;
    opacity: 0.92;
    mix-blend-mode: screen;
    pointer-events: none;
}

.success-path__list {
    display: grid;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.success-path__step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 52px;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 280ms var(--ease-out),
        transform 280ms var(--ease-out),
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.success-path__step.visible {
    opacity: 1;
    transform: translateY(0);
}

.success-path__step.is-actionable {
    cursor: pointer;
}

.success-path__step.is-actionable:hover {
    border-color: rgba(20, 194, 243, 0.46);
    box-shadow: 0 12px 24px rgba(20, 194, 243, 0.14);
}

.success-path__step.is-actionable:focus-visible {
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.22), 0 12px 24px rgba(20, 194, 243, 0.14);
}

.success-path__marker {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(20, 194, 243, 0.14);
    border: 1px solid rgba(20, 194, 243, 0.36);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.success-path__marker.is-final {
    background: rgba(93, 90, 152, 0.18);
    border-color: rgba(93, 90, 152, 0.36);
}

.flight-marker {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 4px rgba(20, 194, 243, 0.34));
    transition: transform 150ms ease;
}

.success-path__label {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
}

.success-path__checkpoint {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #94a3b8;
}

.success-path__step.is-actionable:hover .step-action-icon {
    transform: translateX(4px);
    color: #14C2F3;
}

.success-path__step.is-actionable:hover .flight-marker,
.success-path__step.is-actionable:focus-visible .flight-marker {
    transform: scale(1.1) rotate(-5deg);
}

.success-path__badge {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(20, 194, 243, 0.26);
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(238, 242, 255, 0.95));
    padding: 0.72rem 0.9rem;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.success-path.is-complete .success-path__badge {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: badge-pop-shine 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-path__badge::after {
    content: '';
    position: absolute;
    inset: -10% -30%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 42%,
        rgba(255, 255, 255, 0) 72%
    );
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.success-path.is-complete .success-path__badge::after {
    animation: badge-shine-sweep 880ms ease-out 120ms both;
}

.success-badge {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.success-path__badge-copy {
    display: grid;
    gap: 0.1rem;
}

.success-path__badge-copy strong {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
}

.success-path__badge-copy span {
    font-size: 0.8rem;
    color: #475569;
}

@keyframes badge-pop-shine {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    65% {
        opacity: 1;
        transform: translateY(-2px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badge-shine-sweep {
    0% {
        opacity: 0;
        transform: translateX(-130%) skewX(-18deg);
    }
    20% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translateX(130%) skewX(-18deg);
    }
}

.response-tip {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 400ms var(--morph-ease),
        transform 400ms var(--morph-ease);
}

.response-tip.visible {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-tip {
    display: block;
    background: linear-gradient(135deg, #FFFCF2 0%, #FFF8E1 100%);
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    transition: none;
}

.sidebar-tip:empty {
    display: none;
}

.sidebar-tip .tip-head {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-tip .tip-icon {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.sidebar-tip .tip-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #8A6A18;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-tip .tip-text {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #334155;
}

.sidebar-tip .tip-text a {
    color: var(--color-cyan, #14C2F3);
}

.tip-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tip-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.7;
}

.tip-text a {
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
}

/* Modern link styling - no permanent underline */
a.tip-link {
    color: #0284C7;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Only show underline on hover */
a.tip-link:hover {
    color: #0369A1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ============================================
   RESPONSE ACTIONS
   ============================================ */
.actions-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 24px;
    border-left: 1px solid #F3F4F6;
    height: 100%;
}

.action-tools-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
}

.tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-btn:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tool-btn[data-action="copy"]:hover {
    color: #14C2F3;
    border-color: #14C2F3;
}

.tool-btn[data-action="up"]:hover {
    color: #10B981;
    border-color: #10B981;
}

.tool-btn[data-action="down"]:hover {
    color: #EF4444;
    border-color: #EF4444;
}

.tool-divider {
    width: 1px;
    height: 24px;
    background: #E5E7EB;
    margin: 0 4px;
}

.feedback-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    transition: opacity 160ms ease, transform 160ms ease;
}

.feedback-buttons.is-exiting {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.feedback-buttons.is-hidden {
    display: none;
}

.tool-btn.is-positive-feedback {
    color: #10B981;
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.tool-btn.is-negative-feedback {
    color: #EF4444;
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.tool-btn.is-copied {
    color: #14C2F3;
    border-color: #14C2F3;
    background: rgba(20, 194, 243, 0.08);
    box-shadow: 0 0 0 2px rgba(20, 194, 243, 0.14);
}

.action-support-pill,
.ask-specialist-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(180deg, #112A54 0%, #0B1A3A 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(11, 26, 58, 0.15), 0 1px 2px rgba(11, 26, 58, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-support-pill .support-icon,
.ask-specialist-btn .support-icon {
    color: #0A84FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-support-pill svg,
.action-support-pill i,
.ask-specialist-btn svg,
.ask-specialist-btn i {
    stroke: #0A84FF;
    fill: none;
    transition: transform 0.3s ease;
}

.action-support-pill:hover,
.ask-specialist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.2), 0 2px 4px rgba(11, 26, 58, 0.4);
    border-color: rgba(10, 132, 255, 0.3);
}

.action-support-pill:hover svg,
.action-support-pill:hover i,
.ask-specialist-btn:hover svg,
.ask-specialist-btn:hover i {
    transform: scale(1.1);
}

.action-support-pill::after,
.ask-specialist-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.action-support-pill:hover::after,
.ask-specialist-btn:hover::after {
    animation: buttonShimmer 1.5s infinite;
}

.action-support-pill:active,
.ask-specialist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(11, 26, 58, 0.2);
}

@keyframes buttonShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.related-pathways-area[hidden] {
    display: none;
}

.pathways-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9CA3AF;
    margin-top: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pathways-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pathway-card {
    text-align: left;
    padding: 12px;
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.pathway-text {
    font-size: 13px;
    color: #4B5563;
    font-weight: 500;
    line-height: 1.4;
}

.pathway-arrow {
    color: #D1D5DB;
    transition: transform 0.2s, color 0.2s;
}

.pathway-card:hover {
    border-color: #14C2F3;
    background: #F0F9FF;
}

.pathway-card:hover .pathway-text {
    color: #0B2144;
}

.pathway-card:hover .pathway-arrow {
    color: #14C2F3;
    transform: translateX(4px);
}

.feedback-recovery {
    width: 100%;
    display: block;
    margin-top: 0.65rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.feedback-recovery.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feedback-recovery[hidden] {
    display: none !important;
}

.recovery-pivot-card {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.62rem;
    align-items: flex-start;
    border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.97), rgba(255, 251, 235, 0.97));
    padding: 0.62rem 0.72rem;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.1);
}

.recovery-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.28);
}

.recovery-content {
    min-width: 0;
}

.recovery-text {
    margin: 0;
    color: #7c2d12;
    font-size: 0.76rem;
    line-height: 1.42;
}

.recovery-text strong {
    color: #9a3412;
}

.recovery-action-btn {
    margin-top: 0.5rem;
    border: 1px solid #D97706;
    background: #D97706;
    color: #ffffff;
    border-radius: 9px;
    min-height: 30px;
    padding: 0 0.65rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.recovery-action-btn:hover,
.recovery-action-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(217, 119, 6, 0.22);
    filter: brightness(1.03);
}

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

/* ============================================
   RELATED QUESTIONS
   ============================================ */
.response-date-anchor {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-grey-400, #9ca3af);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .response-card {
        grid-template-columns: 1fr 280px;
        grid-template-rows: auto 1fr;
        gap: 0 2rem;
    }

    .response-header {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .response-main {
        grid-column: 1;
        grid-row: 2;
    }

    .response-sidebar {
        grid-column: 2;
        grid-row: 2;
        padding-top: 0.25rem;
        position: sticky;
        top: 1rem;
        align-self: start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .response-date-anchor {
        margin-top: auto;
    }
}

@media (min-width: 1100px) {
    .response-card {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 767px) {
    .response-card {
        gap: 1rem;
    }

    .response-main,
    .response-sidebar {
        padding-left: 0;
    }

    .response-sidebar {
        border-top: 1px solid var(--color-grey-200, #e5e7eb);
        padding-top: 1.25rem;
    }

    .actions-sidebar-panel {
        order: 2;
        padding-left: 0;
        border-left: none;
    }

    .sidebar-tip {
        padding: 0.875rem 1rem;
    }

    .hero[data-state="response"] .response-sidebar {
        transition-delay: 500ms;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-atmosphere[data-state="thinking"] {
        height: 25vh;
        min-height: 160px;
        opacity: 0;
    }

    .hero-atmosphere[data-state="response"] {
        height: 15vh;
        min-height: 100px;
        opacity: 0;
    }

    .hero-atmosphere[data-state="ready"] {
        height: 15vh;
        min-height: 100px;
        opacity: 0;
    }

    .hero-atmosphere[data-state="thinking"]::after {
        height: 0;
        opacity: 0;
    }

    .hero-atmosphere[data-state="response"]::after {
        height: 0;
        opacity: 0;
    }

    .hero-atmosphere[data-state="ready"]::after {
        height: 0;
        opacity: 0;
    }

    .response-body,
    .actions-sidebar-panel {
        padding-left: 0;
    }

    .response-header {
        flex-wrap: wrap;
    }

    .hero[data-state="response"] {
        padding-top: 84px;
        padding-bottom: 0.5rem;
    }

    .hero[data-state="ready"] {
        padding-top: 84px;
    }

    .hero[data-state="thinking"] .search-container,
    .hero[data-state="response"] .search-container {
        top: 92px;
        width: calc(100% - 2rem);
    }

    .hero[data-state="ready"] .search-container {
        width: 100%;
    }

    .hero[data-state="thinking"] .response-container,
    .hero[data-state="response"] .response-container {
        padding-top: 100px;
    }

    .hero[data-state="ready"] .prompt-chips {
        padding: 0 var(--space-2) 0.5rem;
    }

    .hero[data-state="response"] .response-card {
        padding: 1.25rem;
    }

    .hero[data-state="ready"] .prompt-chip {
        font-size: 0.75rem;
        padding: 0.4375rem 0.875rem;
    }

    .hero[data-state="response"] .response-body,
    .hero[data-state="response"] .actions-sidebar-panel {
        padding-left: 0;
    }
}

/* ============================================
   STATS BAR — Trust Signals
   ============================================ */
.stats-bar {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--morph-duration, 0.6s) var(--morph-ease, cubic-bezier(0.16, 1, 0.3, 1)),
        transform var(--morph-duration, 0.6s) var(--morph-ease, cubic-bezier(0.16, 1, 0.3, 1)),
        max-height var(--morph-duration, 0.6s) var(--morph-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.hero[data-state="thinking"] .stats-bar,
.hero[data-state="response"] .stats-bar,
.hero[data-state="ready"] .stats-bar {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.stats-bar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-bar__icon {
    width: 28px;
    height: 28px;
    color: #14C2F3;
    flex-shrink: 0;
    opacity: 0.85;
}

.stats-bar__icon svg {
    width: 100%;
    height: 100%;
}

.stats-bar__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stats-bar__number {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stats-bar__label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.3;
}

.stats-bar__divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
    .stats-bar__inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stats-bar__divider {
        width: 40px;
        height: 1px;
    }
}

/* ============================================
   CARDS SECTION
   ============================================ */
.cards-section {
    position: relative;
    z-index: 1;
    padding: var(--space-8) var(--space-6) var(--space-16);
    margin-top: 0;
}

.hero[data-state="response"] ~ .cards-section,
.hero[data-state="ready"] ~ .cards-section {
    margin-top: 0;
    padding-top: var(--space-6);
}

.cards-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.section-header--cards {
    text-align: left;
    max-width: 1100px;
    margin: 0 auto var(--space-8);
}

.section-header--cards .section-title {
    color: var(--color-grey-900);
}

.section-header--cards .section-subtitle {
    color: var(--color-grey-600);
}

.info-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
    animation: card-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, #14C2F3, #5D5A98);
    border-radius: 0 0 3px 3px;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    border-color: #d1d5db;
    transform: translateY(-8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(20, 194, 243, 0.12);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e3f2fa 0%, #eef8fc 100%);
    border: 1px solid rgba(20, 194, 243, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #d6eef8 0%, #e0f0fa 100%);
}

.card-icon svg {
    width: 26px;
    height: 26px;
    color: #5D5A98;
    stroke-width: 1.75;
    transition: color 0.3s ease;
}

.info-card:hover .card-icon svg {
    color: #14C2F3;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-grey-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--color-grey-500);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #14C2F3;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.card-link:hover {
    gap: 0.75rem;
    color: #5D5A98;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.card-link:hover svg {
    transform: translateX(4px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESOURCE DETAIL SECTIONS
   ============================================ */
.resource-sections {
    padding: var(--space-16) var(--space-6);
    background: linear-gradient(180deg, var(--color-off-white) 0%, #ffffff 100%);
}

.resource-section {
    margin-bottom: var(--space-16);
    scroll-margin-top: 180px;
}

.resource-section:last-child {
    margin-bottom: 0;
}

.resource-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-12);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.resource-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(20, 194, 243, 0.08), transparent 45%),
        radial-gradient(circle at bottom left, rgba(76, 92, 150, 0.08), transparent 40%);
    pointer-events: none;
}

.resource-header {
    position: relative;
    display: grid;
    gap: 0.5rem;
    margin-bottom: var(--space-8);
    z-index: 1;
}

.resource-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-deep-blue);
}

.resource-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-grey-900);
    letter-spacing: -0.02em;
}

.resource-description {
    color: var(--color-grey-600);
    font-size: 1rem;
    max-width: 680px;
}

.resource-grid {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.resource-card:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.resource-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-grey-900);
}

.resource-card-desc {
    font-size: 0.9375rem;
    color: var(--color-grey-600);
    line-height: 1.6;
}

.resource-badge {
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(20, 194, 243, 0.12);
    color: var(--color-deep-blue);
    font-size: 0.75rem;
    font-weight: 600;
}

.resource-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.resource-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-grey-600);
    font-size: 0.875rem;
}

.resource-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cyan);
}

.resource-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    background: var(--color-deep-blue);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-primary);
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.resource-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #1e3a5f;
}

.resource-cta svg {
    width: 16px;
    height: 16px;
}

.resource-cta.resource-cta--disabled {
    background: rgba(16, 24, 40, 0.08);
    color: var(--color-grey-500);
    border-color: transparent;
    cursor: default;
    box-shadow: none;
}

.resource-cta.is-feedback {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.resource-media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 194, 243, 0.85));
    color: var(--color-white);
    box-shadow: var(--shadow-glow-cyan);
}

.resource-media-info {
    display: grid;
    gap: 0.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.resource-media-duration {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.resource-media-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
}

.resource-media-icon svg {
    width: 18px;
    height: 18px;
}

.section-pulse {
    animation: section-pulse 1.4s ease-out;
}

@keyframes section-pulse {
    0% {
        box-shadow: var(--shadow-lg), 0 0 0 0 rgba(20, 194, 243, 0.35);
    }
    70% {
        box-shadow: var(--shadow-lg), 0 0 0 18px rgba(20, 194, 243, 0);
    }
    100% {
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================
   QUICK LINKS SECTION
   ============================================ */
.quick-links-section {
    padding: var(--space-16) var(--space-6);
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 500px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-grey-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-grey-500);
    line-height: 1.6;
    font-weight: 400;
}

.quick-links-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-4);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-link:hover {
    border-color: #d1d5db;
    background: #fafafa;
    transform: translateX(8px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(20, 194, 243, 0.06);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e3f2fa 0%, #eef8fc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-link:hover .quick-link-icon {
    transform: scale(1.05);
}

.quick-link-icon svg {
    width: 22px;
    height: 22px;
    color: rgba(20, 194, 243, 0.7);
    transition: color 0.3s ease;
}

.quick-link:hover .quick-link-icon svg {
    color: #14C2F3;
}

.quick-link-content {
    flex: 1;
}

.quick-link-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-grey-900);
    margin-bottom: 2px;
}

.quick-link-desc {
    font-size: 0.8125rem;
    color: var(--color-grey-500);
}

.quick-link-arrow {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.quick-link:hover .quick-link-arrow {
    color: #14C2F3;
    transform: translateX(4px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-grey-900);
    color: var(--color-white);
    padding: var(--space-12) var(--space-6);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-link {
    color: var(--color-grey-400);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--duration-fast);
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-copyright {
    color: var(--color-grey-400);
    font-size: 0.8125rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        height: 64px;
        padding: 0 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid .info-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }

    .cards-grid[data-layout="resources"] .info-card:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    .resource-shell {
        padding: var(--space-10);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 104px var(--space-4) var(--space-12);
        min-height: 70vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-container {
        padding: 0 var(--space-2);
    }

    .search-box {
        border-radius: 20px;
    }

    .search-box::before {
        animation: none !important;
        opacity: 0.3;
    }

    .ask-another-btn {
        height: 44px;
    }

    .search-input,
    .search-input--ghost {
        font-size: 1.0625rem;
    }

    .prompt-chips {
        padding: 0 var(--space-2);
        gap: 0.5rem;
    }

    .prompt-chip {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    .cards-section {
        padding: var(--space-6) var(--space-4) var(--space-12);
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .cards-grid .info-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .info-card {
        padding: 1.5rem;
    }

    .resource-sections {
        padding: var(--space-12) var(--space-4);
    }

    .resource-shell {
        padding: var(--space-8);
    }

    .resource-title {
        font-size: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem;
    }

    .quick-links-section {
        padding: var(--space-12) var(--space-4);
    }

    .quick-link {
        padding: var(--space-4);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-3);
    }

    .orb {
        opacity: 0.4;
        filter: blur(60px);
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .header-icon-btn:first-child {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .header-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-atmosphere {
        min-height: 600px;
    }

    .search-input-wrapper {
        padding: 0.75rem 0.75rem;
    }

    .search-icon-wrapper {
        width: 46px;
        height: 46px;
    }

    .ask-another-btn {
        height: 40px;
        padding: 0 1rem;
    }

}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
        transition-delay: 0ms !important;
    }

    .orb {
        animation: none !important;
    }

    .search-box.ambient-thinking {
        animation: none !important;
    }

    .response-card.ambient-response {
        transition-duration: 0.2s !important;
    }

    .hero-atmosphere {
        transition-duration: 0.2s !important;
    }

}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .prompt-chip {
        background: rgba(0, 15, 40, 0.5);
    }

    .info-card {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ============================================
   Figma Spacing + Scrollbar Polish
   ============================================ */
.stats-bar {
    margin: 1.125rem auto 0;
}

.prompt-chips {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.prompt-chips::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.search-dropdown__list {
    scrollbar-width: auto;
    scrollbar-color: rgba(14, 116, 255, 0.65) rgba(226, 232, 240, 0.72);
}

.search-dropdown__list::-webkit-scrollbar {
    width: 10px;
}

.search-dropdown__list::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.74);
    border-radius: 999px;
}

.search-dropdown__list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.86) 0%, rgba(7, 90, 193, 0.86) 100%);
    border-radius: 999px;
    border: 2px solid rgba(226, 232, 240, 0.72);
}

.search-dropdown__list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(10, 132, 255, 0.98) 0%, rgba(7, 90, 193, 0.98) 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sidebar Container */
.actions-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 0 0 8px;
    height: 100%;
}

/* 1. Unified Help Widget */
.sidebar-help-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.widget-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.action-tools-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-btn:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.28);
}

.tool-btn[data-action="copy"]:hover {
    color: #14C2F3;
    border-color: #14C2F3;
}

.tool-btn[data-action="up"]:hover {
    color: #10B981;
    border-color: #10B981;
}

.tool-btn[data-action="down"]:hover {
    color: #EF4444;
    border-color: #EF4444;
}

.tool-divider {
    width: 1px;
    height: 24px;
    background: #E5E7EB;
}

/* 2. Premium Specialist CTA */
.action-support-pill,
.ask-specialist-btn {
    position: relative;
    overflow: clip;
    width: 100%;
    background: linear-gradient(180deg, #0C2348 0%, #0A1833 100%);
    color: #FFFFFF;
    border: 1px solid rgba(12, 35, 72, 0.9);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 10px 18px -14px rgba(7, 15, 31, 0.9);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.action-support-pill .support-icon,
.ask-specialist-btn .support-icon {
    color: #9EE7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    opacity: 0.9;
}

.action-support-pill svg,
.action-support-pill i,
.ask-specialist-btn svg,
.ask-specialist-btn i {
    stroke: currentColor;
    fill: none;
    transition: transform 0.24s ease;
}

.ask-specialist-btn .support-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ask-specialist-btn .support-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #FFFFFF;
}

.ask-specialist-btn .support-context {
    display: block;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-support-pill:hover,
.ask-specialist-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 28px -16px rgba(7, 15, 31, 0.95);
    border-color: rgba(20, 194, 243, 0.7);
}

.action-support-pill:hover svg,
.action-support-pill:hover i,
.ask-specialist-btn:hover svg,
.ask-specialist-btn:hover i {
    transform: scale(1.1);
}

.action-support-pill::after,
.ask-specialist-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.action-support-pill:hover::after,
.ask-specialist-btn:hover::after {
    animation: buttonShimmer 1.2s ease-out 1;
}

.action-support-pill:active,
.ask-specialist-btn:active {
    transform: translateY(0.5px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 16px -14px rgba(7, 15, 31, 0.9);
}

/* 3. Smart Pathways */
.related-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pathways-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #94A3B8;
    margin: 0;
    text-transform: uppercase;
}

.pathways-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pathway-card {
    text-align: left;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pathway-card:hover {
    border-color: #14C2F3;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -14px rgba(15, 23, 42, 0.42);
}

.pathway-text {
    font-size: 13px;
    color: #4B5563;
    font-weight: 500;
    line-height: 1.38;
}

.pathway-arrow {
    color: #D1D5DB;
    transition: transform 0.2s;
    font-weight: bold;
}

.pathway-card:hover .pathway-text {
    color: #0B2144;
}

.pathway-card:hover .pathway-arrow {
    color: #14C2F3;
    transform: translateX(4px);
}

.tool-btn.is-exiting {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.tool-btn.is-hidden {
    display: none;
}

/* Universal Premium Overrides */
/* Hide the redundant title inside the answer card */
.response-title {
    display: none !important;
}

/* Add breathing room since the title is gone */
.response-body {
    padding-top: 8px;
}

/* Turn <ol> into a Vertical Step Container */
.response-body ol {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    position: relative;
    counter-reset: step-counter;
}

/* Turn <li> into a Step Card */
.response-body ol li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 24px;
}

/* The "Badge" (01, 02, 03) - Generated automatically */
.response-body ol li::before {
    counter-increment: step-counter;
    content: counter(step-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: rgba(20, 194, 243, 0.1);
    color: #0B2144;
    border: 1px solid rgba(20, 194, 243, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The "Connecting Line" */
.response-body ol li::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: -20px;
    width: 2px;
    background: #E5E7EB;
    z-index: 0;
}

/* Hide line on the last item */
.response-body ol li:last-child::after {
    display: none;
}

/* ============================================
   Mobile Experience Upgrade
   ============================================ */
:root {
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-header-height: 72px;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    display: none;
}

.mobile-quick-actions {
    display: none;
}

@media (max-width: 1024px) {
    :root {
        --mobile-header-height: 64px;
    }

    .site-header {
        background: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid rgba(203, 213, 225, 0.68);
        backdrop-filter: blur(14px) saturate(155%);
        -webkit-backdrop-filter: blur(14px) saturate(155%);
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d9e1ef;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff, #f8fbff);
        box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.7);
    }

    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: calc(var(--mobile-header-height) + var(--mobile-safe-top)) 0 0;
        z-index: 1090;
        opacity: 0;
        pointer-events: none;
        background: rgba(15, 23, 42, 0.44);
        transition: opacity 180ms ease;
    }

    .site-header.is-mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.is-mobile-menu-open .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-mobile-menu-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-mobile-menu-open .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header.is-mobile-menu-open .header-nav {
        display: block;
        position: fixed;
        top: calc(var(--mobile-header-height) + var(--mobile-safe-top) + 0.55rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1095;
        padding: 0.9rem;
        border-radius: 20px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #dbe6f4;
        box-shadow: 0 24px 42px -24px rgba(15, 23, 42, 0.48);
        max-height: min(56vh, 520px);
        overflow-y: auto;
    }

    .site-header.is-mobile-menu-open .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.42rem;
    }

    .site-header.is-mobile-menu-open .nav-item {
        width: 100%;
    }

    .site-header.is-mobile-menu-open .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.78rem 0.92rem;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e2eaf6;
        color: #0f172a;
    }

    .site-header.is-mobile-menu-open .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: rgba(241, 245, 249, 0.9);
        transition: max-height 220ms ease, padding 220ms ease, margin-top 220ms ease;
    }

    .site-header.is-mobile-menu-open .nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
        max-height: 220px;
        margin-top: 0.3rem;
        padding: 0.38rem;
        border-radius: 12px;
        border: 1px solid #e2eaf6;
    }

    .site-header.is-mobile-menu-open .header-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + var(--mobile-safe-bottom));
        z-index: 1095;
        padding: 0.62rem;
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #dbe6f4;
        box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.5);
    }

    .site-header.is-mobile-menu-open .header-icon-btn {
        width: 100%;
        height: 46px;
        border-radius: 12px;
        border: 1px solid #dce7f5;
        background: #ffffff;
    }

    .site-header.is-mobile-menu-open .header-signin-btn {
        grid-column: 1 / -1;
        width: 100%;
        height: 48px;
        border-radius: 12px;
    }
}

@media (max-width: 900px) {
    .mobile-quick-actions {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(0.75rem + var(--mobile-safe-bottom));
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.52rem;
        border-radius: 16px;
        background: linear-gradient(155deg, rgba(11, 33, 68, 0.96), rgba(8, 15, 36, 0.92));
        border: 1px solid rgba(148, 163, 184, 0.34);
        box-shadow: 0 24px 44px -28px rgba(2, 8, 23, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-quick-actions__btn {
        min-height: 44px;
        border-radius: 11px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        background: rgba(255, 255, 255, 0.06);
        color: #e2e8f0;
        font-family: var(--font-heading);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.36rem;
        cursor: pointer;
        transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
    }

    .mobile-quick-actions__btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .mobile-quick-actions__btn:active {
        transform: translateY(1px) scale(0.99);
    }

    .mobile-quick-actions__btn--primary {
        border-color: rgba(20, 194, 243, 0.62);
        background: linear-gradient(145deg, rgba(20, 194, 243, 0.28), rgba(14, 165, 233, 0.2));
        color: #ffffff;
    }

    body.mobile-menu-open .mobile-quick-actions {
        opacity: 0;
        pointer-events: none;
    }

    .hero {
        padding: calc(88px + var(--mobile-safe-top)) 0.72rem 2.8rem;
    }

    .hero[data-state="thinking"],
    .hero[data-state="response"] {
        padding: calc(82px + var(--mobile-safe-top)) 0.72rem 0;
    }

    .hero[data-state="ready"] {
        padding: calc(96px + var(--mobile-safe-top)) 0.72rem 1.2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.9vw, 2.55rem);
        line-height: 1.12;
        margin-bottom: 0.48rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.48;
        max-width: 32ch;
        margin-bottom: 0.95rem;
    }

    .search-container {
        padding: 0 0.2rem;
    }

    .search-box {
        border-radius: 22px;
        padding: 0.48rem;
    }

    .search-input-wrapper {
        min-height: 58px;
        border-radius: 16px;
        padding: 0.38rem 0.54rem;
    }

    .search-input,
    .search-input--ghost {
        font-size: 1rem;
    }

    .search-dropdown {
        left: 0.15rem;
        right: 0.15rem;
        border-radius: 16px;
        border: 1px solid #dbe7f4;
        box-shadow: 0 26px 46px -30px rgba(15, 23, 42, 0.52);
    }

    .search-dropdown__list {
        max-height: min(52vh, 420px);
    }

    .ask-another-btn {
        margin-top: 0.45rem;
        height: 42px;
        border-radius: 12px;
    }

    .stats-bar {
        margin-top: 1rem;
        padding: 0 0.35rem;
    }

    .stats-bar__inner {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(82%, 1fr);
        gap: 0.7rem;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0.2rem 0 0.45rem;
    }

    .stats-bar__item {
        scroll-snap-align: start;
        padding: 0.8rem 0.95rem;
    }

    .stats-bar__divider {
        display: none;
    }

    .prompt-chips {
        gap: 0.42rem;
        padding: 0 0.12rem;
    }

    .prompt-chip {
        font-size: 0.78rem;
        padding: 0.56rem 0.9rem;
    }

    .hero[data-state="thinking"] .response-container,
    .hero[data-state="response"] .response-container {
        padding-top: 88px;
    }

    .response-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .response-text {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .response-step {
        grid-template-columns: auto 1fr auto;
        gap: 0.58rem;
        padding: 0.6rem 0.72rem;
    }

    .step-icon {
        display: none;
    }

    .step-text {
        font-size: 0.88rem;
        line-height: 1.52;
    }

    .support-modal {
        width: calc(100% - 0.75rem);
        max-height: calc(100dvh - 0.75rem);
        border-radius: 20px;
    }

    .support-form {
        padding: 0.92rem 1rem 1.05rem;
    }

    .support-form-actions {
        position: sticky;
        bottom: calc(-0.92rem - var(--mobile-safe-bottom));
        padding: 0.62rem 0 calc(0.5rem + var(--mobile-safe-bottom));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 30%);
    }

    .sales-modal {
        width: calc(100% - 0.75rem);
        max-height: calc(100dvh - 0.75rem);
        border-radius: 20px;
        padding: 1.1rem 0.92rem 0.7rem;
    }

    .sales-modal__actions {
        padding-bottom: calc(0.38rem + var(--mobile-safe-bottom));
    }

    .footer {
        padding-bottom: calc(var(--space-20) + var(--mobile-safe-bottom));
    }
}

@media (max-width: 480px) {
    .header-logo-image {
        height: 36px;
    }

    .site-header.is-mobile-menu-open .header-nav {
        left: 0.55rem;
        right: 0.55rem;
    }

    .site-header.is-mobile-menu-open .header-actions {
        left: 0.55rem;
        right: 0.55rem;
    }

    .mobile-quick-actions {
        left: 0.52rem;
        right: 0.52rem;
    }

    .mobile-quick-actions__btn {
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: clamp(1.68rem, 9.2vw, 2.25rem);
    }
}

/* ============================================
   ENTERPRISE OVERRIDES - PHASE 2
   ============================================ */
body.enterprise-theme {
    --enterprise-app-bg: #F8FAFC;
    --enterprise-surface: #FFFFFF;
    --enterprise-border: #E2E8F0;
    --enterprise-text: #0F172A;
    --enterprise-muted: #475569;
    --enterprise-focus: #14C2F3;
    --enterprise-radius-sm: 8px;
    --enterprise-radius-md: 12px;
    --enterprise-transition: 150ms ease-out;
    background: var(--enterprise-app-bg);
    color: var(--enterprise-text);
    font-family: 'Rubik', sans-serif;
}

body.enterprise-theme h1,
body.enterprise-theme h2,
body.enterprise-theme h3,
body.enterprise-theme h4,
body.enterprise-theme h5,
body.enterprise-theme h6,
body.enterprise-theme .hero-title,
body.enterprise-theme .section-title,
body.enterprise-theme .resource-header,
body.enterprise-theme .related-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0 !important;
}

body.enterprise-theme .noise-overlay,
body.enterprise-theme .hero-atmosphere,
body.enterprise-theme .orbs-container,
body.enterprise-theme .orb,
body.enterprise-theme .ai-sparkle,
body.enterprise-theme .ai-avatar {
    display: none !important;
}

body.enterprise-theme .hero-title {
    color: var(--enterprise-text);
    text-shadow: none;
}

body.enterprise-theme .hero-subtitle {
    color: var(--enterprise-muted);
}

body.enterprise-theme .site-header,
body.enterprise-theme .search-box,
body.enterprise-theme .search-dropdown,
body.enterprise-theme .search-dropdown__footer,
body.enterprise-theme .response-card,
body.enterprise-theme .sidebar-help-widget,
body.enterprise-theme .pathway-card,
body.enterprise-theme .specialist-console,
body.enterprise-theme .inline-briefing-form,
body.enterprise-theme .mobile-quick-actions {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.enterprise-theme .search-box {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color var(--enterprise-transition), box-shadow var(--enterprise-transition), transform var(--enterprise-transition);
}

body.enterprise-theme .search-box::before {
    display: none !important;
}

body.enterprise-theme .search-box:focus-within {
    border-color: #0F172A;
    box-shadow: 0 0 0 2px #0F172A, 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.enterprise-theme .search-input,
body.enterprise-theme .search-input--ghost {
    font-family: 'Rubik', sans-serif;
}

body.enterprise-theme .search-dropdown {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-md);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.enterprise-theme .search-dropdown__list {
    background: var(--enterprise-surface);
}

body.enterprise-theme .search-dropdown__item {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-sm);
    box-shadow: none;
    transition: border-color var(--enterprise-transition), box-shadow var(--enterprise-transition), transform var(--enterprise-transition);
}

body.enterprise-theme .search-dropdown__item:hover,
body.enterprise-theme .search-dropdown__item[aria-selected="true"] {
    border-color: #14C2F3;
    box-shadow: 0 4px 10px rgba(20, 194, 243, 0.12);
}

body.enterprise-theme .search-dropdown__item-title {
    color: #0F172A;
}

body.enterprise-theme .search-dropdown__item-snippet,
body.enterprise-theme .widget-eyebrow {
    color: #475569;
}

body.enterprise-theme .search-dropdown__item-category,
body.enterprise-theme .pathways-header {
    color: #334155;
}

body.enterprise-theme .search-dropdown__item-source-link {
    color: #0369A1;
}

body.enterprise-theme .search-dropdown__item-source-link:hover,
body.enterprise-theme .search-dropdown__item-source-link:focus-visible {
    color: #0C4A6E;
}

body.enterprise-theme .response-card {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color var(--enterprise-transition), box-shadow var(--enterprise-transition);
}

body.enterprise-theme .response-card.is-concierge-active,
body.enterprise-theme .response-card.is-no-match-state {
    background: var(--enterprise-surface);
    border-left: 1px solid var(--enterprise-border);
}

body.enterprise-theme .response-header {
    gap: 0.65rem;
}

body.enterprise-theme .response-body {
    padding-left: 0 !important;
}

body.enterprise-theme .response-line {
    height: 1px;
    border-radius: 0;
    background: #0F172A;
}

body.enterprise-theme .success-path::before {
    background: #CBD5E1;
    border-radius: 0;
}

body.enterprise-theme .success-path__track,
body.enterprise-theme .success-path__track::after {
    display: none !important;
}

body.enterprise-theme .success-path__step {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-sm);
    box-shadow: none;
}

body.enterprise-theme .success-path__step.is-actionable:hover,
body.enterprise-theme .success-path__step.is-actionable:focus-visible {
    border-color: #14C2F3;
    box-shadow: 0 4px 10px rgba(20, 194, 243, 0.12);
}

body.enterprise-theme .actions-sidebar-panel {
    border-left: none;
    padding-left: 0;
    gap: 12px;
}

body.enterprise-theme .sidebar-help-widget {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.enterprise-theme .pathway-card {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-sm);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color var(--enterprise-transition), transform var(--enterprise-transition), box-shadow var(--enterprise-transition);
}

body.enterprise-theme .pathway-card:hover {
    border-color: #14C2F3;
    box-shadow: 0 4px 10px rgba(20, 194, 243, 0.12);
}

body.enterprise-theme .specialist-console,
body.enterprise-theme .inline-briefing-form {
    background: var(--enterprise-surface);
    border: 1px solid var(--enterprise-border);
    border-radius: var(--enterprise-radius-md);
    box-shadow: 0 50px 100px -20px rgba(11, 33, 68, 0.12), 0 30px 60px -30px rgba(11, 33, 68, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

body.enterprise-theme textarea.live-query-preview {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: var(--enterprise-radius-sm);
    color: #1E293B;
    font-style: normal;
    transition: border-color var(--enterprise-transition), box-shadow var(--enterprise-transition), background var(--enterprise-transition);
}

body.enterprise-theme textarea.live-query-preview:focus {
    background: #FFFFFF;
    border-color: #14C2F3;
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.15);
}

body.enterprise-theme .specialist-console__email {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: var(--enterprise-radius-sm);
    transition: border-color var(--enterprise-transition), box-shadow var(--enterprise-transition), background var(--enterprise-transition);
}

body.enterprise-theme .specialist-console__email:focus {
    background: #FFFFFF;
    border-color: #14C2F3;
    box-shadow: 0 0 0 3px rgba(20, 194, 243, 0.15);
}

body.enterprise-theme .specialist-console__submit {
    background: #0F172A;
    border: 1px solid #0F172A;
    border-radius: var(--enterprise-radius-sm);
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(15, 23, 42, 0.2);
    transition: background var(--enterprise-transition), border-color var(--enterprise-transition), transform var(--enterprise-transition), box-shadow var(--enterprise-transition);
}

body.enterprise-theme .specialist-console__submit:hover,
body.enterprise-theme .specialist-console__submit:focus-visible {
    background: #1E293B;
    border-color: #1E293B;
}

body.enterprise-theme .specialist-console__submit:disabled {
    background: #E2E8F0;
    border-color: #CBD5E1;
    color: #475569;
}

@media (max-width: 768px) {
    body.enterprise-theme .hero-title {
        font-size: clamp(1.5rem, 6.2vw, 1.95rem);
        line-height: 1.2;
    }

    body.enterprise-theme .hero-subtitle {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    body.enterprise-theme .search-dropdown__item-title {
        font-size: 0.88rem;
    }

    body.enterprise-theme .search-dropdown__item-snippet,
    body.enterprise-theme .search-dropdown__item-category,
    body.enterprise-theme .pathways-header,
    body.enterprise-theme .widget-eyebrow {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* ============================================
   ENTERPRISE HOMEPAGE FINAL POLISH
   ============================================ */
html,
body {
    height: 100%;
}

body.enterprise-theme {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.enterprise-theme .page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.enterprise-theme main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

body.enterprise-theme .hero {
    flex-grow: 1;
}

body.enterprise-theme .footer {
    margin-top: auto;
}

body.enterprise-theme .hero-title {
    margin-bottom: 0.4rem;
}

body.enterprise-theme .hero-subtitle {
    margin: 0 auto 0.8rem;
}

body.enterprise-theme .search-container {
    margin: 0.25rem auto 0.5rem;
}

body.enterprise-theme .hero[data-state="ready"] .search-container {
    margin: 0.25rem auto 0.5rem;
}

body.enterprise-theme .prompt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

body.enterprise-theme .hero[data-state="active"] .prompt-chips {
    margin-top: 0.5rem;
}

body.enterprise-theme .hero[data-state="ready"] .prompt-chips {
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0 1rem;
    max-width: 740px;
}

body.enterprise-theme .stats-bar {
    margin: 0.85rem auto 0;
}

body.enterprise-theme .prompt-chip,
body.enterprise-theme .hero[data-state="ready"] .prompt-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.enterprise-theme .prompt-chip:hover,
body.enterprise-theme .hero[data-state="ready"] .prompt-chip:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

body.enterprise-theme .search-input-wrapper:not(.is-specialist-console):not(.is-specialist-hint):not(.is-specialist-verification) {
    padding: 1.25rem 1.5rem;
}

body.enterprise-theme .search-box {
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45), 0 8px 16px -12px rgba(15, 23, 42, 0.22);
}

@media (max-width: 768px) {
    body.enterprise-theme .hero-title {
        margin-bottom: 0.34rem;
    }

    body.enterprise-theme .hero-subtitle {
        margin-bottom: 0.65rem;
    }

    body.enterprise-theme .search-container,
    body.enterprise-theme .hero[data-state="ready"] .search-container {
        margin: 0.2rem auto 0.45rem;
    }

    body.enterprise-theme .prompt-chips,
    body.enterprise-theme .hero[data-state="active"] .prompt-chips,
    body.enterprise-theme .hero[data-state="ready"] .prompt-chips {
        margin-top: 0.45rem;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
        padding: 0 0.5rem;
    }

    body.enterprise-theme .search-input-wrapper:not(.is-specialist-console):not(.is-specialist-hint):not(.is-specialist-verification) {
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 700px) {
    body.enterprise-theme .prompt-chip,
    body.enterprise-theme .hero[data-state="ready"] .prompt-chip {
        font-size: 0.8rem;
        padding: 0.56rem 0.9rem;
    }

    body.enterprise-theme .search-input-wrapper:not(.is-specialist-console):not(.is-specialist-hint):not(.is-specialist-verification) {
        padding: 0.92rem 1rem;
    }
}

/* ============================================
   ENTERPRISE PHASE 3 - MICRO INTERACTIONS
   ============================================ */
body.enterprise-theme .hero[data-state="active"] .search-box {
    border-color: #14C2F3;
    box-shadow: 0 0 0 1px rgba(20, 194, 243, 0.42), 0 12px 24px -16px rgba(15, 23, 42, 0.35);
}

body.enterprise-theme .search-box:focus-within {
    border-color: #14C2F3;
    box-shadow: 0 0 0 2px #14C2F3, 0 0 0 4px rgba(20, 194, 243, 0.15), 0 12px 24px -16px rgba(15, 23, 42, 0.38);
}

body.enterprise-theme .search-dropdown__item-icon,
body.enterprise-theme .search-dropdown__history-item .search-dropdown__item-icon,
body.enterprise-theme .search-dropdown__quick-action .search-dropdown__item-icon,
body.enterprise-theme .search-dropdown__trend-item .search-dropdown__item-icon,
body.enterprise-theme .search-dropdown__command-icon {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    box-shadow: none;
}

body.enterprise-theme .search-dropdown__item-icon svg,
body.enterprise-theme .search-dropdown__command-icon svg {
    stroke-width: 1.7;
    shape-rendering: geometricPrecision;
    color: currentColor;
}

body.enterprise-theme .search-dropdown__item-icon svg [stroke],
body.enterprise-theme .search-dropdown__command-icon svg [stroke] {
    stroke: currentColor !important;
}

body.enterprise-theme .search-dropdown__item-icon svg [fill]:not([fill="none"]),
body.enterprise-theme .search-dropdown__command-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

body.enterprise-theme .search-dropdown__section-title {
    padding: 0.18rem 0.35rem 0.24rem;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #64748B;
}

body.enterprise-theme .prompt-chip,
body.enterprise-theme .hero[data-state="ready"] .prompt-chip {
    min-height: 36px;
    height: auto;
    padding: 0.5rem 1.25rem;
}

@media (max-width: 768px) {
    body.enterprise-theme .prompt-chip,
    body.enterprise-theme .hero[data-state="ready"] .prompt-chip {
        padding: 0.48rem 1.05rem;
    }
}

@media (max-width: 700px) {
    body.enterprise-theme .prompt-chip,
    body.enterprise-theme .hero[data-state="ready"] .prompt-chip {
        padding: 0.46rem 0.95rem;
    }
}

/* ============================================
   ROLE SWITCH — LIVE SHELL
   ============================================ */
[hidden],
.prompt-chip[hidden] {
    display: none !important;
}

.role-switch {
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.35rem 0.45rem 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: opacity 180ms ease, transform 180ms ease;
}

.role-switch__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #475569;
}

.role-switch__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: #f8fafc;
}

.role-switch__btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.role-switch__btn:hover {
    color: #0f172a;
}

.role-switch__btn.is-active,
.role-switch__btn[aria-pressed="true"] {
    background: #0b2144;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(11, 33, 68, 0.22);
}

.role-switch__btn:focus-visible {
    outline: 2px solid rgba(20, 194, 243, 0.4);
    outline-offset: 2px;
}

.hero[data-state="thinking"] .role-switch,
.hero[data-state="response"] .role-switch {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    height: 0;
    margin: 0 auto;
    overflow: hidden;
}

.hero[data-state="ready"] .role-switch {
    margin: 0 auto 0.75rem;
}

@media (max-width: 700px) {
    .role-switch {
        width: calc(100% - 2rem);
        justify-content: space-between;
        padding: 0.4rem 0.45rem 0.4rem 0.75rem;
    }

    .role-switch__label {
        letter-spacing: 0.12em;
    }

    .role-switch__btn {
        padding: 0.65rem 0.95rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================
   UI ALIGNMENT: PREMIUM TOGGLE & INTENT CARDS
   ========================================================== */

/* --- 1. Segmented Toggle --- */
/* Hide old legacy role switch completely */
.role-switch:not(.role-segmented-control) { display: none !important; }

.role-segmented-control {
    display: flex;
    background: #f1f5f9; /* Light airy grey */
    border-radius: 999px;
    padding: 6px;
    width: max-content;
    margin: 0 auto 2rem auto;
    gap: 4px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.role-tab {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-tab:hover:not([aria-pressed="true"]) {
    color: #0f172a;
}

.role-tab[aria-pressed="true"] {
    background: #0f172a; /* Deep Navy */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Hide toggle when searching */
.hero[data-state="entry-active"] .role-segmented-control,
.hero[data-state="querying"] .role-segmented-control,
.hero[data-state="result"] .role-segmented-control {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
}

/* --- 2. Intent Cards (Replacing Pills) --- */
/* Ensure the parent grid looks great */
.intent-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 820px;
    margin: 2.5rem auto 0 auto;
    width: 100%;
}
@media (max-width: 768px) {
    .intent-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide cards dynamically during states */
.hero[data-state="querying"] .intent-cards-grid,
.hero[data-state="result"] .intent-cards-grid {
    display: none !important;
}

/* Hide inactive roles strictly */
.intent-card[hidden] {
    display: none !important;
}

/* The Card Itself - Aligned with main site feature cards */
.intent-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px; /* Large radius from main site */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    text-decoration: none;
}

.intent-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9; /* Sofema Cyan */
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.intent-card:active {
    transform: scale(0.98);
}

/* Card Icon */
.intent-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f9ff; /* Light cyan background */
    color: #0ea5e9; /* Cyan icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}
.intent-card__icon svg {
    width: 20px;
    height: 20px;
}
.intent-card:hover .intent-card__icon {
    transform: scale(1.05);
}

/* Card Typography */
.intent-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a; /* Deep Navy */
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.intent-card__meta {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* ==========================================================
   HOTFIX: INTENT CARDS, TOGGLE POLISH & STATE BLEED
   ========================================================== */

/* 1. FIX STATE BLEED: Hide the new grid in active states */
.hero[data-state="entry-active"] .intent-cards-grid,
.hero[data-state="querying"] .intent-cards-grid,
.hero[data-state="result"] .intent-cards-grid {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Ensure they only show cleanly in idle/ready states */
.hero[data-state="idle"] .intent-cards-grid,
.hero[data-state="ready"] .intent-cards-grid {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* 2. KILL PHANTOM PILLS: Hide legacy quick-action buttons in the hero */
.hero .quick-actions, 
.hero .quick-actions-bar,
.hero .quick-buttons,
.hero .recent-questions {
    display: none !important;
}

/* 3. POLISH THE TOGGLE: Crisp iOS segmented control style */
.role-segmented-control {
    background: #e2e8f0 !important; /* Solid light gray */
    border: 1px solid #cbd5e1 !important;
    padding: 4px !important;
    margin-bottom: 1.5rem !important; 
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
}
.role-tab {
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
    text-shadow: none !important;
}
.role-tab[aria-pressed="true"] {
    background: #ffffff !important;
    color: #0f172a !important; /* Deep navy */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06) !important;
    border-radius: 999px !important;
}

/* 4. POLISH INTENT CARDS: Spacing and Main Site Shadows */
.intent-cards-grid {
    margin-top: 3rem !important; /* Give the search box breathing room */
    gap: 1.5rem !important;
}
.intent-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important; /* Soft main site shadow */
    border-radius: 20px !important; /* Match main site radius */
    background: #ffffff !important;
}
.intent-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px #0ea5e9 !important;
    transform: translateY(-4px) !important;
}
.intent-card__title {
    font-size: 1.1rem !important;
    color: #0f172a !important;
}

/* 5. CLEANUP RIGHT RAIL OVERLAP */
/* Fix the "historical data" warning overlapping the answer */
.response-precision-alert,
.response-legacy-badge {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    display: block !important;
}

/* ==========================================================
   HOTFIX: LEGACY STATE COMPATIBILITY FOR INTENT CARDS
   ========================================================== */

/* The live shell still emits active/thinking/response states.
   Hide cards and role toggle there as well, and only restore in idle/ready. */
.hero[data-state="active"] .intent-cards-grid,
.hero[data-state="thinking"] .intent-cards-grid,
.hero[data-state="response"] .intent-cards-grid {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.hero[data-state="active"] .role-segmented-control,
.hero[data-state="thinking"] .role-segmented-control,
.hero[data-state="response"] .role-segmented-control {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    pointer-events: none !important;
    position: absolute !important;
}

.hero[data-state="idle"] .role-segmented-control,
.hero[data-state="ready"] .role-segmented-control {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* ==========================================================
   HOTFIX: ROLE TOGGLE STABILITY
   ========================================================== */

/* Keep the segmented control in normal flow while hiding it so it does not
   jump when the hero changes state. */
.role-segmented-control {
    position: relative !important;
    transform: none !important;
    will-change: opacity;
    transition:
        opacity 160ms ease,
        max-height 160ms ease,
        margin 160ms ease,
        padding 160ms ease,
        border-width 160ms ease !important;
}

.hero[data-state="active"] .role-segmented-control,
.hero[data-state="thinking"] .role-segmented-control,
.hero[data-state="response"] .role-segmented-control,
.hero[data-state="entry-active"] .role-segmented-control,
.hero[data-state="querying"] .role-segmented-control,
.hero[data-state="result"] .role-segmented-control {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    position: relative !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

.hero[data-state="idle"] .role-segmented-control,
.hero[data-state="ready"] .role-segmented-control {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    max-height: 64px !important;
    margin: 0 auto 1.5rem auto !important;
}

/* ==========================================================
   HOTFIX: REMOVE FINAL TOGGLE MICRO-JUMP
   ========================================================== */

/* Reserve the toggle footprint even while hidden so the search stack does not
   reflow by a few pixels during card selection / submit transitions. */
.role-segmented-control {
    box-sizing: border-box !important;
    min-height: 52px !important;
}

.hero[data-state="active"] .role-segmented-control,
.hero[data-state="thinking"] .role-segmented-control,
.hero[data-state="response"] .role-segmented-control,
.hero[data-state="entry-active"] .role-segmented-control,
.hero[data-state="querying"] .role-segmented-control,
.hero[data-state="result"] .role-segmented-control {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: relative !important;
    transform: none !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 auto 1.5rem auto !important;
    padding: 4px !important;
    border-width: 1px !important;
    overflow: hidden !important;
}

/* Ensure Intent Cards show cleanly in idle and ready states */
.hero[data-state="idle"] .intent-cards-grid,
.hero[data-state="ready"] .intent-cards-grid {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Ensure the big Welcome text stays hidden in the ready state */
.hero[data-state="ready"] .hero-collapsible {
    display: none !important;
}

/* ==========================================================
   READY STATE POLISH (CLEAN DESK LAYOUT)
   ========================================================== */

/* Push the content down slightly so it sits comfortably in the upper third */
.hero[data-state="ready"] {
    padding-top: 120px !important;
    min-height: 65vh !important;
}

/* Ensure the welcome text remains strictly hidden in this state */
.hero[data-state="ready"] .hero-collapsible {
    display: none !important;
    opacity: 0 !important;
}

/* Ensure the intent cards slide up smoothly when returning to this state */
.hero[data-state="ready"] .intent-cards-grid {
    display: grid !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: softSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ============================================
   HOMEPAGE WORLD-CLASS UPGRADE
   ============================================ */
body.enterprise-theme.knowledge-root-page .hero {
    min-height: auto !important;
    padding: 2.5rem 1.25rem 2.25rem !important;
    display: block !important;
}

body.enterprise-theme.knowledge-root-page .hero-content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] {
    padding-top: 2.5rem !important;
    min-height: auto !important;
}

body.enterprise-theme.knowledge-root-page .hero-collapsible,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .hero-collapsible {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0 0 0 0) !important;
    pointer-events: auto !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 auto 1rem !important;
    padding: 0 !important;
}

body.enterprise-theme.knowledge-root-page .hero-title {
    max-width: 14ch;
    margin: 0 auto 0.45rem !important;
    font-size: clamp(2.35rem, 5vw, 3.45rem) !important;
    line-height: 1.06 !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    text-shadow: none !important;
}

body.enterprise-theme.knowledge-root-page .hero-subtitle {
    max-width: 43rem;
    margin: 0 auto 1rem !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #475569 !important;
}

body.enterprise-theme.knowledge-root-page .role-segmented-control {
    background: #f8fafc !important;
    border: 1px solid #d8e1ea !important;
    box-shadow: none !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 3px !important;
    gap: 2px !important;
    margin: 0 auto 0.85rem auto !important;
}

body.enterprise-theme.knowledge-root-page .role-tab {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

body.enterprise-theme.knowledge-root-page .role-tab[aria-pressed="true"] {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

body.enterprise-theme.knowledge-root-page .hero[data-state="active"] .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="thinking"] .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="response"] .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="entry-active"] .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="querying"] .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="result"] .role-segmented-control {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

body.enterprise-theme.knowledge-root-page .search-container,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .search-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 0.8rem !important;
}

body.enterprise-theme.knowledge-root-page .search-input-wrapper:not(.is-specialist-console):not(.is-specialist-hint):not(.is-specialist-verification) {
    padding: 1rem 1.2rem !important;
}

body.enterprise-theme.knowledge-root-page .search-box {
    border: 1px solid #d7e0ea !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.34), 0 6px 12px -10px rgba(15, 23, 42, 0.2) !important;
}

body.enterprise-theme.knowledge-root-page .search-box:focus-within {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px #0f172a, 0 12px 24px -16px rgba(15, 23, 42, 0.32) !important;
}

body.enterprise-theme.knowledge-root-page .intent-cards-grid,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .intent-cards-grid {
    max-width: 760px !important;
    gap: 1rem !important;
    margin: 1rem auto 0 !important;
    animation: none !important;
}

body.enterprise-theme.knowledge-root-page .intent-card {
    padding: 1.15rem 1.15rem 1rem !important;
    border: 1px solid #dbe4ed !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.enterprise-theme.knowledge-root-page .intent-card:hover {
    transform: translateY(-2px) !important;
    border-color: #b9c7d6 !important;
    box-shadow: 0 14px 28px -22px rgba(15, 23, 42, 0.38), 0 6px 12px -10px rgba(15, 23, 42, 0.22) !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__top {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

body.enterprise-theme.knowledge-root-page .intent-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0 !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__chip {
    color: #5b6b7d;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.enterprise-theme.knowledge-root-page .intent-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0 !important;
    border-radius: 10px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    flex-shrink: 0;
}

body.enterprise-theme.knowledge-root-page .intent-card__icon svg {
    width: 18px;
    height: 18px;
}

body.enterprise-theme.knowledge-root-page .intent-card__title {
    margin-bottom: 0.45rem !important;
    font-size: 1.02rem !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__meta {
    margin-bottom: 0.85rem;
    font-size: 0.89rem;
    line-height: 1.55;
    color: #475569;
}

body.enterprise-theme.knowledge-root-page .intent-card__footer {
    margin-top: auto;
    color: #0b2144;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.enterprise-theme.knowledge-root-page .knowledge-root-results .knowledge-section__eyebrow {
    background: transparent;
    color: #64748b;
    padding: 0;
    margin-bottom: 0.4rem;
    text-transform: none;
    letter-spacing: 0.03em;
}

body.enterprise-theme.knowledge-root-page .knowledge-responsible-ai {
    margin: 2rem auto 1.5rem !important;
    max-width: 760px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.enterprise-theme.knowledge-root-page .knowledge-responsible-ai__eyebrow {
    display: none !important;
}

body.enterprise-theme.knowledge-root-page .knowledge-responsible-ai__copy {
    gap: 0 !important;
}

body.enterprise-theme.knowledge-root-page .knowledge-responsible-ai__copy p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.65;
    max-width: 72ch;
}

@media (max-width: 768px) {
    body.enterprise-theme.knowledge-root-page .hero {
        padding: 1.75rem 1rem 2rem !important;
    }

    body.enterprise-theme.knowledge-root-page .hero-title {
        max-width: 12ch;
        font-size: clamp(1.9rem, 7vw, 2.45rem) !important;
        line-height: 1.1 !important;
    }

    body.enterprise-theme.knowledge-root-page .hero-subtitle {
        font-size: 0.94rem !important;
        margin-bottom: 0.9rem !important;
    }

    body.enterprise-theme.knowledge-root-page .role-segmented-control {
        margin-bottom: 0.75rem !important;
    }

    body.enterprise-theme.knowledge-root-page .role-tab {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.84rem !important;
    }

    body.enterprise-theme.knowledge-root-page .search-container,
    body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .search-container {
        margin-bottom: 0.7rem !important;
    }

    body.enterprise-theme.knowledge-root-page .intent-cards-grid,
    body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .intent-cards-grid {
        gap: 0.85rem !important;
        margin-top: 0.85rem !important;
    }

    body.enterprise-theme.knowledge-root-page .intent-card {
        padding: 1rem !important;
    }
}

/* ============================================
   HOMEPAGE FINAL POLISH
   ============================================ */
body.enterprise-theme.knowledge-root-page .hero,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] {
    min-height: auto !important;
    padding: 1.4rem 1.25rem 1.95rem !important;
}

body.enterprise-theme.knowledge-root-page .hero-content {
    max-width: 760px !important;
}

body.enterprise-theme.knowledge-root-page .hero-collapsible,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .hero-collapsible {
    display: block !important;
    margin: 0 auto 0.72rem !important;
}

body.enterprise-theme.knowledge-root-page .hero-title {
    max-width: 12ch !important;
    margin: 0 auto 0.28rem !important;
    font-size: clamp(2.6rem, 5.5vw, 3.7rem) !important;
    line-height: 1.03 !important;
    font-weight: 500 !important;
    letter-spacing: -0.03em !important;
}

body.enterprise-theme.knowledge-root-page .hero-subtitle {
    max-width: 34rem !important;
    margin: 0 auto 0.78rem !important;
    font-size: 1rem !important;
    line-height: 1.58 !important;
    color: #526173 !important;
}

body.enterprise-theme.knowledge-root-page .role-segmented-control,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .role-segmented-control {
    margin: 0 auto 0.58rem auto !important;
    padding: 3px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    box-shadow: none !important;
}

body.enterprise-theme.knowledge-root-page .role-tab {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

body.enterprise-theme.knowledge-root-page .role-tab[aria-pressed="true"] {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07) !important;
}

body.enterprise-theme.knowledge-root-page .search-container,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .search-container {
    max-width: 760px !important;
    margin: 0 auto 1.05rem !important;
}

body.enterprise-theme.knowledge-root-page .search-box {
    border: 1px solid rgba(203, 213, 225, 0.92) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

body.enterprise-theme.knowledge-root-page .search-input-wrapper:not(.is-specialist-console):not(.is-specialist-hint):not(.is-specialist-verification) {
    padding: 1.08rem 1.25rem !important;
}

body.enterprise-theme.knowledge-root-page .search-box:focus-within {
    border-color: rgba(59, 130, 246, 0.42) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

body.enterprise-theme.knowledge-root-page .intent-cards-grid,
body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .intent-cards-grid {
    max-width: 760px !important;
    gap: 1rem !important;
    margin: 0 auto !important;
}

body.enterprise-theme.knowledge-root-page .intent-card {
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

body.enterprise-theme.knowledge-root-page .intent-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px -24px rgba(15, 23, 42, 0.28) !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__top {
    margin-bottom: 0.78rem !important;
    align-items: flex-start !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__kicker {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

body.enterprise-theme.knowledge-root-page .intent-card__icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569 !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__title {
    margin-bottom: 0.42rem !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__meta {
    color: #526173 !important;
}

body.enterprise-theme.knowledge-root-page .intent-card__footer {
    color: #0f172a !important;
}

body.enterprise-theme.knowledge-root-page .knowledge-responsible-ai {
    margin: 1.85rem auto 1.35rem !important;
    max-width: 760px !important;
}

@media (max-width: 768px) {
    body.enterprise-theme.knowledge-root-page .hero,
    body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] {
        padding: 1.2rem 1rem 1.8rem !important;
    }

    body.enterprise-theme.knowledge-root-page .hero-title {
        max-width: 10ch !important;
        font-size: clamp(2rem, 7vw, 2.85rem) !important;
    }

    body.enterprise-theme.knowledge-root-page .hero-subtitle {
        margin-bottom: 0.72rem !important;
        font-size: 0.95rem !important;
    }

    body.enterprise-theme.knowledge-root-page .role-segmented-control,
    body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .role-segmented-control {
        margin-bottom: 0.52rem !important;
    }

    body.enterprise-theme.knowledge-root-page .search-container,
    body.enterprise-theme.knowledge-root-page .hero[data-state="ready"] .search-container {
        margin-bottom: 0.95rem !important;
    }
}
