:root {
    --bg: #020711;
    --bg2: #071326;
    --panel: rgba(10, 23, 45, .74);
    --panel2: rgba(15, 30, 60, .68);
    --line: rgba(129, 188, 255, .18);
    --line2: rgba(255, 255, 255, .08);
    --text: #f6fbff;
    --muted: #a8b6d6;
    --soft: #6f7f9f;
    --cyan: #22d6ff;
    --blue: #2f7bff;
    --purple: #a23cff;
    --pink: #e64bff;
    --green: #34d399;
    --red: #ff5b75;
    --orange: #fbbf24;
    --radius: 22px;
    --shadow: 0 26px 80px rgba(0, 0, 0, .38);
    --glow: 0 0 35px rgba(34, 214, 255, .2), 0 0 70px rgba(162, 60, 255, .12);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.copy-buffer { position: fixed; opacity: 0; pointer-events: none; left: -9999px; }
.ambient { position: fixed; inset: 0; z-index: -3; overflow: hidden; background:
    radial-gradient(circle at 12% 15%, rgba(34, 214, 255, .17), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(162, 60, 255, .18), transparent 26%),
    radial-gradient(circle at 50% 95%, rgba(47, 123, 255, .16), transparent 35%),
    linear-gradient(180deg, #020711 0%, #041226 52%, #020711 100%);
}
.ambient::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(circle, rgba(255,255,255,.6) 0 1px, transparent 2px), radial-gradient(circle, rgba(34,214,255,.72) 0 1px, transparent 2px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 120px 120px, 180px 180px, 56px 56px, 56px 56px; background-position: 0 0, 40px 80px, 0 0, 0 0; mask-image: radial-gradient(circle at 50% 20%, #000, transparent 75%); animation: particle-drift 24s linear infinite; }
.ambient::after { content: ""; position: absolute; width: 80vw; height: 80vw; border-radius: 50%; right: -30vw; top: 5vh; border: 1px solid rgba(48, 128, 255, .18); box-shadow: inset 0 0 100px rgba(34, 214, 255, .06), 0 0 120px rgba(162, 60, 255, .14); transform: rotate(-20deg); animation: orbit-breathe 12s ease-in-out infinite; }
@keyframes particle-drift { from { background-position: 0 0, 40px 80px, 0 0, 0 0; } to { background-position: 120px -180px, -140px 220px, 56px 56px, 56px 56px; } }
@keyframes orbit-breathe { 0%, 100% { transform: rotate(-20deg) scale(1); opacity: .75; } 50% { transform: rotate(-16deg) scale(1.04); opacity: 1; } }
@keyframes portrait-float { 0%, 100% { transform: translate3d(var(--portrait-x, 0), 0, 0); } 50% { transform: translate3d(var(--portrait-x, 0), -12px, 0); } }

/* Shared components */
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); font-size: 12px; font-weight: 900; }
.muted { color: var(--muted); line-height: 1.7; }
.primary-action, .nav-cta, .admin-primary { border: 0; border-radius: 15px; padding: 13px 18px; color: #fff; font-weight: 900; background: linear-gradient(135deg, #20c9ff 0%, #3458ff 48%, #b23cff 100%); box-shadow: 0 12px 30px rgba(72, 84, 255, .28), inset 0 1px 0 rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-action:hover, .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 45px rgba(72, 84, 255, .36), inset 0 1px 0 rgba(255,255,255,.34); }
.link-action { min-width: 150px; }
.ghost-btn, .nav-login, .icon-btn, .account-pill { border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text); border-radius: 14px; padding: 11px 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ghost-btn:hover, .nav-login:hover, .account-pill:hover, .icon-btn:hover { border-color: rgba(34,214,255,.45); background: rgba(34, 214, 255, .08); }
.danger-btn { border: 1px solid rgba(255,91,117,.35); background: rgba(255,91,117,.1); color: #ffd6dd; border-radius: 14px; padding: 12px 15px; font-weight: 900; }
.block-label { display: block; color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; margin-bottom: 10px; }
.panel-block, .compact-card, .feature-card, .preview-window, .founder-card, .final-cta, .premium-card, .compare-table, .status-grid article, details, .modal-card, .rail-card, .chat-hero-card, .mode-panel, .upgrade-summary, .upgrade-form-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 27, 55, .75), rgba(5, 15, 33, .68)); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.stack-form { display: grid; gap: 13px; }
.stack-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select, .modal-card input, .modal-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 12, 27, .78); color: var(--text); padding: 12px 13px; outline: none; }
.stack-form input:focus, .stack-form textarea:focus { border-color: rgba(34, 214, 255, .65); box-shadow: 0 0 0 4px rgba(34, 214, 255, .08); }
.form-alert { display: none; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); margin-top: 10px; color: var(--muted); }
.form-alert.show { display: block; }
.form-alert.success { color: #c9ffe8; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }
.form-alert.error { color: #ffd2da; border-color: rgba(255,91,117,.35); background: rgba(255,91,117,.1); }
.form-alert.info { color: #d7e6ff; border-color: rgba(47,123,255,.35); background: rgba(47,123,255,.12); }

/* Public landing */
.landing-shell { width: min(100% - 40px, 1220px); margin: 0 auto; padding: 22px 0 34px; }
.site-nav { position: sticky; top: 14px; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(3, 10, 24, .78); backdrop-filter: blur(22px); box-shadow: 0 20px 60px rgba(0,0,0,.24); }
.site-brand, .chat-brand { display: flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: -.04em; }
.site-brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(34,214,255,.45)); }
.site-brand span, .chat-brand span { font-size: 20px; }
.site-brand b, .chat-brand b, .footer-brand-block b { color: var(--cyan); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-links a { color: #b8c4df; padding: 10px 13px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.nav-links a.active, .nav-links a:hover { color: #fff; background: rgba(34, 214, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 11px 16px; }

.hero-section { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); align-items: center; gap: 28px; padding: 70px 22px 24px; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(16, 38, 78, .58); color: #cfe7ff; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; margin-bottom: 20px; }
.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.hero-copy h1 { font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.07em; margin: 0 0 20px; }
.hero-copy h1 span, .upgrade-hero h1 span, .about-copy h2 span { background: linear-gradient(135deg, var(--cyan), #5d7cff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead, .upgrade-hero p { color: var(--muted); font-size: 18px; line-height: 1.72; width: min(620px, 100%); margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-ghost span { color: var(--cyan); }
.hero-chat-preview { padding: 16px; width: min(100%, 440px); }
.mini-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.tiny-logo, .sparkle { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,214,255,.26), rgba(162,60,255,.24)); color: var(--cyan); box-shadow: var(--glow); }
.mini-chat-head strong { display: block; font-size: 13px; }
.mini-chat-head span { display: block; font-size: 11px; color: var(--green); }
.mini-chat-head button { margin-left: auto; background: transparent; color: var(--soft); border: 0; }
.mini-message { background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 13px; padding: 13px; color: #dbe7ff; font-size: 13px; line-height: 1.55; }
.mini-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mini-chips span { color: #b8c7e4; background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 10px; font-size: 11px; }
.mini-input { border: 1px solid rgba(34,214,255,.22); background: rgba(3, 12, 28, .8); border-radius: 14px; padding: 11px 13px; color: var(--soft); display: flex; justify-content: space-between; align-items: center; }
.mini-input b { color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.hero-visual { position: relative; min-height: 680px; display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 94%; height: 66%; right: 0; bottom: 40px; background: radial-gradient(circle at 50% 50%, rgba(34,214,255,.2), transparent 40%), linear-gradient(135deg, rgba(34,214,255,.22), rgba(162,60,255,.38)); border-radius: 52% 48% 42% 58%; filter: blur(.2px); opacity: .9; z-index: -2; box-shadow: 0 0 100px rgba(48,123,255,.26); }
.hero-visual::after { content: ""; position: absolute; inset: 60px 0 10px; background: radial-gradient(circle at 70% 38%, rgba(162,60,255,.18), transparent 28%), linear-gradient(120deg, transparent 48%, rgba(34,214,255,.26), transparent 54%); border-radius: 40px; z-index: -3; opacity: .8; }
.salman-hero { --portrait-x: 28px; height: min(760px, 78vh); max-height: 780px; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 34px 50px rgba(0,0,0,.45)); transform: translateX(28px); animation: portrait-float 7s ease-in-out infinite; }
.hero-orbit { position: absolute; border: 1px solid rgba(34, 214, 255, .22); border-radius: 50%; transform: rotate(-16deg); z-index: -1; }
.hero-orbit.one { width: 88%; height: 48%; right: 0; bottom: 150px; box-shadow: 0 0 40px rgba(34,214,255,.12); }
.hero-orbit.two { width: 72%; height: 38%; right: 34px; bottom: 190px; border-color: rgba(162,60,255,.24); }
.hero-glow-card { position: absolute; right: 20px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(5, 17, 40, .82); backdrop-filter: blur(18px); box-shadow: var(--glow); z-index: 3; min-width: 150px; }
.hero-glow-card strong { display: block; font-size: 24px; }
.hero-glow-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-one { top: 190px; }
.stat-two { top: 280px; right: 4px; }
.stat-three { top: 370px; right: 30px; }
.section { padding: 48px 0; }
.section-heading { text-align: center; margin: 0 auto 28px; max-width: 760px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.05em; }
.section-heading p { margin: 10px 0 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 22px; min-height: 210px; }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34,214,255,.28), rgba(162,60,255,.3)); box-shadow: var(--glow); margin-bottom: 18px; font-size: 24px; }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.preview-window { display: grid; grid-template-columns: 220px 1fr 230px; gap: 0; overflow: hidden; min-height: 380px; }
.preview-side, .preview-tips { padding: 24px; background: rgba(3, 10, 24, .32); border-right: 1px solid var(--line2); display: grid; gap: 14px; align-content: start; color: var(--muted); }
.preview-side button { border: 1px solid var(--line); background: rgba(34,214,255,.08); color: var(--text); border-radius: 12px; padding: 10px; }
.preview-tips { border-left: 1px solid var(--line2); border-right: 0; }
.preview-tips strong, .preview-side strong { color: #fff; }
.preview-chat { padding: 24px; display: grid; gap: 18px; align-content: start; }
.preview-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; padding: 4px; background: rgba(3,10,24,.5); }
.preview-tabs span { text-align: center; padding: 10px; border-radius: 12px; color: var(--muted); font-weight: 800; }
.preview-tabs .active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.bubble { max-width: min(780px, 92%); padding: 16px 18px; border-radius: 18px; line-height: 1.72; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.bubble.user { margin-left: auto; background: linear-gradient(135deg, rgba(47,123,255,.9), rgba(162,60,255,.86)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.assistant { background: rgba(10, 24, 50, .84); border: 1px solid var(--line); color: #eef6ff; border-bottom-left-radius: 6px; max-width: min(900px, 100%); }
.preview-input { margin-top: auto; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--soft); display: flex; justify-content: space-between; background: rgba(3,10,24,.54); }
.about-section { display: grid; grid-template-columns: 390px 1fr; gap: 46px; align-items: center; }
.founder-card { overflow: hidden; padding: 0; border-radius: 22px; }
.founder-card img { width: 100%; height: clamp(330px, 42vw, 460px); object-fit: contain; object-position: center bottom; background: radial-gradient(circle at 65% 55%, rgba(34,214,255,.2), transparent 34%), #041124; animation: portrait-float 7s ease-in-out infinite; }
.about-copy h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.05em; }
.about-copy p { color: var(--muted); line-height: 1.8; }
.value-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.value-row span { border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 15px; padding: 13px; color: #fff; }
.value-row small { color: var(--muted); display: block; margin-top: 4px; }
.final-cta { margin: 36px 0; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, rgba(34,214,255,.16), rgba(162,60,255,.24)); }
.final-cta h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.final-cta p { margin: 0; color: var(--muted); }
.final-cta > div { display: flex; align-items: center; gap: 18px; }
.final-cta > div > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: rgba(34,214,255,.16); color: var(--cyan); box-shadow: var(--glow); font-size: 30px; flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line2); padding: 34px 0 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; color: var(--muted); }
.footer-brand-block strong { display: block; color: #fff; margin: 12px 0 8px; font-size: 20px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; }
.footer-grid h4 { margin: 0 0 13px; color: #fff; }
.footer-grid a, .footer-grid span { display: block; color: var(--muted); margin: 9px 0; }
.footer-grid p { line-height: 1.7; }
.social-row { display: flex; gap: 10px; }
.social-row span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); margin: 0; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line2); margin-top: 28px; padding-top: 18px; color: var(--soft); font-size: 13px; }
.compact-footer { padding-top: 10px; }

/* Chatbot app */
.chatbot-body { overflow: hidden; }
.chat-app-shell { min-height: 100vh; min-height: 100dvh; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 330px minmax(0, 1fr) 330px; background: rgba(1,5,13,.3); }
.chat-sidebar, .chat-right-rail { border-right: 1px solid var(--line2); background: rgba(3, 10, 24, .72); backdrop-filter: blur(22px); padding: 20px; min-height: 0; overflow-y: auto; }
.chat-right-rail { border-right: 0; border-left: 1px solid var(--line2); display: grid; gap: 14px; align-content: start; }
.chat-brand { margin-bottom: 24px; }
.chat-brand-logo { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(34,214,255,.45)); }
.chat-sidebar .primary-action { width: 100%; margin-bottom: 18px; }
.chat-sidebar .panel-block { padding: 16px; margin-bottom: 16px; }
.history-list, .quick-block { display: grid; gap: 9px; }
.history-list button, .quick-prompt, .rail-card button { width: 100%; border: 1px solid var(--line2); background: rgba(255,255,255,.045); color: #d7e3f8; border-radius: 12px; padding: 10px 12px; text-align: left; }
.history-list button:hover, .quick-prompt:hover, .rail-card button:hover { border-color: rgba(34,214,255,.45); background: rgba(34,214,255,.08); }
.history-list button:disabled { opacity: .7; cursor: default; }
.history-list button.active { border-color: rgba(34,214,255,.6); background: rgba(34,214,255,.12); }
.history-list button strong, .history-list button span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-list button span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.mini-card { border: 1px solid var(--line2); background: rgba(255,255,255,.045); border-radius: 15px; padding: 13px; display: grid; gap: 6px; }
.mini-card strong { color: #fff; }
.mini-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mini-actions .ghost-btn { padding: 9px 11px; font-size: 13px; }
.chat-main { min-width: 0; min-height: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; padding: 18px 28px 18px; overflow: hidden; }
.chat-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 16px; border-bottom: 1px solid var(--line2); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.breadcrumb b { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.account-pill { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-only { display: none; }
.chat-hero-card { justify-self: center; width: min(100%, 610px); display: flex; align-items: center; gap: 22px; padding: 22px; margin: 24px 0 18px; }
.chat-hero-card h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.chat-hero-card p { margin: 0; color: var(--muted); }
.sparkle { width: 76px; height: 76px; border-radius: 24px; font-size: 36px; flex: 0 0 auto; }
.mode-panel { justify-self: center; width: min(100%, 610px); padding: 6px; background: rgba(3, 14, 34, .78); }
.mode-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mode-btn { border: 0; border-radius: 15px; background: transparent; color: var(--muted); padding: 13px; font-weight: 900; }
.mode-btn.active { color: #fff; background: linear-gradient(135deg, #17c7ff, #3458ff 46%, #a938ff); box-shadow: 0 12px 28px rgba(72,84,255,.24); }
.mode-btn:disabled { opacity: .65; cursor: wait; }
.mode-btn.locked { opacity: .72; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); position: relative; }
.mode-btn.locked::after { content: "🔒"; margin-left: 6px; font-size: 11px; opacity: .82; }
.mode-note { margin: 8px 10px 4px; color: var(--muted); text-align: center; font-size: 13px; }
.prompt-strip { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.prompt-strip[hidden], .chat-hero-card[hidden] { display: none; }
.chat-main.has-chat { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.prompt-strip .quick-prompt { width: auto; font-size: 13px; }
.chat-area { min-height: 0; overflow-y: auto; padding: 10px 8px 22px; display: flex; flex-direction: column; gap: 16px; scrollbar-color: rgba(34,214,255,.35) transparent; }
.empty-state { margin: auto; max-width: 700px; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px; color: var(--muted); }
.empty-orb { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; background: radial-gradient(circle, rgba(34,214,255,.17), rgba(162,60,255,.09)); border: 1px solid var(--line); box-shadow: var(--glow); }
.empty-logo { width: 74px; height: 74px; object-fit: contain; }
.empty-state h3 { margin: 0; color: #fff; font-size: 32px; letter-spacing: -.05em; }
.empty-state p { margin: 0; line-height: 1.7; }
.empty-prompts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.empty-prompts button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #dbe8ff; border-radius: 999px; padding: 9px 12px; }
.msg-row { display: flex; width: 100%; }
.msg-row.user { justify-content: flex-end; }
.msg-row.assistant { justify-content: flex-start; }
.msg-meta { color: rgba(255,255,255,.62); font-size: 11px; margin-top: 10px; }
.assistant-text + .assistant-text { margin-top: 12px; }
.markdown-body { white-space: normal; }
.markdown-body p { margin: 0 0 12px; }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 18px 0 8px; line-height: 1.25; letter-spacing: 0; }
.markdown-body h2:first-child, .markdown-body h3:first-child, .markdown-body h4:first-child { margin-top: 0; }
.markdown-body ul, .markdown-body ol { margin: 8px 0 14px; padding-left: 22px; }
.markdown-body li { margin: 5px 0; }
.markdown-body hr { border: 0; border-top: 1px solid var(--line2); margin: 16px 0; }
.markdown-body code { border: 1px solid var(--line2); border-radius: 6px; background: rgba(255,255,255,.08); padding: 2px 5px; }
.markdown-table-wrap { width: 100%; overflow-x: auto; margin: 12px 0; border: 1px solid var(--line2); border-radius: 12px; }
.markdown-table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; white-space: normal; }
.markdown-table-wrap th, .markdown-table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line2); border-right: 1px solid var(--line2); text-align: left; vertical-align: top; }
.markdown-table-wrap th { color: #fff; background: rgba(255,255,255,.06); font-weight: 900; }
.markdown-table-wrap td:last-child, .markdown-table-wrap th:last-child { border-right: 0; }
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
.answer-actions { margin-top: 12px; }
.copy-btn, .code-copy { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #d7e5ff; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.code-card { margin: 12px 0; border: 1px solid rgba(255,255,255,.1); background: #020816; border-radius: 14px; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--muted); }
pre { margin: 0; overflow-x: auto; padding: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #e9f4ff; }
.thinking { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.thinking-dots { display: inline-flex; gap: 4px; }
.thinking-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse-dot 1s infinite ease-in-out; }
.thinking-dots span:nth-child(2) { animation-delay: .16s; }
.thinking-dots span:nth-child(3) { animation-delay: .32s; }
.thinking-time { color: var(--soft); font-variant-numeric: tabular-nums; }
@keyframes pulse-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { position: sticky; bottom: 0; padding: 12px 0 0; background: linear-gradient(180deg, transparent, rgba(2,7,17,.98) 26%); }
.composer-box { width: min(100%, 820px); margin: 0 auto; border: 1px solid rgba(34,214,255,.45); border-radius: 26px; padding: 12px 12px 12px 18px; display: flex; align-items: flex-end; gap: 12px; background: rgba(4, 14, 34, .82); box-shadow: 0 0 0 1px rgba(162,60,255,.18), 0 0 40px rgba(34,214,255,.12); }
.composer-box textarea { flex: 1; resize: none; max-height: 170px; border: 0; background: transparent; outline: 0; color: var(--text); padding: 10px 0; }
.composer-box textarea::placeholder { color: var(--soft); }
.send-btn { width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: var(--glow); font-size: 22px; }
.send-btn:disabled { opacity: .6; cursor: wait; }
.composer-meta { width: min(100%, 820px); margin: 8px auto 0; display: flex; justify-content: space-between; gap: 12px; color: var(--soft); font-size: 12px; }
.composer .form-alert { width: min(100%, 820px); margin: 8px auto 0; }
.rail-card { padding: 18px; display: grid; gap: 10px; }
.rail-card h3 { margin: 0 0 4px; }
.rail-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.usage-ring { width: 112px; height: 112px; margin: 8px auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(3,10,24,.9) 58%, transparent 60%), conic-gradient(var(--cyan), var(--purple), rgba(255,255,255,.08)); }
.usage-ring span { font-size: 24px; font-weight: 950; color: #eaf6ff; }

/* Upgrade */
.upgrade-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) 430px; gap: 42px; align-items: center; padding: 70px 0 36px; }
.upgrade-hero h1 { margin: 0 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.07em; }
.benefit-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.benefit-row span { border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 16px; padding: 14px; color: #dcecff; font-weight: 800; }
.premium-card { padding: 28px; box-shadow: 0 0 0 1px rgba(34,214,255,.18), 0 0 70px rgba(34,214,255,.16); }
.premium-card h2 { margin: 0; }
.price-display { margin: 18px 0; font-size: clamp(38px, 5vw, 58px); font-weight: 950; letter-spacing: -.06em; background: linear-gradient(135deg, var(--cyan), #7891ff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-display.small-price { font-size: clamp(28px, 4vw, 38px); margin: 12px 0; }
.check-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; color: #dceaff; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); }
.compare-table { overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line2); }
.compare-table-4 .compare-row { grid-template-columns: .9fr 1fr 1fr 1fr; }
.compare-row:last-child { border-bottom: 0; }
.compare-row span { padding: 16px 20px; color: #dceaff; }
.compare-row span + span { border-left: 1px solid var(--line2); }
.compare-row.head { background: rgba(255,255,255,.045); font-weight: 900; color: #fff; }
.payment-section { scroll-margin-top: 100px; }
.upgrade-grid { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr); gap: 22px; }
.upgrade-summary, .upgrade-form-card { padding: 24px; }
.upgrade-summary h3 { margin: 0 0 16px; font-size: 28px; }
.price-card { border: 1px solid var(--line); background: rgba(34,214,255,.07); border-radius: 18px; padding: 18px; display: grid; gap: 6px; margin-bottom: 18px; }
.price-card span { font-size: 28px; font-weight: 950; letter-spacing: -.04em; color: #fff; }
.price-card small { color: var(--muted); }
.qris-img { width: min(100%, 280px); aspect-ratio: 1; object-fit: contain; border-radius: 20px; border: 1px solid var(--line); background: #fff; padding: 10px; margin: 14px auto; }
.whatsapp-link { display: flex; justify-content: center; border: 1px solid rgba(52,211,153,.3); color: #c7ffe5; background: rgba(52,211,153,.1); border-radius: 14px; padding: 12px 14px; font-weight: 900; }
.payment-list { display: grid; gap: 10px; margin-top: 14px; }
.payment-item { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); border-radius: 13px; padding: 12px; color: var(--muted); }
.payment-item strong { color: #fff; display: block; }
.payment-item span { display: block; font-size: 12px; margin-top: 3px; }
.secure-note { text-align: center; color: var(--muted); margin: 18px 0 0; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.status-grid article { padding: 20px; }
.status-grid b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(34,214,255,.12); color: var(--cyan); margin-bottom: 12px; }
.status-grid h3 { margin: 0 0 8px; font-size: 17px; }
.status-grid p { color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.status-grid span { color: var(--orange); font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details { padding: 16px 18px; }
summary { cursor: pointer; font-weight: 900; color: #fff; }
details p { color: var(--muted); line-height: 1.7; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.64); backdrop-filter: blur(10px); }
.modal[hidden] { display: none; }
.modal-card { width: min(100%, 460px); max-height: min(860px, 92vh); overflow-y: auto; padding: 24px; position: relative; }
.modal-card.wide { width: min(100%, 980px); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 22px; }
.modal-head h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.modal-head p:last-child { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 15px; padding: 4px; margin-bottom: 16px; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 12px; padding: 10px; font-weight: 900; }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.google-btn { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; border-radius: 14px; padding: 12px; font-weight: 900; margin-top: 12px; width: 100%; }
.account-stats { display: grid; gap: 10px; margin: 16px 0; }
.account-stat { border: 1px solid var(--line2); background: rgba(255,255,255,.045); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.account-stat span { color: var(--muted); font-size: 12px; }
.account-stat strong { color: #fff; }

@media (max-width: 1180px) {
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chat-app-shell { grid-template-columns: 300px minmax(0, 1fr); }
    .chat-right-rail { display: none; }
    .preview-window { grid-template-columns: 180px 1fr; }
    .preview-tips { display: none; }
    .upgrade-hero, .hero-section { grid-template-columns: 1fr; }
    .hero-visual { min-height: 600px; }
    .salman-hero { --portrait-x: 0px; transform: translateX(0); }
}
@media (max-width: 900px) {
    .landing-shell { width: min(100% - 28px, 1220px); }
    .site-nav { grid-template-columns: 1fr auto; }
    .nav-links { grid-column: 1 / -1; order: 3; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
    .hero-section { padding-top: 42px; }
    .hero-copy h1 { font-size: 46px; }
    .feature-grid, .benefit-row, .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preview-window, .about-section, .upgrade-grid, .page-payment-grid { grid-template-columns: 1fr; }
    .preview-side { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .final-cta { flex-direction: column; align-items: flex-start; }
    .chat-sidebar { position: fixed; inset: 0 auto 0 0; width: 320px; z-index: 80; transform: translateX(-105%); transition: transform .22s ease; }
    .chat-sidebar.open { transform: translateX(0); }
    .chat-app-shell { grid-template-columns: 1fr; }
    .mobile-only { display: inline-flex; }
    .chat-main { padding: 14px; }
    .chat-hero-card { margin-top: 16px; }
    .composer-meta { flex-direction: column; }
    .chat-topbar { gap: 10px; }
    .top-actions .ghost-btn { display: none; }
}
@media (max-width: 620px) {
    .nav-actions { display: none; }
    .site-nav { grid-template-columns: 1fr; }
    .hero-section { padding-left: 0; padding-right: 0; }
    .hero-copy h1 { font-size: 40px; }
    .hero-visual { min-height: 500px; }
    .salman-hero { height: 520px; }
    .hero-glow-card { position: static; margin: 8px; display: inline-block; min-width: 0; }
    .feature-grid, .benefit-row, .status-grid, .footer-grid, .faq-grid, .value-row { grid-template-columns: 1fr; }
    .compare-row { grid-template-columns: 1fr; }
    .compare-row span + span { border-left: 0; border-top: 1px solid var(--line2); }
    .chat-hero-card { align-items: flex-start; }
    .sparkle { width: 56px; height: 56px; border-radius: 18px; font-size: 28px; }
    .chat-hero-card h1 { font-size: 22px; }
    .chat-hero-card { padding: 16px; gap: 14px; }
    .mode-panel { width: 100%; }
    .mode-btn { padding: 10px 6px; font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
    .prompt-strip { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .prompt-strip .quick-prompt { flex: 0 0 auto; }
    .bubble, .bubble.assistant { max-width: 100%; padding: 14px; }
    .chat-main.has-chat { padding: 10px; }
    .composer-box { border-radius: 18px; padding: 8px 8px 8px 12px; }
    .send-btn { width: 40px; height: 40px; }
    #composerHint { display: none; }
    .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .ambient::before, .ambient::after, .salman-hero, .founder-card img { animation: none; }
}

/* Final premium hero motion and responsive chat polish */
.hero-section { overflow: hidden; border-radius: 34px; }
.hero-motion-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-motion-bg::before { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(34,214,255,.16), transparent 62%); filter: blur(2px); animation: hero-pulse 9s ease-in-out infinite; }
.hero-motion-bg::after { content: ""; position: absolute; inset: 12% -5% auto 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,214,255,.45), rgba(162,60,255,.38), transparent); box-shadow: 0 70px 0 rgba(34,214,255,.13), 0 170px 0 rgba(162,60,255,.14), 0 270px 0 rgba(34,214,255,.1); transform: rotate(-8deg); animation: api-scan 7.5s ease-in-out infinite; }
.mesh-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: rgba(34,214,255,.85); box-shadow: 0 0 24px rgba(34,214,255,.6); opacity: .7; animation: dot-float 7s ease-in-out infinite; }
.mesh-dot.d1 { left: 8%; top: 18%; }
.mesh-dot.d2 { left: 32%; top: 12%; animation-delay: -1.4s; }
.mesh-dot.d3 { left: 46%; top: 52%; animation-delay: -2.1s; }
.mesh-dot.d4 { right: 28%; bottom: 16%; animation-delay: -3s; }
.api-line { position: absolute; height: 2px; width: 120px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(34,214,255,.65), transparent); opacity: .45; animation: api-line-move 8s linear infinite; }
.api-line.l1 { left: 6%; top: 42%; }
.api-line.l2 { left: 39%; top: 28%; animation-delay: -2.3s; }
.api-line.l3 { right: 6%; bottom: 28%; animation-delay: -5s; }
.ai-wave { position: absolute; width: 220px; height: 220px; border: 1px solid rgba(34,214,255,.16); border-radius: 50%; right: 24%; top: 28%; animation: wave-expand 5.8s ease-out infinite; }
.ai-wave.w2 { animation-delay: -2.9s; border-color: rgba(162,60,255,.18); }
.hero-orbit.three { width: 56%; height: 30%; right: 92px; bottom: 228px; border-color: rgba(255,255,255,.13); animation: orbit-spin 16s linear infinite; }
.scanner-beam { position: absolute; width: 15%; height: 72%; right: 86px; top: 80px; border-radius: 999px; background: linear-gradient(180deg, transparent, rgba(34,214,255,.24), rgba(162,60,255,.16), transparent); filter: blur(10px); opacity: .42; transform: rotate(10deg); animation: beam-sweep 6.8s ease-in-out infinite; z-index: 1; }
.floating-prompt { position: absolute; z-index: 4; min-width: 152px; padding: 12px 14px; border: 1px solid rgba(129,188,255,.22); border-radius: 18px; background: rgba(5,17,40,.76); box-shadow: var(--glow); backdrop-filter: blur(16px); animation: card-float 6.5s ease-in-out infinite; }
.floating-prompt b { display: block; color: #fff; font-size: 13px; }
.floating-prompt span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.fp-one { left: 10px; top: 185px; }
.fp-two { left: 62px; bottom: 78px; animation-delay: -2.6s; }
@keyframes hero-pulse { 0%,100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes api-scan { 0%,100% { transform: translateY(-14px) rotate(-8deg); opacity: .42; } 50% { transform: translateY(28px) rotate(-8deg); opacity: .72; } }
@keyframes dot-float { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-15px); opacity: .95; } }
@keyframes api-line-move { 0% { transform: translateX(-26px); opacity: .1; } 30%,70% { opacity: .62; } 100% { transform: translateX(72px); opacity: .08; } }
@keyframes wave-expand { 0% { transform: scale(.55); opacity: .52; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes orbit-spin { from { transform: rotate(-16deg); } to { transform: rotate(344deg); } }
@keyframes beam-sweep { 0%,100% { transform: translateX(-30px) rotate(10deg); opacity: .18; } 50% { transform: translateX(50px) rotate(10deg); opacity: .48; } }
@keyframes card-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-14px,0); } }

.sidebar-mobile-head { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 950; }
.sidebar-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 24px; line-height: 1; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.58); backdrop-filter: blur(5px); }
.sidebar-backdrop[hidden] { display: none; }
.history-list { min-width: 0; }
.history-list .history-item { min-width: 0; display: grid; gap: 7px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); border-radius: 13px; padding: 8px; overflow: hidden; }
.history-list .history-item.active { border-color: rgba(34,214,255,.62); background: rgba(34,214,255,.1); }
.history-list .history-open { width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px; color: #d7e3f8; text-align: left; }
.history-list .history-open:hover { background: transparent; border-color: transparent; }
.history-list .history-open strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; line-height: 1.28; word-break: break-word; overflow-wrap: anywhere; }
.history-list .history-open span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; margin-top: 4px; }
.history-list .history-export { width: 100%; border: 1px solid rgba(34,214,255,.2); background: rgba(34,214,255,.07); color: #bfefff; border-radius: 10px; padding: 8px 10px; font-size: 11px; font-weight: 900; text-align: center; display: block; text-decoration: none; }
.history-list .history-export:hover { border-color: rgba(34,214,255,.52); background: rgba(34,214,255,.12); }
.history-item.placeholder .history-open { color: var(--muted); cursor: default; }

@media (max-width: 1180px) {
    .fp-one { left: 8%; top: 130px; }
    .fp-two { left: auto; right: 8%; bottom: 92px; }
}
@media (max-width: 900px) {
    .sidebar-mobile-head { display: flex; }
    body.sidebar-open { overflow: hidden; }
    .chat-sidebar { box-shadow: 20px 0 60px rgba(0,0,0,.46); }
    .chat-brand { margin-bottom: 18px; }
    .history-list .history-item { padding: 9px; }
}
@media (max-width: 620px) {
    .hero-section { border-radius: 24px; }
    .hero-motion-bg::before { width: 460px; height: 460px; right: -210px; top: 30px; }
    .floating-prompt { display: none; }
    .scanner-beam { right: 22px; height: 50%; top: 130px; }
    .ai-wave { right: 14%; top: 42%; width: 170px; height: 170px; }
    .chat-sidebar { width: min(88vw, 340px); padding: 16px; }
    .chat-topbar .breadcrumb { min-width: 0; overflow: hidden; }
    .chat-topbar .breadcrumb a, .chat-topbar .breadcrumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-motion-bg::before, .hero-motion-bg::after, .mesh-dot, .api-line, .ai-wave, .hero-orbit.three, .scanner-beam, .floating-prompt { animation: none !important; }
}

/* Fix: split user usage into Pro and Ultra cards */
.usage-card { overflow: hidden; }
.usage-card h3 { letter-spacing: .01em; }
.pro-ring { background: radial-gradient(circle at center, rgba(3,10,24,.92) 58%, transparent 60%), conic-gradient(var(--cyan), var(--purple), rgba(255,255,255,.08)); }
.usage-meter { width: 100%; border: 1px solid rgba(34,214,255,.22); background: rgba(3,10,24,.72); border-radius: 18px; padding: 18px 14px; display: grid; place-items: center; gap: 2px; box-shadow: inset 0 0 28px rgba(34,214,255,.08); }
.usage-meter span { font-size: 32px; font-weight: 950; color: #eaf6ff; letter-spacing: -.04em; }
.usage-meter small { color: var(--soft); font-weight: 800; }
.ultra-usage-card .primary-action { width: 100%; justify-content: center; margin-top: 4px; }

/* Fix: premium price must not be clipped on desktop */
.premium-card { min-width: 0; overflow: visible; }
.premium-card .price-display { max-width: 100%; line-height: 1.05; white-space: nowrap; overflow: visible; font-size: clamp(34px, 4.1vw, 46px); letter-spacing: -.055em; }
.premium-card .price-display.small-price { font-size: clamp(28px, 3.1vw, 38px); }
@media (min-width: 901px) and (max-width: 1260px) {
    .upgrade-hero { grid-template-columns: minmax(0, 1fr) minmax(390px, 460px); gap: 28px; }
    .premium-card .price-display { font-size: 42px; }
}
@media (max-width: 900px) {
    .premium-card .price-display { white-space: normal; overflow-wrap: anywhere; }
}

/* Tell us floating feedback menu */
.tellus-widget { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 120; font-family: inherit; }
.tellus-tab { writing-mode: vertical-rl; transform: rotate(180deg); border: 0; border-radius: 0 12px 12px 0; padding: 18px 12px; background: linear-gradient(135deg, #ff8f61, #ff6f8e); color: #fff; font-weight: 950; letter-spacing: .04em; box-shadow: 0 12px 34px rgba(0,0,0,.3); }
.tellus-panel { position: absolute; left: 58px; top: 50%; transform: translateY(-50%); width: min(420px, calc(100vw - 78px)); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(30,31,29,.96); color: #eee; box-shadow: 0 24px 80px rgba(0,0,0,.42); padding: 20px; backdrop-filter: blur(18px); }
.tellus-panel[hidden] { display: none; }
.tellus-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.05); color: #eee; font-size: 22px; line-height: 1; }
.tellus-menu h3, .tellus-form h3 { margin: 4px 36px 6px 0; text-align: center; color: #f4f4f1; font-size: 18px; }
.tellus-menu p { margin: 0 0 14px; text-align: center; color: #bdbbb4; }
.tellus-menu button { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 12px; text-align: left; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03); color: #eee; padding: 14px; margin-top: 10px; }
.tellus-menu button:hover { background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.2); }
.tellus-menu button span { grid-row: 1 / 3; font-size: 22px; opacity: .9; }
.tellus-menu button strong { font-size: 16px; color: #f3f3f0; }
.tellus-menu button small { grid-column: 2; color: #bdbbb4; font-size: 13px; }
.tellus-menu button b { grid-column: 3; grid-row: 1 / 3; color: #d5d2ca; font-size: 24px; }
.tellus-form { display: grid; gap: 12px; }
.tellus-form.hidden, .tellus-menu.hidden { display: none; }
.tellus-back { justify-self: start; border: 0; background: transparent; color: #d5d2ca; font-weight: 800; padding: 0; }
.tellus-form label { display: grid; gap: 6px; color: #d5d2ca; font-weight: 800; font-size: 13px; }
.tellus-form input, .tellus-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(0,0,0,.22); color: #fff; padding: 12px; outline: 0; }
.tellus-form input:focus, .tellus-form textarea:focus { border-color: rgba(34,214,255,.55); box-shadow: 0 0 0 3px rgba(34,214,255,.1); }
.tellus-form .primary-action { width: 100%; justify-content: center; }
@media (max-width: 620px) {
    .tellus-widget { top: auto; bottom: 92px; transform: none; }
    .tellus-panel { left: 48px; top: auto; bottom: -20px; transform: none; width: calc(100vw - 68px); }
    .tellus-tab { padding: 14px 10px; }
}

/* Hotfix 4: slim Tell us widget, fixed at the right middle on every device.
   It stays vertical so it will not cover the chat submit button on mobile. */
.tellus-widget {
    left: auto !important;
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 88;
}
.tellus-tab {
    width: 30px;
    min-height: 62px;
    padding: 8px 5px !important;
    writing-mode: vertical-rl;
    transform: rotate(180deg) !important;
    border-radius: 14px 0 0 14px !important;
    background: linear-gradient(180deg, rgba(34, 214, 255, .98), rgba(123, 92, 255, .98)) !important;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: .025em;
    box-shadow: 0 10px 26px rgba(34, 214, 255, .22), 0 8px 24px rgba(0, 0, 0, .34);
}
.tellus-tab:hover,
.tellus-tab:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 0 0 3px rgba(34, 214, 255, .16), 0 14px 34px rgba(123, 92, 255, .28);
    outline: none;
}
.tellus-panel {
    position: fixed;
    left: auto !important;
    right: 38px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: min(340px, calc(100vw - 56px));
    max-height: min(640px, calc(100vh - 32px));
    overflow-y: auto;
    padding: 15px;
    border-radius: 18px;
    border-color: rgba(34, 214, 255, .18);
    background: linear-gradient(180deg, rgba(9, 19, 40, .98), rgba(17, 23, 46, .97));
    box-shadow: 0 22px 64px rgba(0,0,0,.46), 0 0 38px rgba(34, 214, 255, .08);
}
.tellus-menu h3,
.tellus-form h3 {
    font-size: 16px;
    letter-spacing: -.02em;
}
.tellus-menu p {
    font-size: 12px;
    line-height: 1.45;
}
.tellus-menu button {
    grid-template-columns: 28px 1fr 14px;
    gap: 9px;
    padding: 11px;
    border-radius: 14px;
    background: rgba(255,255,255,.045);
}
.tellus-menu button strong { font-size: 14px; }
.tellus-menu button small { font-size: 12px; line-height: 1.35; }
.tellus-menu button span { font-size: 17px; }
.tellus-menu button b { font-size: 19px; }
.tellus-form input,
.tellus-form textarea {
    padding: 10px 11px;
    font-size: 14px;
}
@media (max-width: 760px) {
    .tellus-widget {
        right: 0 !important;
        left: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }
    .tellus-tab {
        width: 28px;
        min-height: 58px;
        height: auto;
        writing-mode: vertical-rl;
        transform: rotate(180deg) !important;
        padding: 7px 5px !important;
        border-radius: 13px 0 0 13px !important;
        font-size: 9.5px;
        letter-spacing: .02em;
    }
    .tellus-panel {
        right: 34px !important;
        left: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        width: min(318px, calc(100vw - 46px));
        max-height: calc(100vh - 28px);
        padding: 13px;
        border-radius: 17px;
    }
    .tellus-close {
        width: 30px;
        height: 30px;
    }
}
@media (max-width: 390px) {
    .tellus-tab {
        width: 26px;
        min-height: 54px;
        font-size: 9px;
    }
    .tellus-panel {
        right: 31px !important;
        width: calc(100vw - 40px);
        padding: 12px;
    }
}
