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

html, body {
    height: 100%;
}

body.qre-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
    line-height: 1.6;
    cursor: none; /* hide default cursor so our AI Atlas comet pointer is visible */
}

/* Layout shells */
.qre-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.qre-page-main {
    flex: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* Per-page vibes */
.page-home .qre-page-main {
    backdrop-filter: blur(20px);
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), rgba(15, 23, 42, 0.95));
    border-radius: 32px;
    margin-top: 4rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.85);
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.page-company .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at bottom right, rgba(22, 163, 74, 0.18), rgba(15, 23, 42, 0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.85);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.page-products .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.18), rgba(15,23,42,0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.85);
    border: 1px solid rgba(129, 140, 248, 0.4);
}

.page-pilot .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at bottom, rgba(56, 189, 248, 0.14), rgba(15,23,42,0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.page-pricing .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at center, rgba(251, 146, 60, 0.18), rgba(15,23,42,0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.85);
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.page-chat .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15,23,42,0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.85);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.page-login .qre-page-main {
    max-width: 480px;
    padding-top: 6rem;
}

.page-contact .qre-page-main {
    backdrop-filter: blur(18px);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15,23,42,0.96));
    border-radius: 28px;
    margin-top: 4rem;
    box-shadow: 0 26px 70px rgba(0,0,0,0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* ========== COSMIC BACKGROUND ========== */

.qre-sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: radial-gradient(circle at center, #020617 0, #020617 40%, #000000 100%);
}

/* Central sun */
.qre-sun {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: 12%;
    left: -40px;
    background: radial-gradient(circle, #fef9c3 0, #facc15 40%, #b45309 75%, transparent 100%);
    box-shadow: 0 0 80px rgba(250, 204, 21, 0.9);
}

/* Main comet */
.qre-comet {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #e0f2fe 0, #38bdf8 40%, transparent 100%);
    box-shadow:
        0 0 40px rgba(56,189,248,0.9),
        0 0 70px rgba(129,140,248,0.9);
    animation: qre-comet-orbit 18s linear infinite;
    transform-origin: 260px 120px;
}

/* Multi-layer starfields */
.qre-stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    opacity: 0.9;
}

.qre-stars-near {
    background-image:
        radial-gradient(2px 2px at 10% 20%, #ffffff 0, transparent 60%),
        radial-gradient(2px 2px at 80% 70%, #fef9c3 0, transparent 60%),
        radial-gradient(2px 2px at 40% 60%, #e5e7eb 0, transparent 60%);
    animation: qre-stars-near-move 60s linear infinite;
}

.qre-stars-mid {
    background-image:
        radial-gradient(1.5px 1.5px at 15% 80%, #c4b5fd 0, transparent 60%),
        radial-gradient(1.5px 1.5px at 70% 30%, #a5b4fc 0, transparent 60%),
        radial-gradient(1.5px 1.5px at 50% 10%, #bae6fd 0, transparent 60%);
    animation: qre-stars-mid-move 90s linear infinite;
    opacity: 0.7;
}

.qre-stars-far {
    background-image:
        radial-gradient(1px 1px at 5% 10%, #9ca3af 0, transparent 60%),
        radial-gradient(1px 1px at 70% 40%, #cbd5f5 0, transparent 60%),
        radial-gradient(1px 1px at 30% 80%, #e5e7eb 0, transparent 60%);
    animation: qre-stars-far-move 140s linear infinite;
    opacity: 0.5;
}

/* Planets */
.qre-planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(15,23,42,0.9);
}

.qre-planet-1 {
    width: 90px;
    height: 90px;
    right: 6%;
    top: 14%;
    background: radial-gradient(circle at 30% 30%, #e0f2fe 0, #38bdf8 40%, #1d4ed8 70%, #020617 100%);
    animation: qre-planet-drift-1 40s ease-in-out infinite alternate;
}

.qre-planet-2 {
    width: 70px;
    height: 70px;
    left: 18%;
    bottom: 12%;
    background: radial-gradient(circle at 30% 30%, #bbf7d0 0, #22c55e 40%, #166534 70%, #020617 100%);
    animation: qre-planet-drift-2 55s ease-in-out infinite alternate;
}

.qre-planet-3 {
    width: 120px;
    height: 120px;
    right: 15%;
    bottom: -30px;
    background: radial-gradient(circle at 30% 20%, #fecaca 0, #fb7185 40%, #be123c 70%, #020617 100%);
    opacity: 0.4;
    filter: blur(0.5px);
    animation: qre-planet-drift-3 70s linear infinite alternate;
}

/* Satellites */
.qre-orbital-satellite {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #f4f4f5 0, #a1a1aa 60%, transparent 100%);
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.9);
}

.qre-orbital-satellite-1 {
    top: 28%;
    right: 10%;
    animation: qre-satellite-orbit-1 26s linear infinite;
    transform-origin: -40px 40px;
}

.qre-orbital-satellite-2 {
    bottom: 22%;
    left: 26%;
    animation: qre-satellite-orbit-2 34s linear infinite;
    transform-origin: 60px -30px;
}

/* Spaceship */
.qre-spaceship {
    position: absolute;
    width: 34px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #38bdf8, #a855f7);
    box-shadow:
        0 0 20px rgba(56,189,248,0.9),
        0 0 30px rgba(129,140,248,0.7);
    transform: rotate(-14deg);
}

.qre-spaceship-1 {
    top: 65%;
    left: -60px;
    animation: qre-spaceship-swoop 30s linear infinite;
}

/* Quantum StarGate */
.qre-stargate {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(129, 140, 248, 0.5);
    box-shadow:
        0 0 20px rgba(129,140,248,0.9),
        0 0 40px rgba(56,189,248,0.7);
    background:
        radial-gradient(circle, rgba(15,23,42,0.4) 0, transparent 60%),
        conic-gradient(from 0deg, rgba(56,189,248,0.8), rgba(129,140,248,0.8), rgba(236,72,153,0.8), rgba(56,189,248,0.8));
    mask-image: radial-gradient(circle, transparent 0, transparent 55%, black 62%, black 100%);
}

.qre-stargate-1 {
    width: 180px;
    height: 180px;
    right: 35%;
    top: 8%;
    opacity: 0.7;
    animation: qre-stargate-pulse 22s ease-in-out infinite;
}

/* AI Atlas 3 comet pointer sparks */
.qre-spark-main,
.qre-spark-trail {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.qre-spark-main {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fef9c3 0, #facc15 35%, #38bdf8 70%, transparent 100%);
    box-shadow:
        0 0 18px rgba(250, 204, 21, 0.9),
        0 0 30px rgba(56, 189, 248, 0.8),
        0 0 60px rgba(129, 140, 248, 0.7);
}

.qre-spark-trail {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #e0f2fe 0, #38bdf8 50%, transparent 100%);
    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.9),
        0 0 24px rgba(129, 140, 248, 0.7);
}

/* Animations */
@keyframes qre-comet-orbit {
    0%   { transform: translate(0, 0) rotate(0deg) translateX(260px); }
    50%  { transform: translate(10px, -30px) rotate(180deg) translateX(260px); }
    100% { transform: translate(0, 0) rotate(360deg) translateX(260px); }
}

@keyframes qre-stars-near-move {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-240px, -440px, 0); }
}

@keyframes qre-stars-mid-move {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-160px, -300px, 0); }
}

@keyframes qre-stars-far-move {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-90px, -180px, 0); }
}

@keyframes qre-planet-drift-1 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-40px, 20px, 0); }
}

@keyframes qre-planet-drift-2 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(30px, -20px, 0); }
}

