/* ============================================================
   ResumePH — app.css
   Chat-based layout, mobile-first responsive
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary:        #1565C0;
    --primary-dark:   #0D47A1;
    --primary-light:  #42A5F5;
    --primary-bg:     #E3F2FD;
    --accent:         #FF6F00;
    --accent-light:   #FFA726;
    --accent-bg:      #FFF3E0;
    --success:        #2E7D32;
    --success-light:  #4CAF50;
    --success-bg:     #E8F5E9;
    --danger:         #C62828;
    --danger-bg:      #FFEBEE;
    --warning:        #F9A825;
    --warning-bg:     #FFFDE7;
    --gray-50:        #FAFAFA;
    --gray-100:       #F5F5F5;
    --gray-200:       #EEEEEE;
    --gray-300:       #E0E0E0;
    --gray-400:       #BDBDBD;
    --gray-500:       #9E9E9E;
    --gray-600:       #757575;
    --gray-700:       #616161;
    --gray-800:       #424242;
    --gray-900:       #212121;
    --white:          #FFFFFF;
    --black:          #000000;
    --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
    --shadow:         0 4px 12px rgba(0,0,0,.08);
    --shadow-md:      0 8px 24px rgba(0,0,0,.10);
    --shadow-lg:      0 16px 48px rgba(0,0,0,.12);
    --shadow-xl:      0 24px 64px rgba(0,0,0,.14);
    --transition:     .2s cubic-bezier(.4,0,.2,1);
    --transition-slow:.4s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a   { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero-section {
    position: relative;
    padding: 0 0 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* -- Compliance Ticker (infinite scroll) -- */
.compliance-ticker {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background: rgba(0,0,0,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 10px 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-item i {
    font-size: .7rem;
    color: var(--accent-light);
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.compliance-ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* -- Top Bar -- */
.top-bar {
    position: relative;
    z-index: 10;
    padding: 16px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.brand-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    color: var(--white);
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--white);
}

.brand-accent {
    color: var(--accent-light);
}

.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 100px;
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.counter-badge i {
    font-size: .75rem;
    color: var(--accent-light);
}

/* -- Hero Inner -- */
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 0 36px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    font-weight: 400;
    max-width: 560px;
    margin: 0 auto 12px;
    line-height: 1.5;
}

.hero-price {
    font-size: .95rem;
    color: rgba(255,255,255,.7);
    margin: 0;
}

.hero-price strong {
    color: var(--accent-light);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    user-select: none;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-card.active,
.category-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,111,0,.2), var(--shadow-md);
}

