/* ==========================================================================
   QAISI TECH — Client Portal styles v2 (vanilla, scoped to /portal/)
   Dark neon theme matching /website-care/ v2.

   Plan tier identity (shared with the pricing page):
     Essential  → cool cyan/teal   #2dd4bf
     Business   → electric blue    #38bdf8  + gold #f5c451
     Premium    → rich violet      #a855f7  + magenta #f0abfc
   Portal chrome itself uses electric blue as the brand accent.
   ========================================================================== */

:root {
    --qp-bg: #04060f;
    --qp-panel: #0a0e1f;
    --qp-panel-2: #0d1226;
    --qp-line: #1b2342;
    --qp-text: #eef1fc;
    --qp-muted: #8b94b8;
    --qp-blue: #38bdf8;
    --qp-blue-bright: #7dd3fc;
    --qp-purple: #a855f7;
    --qp-gold: #f5c451;
    --qp-green: #34d399;
    --qp-amber: #fbbf24;
    --qp-red: #f87171;
    --qp-font-display: 'Rajdhani', 'Montserrat', sans-serif;
    --qp-font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 60% 40% at 12% -5%, rgba(56, 189, 248, 0.09), transparent 60%),
        radial-gradient(ellipse 50% 35% at 88% 0%, rgba(168, 85, 247, 0.08), transparent 60%),
        var(--qp-bg);
    color: var(--qp-text);
    font-family: var(--qp-font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top navigation
   ========================================================================== */
.qp-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(4, 6, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--qp-line);
}
.qp-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.qp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--qp-text);
    text-decoration: none;
}
.qp-brand img {
    display: block;
    width: min(240px, 54vw);
    height: auto;
}
.qp-brand em {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--qp-muted);
    border: 1px solid var(--qp-line);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 0;
    vertical-align: 3px;
}
.qp-nav-links { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.qp-nav-link {
    font-family: var(--qp-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--qp-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.qp-nav-link:hover { color: var(--qp-text); }
.qp-nav-link-admin { color: var(--qp-gold); }
.qp-nav-link-admin:hover { color: #fde68a; }
.qp-nav-link.is-active {
    color: var(--qp-blue);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.07);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}
.qp-nav-link-admin.is-active {
    color: var(--qp-gold);
    border-color: rgba(245, 196, 81, 0.42);
    background: rgba(245, 196, 81, 0.07);
    box-shadow: 0 0 14px rgba(245, 196, 81, 0.16);
    text-shadow: 0 0 10px rgba(245, 196, 81, 0.5);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.qp-container { max-width: 1120px; margin: 0 auto; padding: 36px 20px 70px; }

.qp-page-head { margin-bottom: 26px; }
.qp-page-head h1 {
    margin: 0;
    font-family: var(--qp-font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 30%, var(--qp-blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.qp-page-head p { margin: 6px 0 0; color: var(--qp-muted); }

.qp-grid { display: grid; gap: 18px; }
.qp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .qp-grid-2, .qp-grid-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.qp-card {
    position: relative;
    background: linear-gradient(180deg, var(--qp-panel-2), var(--qp-panel));
    border: 1px solid var(--qp-line);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qp-card h2 {
    margin: 0 0 4px;
    font-family: var(--qp-font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.qp-card h2 .qp-accent { color: var(--qp-blue); text-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
.qp-card .qp-card-sub { margin: 0 0 16px; color: var(--qp-muted); font-size: 13px; }
.qp-card-glow {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.13);
}
/* Neon top edge on glow cards */
.qp-card-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--qp-blue), transparent);
    opacity: 0.7;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.qp-field { margin-bottom: 16px; }
.qp-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--qp-font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--qp-muted);
}
.qp-input, .qp-select, .qp-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--qp-font-body);
    font-size: 14.5px;
    color: var(--qp-text);
    background: rgba(4, 6, 15, 0.7);
    border: 1px solid var(--qp-line);
    border-radius: 9px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qp-input:hover, .qp-select:hover, .qp-textarea:hover { border-color: #2a3560; }
.qp-input:focus, .qp-select:focus, .qp-textarea:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), 0 0 16px rgba(56, 189, 248, 0.18);
}
.qp-input::placeholder { color: #4c5578; }
.qp-field .qp-hint { margin: 6px 0 0; font-size: 12px; color: var(--qp-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.qp-btn {
    display: inline-block;
    padding: 13px 26px;
    font-family: var(--qp-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: #04121a;
    background: linear-gradient(90deg, var(--qp-blue), var(--qp-blue-bright));
    border: 1px solid rgba(56, 189, 248, 0.7);
    border-radius: 9px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}
.qp-btn:hover, .qp-btn:focus-visible {
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
    outline: none;
}
.qp-btn:active { transform: translateY(0); }
.qp-btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }
.qp-btn-block { width: 100%; }
.qp-btn-sm { padding: 8px 16px; font-size: 12.5px; letter-spacing: 1.8px; }

.qp-btn-ghost {
    color: var(--qp-blue);
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: none;
}
.qp-btn-ghost:hover, .qp-btn-ghost:focus-visible {
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}
.qp-btn-purple {
    color: #1a0524;
    background: linear-gradient(90deg, var(--qp-purple), #d8b4fe);
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
}
.qp-btn-danger {
    color: #2b0606;
    background: linear-gradient(90deg, var(--qp-red), #fca5a5);
    border-color: rgba(248, 113, 113, 0.7);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.2);
}

/* Per-tier subscribe buttons (billing plan cards) */
.qp-btn.tier-essential {
    color: #032622;
    background: linear-gradient(90deg, #2dd4bf, #5eead4);
    border-color: rgba(45, 212, 191, 0.7);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.28);
}
.qp-btn.tier-essential:hover, .qp-btn.tier-essential:focus-visible { box-shadow: 0 0 32px rgba(45, 212, 191, 0.5); }
.qp-btn.tier-business {
    color: #04121a;
    background: linear-gradient(90deg, #38bdf8, #7dd3fc);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}
.qp-btn.tier-business:hover, .qp-btn.tier-business:focus-visible { box-shadow: 0 0 32px rgba(56, 189, 248, 0.55); }
.qp-btn.tier-premium {
    color: #1a0524;
    background: linear-gradient(90deg, #a855f7, #f0abfc);
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}
.qp-btn.tier-premium:hover, .qp-btn.tier-premium:focus-visible { box-shadow: 0 0 32px rgba(168, 85, 247, 0.55); }

.qp-link { color: var(--qp-blue); text-decoration: none; }
.qp-link:hover { text-decoration: underline; }

/* Tier text accents (dashboard plan name, inline highlights) */
.qp-tier-essential { color: #2dd4bf; }
.qp-tier-business { color: #38bdf8; }
.qp-tier-premium { color: #c084fc; }

/* ==========================================================================
   Alerts / banners
   ========================================================================== */
#qp-banner:empty { display: none; }
.qp-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.08);
    color: #d1fae5;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
}
.qp-alert-error {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.08);
    color: #fee2e2;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.12);
}
.qp-alert-info {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.07);
    color: #e0f2fe;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}
.qp-alert-close {
    background: none;
    border: 0;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 2px;
}
.qp-alert-close:hover { opacity: 1; }

/* ==========================================================================
   Status pills
   ========================================================================== */
.qp-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--qp-font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    border: 1px solid var(--qp-line);
    color: var(--qp-muted);
}
.qp-pill-active, .qp-pill-paid {
    color: var(--qp-green);
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.08);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}
.qp-pill-trialing {
    color: var(--qp-blue);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
.qp-pill-past_due, .qp-pill-pending, .qp-pill-unpaid {
    color: var(--qp-amber);
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.08);
}
.qp-pill-canceled, .qp-pill-cancelled, .qp-pill-failed, .qp-pill-expired {
    color: var(--qp-red);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.08);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.qp-table-wrap { overflow-x: auto; }
.qp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qp-table th {
    text-align: left;
    font-family: var(--qp-font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--qp-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--qp-line);
}
.qp-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(27, 35, 66, 0.6);
    color: #c9d2ef;
    transition: background 0.12s ease;
}
.qp-table tbody tr:hover td { background: rgba(56, 189, 248, 0.03); }
.qp-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Stats / definition lists
   ========================================================================== */
.qp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.qp-stat {
    padding: 15px 16px;
    border: 1px solid var(--qp-line);
    border-radius: 10px;
    background: rgba(4, 6, 15, 0.5);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.qp-stat:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
}
.qp-stat .qp-stat-label {
    font-family: var(--qp-font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--qp-muted);
}
.qp-stat .qp-stat-value {
    margin-top: 4px;
    font-family: var(--qp-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--qp-text);
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.qp-dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.qp-dl dt {
    color: var(--qp-muted);
    font-family: var(--qp-font-display);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    padding-top: 2px;
}
.qp-dl dd { margin: 0; color: var(--qp-text); overflow-wrap: anywhere; }
@media (max-width: 560px) { .qp-dl { grid-template-columns: 1fr; gap: 2px 0; } .qp-dl dd { margin-bottom: 8px; } }

/* ==========================================================================
   Plan cards (billing) — tier identity
   ========================================================================== */
.qp-plan-card { display: flex; flex-direction: column; }
.qp-plan-card .qp-plan-name {
    margin: 0;
    font-family: var(--qp-font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.qp-plan-card .qp-plan-price {
    margin: 10px 0 2px;
    font-family: var(--qp-font-display);
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}
.qp-plan-card .qp-plan-price span { font-size: 15px; color: var(--qp-muted); }
.qp-plan-card .qp-plan-tag { margin: 0 0 14px; font-size: 12.5px; color: var(--qp-muted); }
.qp-plan-card ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; font-size: 13px; color: #c9d2ef; }
.qp-plan-card ul li { position: relative; padding: 5px 0 5px 24px; }
.qp-plan-card ul li::before { content: '\2713'; position: absolute; left: 2px; font-weight: 700; }
.qp-plan-card.is-current { box-shadow: 0 0 24px rgba(52, 211, 153, 0.14); }
.qp-plan-card.is-highlight { box-shadow: 0 0 30px rgba(56, 189, 248, 0.22); }
.qp-plan-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: var(--qp-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #04121a;
    background: linear-gradient(90deg, var(--qp-blue), var(--qp-blue-bright));
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}
.qp-plan-badge.is-current {
    background: linear-gradient(90deg, var(--qp-green), #6ee7b7);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
}

/* Tier skins */
.qp-plan-card.tier-essential { border-color: rgba(45, 212, 191, 0.4); }
.qp-plan-card.tier-essential:hover { box-shadow: 0 12px 36px rgba(45, 212, 191, 0.16); border-color: rgba(45, 212, 191, 0.65); }
.qp-plan-card.tier-essential .qp-plan-name { color: #2dd4bf; text-shadow: 0 0 16px rgba(45, 212, 191, 0.5); }
.qp-plan-card.tier-essential .qp-plan-price { text-shadow: 0 0 22px rgba(45, 212, 191, 0.4); }
.qp-plan-card.tier-essential ul li::before { color: #2dd4bf; }

.qp-plan-card.tier-business { border-color: rgba(56, 189, 248, 0.45); }
.qp-plan-card.tier-business:hover { box-shadow: 0 12px 36px rgba(56, 189, 248, 0.2); border-color: rgba(56, 189, 248, 0.7); }
.qp-plan-card.tier-business .qp-plan-name { color: #38bdf8; text-shadow: 0 0 16px rgba(56, 189, 248, 0.55); }
.qp-plan-card.tier-business .qp-plan-price { text-shadow: 0 0 22px rgba(56, 189, 248, 0.45); }
.qp-plan-card.tier-business ul li::before { color: #38bdf8; }
.qp-plan-card.tier-business .qp-plan-badge {
    color: #241a02;
    background: linear-gradient(90deg, var(--qp-gold), #fde68a);
    box-shadow: 0 0 18px rgba(245, 196, 81, 0.5);
}

.qp-plan-card.tier-premium { border-color: rgba(168, 85, 247, 0.45); }
.qp-plan-card.tier-premium:hover { box-shadow: 0 12px 36px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.7); }
.qp-plan-card.tier-premium .qp-plan-name { color: #c084fc; text-shadow: 0 0 16px rgba(168, 85, 247, 0.55); }
.qp-plan-card.tier-premium .qp-plan-price { text-shadow: 0 0 22px rgba(168, 85, 247, 0.45); }
.qp-plan-card.tier-premium ul li::before { color: #c084fc; }

.qp-plan-card { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.qp-plan-card:hover { transform: translateY(-4px); }

/* ==========================================================================
   Shop
   ========================================================================== */
.qp-shop-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 940px) { .qp-shop-grid { grid-template-columns: 1fr; } }
.qp-product { display: flex; flex-direction: column; gap: 8px; }
.qp-product:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.12); }
.qp-product .qp-product-name {
    margin: 0;
    font-family: var(--qp-font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.qp-product .qp-product-desc { margin: 0; font-size: 13px; color: var(--qp-muted); flex: 1; }
.qp-product .qp-product-price {
    font-family: var(--qp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--qp-blue);
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}
.qp-product .qp-product-price span { font-size: 12px; color: var(--qp-muted); letter-spacing: 1px; text-shadow: none; }
.qp-product .qp-product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }

.qp-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 35, 66, 0.6);
    font-size: 13.5px;
}
.qp-cart-row:last-of-type { border-bottom: 0; }
.qp-cart-qty { display: inline-flex; align-items: center; gap: 8px; }
.qp-cart-qty button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.06);
    color: var(--qp-blue);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.14s ease;
}
.qp-cart-qty button:hover { background: rgba(56, 189, 248, 0.16); }
.qp-cart-total {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    padding-top: 14px;
    border-top: 1px solid var(--qp-line);
    font-family: var(--qp-font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   Business list
   ========================================================================== */
.qp-biz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--qp-line);
    border-radius: 10px;
    background: rgba(4, 6, 15, 0.5);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-align: left;
    width: 100%;
    color: inherit;
    font: inherit;
}
.qp-biz-item:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateX(3px); }
.qp-biz-item.is-selected {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}
.qp-biz-item .qp-biz-name { font-family: var(--qp-font-display); font-weight: 700; font-size: 16px; letter-spacing: 1.4px; }
.qp-biz-item .qp-biz-url { font-size: 12.5px; color: var(--qp-muted); overflow-wrap: anywhere; }

/* ==========================================================================
   Tips
   ========================================================================== */
.qp-tip { border-left: 3px solid var(--qp-blue); }
.qp-tip:hover { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 8px 26px rgba(56, 189, 248, 0.1); }
.qp-tip h3 {
    margin: 0 0 6px;
    font-family: var(--qp-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--qp-blue);
}
.qp-tip p { margin: 0; font-size: 13.5px; color: #c9d2ef; }

/* ==========================================================================
   Empty / loading states
   ========================================================================== */
.qp-empty {
    padding: 26px 20px;
    text-align: center;
    color: var(--qp-muted);
    font-size: 14px;
    border: 1px dashed var(--qp-line);
    border-radius: 10px;
}
.qp-empty p { margin: 0 0 10px; }
.qp-empty-error { border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
.qp-loading { padding: 26px 20px; text-align: center; color: var(--qp-muted); font-size: 14px; }
.qp-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(56, 189, 248, 0.25);
    border-top-color: var(--qp-blue);
    border-radius: 50%;
    vertical-align: -2px;
    animation: qp-spin 0.8s linear infinite;
}
@keyframes qp-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.qp-auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(ellipse 55% 40% at 50% -5%, rgba(56, 189, 248, 0.12), transparent 62%),
        radial-gradient(ellipse 45% 35% at 85% 100%, rgba(168, 85, 247, 0.08), transparent 60%);
}
.qp-auth-logo {
    display: flex;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 14px;
}
.qp-auth-logo img {
    display: block;
    width: min(400px, 88vw);
    height: auto;
}
.qp-auth-tag {
    margin: 0 0 30px;
    font-family: var(--qp-font-display);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--qp-muted);
}
.qp-auth-card {
    width: 100%;
    max-width: 440px;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 44px rgba(56, 189, 248, 0.14), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.qp-auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--qp-blue), #a855f7, transparent);
    opacity: 0.85;
}
.qp-auth-alt { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--qp-muted); }
.qp-auth-back { margin-top: 26px; text-align: center; }

/* Verification / OTP code entry */
.qp-code-input {
    text-align: center;
    font-family: var(--qp-font-display);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 14px 14px 14px 24px; /* optical centering against letter-spacing */
}
.qp-code-input::placeholder { color: #3a4468; letter-spacing: 12px; }
.qp-code-input:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14), 0 0 26px rgba(56, 189, 248, 0.28);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.qp-auth-email { color: var(--qp-text); font-weight: 600; overflow-wrap: anywhere; }

/* Button styled as an inline link (resend code, back links) */
.qp-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--qp-blue);
    cursor: pointer;
    text-decoration: none;
}
.qp-linkbtn:hover, .qp-linkbtn:focus-visible { text-decoration: underline; outline: none; }
.qp-linkbtn[disabled] { color: var(--qp-muted); cursor: default; text-decoration: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.qp-footer {
    text-align: center;
    padding: 30px 20px 40px;
    color: var(--qp-muted);
    font-size: 12px;
    letter-spacing: 1.4px;
}
.qp-footer a { color: var(--qp-muted); text-decoration: none; margin: 0 10px; transition: color 0.15s ease; }
.qp-footer a:hover { color: var(--qp-blue); }

/* ==========================================================================
   Responsive nav
   ========================================================================== */
@media (max-width: 720px) {
    .qp-nav-inner { gap: 10px; padding: 10px 14px; }
    .qp-nav-links { order: 3; width: 100%; }
    .qp-nav-link { padding: 7px 10px; font-size: 12.5px; }
    .qp-page-head h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .qp-loading::after { animation: none; }
    * { transition: none !important; }
}
