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

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

:root {
    --bg: #d8d1f3;
    --bg-deep: #c6bde9;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.66);
    --panel-border: rgba(111, 91, 178, 0.18);
    --panel-shadow: 0 30px 80px rgba(84, 71, 139, 0.18);
    --shadow-soft: 0 16px 40px rgba(109, 92, 169, 0.12);
    --ink: #211c3b;
    --ink-soft: #615a82;
    --ink-muted: #8a84a8;
    --line: rgba(94, 79, 151, 0.1);
    --lavender: #7567f8;
    --lavender-deep: #5b4ae5;
    --blue: #5188e6;
    --coral: #ef7672;
    --pink: #db63d5;
    --mint: #88d9bf;
    --success: #4cae74;
    --danger: #ef5f62;
    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

html,
body {
    min-height: 100%;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(180deg, #d8d1f3 0%, #d7d4f7 42%, #cec8f0 100%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    overflow: hidden;
}

.page-aura {
    position: fixed;
    border-radius: 50%;
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}

.aura-one {
    width: 360px;
    height: 360px;
    background: rgba(124, 111, 247, 0.24);
    top: -90px;
    left: -70px;
}

.aura-two {
    width: 420px;
    height: 420px;
    background: rgba(241, 143, 135, 0.2);
    right: -100px;
    bottom: -120px;
}

.page-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1260px;
    margin: 14px auto;
    padding: 0 20px;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 52px);
    max-height: calc(100vh - 52px);
    border-radius: 42px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(26px);
}

.chatbox-only .app-shell {
    max-width: 980px;
    margin: 20px auto;
}

.chatbox-only .app-container {
    min-height: calc(100dvh - 72px);
    max-height: calc(100dvh - 72px);
    border-radius: 34px;
}

.chatbox-only .app-header {
    justify-content: space-between;
    padding: 16px 20px 12px;
}

.chatbox-only .header-left {
    flex: 0 0 auto;
}

.chatbox-only .header-right {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
}

.chatbox-only .chat-container {
    padding-top: 8px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
    border-bottom: 1px solid var(--line);
}

.header-left,
.header-right,
.model-selector-wrapper,
.logo,
.logo-copy,
.profile-chip,
.deal-header-left,
.flight-row-actions,
.modal-actions,
.sidebar-header {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 12px;
}

.header-right {
    gap: 12px;
}

.logo {
    gap: 12px;
}

.logo-icon,
.message.bot .message-avatar,
.welcome-icon,
.profile-chip-avatar,
.profile-avatar,
.deal-badge,
.burger-btn,
.sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--lavender));
    box-shadow: 0 18px 34px rgba(95, 113, 229, 0.28);
    color: #fff;
    font-size: 22px;
}

.logo-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-text,
.welcome-title,
.sidebar-title,
.combo-section-title,
.modal-title {
    font-family: var(--font-display);
}

.logo-text {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.logo-subtext,
.profile-eyebrow,
.sidebar-kicker,
.model-label,
.deal-total-label,
.input-hint,
.session-item-date,
.flight-row-fn,
.deal-footer,
.profile-meta,
.modal-text,
.status-pill,
.combo-card-label {
    color: var(--ink-muted);
}

.logo-subtext,
.profile-eyebrow,
.sidebar-kicker,
.model-label,
.status-pill,
.deal-total-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 700;
}

.burger-btn,
.sidebar-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 16px;
    background: rgba(117, 103, 248, 0.1);
    color: var(--lavender-deep);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.burger-btn:hover,
.sidebar-close:hover {
    background: rgba(117, 103, 248, 0.18);
    transform: translateY(-1px);
}