/* -- Category Preview (mini resume look) -- */
.cat-preview {
    padding: 10px 12px 8px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.cat-preview-bar {
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin-bottom: 6px;
}

.cat-preview-bar.bpo        { background: linear-gradient(90deg, #7B1FA2, #CE93D8); }
.cat-preview-bar.healthcare { background: linear-gradient(90deg, #C62828, #EF5350); }
.cat-preview-bar.seafarer   { background: linear-gradient(90deg, #00695C, #4DB6AC); }
.cat-preview-bar.it         { background: linear-gradient(90deg, #283593, #5C6BC0); }
.cat-preview-bar.grad       { background: linear-gradient(90deg, #E65100, #FFA726); }
.cat-preview-bar.hosp       { background: linear-gradient(90deg, #00838F, #4DD0E1); }

.cat-preview-line {
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 4px;
}

.cat-preview-line:last-child { margin-bottom: 0; }

.cat-preview-line.w40 { width: 40%; }
.cat-preview-line.w50 { width: 50%; }
.cat-preview-line.w60 { width: 60%; }
.cat-preview-line.w70 { width: 70%; }
.cat-preview-line.w80 { width: 80%; }
.cat-preview-line.w90 { width: 90%; }

/* -- Category Body -- */
.cat-body {
    padding: 14px 14px 16px;
}

.cat-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 8px;
    transition: transform var(--transition);
}

.category-card:hover .cat-icon {
    transform: scale(1.1);
}

.cat-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cat-hook {
    font-size: .75rem;
    color: var(--gray-500);
    line-height: 1.3;
    margin-bottom: 8px;
}

/* -- Category Badges -- */
.cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-green  { background: #E8F5E9; color: #2E7D32; }
.badge-blue   { background: #E3F2FD; color: #1565C0; }
.badge-purple { background: #F3E5F5; color: #7B1FA2; }
.badge-red    { background: #FFEBEE; color: #C62828; }
.badge-orange { background: #FFF3E0; color: #E65100; }
.badge-teal   { background: #E0F2F1; color: #00695C; }

/* -- Category CTA -- */
.cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.category-card:hover .cat-cta {
    gap: 10px;
}

.cat-cta i {
    font-size: .7rem;
    transition: transform var(--transition);
}

.category-card:hover .cat-cta i {
    transform: translateX(2px);
}

/* ============================================================
   SECTION 2: CHAT INTERFACE
   ============================================================ */
.chat-section {
    padding: 40px 0;
    background: var(--gray-100);
    min-height: 60vh;
}

.chat-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

/* -- Chat Header (WhatsApp / Messenger style) -- */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    font-size: 1.1rem;
}

.chat-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: rgba(255,255,255,.75);
    font-weight: 400;
}

.status-dot {
    width: 8px; height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(76,175,80,.3);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(76,175,80,.3); }
    50%      { box-shadow: 0 0 0 5px rgba(76,175,80,.1); }
}

.chat-reset-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--white);
    font-size: .9rem;
    cursor: pointer;
    transition: background var(--transition);
}

.chat-reset-btn:hover {
    background: rgba(255,255,255,.25);
}

/* -- Chat Messages Area -- */
.chat-messages {
    flex: 1;
    min-height: 400px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    background: #ECE5DD;
    background-image:
        url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3Ccircle cx='150' cy='100' r='2'/%3E%3Ccircle cx='250' cy='50' r='3'/%3E%3Ccircle cx='100' cy='200' r='2'/%3E%3Ccircle cx='200' cy='250' r='3'/%3E%3C/g%3E%3C/svg%3E");
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.25);
}

/* -- Chat Empty State -- */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 360px;
}

.chat-empty-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.chat-empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.chat-empty-state p {
    font-size: .9rem;
    color: var(--gray-500);
    max-width: 320px;
    line-height: 1.5;
}

/* -- Chat Input Area -- */
.chat-input-area {
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: 100px;
    padding: 4px 4px 4px 12px;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.chat-input-row:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(21,101,192,.08);
}

.chat-attach-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-500);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    color: var(--primary);
    background: rgba(21,101,192,.08);
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font);
    font-size: .95rem;
    color: var(--gray-800);
    padding: 8px 4px;
    min-width: 0;
}

.chat-input::placeholder {
    color: var(--gray-400);
}

.chat-send-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: .95rem;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   CHAT BUBBLES
   ============================================================ */
.chat-bubble {
    max-width: 82%;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-size: .9rem;
    line-height: 1.55;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: bubbleIn .25s ease-out;
    position: relative;
    clear: both;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bot bubble: left-aligned */
.chat-bubble.bot {
    background: var(--white);
    color: var(--gray-800);
    border-radius: 4px 18px 18px 18px;
    float: left;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* User bubble: right-aligned */
.chat-bubble.user {
    background: var(--primary);
    color: var(--white);
    border-radius: 18px 4px 18px 18px;
    float: right;
    box-shadow: 0 1px 4px rgba(21,101,192,.25);
}

.chat-bubble.user a {
    color: rgba(255,255,255,.9);
    text-decoration: underline;
}

/* Clear floats between bubbles */
.chat-bubble + .chat-bubble {
    clear: both;
}

.chat-messages::after {
    content: '';
    display: block;
    clear: both;
}

/* Bubble timestamp */
.chat-bubble .bubble-time {
    display: block;
    font-size: .68rem;
    margin-top: 4px;
    opacity: .5;
    text-align: right;
}

/* ============================================================
   TYPING INDICATOR (bouncing dots)
   ============================================================ */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    width: fit-content;
    margin-bottom: 8px;
    animation: bubbleIn .25s ease-out;
    clear: both;
}

.typing-indicator span {
    width: 8px; height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        background: var(--gray-300);
    }
    40% {
        transform: scale(1);
        background: var(--primary-light);
    }
}

/* ============================================================
   QUICK REPLY BUTTONS (inside chat)
   ============================================================ */
.quick-reply-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 4px 4px 4px 0;
    border: 2px solid var(--primary);
    border-radius: 100px;
    background: var(--white);
    color: var(--primary);
    font-family: var(--font);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21,101,192,.25);
}

.quick-reply-btn:active {
    transform: translateY(0);
}

.quick-reply-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   STYLE SELECTION CARDS (shown inside chat)
   ============================================================ */
.chat-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    max-width: 100%;
}

.chat-style-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.chat-style-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.chat-style-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

.chat-style-card-icon {
    width: 40px; height: 40px;
    margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    background: var(--primary-bg);
    color: var(--primary);
}

.chat-style-card-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.chat-style-card-desc {
    font-size: .72rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* ============================================================
   CHAT PREVIEW (resume preview with blur overlay + watermark)
   ============================================================ */
.chat-preview-wrapper {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 8px;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
    animation: bubbleIn .3s ease-out;
}

.chat-preview-wrapper .preview-frame {
    padding: 24px 20px;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--gray-800);
    max-height: 400px;
    overflow: hidden;
}

.chat-preview-wrapper .preview-blur-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,.3) 15%,
        rgba(255,255,255,.85) 50%,
        var(--white) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 2;
}

.chat-preview-wrapper .preview-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(21,101,192,.08);
    letter-spacing: .1em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    user-select: none;
}

/* ============================================================
   FILE UPLOAD PROGRESS (inside chat)
   ============================================================ */
.chat-upload-progress {
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    animation: bubbleIn .3s ease-out;
}

.chat-upload-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chat-upload-name {
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-upload-name i {
    color: var(--primary);
}

.chat-upload-percent {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.chat-upload-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.chat-upload-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width .3s ease;
}

/* ============================================================
   JS-ALIGNED CLASSES (msg-row/msg-bubble/msg-avatar pattern)
   ============================================================ */
.msg-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    clear: both;
    animation: bubbleIn .25s ease-out;
}
.msg-row.bot { justify-content: flex-start; }
.msg-row.user { justify-content: flex-end; }

.msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}

.msg-row.bot .msg-bubble {
    max-width: 82%;
    padding: 10px 16px;
    font-size: .9rem;
    line-height: 1.55;
    word-wrap: break-word;
    white-space: pre-wrap;
    background: var(--white);
    color: var(--gray-800);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.msg-row.user .msg-bubble {
    max-width: 82%;
    padding: 10px 16px;
    font-size: .9rem;
    line-height: 1.55;
    word-wrap: break-word;
    white-space: pre-wrap;
    background: var(--primary);
    color: var(--white);
    border-radius: 18px 4px 18px 18px;
    box-shadow: 0 1px 4px rgba(21,101,192,.25);
}

.quick-replies {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding-left: 36px;
}

/* Style selector in chat */
.style-selector-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 100%;
    margin-bottom: 12px;
    clear: both;
    animation: bubbleIn .3s ease-out;
}

.style-option {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}
.style-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.style-option.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

.style-mini-preview {
    background: var(--gray-50);
    border-radius: 4px;
    padding: 8px 6px;
    margin-bottom: 8px;
}
.smp-bar {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 6px;
}
.smp-line {
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 3px;
}
.smp-line.w50 { width: 50%; }
.smp-line.w60 { width: 60%; }
.smp-line.w70 { width: 70%; }
.smp-line.w80 { width: 80%; }
.smp-line.w90 { width: 90%; }

.style-option-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Preview in chat - iframe with watermark overlay */
.chat-preview-frame {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    animation: bubbleIn .3s ease-out;
    clear: both;
}
.chat-preview-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    display: block;
}
.chat-preview-content {
    padding: 24px 20px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--gray-800);
    max-height: 600px;
    overflow-y: auto;
}
.chat-preview-blur {
    display: none;
}
.chat-preview-watermark {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 120px,
            rgba(21,101,192,.06) 120px,
            rgba(21,101,192,.06) 122px
        );
}
.chat-preview-watermark::before {
    content: 'PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH          PREVIEW  •  ResumePH';
    position: absolute;
    top: 0; left: -50%;
    width: 200%; height: 200%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 60px;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(21,101,192,.07);
    letter-spacing: .15em;
    transform: rotate(-35deg);
    transform-origin: center center;
    white-space: pre-wrap;
    word-spacing: 40px;
    line-height: 80px;
    padding-top: 40px;
}