@keyframes qre-planet-drift-3 {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-60px, -10px, 0); }
}

@keyframes qre-satellite-orbit-1 {
    0%   { transform: rotate(0deg) translateX(0); }
    100% { transform: rotate(360deg) translateX(0); }
}

@keyframes qre-satellite-orbit-2 {
    0%   { transform: rotate(360deg) translateX(0); }
    100% { transform: rotate(0deg) translateX(0); }
}

@keyframes qre-spaceship-swoop {
    0%   { transform: translate3d(0, 0, 0) rotate(-14deg); }
    45%  { transform: translate3d(120vw, -40vh, 0) rotate(-8deg); }
    50%  { transform: translate3d(120vw, -40vh, 0) rotate(-8deg); }
    100% { transform: translate3d(0, 0, 0) rotate(-14deg); }
}

@keyframes qre-stargate-pulse {
    0%   { transform: scale(0.86) rotate(0deg); opacity: 0.6; }
    50%  { transform: scale(1.05) rotate(180deg); opacity: 0.9; }
    100% { transform: scale(0.86) rotate(360deg); opacity: 0.6; }
}

/* ========== HEADER & NAV ========== */

.qre-header {
    position: relative;
    z-index: 2;
    padding: 1.2rem 1.5rem 0;
}

.qre-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,118,110,0.96));
    border: 1px solid rgba(56,189,248,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.qre-logo-text {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(120deg, #facc15, #e5e7eb, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

.qre-nav {
    display: flex;
    gap: 1.1rem;
    font-size: 0.85rem;
}

.qre-nav a {
    text-decoration: none;
    color: #e5e7eb;
    opacity: 0.86;
}

.qre-nav a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(56,189,248,0.9);
}

/* ========== FOOTER ========== */

.qre-footer {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 2rem;
    margin-top: 2rem;
}

.qre-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.4rem 1.25rem;
    border-radius: 20px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(31,41,55,0.9);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.qre-footer-logo {
    font-weight: 600;
}

.qre-footer-sub {
    color: #9ca3af;
    margin-top: 0.25rem;
}

.qre-footer-copy {
    margin-top: 0.4rem;
    color: #6b7280;
}

.qre-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qre-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.85;
}

.qre-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========== TYPOGRAPHY & SECTIONS ========== */

h1, h2, h3 {
    font-weight: 700;
}

.qre-hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.qre-hero-title {
    font-size: clamp(2.2rem, 3.1vw, 3rem);
    margin-bottom: 0.75rem;
}

.qre-hero-subtitle {
    font-size: 0.98rem;
    color: #e5e7eb;
    max-width: 620px;
    margin-bottom: 1.6rem;
}

.electric-text {
    background: linear-gradient(120deg, #f97316, #facc15, #e0f2fe, #4f46e5, #ec4899);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    color: transparent;
    animation: qre-electric 4.2s ease-in-out infinite;
    text-shadow:
        0 0 14px rgba(251,191,36,0.7),
        0 0 22px rgba(56,189,248,0.9);
}

@keyframes qre-electric {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

.qre-section {
    margin-top: 2.6rem;
}

.qre-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.qre-section p {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.qre-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.qre-pill {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
}

/* Tile grid */
.qre-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 1.8rem;
}

.qre-tile {
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), rgba(15, 23, 42, 0.98));
    border-radius: 20px;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
    font-size: 0.9rem;
}

.qre-tile h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #fef9c3;
}