.profile-chip {
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(111, 91, 178, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.profile-chip-avatar,
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #557ce6, #8865ff 65%, #d667e8);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.profile-chip-text {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink);
}

.model-selector-wrapper {
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(247, 246, 255, 0.88);
    border: 1px solid rgba(111, 91, 178, 0.1);
}

.model-select,
.profile-field input,
.profile-field select,
.profile-field textarea {
    font: inherit;
    color: var(--ink);
    border: 1px solid rgba(111, 91, 178, 0.12);
    outline: none;
}

.model-select {
    border-radius: 999px;
    padding: 8px 34px 8px 12px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23615982' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.header-model-selector {
    gap: 8px;
    padding: 6px 10px;
    box-shadow: none;
}

.header-model-selector .model-label {
    font-size: 0.64rem;
}

.header-model-selector .model-select {
    padding: 6px 28px 6px 10px;
    font-size: 0.84rem;
}

.header-model-selector .tier-badge {
    padding: 4px 8px;
    font-size: 0.62rem;
}

.tier-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tier-fast { background: rgba(136, 217, 191, 0.18); color: #246f58; }
.tier-mid { background: rgba(81, 136, 230, 0.16); color: #244e9d; }
.tier-high { background: rgba(117, 103, 248, 0.16); color: #5845d6; }

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-container::-webkit-scrollbar,
.sidebar-sessions::-webkit-scrollbar,
.sidebar-prefs::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-thumb,
.sidebar-sessions::-webkit-scrollbar-thumb,
.sidebar-prefs::-webkit-scrollbar-thumb {
    background: rgba(115, 101, 191, 0.22);
    border-radius: 999px;
}

.welcome-container {
    display: grid;
    gap: 12px;
}

.welcome-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.welcome-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-hero.compact {
    grid-template-columns: 1fr;
}

.welcome-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(81, 136, 230, 0.12);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.welcome-title {
    font-size: clamp(1.65rem, 3.3vw, 2.35rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.welcome-subtitle {
    max-width: 760px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: 0.92rem;
}

.welcome-showcase {
    display: grid;
    gap: 14px;
}

.showcase-card {
    min-height: 152px;
    padding: 22px;
    border-radius: 26px;
    color: #fff;
    box-shadow: 0 20px 48px rgba(109, 92, 169, 0.18);
}

.showcase-card.primary {
    background: linear-gradient(135deg, #4a84df, #5a80ea 55%, #8d69fd);
}

.showcase-card.secondary {
    background: linear-gradient(135deg, #7f6ef5, #9b63f7 55%, #c86be2);
}

.showcase-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.76;
}

.showcase-title {
    margin-top: 16px;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 800;
}

.showcase-meta {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
}

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-chip,
.suggestion-tile,
.sidebar-new-btn,
.profile-edit-btn,
.send-btn,
.deal-book-btn,
.modal-cancel,
.modal-confirm,
.session-delete,
.flight-row-link,
.combo-leg-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.suggestion-chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.suggestion-chip:hover,
.suggestion-tile:hover,
.sidebar-new-btn:hover,
.profile-edit-btn:hover,
.send-btn:hover,
.deal-book-btn:hover,
.modal-cancel:hover,
.modal-confirm:hover,
.flight-row-link:hover,
.combo-leg-link:hover {
    transform: translateY(-2px);
}

.suggestion-tile {
    min-height: 82px;
    min-width: 200px;
    flex: 1 1 200px;
    border: 0;
    border-radius: 20px;
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.suggestion-tile.coral { background: linear-gradient(135deg, #eb7b71, #f1937b); }
.suggestion-tile.violet { background: linear-gradient(135deg, #7b69f7, #a25df1); }
.suggestion-tile.blue { background: linear-gradient(135deg, #5390ed, #6c7ff0); }

.message {
    display: flex;
    gap: 12px;
    max-width: min(900px, 92%);
    animation: bubbleUp 0.28s ease;
}

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

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    flex-shrink: 0;
    font-weight: 800;
    line-height: 0;
}

.avatar-silhouette {
    display: block;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #4f86e7, #7a69f7);
    color: #fff;
}

.message.bot .message-avatar {
    background: rgba(117, 103, 248, 0.12);
    color: var(--lavender-deep);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.message-bubble {
    padding: 16px 18px;
    border-radius: 24px;
    line-height: 1.72;
    font-size: 0.95rem;
    word-break: break-word;
    box-shadow: var(--shadow-soft);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #4a84df, #7b67f7 75%);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.message.bot .message-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(111, 91, 178, 0.08);
    color: var(--ink);
    border-bottom-left-radius: 8px;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 6px 2px;
}

.typing-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(117, 103, 248, 0.4);
    animation: pulse 1.1s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
    0%, 80%, 100% { opacity: 0.36; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}

.search-params,
.status-pill {
    width: fit-content;
    border-radius: 999px;
    padding: 9px 14px;
}

.search-params {
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    background: rgba(117, 103, 248, 0.08);
    border: 1px solid rgba(117, 103, 248, 0.14);
    color: var(--lavender-deep);
    font-size: 0.8rem;
    font-weight: 700;
}

.rt-wrapper,
.flight-cards-container,
.combo-section,
.deal-legs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-group-label,
.rt-section-header,
.combo-section-title {
    display: inline-flex;
    width: fit-content;
}

.date-group-label {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(117, 103, 248, 0.1);
    color: var(--lavender-deep);
    font-size: 0.76rem;
    font-weight: 800;
}

.flight-row,
.combo-card,
.best-deal-box,
.rt-box,
.no-results,
.profile-modal-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(111, 91, 178, 0.08);
    box-shadow: var(--shadow-soft);
}

.flight-row {
    padding: 14px 16px;
    border-radius: 22px;
}

.flight-row-main {
    display: flex;
    gap: 10px;
}

.flight-row-num {
    min-width: 28px;
    color: var(--lavender-deep);
    font-weight: 800;
}

.flight-row-body {
    flex: 1;
    min-width: 0;
}

.flight-row-line1,
.flight-row-line2,
.combo-card-header,
.combo-card-leg,
.deal-leg,
.sidebar-profile-card,
.session-item,
.profile-grid {
    display: flex;
}

.flight-row-line1 {
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 6px;
}

.flight-row-airline,
.deal-leg-route,
.session-item-title,
.profile-name {
    font-weight: 800;
}

.flight-row-dur,
.flight-row-stops,
.flight-row-line2 > span:first-child,
.combo-leg-detail,
.deal-leg-meta {
    color: var(--ink-soft);
}

.flight-row-dur {
    margin-left: auto;
}

.flight-row-line2 {
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.flight-row-price,
.combo-card-total,
.deal-total,
.deal-leg-price {
    font-weight: 800;
    color: var(--lavender-deep);
}

.flight-row-price {
    font-size: 1rem;
}

.flight-row-layover {
    display: inline-flex;
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(81, 136, 230, 0.1);
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 700;
}

.fare-info {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(247, 248, 252, 0.86);
    border: 1px solid rgba(111, 91, 178, 0.08);
}

.fare-title {
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.fare-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fare-chip {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(136, 217, 191, 0.18);
    color: #246f58;
    font-size: 0.72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.fare-note {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 0.7rem;
    line-height: 1.35;
}

.flight-row-actions {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.flight-row-link,
.combo-leg-link {
    text-decoration: none;
    color: var(--lavender-deep);
    font-weight: 700;
}

.rt-box {
    padding: 14px;
    border-radius: 28px;
}

.rt-section {
    padding: 4px;
}

.rt-section-header {
    margin-bottom: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rt-out { background: rgba(81, 136, 230, 0.12); color: #3d5eb1; }
.rt-ret { background: rgba(239, 118, 114, 0.12); color: #bb5d4d; }

.rt-divider {
    display: flex;
    justify-content: center;
    padding: 8px 0 14px;
}

.rt-divider span {
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--lavender));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.combo-section-title {
    font-size: 0.94rem;
    letter-spacing: -0.02em;
}

.combo-section-note {
    margin-left: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.combo-card {
    border-radius: 24px;
    padding: 15px 16px;
    border-left: 6px solid var(--lavender);
}

.combo-card-header,
.combo-card-leg {
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.combo-card-label {
    background: rgba(117, 103, 248, 0.12);
    color: var(--lavender-deep);
    padding: 5px 10px;
    border-radius: 999px;
}

.best-deal-box {
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.96));
    border: 1px solid rgba(76, 174, 116, 0.18);
    overflow: hidden;
}

.deal-header,
.deal-footer {
    padding: 16px 18px;
}

.deal-header-left {
    gap: 10px;
    flex-wrap: wrap;
}

.deal-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4fb373, #5cc98e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.deal-total {
    font-size: 1.8rem;
}

.deal-legs {
    padding: 0 18px 18px;
}

.deal-leg {
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(111, 91, 178, 0.08);
}

.deal-leg-dir {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deal-leg-out { background: rgba(81, 136, 230, 0.12); color: #355bac; }
.deal-leg-ret { background: rgba(239, 118, 114, 0.12); color: #bf5d50; }

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

.deal-book-btn,
.send-btn,
.sidebar-new-btn,
.profile-edit-btn,
.modal-confirm {
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--lavender));
    color: #fff;
}

.deal-book-btn {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.input-area {
    padding: 12px 18px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.86));
    border-top: 1px solid var(--line);
}

.status-pill {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(111, 91, 178, 0.1);
    font-size: 0.72rem;
    padding: 7px 12px;
}

.status-pill.muted {
    color: var(--ink-soft);
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(111, 91, 178, 0.12);
    box-shadow: var(--shadow-soft);
}

.input-wrapper:focus-within {
    border-color: rgba(117, 103, 248, 0.26);
    box-shadow: 0 20px 36px rgba(109, 92, 169, 0.16);
}

.message-input {
    width: 100%;
    border: 0;
    resize: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    line-height: 1.7;
    max-height: 120px;
}

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

.message-input:focus {
    outline: none;
}

.send-btn {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(95, 113, 229, 0.26);
}

.send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.input-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 0.72rem;
}

.no-results,
.error-message {
    padding: 16px 18px;
    border-radius: 22px;
    font-size: 0.92rem;
}

.no-results {
    color: var(--ink-soft);
}

.error-message {
    background: rgba(255, 245, 245, 0.96);
    color: #a84753;
    border: 1px solid rgba(239, 95, 98, 0.18);
}

.sidebar-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 22, 52, 0.26);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.sidebar-overlay { z-index: 90; }
.modal-overlay { z-index: 140; display: flex; align-items: center; justify-content: center; }

.sidebar-overlay.open,
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 18px;
    left: 18px;
    bottom: 18px;
    width: 332px;
    max-width: calc(100vw - 36px);
    padding: 14px;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.44));
    border: 1px solid rgba(255, 255, 255, 0.54);
    box-shadow: 0 24px 60px rgba(55, 43, 100, 0.22);
    backdrop-filter: blur(34px) saturate(140%);
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.24s ease;
    z-index: 120;
}

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

.sidebar-header {
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 14px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-profile-card {
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.profile-copy {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1rem;
    color: var(--ink);
}

.profile-meta,
.sidebar-prefs {
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(33, 28, 59, 0.74);
}

.profile-edit-btn {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(95, 113, 229, 0.18);
}

.sidebar-new-btn {
    gap: 8px;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-sessions {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.session-item {
    gap: 8px;
    align-items: center;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid transparent;
}

.session-item.active {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(111, 91, 178, 0.1);
}

.session-item-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 14px;
}

.session-item-title {
    font-size: 0.92rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-delete {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
}

.session-delete:hover {
    background: rgba(239, 95, 98, 0.12);
    color: #b74d56;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(94, 79, 151, 0.08);
}

.sidebar-account-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.sidebar-reset-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-reset-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(239, 95, 98, 0.18);
    background: rgba(255, 255, 255, 0.54);
    color: #a84753;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-prefs {
    margin-top: 10px;
    max-height: 98px;
    overflow-y: auto;
    padding-right: 4px;
}

.modal-box {
    width: min(92vw, 460px);
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--panel-shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.profile-modal-box {
    width: min(92vw, 560px);
}

.modal-title {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.modal-text {
    margin-top: 8px;
    line-height: 1.7;
    font-size: 0.92rem;
    text-transform: none;
    letter-spacing: normal;
}

.profile-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.profile-grid {
    gap: 12px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(248, 247, 255, 0.92);
}

.profile-field textarea {
    resize: vertical;
    min-height: 102px;
}

.modal-actions {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-cancel,
.modal-confirm {
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.modal-cancel {
    border: 1px solid rgba(111, 91, 178, 0.14);
    background: rgba(248, 247, 255, 0.94);
    color: var(--ink);
}

.header-admin-link,
.header-logout-btn,
.sidebar-admin-link,
.sidebar-logout-btn,
.admin-link-btn,
.admin-logout-btn,
.admin-delete-btn,
.admin-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.header-admin-link,
.admin-link-btn,
.admin-refresh-btn {
    padding: 10px 14px;
    background: rgba(117, 103, 248, 0.12);
    color: var(--lavender-deep);
    border: 1px solid rgba(117, 103, 248, 0.12);
}

.header-logout-btn,
.sidebar-logout-btn,
.admin-logout-btn,
.admin-delete-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #a84753;
    border: 1px solid rgba(239, 95, 98, 0.18);
}

.sidebar-admin-link,
.sidebar-logout-btn {
    width: 100%;
    margin-bottom: 10px;
}

.header-logout-form,
.sidebar-logout-form {
    margin: 0;
}

.header-logout-btn {
    font: inherit;
}

.admin-on {
    color: #246f58;
    background: rgba(136, 217, 191, 0.18);
}

.auth-page,
.admin-page {
    overflow-y: auto;
}

.auth-shell,
.admin-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 32px));
    margin: 24px auto;
}

.auth-shell {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.auth-card,
.admin-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(24px);
}

.auth-card {
    width: min(480px, 100%);
    padding: 28px;
    border-radius: 32px;
}

.auth-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.auth-title,
.admin-title,
.admin-card-header h2 {
    font-family: var(--font-display);
    letter-spacing: -0.04em;
}

.auth-title {
    font-size: 2rem;
}

.auth-subtitle,
.admin-subtitle,
.admin-inline-status,
.admin-field small,
.auth-footer {
    color: var(--ink-soft);
}

.auth-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 245, 245, 0.96);
    border: 1px solid rgba(239, 95, 98, 0.16);
    color: #a84753;
    line-height: 1.6;
}

.auth-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.auth-field,
.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.auth-field input,
.admin-field input,
.admin-field select {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(111, 91, 178, 0.12);
    background: rgba(248, 247, 255, 0.92);
    font: inherit;
    color: var(--ink);
}

.auth-submit {
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--blue), var(--lavender));
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(95, 113, 229, 0.22);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.auth-footer a {
    color: var(--lavender-deep);
    font-weight: 800;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 8px 4px;
}

.admin-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-tab-btn {
    border: 1px solid rgba(111, 91, 178, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--lavender));
    color: #fff;
    box-shadow: 0 14px 24px rgba(95, 113, 229, 0.2);
}

.admin-tab-panel {
    margin-bottom: 18px;
}

.admin-tab-panel[hidden] {
    display: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-grid-logs {
    grid-template-columns: 1fr 1.2fr;
}

.admin-card {
    padding: 22px;
    border-radius: 30px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-switch,
.admin-model-option,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-switch {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 247, 255, 0.92);
    border: 1px solid rgba(111, 91, 178, 0.08);
    font-weight: 700;
}

.admin-models {
    display: grid;
    gap: 10px;
}

.admin-model-option {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 247, 255, 0.92);
    border: 1px solid rgba(111, 91, 178, 0.08);
}

.admin-model-option span {
    flex: 1;
    font-weight: 700;
}

.admin-model-option small {
    color: var(--ink-muted);
    font-weight: 800;
}

.admin-inline-status {
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-table-wrap {
    overflow: auto;
    max-height: 560px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(111, 91, 178, 0.08);
    text-align: left;
    font-size: 0.88rem;
    vertical-align: top;
}

.admin-card-fixed-logs {
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.admin-log-box {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: 10px;
    padding-right: 4px;
    min-height: 0;
}

.admin-log-box::-webkit-scrollbar {
    width: 6px;
}

.admin-log-box::-webkit-scrollbar-track {
    background: transparent;
}

.admin-log-box::-webkit-scrollbar-thumb {
    background: rgba(111, 91, 178, 0.18);
    border-radius: 6px;
}

.admin-log-box::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 91, 178, 0.32);
}

.admin-log-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 247, 255, 0.92);
    border: 1px solid rgba(111, 91, 178, 0.08);
}

.admin-log-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.admin-log-details {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--ink);
}

.admin-log-detail-row {
    padding: 3px 0;
    word-break: break-word;
}

.admin-log-detail-row .detail-label {
    font-weight: 700;
    color: var(--ink-soft);
    margin-right: 4px;
}

.admin-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(248, 247, 255, 0.92);
    color: var(--ink-soft);
}

@media (max-width: 980px) {
    .app-shell {
        margin: 0;
        padding: 0;
    }

    .app-container {
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .welcome-hero {
        grid-template-columns: 1fr;
    }

    .chatbox-only .app-shell {
        margin: 0;
        max-width: none;
    }

    .chatbox-only .app-container {
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .admin-grid,
    .admin-grid-logs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .app-header {
        padding: 14px 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .chatbox-only .app-header {
        padding: 12px 14px 8px;
    }

    .chatbox-only .header-right {
        justify-content: flex-end;
        margin-left: 0;
    }

    .admin-topbar,
    .auth-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-shell,
    .auth-shell {
        width: min(100vw - 20px, 100%);
        margin: 10px auto 18px;
    }

    .chat-container {
        padding: 18px 14px 14px;
    }

    .chatbox-only .chat-container {
        padding: 10px 12px 12px;
    }

    .message {
        max-width: 100%;
    }

    .message-avatar {
        width: 36px;
        height: 36px;
        border-radius: 14px;
    }

    .message-bubble {
        padding: 14px 15px;
    }

    .suggestion-tile {
        min-width: 100%;
    }

    .deal-leg,
    .combo-card-leg,
    .flight-row-line2 {
        align-items: flex-start;
    }

    .deal-leg {
        flex-wrap: wrap;
    }

    .input-area {
        padding: 14px 14px 18px;
    }

    .chatbox-only .input-area {
        padding: 10px 12px 14px;
    }

    .chatbox-only .header-model-selector {
        width: calc(100vw - 92px);
        min-width: 0;
        gap: 6px;
        padding: 6px 8px;
    }

    .chatbox-only .header-model-selector .model-select {
        min-width: 0;
        width: 100%;
    }

    .profile-grid {
        flex-direction: column;
    }

    .sidebar {
        top: 8px;
        left: 8px;
        bottom: 8px;
        width: min(360px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        border-radius: 26px;
    }

    .sidebar-profile-card {
        padding: 12px;
        border-radius: 22px;
    }

    .sidebar-prefs {
        max-height: 76px;
    }

    .sidebar-account-zone {
        padding-top: 8px;
    }

    .admin-card {
        padding: 16px;
        border-radius: 24px;
    }

    .admin-card-header,
    .admin-form-actions,
    .admin-actions,
    .admin-switch,
    .admin-model-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-actions .auth-submit,
    .admin-actions > a,
    .admin-actions form,
    .admin-actions button,
    .admin-refresh-btn,
    .admin-delete-btn {
        width: 100%;
    }

    .admin-actions form {
        display: flex;
    }

    .admin-table-wrap {
        overflow: visible;
        max-height: none;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-table tr {
        padding: 14px;
        border-radius: 18px;
        background: rgba(248, 247, 255, 0.92);
        border: 1px solid rgba(111, 91, 178, 0.08);
    }

    .admin-table td {
        border: 0;
        padding: 6px 0;
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 10px;
        word-break: break-word;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--ink-muted);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .admin-card-fixed-logs {
        max-height: 500px;
    }

    .admin-log-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .chatbox-only .app-header {
        gap: 10px;
        padding: 10px 10px 6px;
    }

    .chatbox-only .header-model-selector {
        width: calc(100vw - 76px);
        border-radius: 18px;
    }

    .chatbox-only .header-model-selector .model-label,
    .chatbox-only .header-model-selector .tier-badge {
        display: none;
    }

    .chatbox-only .header-model-selector .model-select {
        font-size: 0.82rem;
        padding: 8px 28px 8px 10px;
    }

    .chatbox-only .chat-container {
        padding: 8px 10px 10px;
    }

    .chatbox-only .input-area {
        padding: 8px 10px 12px;
    }

    .chatbox-only .input-wrapper {
        gap: 8px;
        padding: 8px 8px 8px 12px;
        border-radius: 20px;
    }

    .chatbox-only .send-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .sidebar {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        left: 6px;
        right: 6px;
        top: 6px;
        bottom: 6px;
        padding: 12px;
        border-radius: 22px;
    }

    .sidebar-title {
        font-size: 1.05rem;
    }

    .sidebar-new-btn,
    .sidebar-admin-link,
    .sidebar-logout-btn,
    .sidebar-reset-btn {
        font-size: 0.86rem;
    }
}

/* ========================================================
   VOCFlight Guide Page
   ======================================================== */
body.guide-page {
    overflow: auto;
}

.guide-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.guide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.guide-back-link,
.auth-guide-link,
.header-guide-link,
.sidebar-guide-link {
    color: var(--lavender-deep);
    text-decoration: none;
    font-weight: 800;
}

.guide-back-link,
.header-guide-link,
.sidebar-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 103, 248, 0.22);
    background: rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(84, 71, 139, 0.08);
}

.guide-back-link {
    padding: 12px 16px;
}

.header-guide-link {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.sidebar-guide-link {
    width: 100%;
    padding: 11px 14px;
    margin: 8px 0;
    font-size: 13px;
}

.auth-guide-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

.guide-hero,
.guide-section,
.guide-footer-cta {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(24px);
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 22px;
    align-items: stretch;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 42px;
    overflow: hidden;
}

.guide-hero h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.guide-hero p {
    max-width: 720px;
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.guide-quick-card {
    min-height: 100%;
    padding: 26px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(136, 217, 191, 0.48), transparent 42%),
        linear-gradient(160deg, #211c3b, #4d43c4);
    color: #fff;
    box-shadow: 0 24px 50px rgba(63, 52, 151, 0.28);
}

.guide-card-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
}

.guide-quick-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.guide-quick-card p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.guide-section {
    margin-top: 20px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 34px;
}

.guide-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.guide-section-header span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
}

.guide-section-header h2,
.guide-footer-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.guide-grid {
    display: grid;
    gap: 16px;
}

.guide-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-step-card,
.prompt-card,
.guide-callout {
    border: 1px solid rgba(117, 103, 248, 0.12);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.guide-step-card {
    padding: 22px;
}

.guide-step-card h3,
.guide-callout h3 {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.02em;
}

.guide-step-card p,
.guide-step-card li,
.guide-callout p,
.guide-callout li {
    color: var(--ink-soft);
    line-height: 1.6;
}

.guide-step-card ul,
.guide-callout ul {
    padding-left: 18px;
}

.guide-step-card.compact {
    min-height: 180px;
}

.guide-step-card.success {
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.9), rgba(255, 255, 255, 0.74));
    border-color: rgba(76, 174, 116, 0.2);
}

.guide-step-card.warning {
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.74));
    border-color: rgba(239, 118, 114, 0.2);
}

.prompt-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.prompt-card {
    padding: 18px;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.55;
    position: relative;
}

.prompt-card::before {
    content: '“';
    display: block;
    color: var(--lavender);
    font-size: 34px;
    line-height: 1;
}

.guide-callout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    padding: 24px;
}

.guide-footer-cta {
    margin-top: 20px;
    padding: clamp(28px, 5vw, 44px);
    border-radius: 36px;
    text-align: center;
}

.guide-footer-cta p {
    max-width: 680px;
    margin: 12px auto 22px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.guide-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(33, 28, 59, 0.18);
}

@media (max-width: 860px) {
    .guide-hero,
    .guide-grid.two-col,
    .guide-grid.three-col,
    .prompt-gallery,
    .guide-callout {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-guide-link {
        display: none;
    }
}