/* Paste textarea in chat */
.chat-paste-area {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.chat-paste-area:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(21,101,192,.1);
}
.chat-paste-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.paste-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(255,111,0,.25);
}
.paste-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,111,0,.35);
}

/* Upload fill alias */
.chat-upload-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width .3s ease;
}
.chat-upload-text {
    display: block;
    font-size: .78rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Typing dots wrapper */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.typing-dot {
    width: 8px; height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -.32s; }
.typing-dot:nth-child(2) { animation-delay: -.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

/* ============================================================
   SECTION 3: SOCIAL PROOF
   ============================================================ */
.social-proof-section {
    padding: 60px 0;
    background: var(--white);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.proof-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--gray-200);
}

.proof-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-card-title i {
    color: var(--primary);
    font-size: .95rem;
}

/* -- Before & After -- */
.before-after {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.ba-panel {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.ba-before { }
.ba-after  { }

.ba-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 0 0 var(--radius-sm) 0;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

.ba-before .ba-label {
    background: var(--danger-bg);
    color: var(--danger);
}

.ba-after .ba-label {
    background: var(--success-bg);
    color: var(--success);
}

.ba-content {
    padding: 28px 16px 16px;
}

.ba-raw {
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    color: var(--gray-500);
    line-height: 1.6;
    word-break: break-word;
}

.ba-arrow {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: .85rem;
    flex-shrink: 0;
    transform: rotate(90deg);
}

/* -- After Resume Mockup -- */
.ba-resume {
    font-size: .78rem;
}

.ba-name {
    font-size: .9rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: .04em;
}

.ba-contact {
    font-size: .68rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 12px;
}

.ba-section-title {
    font-size: .68rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 10px 0 6px;
    border-bottom: 1px solid var(--primary-bg);
    padding-bottom: 3px;
}

.ba-line {
    height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 5px;
    width: 100%;
}

.ba-line.w60 { width: 60%; }
.ba-line.w80 { width: 80%; }

/* -- Testimonials -- */
.testimonials {
    position: relative;
    min-height: 120px;
}

.testimonial {
    display: none;
    animation: fadeSlide .4s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.testimonial-text {
    font-size: .95rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: .88rem;
    color: var(--gray-800);
}

.testimonial-author span {
    font-size: .78rem;
    color: var(--gray-500);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.t-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition);
}

.t-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.t-dot:hover {
    background: var(--primary-light);
}

/* -- Trust Badges -- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-600);
}

.trust-item i {
    font-size: 1rem;
    color: var(--success-light);
    width: 20px;
    text-align: center;
}

/* ============================================================
   SECTION 4: PRICING
   ============================================================ */
.pricing-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.pricing-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.pricing-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 28px;
}

.pricing-compare {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pricing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius);
    position: relative;
}

.pricing-item.expensive {
    background: var(--danger-bg);
    border: 1px solid #FFCDD2;
}

.pricing-item.moderate {
    background: var(--warning-bg);
    border: 1px solid #FFF9C4;
}

.pricing-item.best {
    background: var(--success-bg);
    border: 2px solid var(--success-light);
    box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}

.pricing-best-tag {
    position: absolute;
    top: -10px; right: 16px;
    padding: 2px 12px;
    background: var(--success);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pricing-item-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-700);
}