.qre-tile ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
}

.qre-tile li {
    margin-bottom: 0.25rem;
}

.qre-disclaimer {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.4rem;
}

/* Buttons */
.qre-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 1.3rem;
    border: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #facc15, #e5e7eb, #38bdf8);
    color: #020617;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0,0,0,0.9);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.qre-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(0,0,0,1);
    filter: brightness(1.06);
}

/* Pricing cards */
.qre-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
    margin-top: 1.8rem;
}

.qre-pricing-card {
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,1));
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
    font-size: 0.9rem;
}

.qre-pricing-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.qre-pricing-price {
    font-size: 1.4rem;
    margin: 0.3rem 0 0.8rem;
}

.qre-pricing-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Forms */
.qre-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.qre-form-grid-full {
    grid-column: 1 / -1;
}

.qre-form-field label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.qre-form-field input,
.qre-form-field select,
.qre-form-field textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.8);
    background: rgba(15,23,42,0.96);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
}

.qre-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.qre-form-field input:focus,
.qre-form-field select:focus,
.qre-form-field textarea:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 1px rgba(250,204,21,0.7);
}

/* Login */
.qre-login-shell {
    background: rgba(15,23,42,0.96);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow: 0 26px 70px rgba(0,0,0,0.95);
}

.qre-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: #fecaca;
    margin-bottom: 1rem;
}

/* Chat page helper styles */
.qre-chat-info {
    font-size: 0.9rem;
    margin-top: 0.7rem;
    color: #e5e7eb;
}

.qre-transcript {
    margin-top: 1.4rem;
    padding: 1rem 1rem;
    border-radius: 16px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 0.85rem;
}

.qre-transcript-line {
    margin-bottom: 0.4rem;
}

.qre-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(148,163,184,0.7);
    color: #9ca3af;
}

/* Chat widget */
.qre-chat-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9998;
    background: linear-gradient(135deg, #facc15, #38bdf8);
    color: #020617;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.8);
}

.qre-chat-launcher--hidden {
    display: none;
}

.qre-chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    background: rgba(10, 10, 25, 0.98);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat sizes */
.qre-chat-small {
    width: 320px;
    height: 340px;
}

.qre-chat-medium {
    width: 420px;
    height: 480px;
}

.qre-chat-full {
    width: min(100vw - 2rem, 960px);
    height: min(100vh - 2rem, 640px);
    right: 50%;
    transform: translateX(50%);
}

.qre-chat-panel--hidden {
    display: none;
}

/* Chat header */
.qre-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: radial-gradient(circle at top left, #0ea5e9, #020617);
    color: #e5e7eb;
}

.qre-chat-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.qre-chat-size-controls button {
    margin: 0 0.1rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    cursor: pointer;
}

.qre-chat-size-controls button:hover {
    background: rgba(15, 23, 42, 1);
}

.qre-chat-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #e5e7eb;
    cursor: pointer;
}

/* Chat body */
.qre-chat-output {
    flex: 1;
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
    font-size: 0.85rem;
}

.qre-chat-form {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem 0.6rem;
    border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.qre-chat-form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    padding: 0.35rem 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.qre-chat-form button {
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #facc15, #38bdf8);
    color: #020617;
    cursor: pointer;
}

.qre-chat-error {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.6);
}

.qre-chat-link {
    color: #38bdf8;
    text-decoration: underline;
}

.qre-chat-user {
    margin-bottom: 0.3rem;
    text-align: right;
}

.qre-chat-reply {
    margin-bottom: 0.3rem;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .qre-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .qre-nav {
        flex-wrap: wrap;
    }
    .qre-page-main {
        padding: 4rem 1.1rem 3.5rem;
        margin-top: 3.5rem;
    }
}