.pricing-item-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900);
}

.pricing-item.best .pricing-item-price {
    color: var(--success);
    font-size: 1.2rem;
}

.pricing-item-time {
    font-size: .78rem;
    color: var(--gray-500);
    font-weight: 500;
}

.pricing-bottom {
    font-size: .88rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================================
   SECTION 5: FOOTER
   ============================================================ */
.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: .82rem;
    color: var(--gray-500);
}

.footer-admin-link {
    font-size: .82rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-admin-link:hover {
    color: var(--primary);
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST SYSTEM
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 440px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gray-400);
    pointer-events: auto;
    animation: toastIn .35s ease-out;
    transition: all .3s ease;
}

.toast.success { border-left-color: var(--success-light); }
.toast.success i { color: var(--success-light); }
.toast.error   { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.warning i { color: var(--warning); }
.toast.info    { border-left-color: var(--primary); }
.toast.info i  { color: var(--primary); }
.toast.removing { animation: toastOut .3s ease-in forwards; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlide .3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.modal-icon.success { background: var(--success-bg); color: var(--success-light); }
.modal-icon.cancel  { background: var(--danger-bg); color: var(--danger); }

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.modal-text {
    font-size: .95rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.modal-ref {
    font-size: .85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--success), var(--success-light));
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(46,125,50,.25);
}

.modal-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,125,50,.35);
    color: var(--white);
}

.modal-close-btn {
    display: block;
    margin: 16px auto 0;
    padding: 10px 28px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-close-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* ============================================================
   RESPONSIVE -- Tablet (600px+)
   ============================================================ */
@media (min-width: 600px) {
    .container { padding: 0 24px; }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .before-after {
        flex-direction: row;
    }

    .ba-arrow {
        transform: rotate(0deg);
    }

    .proof-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .proof-grid .proof-card:first-child {
        grid-column: 1 / -1;
    }

    .pricing-compare {
        flex-direction: row;
        gap: 16px;
    }

    .pricing-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 20px 14px;
    }

    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }

    .chat-style-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   RESPONSIVE -- Desktop (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .container { padding: 0 32px; }

    .hero-inner {
        padding: 56px 0 44px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .cat-title {
        font-size: .92rem;
    }

    .chat-container {
        max-width: 760px;
    }

    .chat-messages {
        min-height: 450px;
        max-height: 580px;
    }

    .proof-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .proof-grid .proof-card:first-child {
        grid-column: auto;
    }

    .chat-preview-wrapper .preview-frame {
        padding: 32px 28px;
        max-height: 500px;
    }

    .chat-preview-wrapper .preview-watermark {
        font-size: 3rem;
    }
}

/* ============================================================
   RESPONSIVE -- Large Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    .hero-title { font-size: 3rem; }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .cat-body {
        padding: 16px 16px 18px;
    }

    .cat-title { font-size: 1rem; }
    .cat-hook  { font-size: .82rem; }

    .chat-container {
        max-width: 800px;
    }

    .chat-messages {
        max-height: 620px;
    }
}

/* ============================================================
   RESPONSIVE -- Small phone (480px and below)
   ============================================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: .92rem; }
    .hero-price { font-size: .85rem; }

    .counter-badge span { display: none; }
    .counter-badge i { margin: 0; }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cat-preview { padding: 10px 8px 8px; }
    .cat-preview-line { height: 2px; margin-bottom: 2px; }

    .cat-body { padding: 10px; }
    .cat-icon { width: 28px; height: 28px; font-size: .85rem; margin-bottom: 4px; }
    .cat-title { font-size: .78rem; }
    .cat-hook { font-size: .68rem; margin-bottom: 6px; }
    .cat-badges { gap: 3px; flex-wrap: nowrap; overflow: hidden; }
    .badge { font-size: .58rem; padding: 1px 5px; white-space: nowrap; }
    .cat-cta { font-size: .72rem; }

    .chat-container { border-radius: var(--radius); }
    .chat-messages { min-height: 320px; padding: 14px; }

    .msg-row.bot .msg-bubble,
    .msg-row.user .msg-bubble {
        max-width: 90%;
        font-size: .86rem;
        padding: 10px 14px;
    }

    .msg-avatar { width: 24px; height: 24px; font-size: .55rem; }

    .quick-replies { padding-left: 32px; }
    .quick-reply-btn { font-size: .78rem; padding: 7px 14px; }

    .style-selector-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .style-option { padding: 10px 8px; }
    .style-option-name { font-size: .72rem; }

    .chat-preview-iframe { min-height: 350px; }

    .proof-card { padding: 20px 16px; }
    .proof-card-title { font-size: .95rem; }

    .pricing-title { font-size: 1.15rem; }

    .toast { min-width: 240px; max-width: 320px; font-size: .82rem; padding: 12px 16px; }
    .toast-container { right: 10px; left: 10px; }

    .modal-card { padding: 28px 20px; }
    .modal-title { font-size: 1.1rem; }
    .modal-download-btn { padding: 12px 28px; font-size: .9rem; }

    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }

    /* Ticker speed on mobile */
    .ticker-track { animation-duration: 25s; }
    .ticker-item { padding: 0 18px; font-size: .7rem; }
}

/* Ultra-small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.4rem; }
    .category-grid { grid-template-columns: 1fr; gap: 8px; }

    .category-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    .cat-preview {
        width: 55px;
        border-bottom: none;
        border-right: 1px solid var(--gray-100);
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 0;
    }
    .cat-body { flex: 1; padding: 10px; }
}

/* Chat fills width on mobile */
@media (max-width: 640px) {
    .chat-section { padding: 24px 0; }
    .chat-section .container { padding: 0 8px; }
    .chat-container { border-radius: var(--radius-lg); }

    /* Touch-friendly: bigger tap targets */
    .chat-send-btn, .chat-attach-btn { min-width: 44px; min-height: 44px; }
    .chat-input { font-size: 16px; /* prevents iOS zoom on focus */ }
    .quick-reply-btn { min-height: 40px; }
}

/* Ensure body doesn't bounce on iOS */
@supports (-webkit-touch-callout: none) {
    body { -webkit-overflow-scrolling: touch; }
    .chat-messages { -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .hero-section, .chat-section, .social-proof-section,
    .pricing-section, .site-footer,
    .toast-container, .modal-overlay { display: none !important; }

    body {
        background: var(--white);
    }
}
