/* ============================================================
   Glass Atlas PricePulse — Stylesheet v3
   Brand Guide:
     • Background:   #F9F5F1 (off-white)
     • Primary:      #25242B (near-black)
     • Gold:         #F2BC63
     • Pink:         #F7DBD6
     • Light Blue:   #4198F2
     • Green:        #60D2A7
   Font: Poppins
   ============================================================ */

:root {
    --bg:            #F9F5F1;
    --bg-warm:       #F3EDE6;
    --surface:       #FFFFFF;
    --border:        #E4DDD6;
    --border-strong: #C8BFB6;
    --primary:       #25242B;
    --primary-soft:  #3D3B46;
    --text:          #25242B;
    --text-muted:    #6B6875;
    --text-dim:      #9E9AA8;
    --gold:          #F2BC63;
    --gold-dark:     #B8842A;
    --gold-bg:       rgba(242,188,99,0.12);
    --pink:          #F7DBD6;
    --blue:          #4198F2;
    --blue-bg:       rgba(65,152,242,0.1);
    --green:         #60D2A7;
    --green-dark:    #2E9E74;
    --green-bg:      rgba(96,210,167,0.1);
    --orange:        #E08A5F;
    --red:           #D94F4F;
    --red-bg:        rgba(217,79,79,0.08);
    --accent:        #60D2A7;
    --accent-dark:   #2E9E74;
    --text-primary:  #25242B;

    --font:          'Poppins', -apple-system, sans-serif;
    --radius:        4px;
    --radius-lg:     8px;
    --transition:    0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm:     0 1px 3px rgba(37,36,43,0.06), 0 1px 2px rgba(37,36,43,0.04);
    --shadow-md:     0 4px 12px rgba(37,36,43,0.09), 0 2px 4px rgba(37,36,43,0.05);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.brand-logo { width: 32px; height: 32px; flex-shrink: 0; }
.brand-wordmark {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-transform: uppercase;
}

/* Header brand lockup (logo + pulse + PricePulse) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--primary);
    flex-shrink: 0;
}
.header-brand-mark { flex-shrink: 0; }
.header-brand-pulse { flex-shrink: 0; margin-left: -0.15rem; margin-right: 0.15rem; }
.header-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.header-brand-sub  { font-size: 0.58rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.02em; }
.brand-divider {
    color: var(--border-strong);
    font-weight: 300;
    font-size: 0.9rem;
}
.brand-product {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.header-nav { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-dot { color: var(--border-strong); font-size: 0.7rem; }

.header-user-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-greeting {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.01em;
}
.header-user-link {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition);
}
.header-user-link:hover { color: var(--primary); }
.header-user-link--logout {
    color: #F9F5F1;
    background: var(--primary);
    padding: 0.65rem 1.5rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--transition);
}
.header-user-link--logout:hover {
    color: #F9F5F1;
    background: var(--primary-soft);
}

/* ── Main ───────────────────────────────────────────────────── */
.main {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}

/* ── Hero Section — two-column ──────────────────────────────── */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    align-items: start;
}

/* Left column */
.hero-left {
    padding: 6rem 4rem 5rem 0;
}
.hero-label {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-label::after {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--gold);
    opacity: 0.7;
}
.hero-greeting {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #4198F2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}
.hero-title {
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 1.75rem;
}
.hero-title em {
    font-style: italic;
    font-weight: 700;
    color: var(--gold);
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
}
.hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 400;
}

/* Dashed vertical divider */
.hero-divider {
    width: 1px;
    align-self: stretch;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--border-strong) 0,
        var(--border-strong) 6px,
        transparent 6px,
        transparent 12px
    );
    margin: 0;
}

/* Right column */
.hero-right {
    padding: 6rem 0 5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── Form groups (right column) ─────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Label — minimal, uppercase tracking */
.form-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Select — Glass Atlas style (bottom-border only) ────────── */
.custom-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid var(--primary);
}
.form-select {
    width: 100%;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.65rem 2rem 0.65rem 0;
    border: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.form-select option { color: var(--primary); background: #fff; }
.select-chevron {
    position: absolute;
    right: 0;
    width: 12px;
    height: 8px;
    pointer-events: none;
    flex-shrink: 0;
}

/* Loading state */
.account-loading {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1.5px solid var(--border);
}
.account-spinner {
    width: 13px; height: 13px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.account-error {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 0.5rem;
}

/* ── Search form ────────────────────────────────────────────── */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Input — bottom-border only like the contact page */
.search-input-wrap {
    border-bottom: 1.5px solid var(--primary);
    margin-bottom: 1.75rem;
}
.search-input {
    width: 100%;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0.65rem 0;
    border: none;
    outline: none;
}
.search-input::placeholder { color: var(--text-dim); }

/* Analyse button — pill style like glassatlas.com/contact */
.search-btn {
    align-self: flex-end;
    background: var(--primary);
    color: #F9F5F1;
    border: none;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background var(--transition), gap var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}
.search-btn:hover { background: var(--primary-soft); gap: 0.85rem; }
.search-btn:disabled { background: var(--text-dim); cursor: not-allowed; }
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.search-hint {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-top: 0.75rem;
}

/* ── Results Panel ──────────────────────────────────────────── */
.results-panel {
    padding: 2.5rem 0 5rem;
    border-top: 1px solid var(--border);
}

/* ── Benchmark Card ─────────────────────────────────────────── */
.rrp-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.rrp-col { display: flex; flex-direction: column; gap: 0.3rem; }
.rrp-col-account { margin-left: auto; text-align: right; }

/* WHITE labels in dark card */
.rrp-label {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(249,245,241,0.75);
    font-weight: 600;
}
.rrp-source {
    color: rgba(249,245,241,0.5);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0;
    text-transform: none;
}
.rrp-price {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--gold);
    line-height: 1.1;
}
.rrp-your-price {
    color: rgba(249,245,241,0.85) !important;
}
/* WHITE subtext in dark card */
.rrp-range {
    font-size: 0.76rem;
    color: rgba(249,245,241,0.7);
    font-weight: 400;
}
.rrp-account-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #F9F5F1;
    letter-spacing: -0.01em;
}

/* ── Table ──────────────────────────────────────────────────── */
.table-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.results-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.track-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.track-btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 1rem;
    border-radius: 6px;
    border: none;
    background: var(--accent-dark);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.track-btn:hover:not(:disabled) {
    background: #1f7a56;
    transform: translateY(-1px);
}
.track-btn--done,
.track-btn--done:hover {
    background: rgba(96,210,167,0.15);
    border: 1.5px solid #60D2A7;
    color: var(--accent-dark);
    transform: none;
    cursor: default;
}
.track-btn:disabled { opacity: 0.7; cursor: default; }

.history-saved-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: rgba(96,210,167,0.15);
    border: 1px solid rgba(96,210,167,0.4);
    border-radius: 5px;
    padding: 0.28rem 0.7rem;
    white-space: nowrap;
    animation: fadeInBadge 0.2s ease-out;
}
@keyframes fadeInBadge {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

.results-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}
.table-legend { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.legend-item {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
}
.legend-below { background: rgba(96,210,167,0.12); color: var(--green-dark); }
.legend-at    { background: rgba(242,188,99,0.12);  color: var(--gold-dark); }
.legend-above { background: rgba(217,79,79,0.08);   color: var(--red); }
.legend-none  { background: rgba(37,36,43,0.06);    color: var(--text-muted); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.results-table thead {
    background: var(--primary);
}
.results-table th {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(249,245,241,0.75);
    padding: 0.85rem 1rem;
    text-align: left;
    white-space: nowrap;
}
.results-table td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.results-table tbody tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: var(--bg-warm); }

/* Rank badge */
.rank-badge {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.rank-badge.rank-top3 {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-bg);
}

.col-pos    { width: 52px; text-align: center; }
.col-domain { min-width: 160px; font-weight: 600; }
.col-title  { min-width: 220px; color: var(--text); font-size: 0.85rem; }
.col-price  { width: 120px; font-weight: 600; white-space: nowrap; }
.col-diff   { width: 180px; }
.col-pagetype { width: 90px; }
.col-method   { width: 130px; }
/* Domain link */
.domain-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.domain-link:hover { color: var(--blue); text-decoration: underline; }

/* Sortable column header */
.sortable-th { cursor: pointer; user-select: none; }
.sortable-th:hover { color: #fff; }
.sort-icon { font-size: 0.55rem; opacity: 0.35; margin-left: 0.2rem; letter-spacing: -0.1em; }
.sortable-th.sort-asc .sort-icon,
.sortable-th.sort-desc .sort-icon { opacity: 1; }

/* Trend info icon */
.trend-info-icon {
    font-size: 0.8rem; cursor: help; opacity: 0.4;
    margin-left: 0.2rem; vertical-align: middle;
}
.trend-info-icon:hover { opacity: 0.8; }

/* Price colours */
.price-below { color: var(--green-dark); }
.price-at    { color: var(--gold-dark); }
.price-above { color: var(--red); }
.price-none  { color: var(--text-dim); }

/* Diff badge */
.diff-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    white-space: nowrap;
}
.diff-below { background: rgba(96,210,167,0.12); color: var(--green-dark); }
.diff-at    { background: rgba(242,188,99,0.12);  color: var(--gold-dark); }
.diff-above { background: rgba(217,79,79,0.08);   color: var(--red); }
.diff-none  { color: var(--text-dim); font-size: 0.82rem; }

/* Method tag */
.method-tag {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 2px;
    background: var(--bg-warm);
    color: var(--text-dim);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.method-tag.method-json_ld,
.method-tag.method-json_ld_proxy   { color: var(--green-dark); border-color: rgba(96,210,167,0.4); background: rgba(96,210,167,0.08); }
.method-tag.method-microdata,
.method-tag.method-microdata_proxy { color: var(--gold-dark); border-color: rgba(242,188,99,0.4); background: var(--gold-bg); }
.method-tag.method-google_shopping { color: #2963C4; border-color: rgba(65,152,242,0.4); background: var(--blue-bg); }
.method-tag.method-css_heuristic,
.method-tag.method-css_proxy       { color: var(--orange); border-color: rgba(224,138,95,0.35); background: rgba(224,138,95,0.08); }
.method-tag.method-vision_ocr      { color: #6B4FB8; border-color: rgba(107,79,184,0.3); background: rgba(107,79,184,0.07); }
.method-tag.method-meta_itemprop,
.method-tag.method-meta_itemprop_proxy,
.method-tag.method-meta_itemprop_rendered { color: #2963C4; border-color: rgba(65,152,242,0.4); background: var(--blue-bg); }
.method-tag.method-retailer_specific,
.method-tag.method-retailer_specific_proxy { color: #2a9e76; border-color: rgba(96,210,167,0.4); background: rgba(96,210,167,0.08); }
.method-tag.method-serp_rich_snippet       { color: var(--text-muted); border-color: var(--border); background: transparent; }

/* Page-type badge */
.page-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
    background: var(--surface);
    color: var(--text-muted);
}

.page-type--pdp {
    color: #2a9e76;
    border-color: rgba(96, 210, 167, 0.4);
    background: rgba(96, 210, 167, 0.08);
}

.page-type--plp {
    color: #c05800;
    border-color: rgba(224, 138, 95, 0.4);
    background: rgba(224, 138, 95, 0.08);
}

.page-type--other {
    color: var(--text-dim);
    border-color: var(--border);
    background: transparent;
}

/* Link */
.result-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: color var(--transition);
}
.result-link:hover { color: var(--primary); }

/* Results footer */
.results-footer { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.results-note { font-size: 0.68rem; color: var(--text-dim); line-height: 1.7; }
.results-note code {
    background: var(--bg-warm);
    padding: 0.1em 0.4em;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

/* ── Loading Overlay ─────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(249,245,241,0.9);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-inner { text-align: center; }
.loading-spinner {
    width: 40px; height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 2rem;
}
.loading-steps { display: flex; flex-direction: column; gap: 0.5rem; }
.loading-step {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    transition: color var(--transition);
}
.loading-step.active { color: var(--primary); font-weight: 600; }
.loading-step.done   { color: var(--text-muted); }

/* ── Error Panel ─────────────────────────────────────────────── */
.error-panel { padding: 5rem 0; text-align: center; }
.error-code {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--red);
    opacity: 0.35;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.error-msg { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.88rem; }
.error-retry {
    background: var(--primary);
    border: none;
    color: var(--bg);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background var(--transition);
}
.error-retry:hover { background: var(--primary-soft); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary);
    padding: 4rem 2.5rem 2rem;
    color: rgba(249,245,241,0.85);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(249,245,241,0.1);
    margin-bottom: 2rem;
}
.footer-cta {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #F9F5F1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
}
.footer-contact-link {
    font-size: 0.82rem;
    color: rgba(249,245,241,0.55);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--gold); }
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}
.footer-nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(249,245,241,0.45);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-nav-link:hover { color: #F9F5F1; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-left { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-icon { width: 24px; height: 24px; }
.footer-copy {
    font-size: 0.65rem;
    color: rgba(249,245,241,0.3);
    letter-spacing: 0.06em;
}
.footer-tagline {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249,245,241,0.3);
}

/* ── Utility ─────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-divider {
        width: 100%;
        height: 1px;
        background-image: repeating-linear-gradient(
            to right,
            var(--border-strong) 0,
            var(--border-strong) 6px,
            transparent 6px,
            transparent 12px
        );
        align-self: auto;
    }
    .hero-left  { padding: 3.5rem 0 2.5rem; }
    .hero-right { padding: 2.5rem 0 3rem; }
    .main { padding: 0 1.25rem; }
    .table-header { flex-direction: column; align-items: flex-start; }
    .rrp-card { gap: 2rem; }
}
@media (max-width: 600px) {
    .results-table td,
    .results-table th { padding: 0.75rem 0.6rem; font-size: 0.8rem; }
    .col-title { display: none; }
}

/* ── Streaming skeleton states ──────────────────────────────────────────────── */

/* Shimmer animation for pending price cells */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.price-skeleton {
    display: inline-block;
    width: 70px;
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-warm) 50%, var(--border) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s infinite linear;
}

/* Pending method badge */
.method-tag.method-pending {
    color: var(--text-muted);
    border-color: var(--border);
    background: transparent;
    letter-spacing: 0.08em;
}

/* Row fade-in when data arrives */
.results-table tbody tr {
    animation: rowFadeIn 0.25s ease-out;
}

@keyframes rowFadeIn {
    from { opacity: 0.4; transform: translateY(2px); }
    to   { opacity: 1;   transform: translateY(0); }
}

/* ============================================================
   LOGIN PAGE — Split-screen layout
   ============================================================ */

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.login-split {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 100vh;
}

/* ── Brand panel (left) ─────────────────────────────────────── */
.login-brand {
    background: linear-gradient(160deg, #1a1930 0%, #25242B 50%, #2f2d3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.login-brand-inner {
    text-align: center;
    z-index: 1;
    position: relative;
}

.login-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.login-pulse-line {
    opacity: 0.6;
}

.login-brand-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.login-brand-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    margin: 0.3rem 0 0;
    letter-spacing: 0.04em;
}

.login-brand-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    margin: 2rem 0 0;
    max-width: 280px;
    line-height: 1.5;
}

/* Decorative dot grid */
.login-brand-dots {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ── Form panel (right) ─────────────────────────────────────── */
.login-form-side {
    background: #F9F5F1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.login-subheading {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.login-error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.login-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
}

.login-form { display: flex; flex-direction: column; gap: 1.15rem; }
.login-field { display: flex; flex-direction: column; gap: 0.4rem; }

.login-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.login-input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input::placeholder { color: #b8b4af; }
.login-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,36,43,0.08);
}
.login-input--error { border-color: #e74c3c; }

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.8rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.login-btn svg { width: 18px; height: 18px; }
.login-btn:hover { background: #3a3850; }
.login-btn:active { transform: scale(0.985); }

.login-alt-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}
.login-alt-link a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.login-alt-link a:hover { color: var(--primary); }
.login-signup-link { margin-top: 0.75rem; }
.login-signup-link a { color: var(--primary); font-weight: 500; }

.register-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.login-footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 2.5rem 0 0;
    opacity: 0.6;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-split { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-form-side { min-height: 100vh; padding: 2rem 1.5rem; }
}

/* ============================================================
   REGISTER / DEMO REQUEST PAGE — 3-column layout
   ============================================================ */

.register-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: #F9F5F1;
    color: var(--primary);
}

/* Outer wrapper: strip + main */
.register-outer {
    display: flex;
    min-height: 100vh;
}

/* Black vertical strip (far left) */
.register-strip {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a1930 0%, #25242B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem 2rem;
    gap: 2.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Logo block — top of strip */
.register-strip-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.register-strip-mark {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.register-strip-brand {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1rem;
    letter-spacing: -0.02em;
}
.register-strip-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.25rem;
}

/* Nav links — below logo */
.register-strip-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.register-strip-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s;
}
.register-strip-link:hover { color: #fff; }
.register-strip-btn {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--primary);
    background: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    transition: background 0.15s, transform 0.1s;
}
.register-strip-btn:hover { background: #eae6e1; }
.register-strip-btn:active { transform: scale(0.97); }

/* Main content: three-column grid (content | divider | form) */
.register-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    min-height: 100vh;
}

/* Dashed vertical divider */
.register-main::before {
    content: '';
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--border-strong) 0,
        var(--border-strong) 6px,
        transparent 6px,
        transparent 12px
    );
}

/* Left: marketing content — pushed right towards the divider */
.register-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 3rem 3rem 3rem 2rem;
}
.register-content-inner {
    max-width: 480px;
    width: 100%;
}
.register-eyebrow {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: #4198F2;
    letter-spacing: -0.01em;
    text-transform: none;
    margin: 0 0 0.5rem;
}
.register-headline {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 1.25rem;
    color: var(--primary);
}
.register-subline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 2.25rem;
    line-height: 1.5;
}
.register-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.75rem; }
.register-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.45;
}
.register-feature svg { flex-shrink: 0; margin-top: 0.1rem; }
.register-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.register-trust-pill {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    border: 1px solid;
    white-space: nowrap;
}

/* Right: form card — pushed left towards the divider */
.register-form-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 2rem 2rem 4.5rem;
    overflow-y: auto;
}
.register-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.register-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--primary);
    line-height: 1.3;
}
.register-form-inner { gap: 0.85rem; }
.register-textarea { resize: vertical; min-height: 70px; font-family: 'Poppins', sans-serif; }

/* Inline field errors */
.register-field-error {
    display: block;
    font-size: 0.72rem;
    color: #c0392b;
    margin-top: 0.3rem;
}

/* Privacy text + checkbox */
.register-privacy-text {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.register-privacy-text a { color: var(--primary); text-decoration: underline; }
.register-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}
.register-checkbox input[type="checkbox"] { accent-color: var(--primary); flex-shrink: 0; }
.register-btn { margin-top: 0.15rem; padding: 0.8rem 1.25rem; width: 100%; }

/* Success state — centered fullpage */
.register-success-fullpage {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}
.register-success-fullpage h2 { font-size: 1.4rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }
.register-success-fullpage p { font-size: 0.9rem; color: var(--text-muted); max-width: 380px; line-height: 1.5; }

/* Shared: header for register + privacy pages */
.register-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.register-nav { display: flex; align-items: center; gap: 1rem; }
.register-nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.register-nav-link:hover { color: var(--primary); }
.register-signin-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s;
}
.register-signin-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Status badges (used in admin) */
.status-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 99px;
    white-space: nowrap;
    line-height: 1.4;
}
.status-badge--super { background: rgba(192,57,43,0.08); color: #c0392b; border: 1px solid rgba(192,57,43,0.15); }
.status-badge--admin { background: rgba(71,72,244,0.1); color: #4748f4; }
.status-badge--user  { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.status-row { display: flex; align-items: center; gap: 0.5rem; }
/* Password strength indicator */
.password-strength { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.password-strength-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.password-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: width 0.2s, background 0.2s; }
.password-strength-text { font-size: 0.7rem; font-weight: 600; min-width: 40px; }
.password-rules { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.password-rules li { font-size: 0.68rem; color: var(--text-muted); }
.password-rules li::before { content: '✕ '; color: #c0392b; font-size: 0.6rem; }
.password-rules li.rule-pass { color: var(--green); }
.password-rules li.rule-pass::before { content: '✓ '; color: var(--green); }

.status-badge--active { background: var(--green-bg, #e6f7ef); color: var(--green, #2a9d5c); }
.status-badge--pending  { background: var(--gold-bg, #fef6e0); color: var(--gold-dark, #b07d1a); }

/* Toggle slider for active/inactive */
.status-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.status-toggle-input { display: none; }
.status-toggle-slider {
    width: 34px;
    height: 18px;
    background: #ccc;
    border-radius: 99px;
    position: relative;
    transition: background 0.2s;
}
.status-toggle-slider::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.status-toggle-input:checked + .status-toggle-slider { background: #2a9d5c; }
.status-toggle-input:checked + .status-toggle-slider::after { transform: translateX(16px); }

/* Actions separator between role + crud buttons */
.user-actions-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}
.status-badge--inactive { background: #fde8e8; color: #c0392b; }
.admin-btn--xs {
    font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.5rem;
    display: inline-block;
    border: 1px solid; border-radius: 99px;
    cursor: pointer; transition: opacity 0.15s; line-height: 1.5;
}
/* Approve — green pill */
button.approve-user-btn {
    background: var(--green-bg, #e6f7ef); color: var(--green, #2a9d5c);
    border-color: rgba(42,157,92,0.2);
}
button.approve-user-btn:hover { opacity: 0.75; }
.admin-td-status { white-space: nowrap; }
.admin-td-actions .user-actions { display: flex; gap: 0.25rem; flex-wrap: nowrap; }
.admin-td-actions .user-action-btn { flex-shrink: 0; }

/* Feedback status dropdown coloured options */
.feedback-status-select { font-size: 0.8rem; padding: 0.3rem 0.5rem; border-radius: 6px; border: 1px solid var(--border); }
.feedback-status-select option[value="new"] { background: rgba(65,152,242,0.08); }
.feedback-status-select option[value="in_progress"] { background: rgba(224,138,95,0.08); }
.feedback-status-select option[value="done"] { background: rgba(96,210,167,0.08); }
.feedback-status-select option[value="wont_fix"] { background: rgba(71,72,244,0.08); }

/* Feedback table equal columns */
.feedback-table { table-layout: fixed; }
.feedback-table th:nth-child(1),
.feedback-table td:nth-child(1) { width: 72px; }
.feedback-table th:nth-child(2),
.feedback-table td:nth-child(2) { width: 130px; }
.feedback-table th:nth-child(3),
.feedback-table td:nth-child(3) { width: auto; }
.feedback-table th:nth-child(4),
.feedback-table td:nth-child(4) { width: 80px; }
.feedback-table th:nth-child(5),
.feedback-table td:nth-child(5) { width: 90px; }
.feedback-table th:nth-child(6),
.feedback-table td:nth-child(6) { width: 115px; }
.feedback-table th:nth-child(7),
.feedback-table td:nth-child(7) { width: 85px; }
.feedback-desc-cell p { word-break: break-word; }

/* Feedback reply button pill */
.feedback-reply-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.55rem;
    border-radius: 99px; border: 1px solid; text-decoration: none; cursor: pointer;
    background: rgba(71,72,244,0.1); color: #4748f4; border-color: rgba(71,72,244,0.2);
    white-space: nowrap;
}
.feedback-reply-btn:hover { background: rgba(71,72,244,0.18); }

@media (max-width: 900px) {
    .register-strip { display: none; }
    .register-main { grid-template-columns: 1fr; }
    .register-main::before { display: none; }
    .register-content-col { display: none; }
    .register-form-col { padding: 2rem 1.5rem; }
    .register-card { max-width: 100%; }
}

/* ── App strip (logged-in pages) ─────────────────────────────── */
.app-strip {
    overflow-y: auto;
    overflow-x: hidden;
}
.user-avatar.app-strip-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.app-main-wrap {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.app-main-wrap > .main,
.app-main-wrap > .admin-main { flex: 1; }
.app-main-wrap > .pricing-footer-bar { flex-shrink: 0; }

/* Secondary profile strip — slides in next to the main strip */
.profile-strip {
    width: 340px;
    flex-shrink: 0;
    background: #f7dbd6;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid rgba(0,0,0,0.06);
    animation: profileStripIn 0.22s ease-out forwards;
}
.profile-strip.profile-strip--closing {
    animation: profileStripOut 0.2s ease-in forwards;
}
@keyframes profileStripIn {
    from { width: 0; opacity: 0; padding: 1.75rem 0; overflow: hidden; }
    to   { width: 340px; opacity: 1; padding: 1.75rem 1.5rem; }
}
@keyframes profileStripOut {
    from { width: 340px; opacity: 1; padding: 1.75rem 1.5rem; }
    to   { width: 0; opacity: 0; padding: 1.75rem 0; overflow: hidden; }
}
.profile-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.profile-strip-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.profile-strip-header .profile-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.profile-strip-header .profile-close:hover { color: var(--primary); }
.profile-strip-body { display: flex; flex-direction: column; gap: 1.5rem; }

/* Profile styles inside the light secondary strip */
.profile-strip .profile-avatar-section { border-bottom-color: var(--border); padding-bottom: 1.25rem; }
.profile-strip .profile-upload-label {
    color: var(--primary);
    border-color: var(--border-strong);
    font-size: 0.82rem;
}
.profile-strip .profile-upload-label:hover {
    border-color: var(--primary);
    background: var(--bg-warm);
}
.profile-strip .profile-upload-hint { color: var(--text-muted); font-size: 0.75rem; }
.profile-strip .profile-info-block { gap: 0.4rem; }
.profile-strip .profile-info-row {
    border-bottom-color: var(--border);
    padding: 0.55rem 0;
}
.profile-strip .profile-info-label { color: var(--text-muted); font-size: 0.8rem; }
.profile-strip .profile-info-value { color: var(--primary); font-size: 0.85rem; font-weight: 500; }
.profile-strip .profile-section-title { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.profile-strip .profile-label { color: var(--text-muted); font-size: 0.82rem; }
.profile-strip .profile-input {
    background: #fff;
    border-color: var(--border-strong);
    color: var(--primary);
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
}
.profile-strip .profile-input:focus { border-color: var(--primary); }
.profile-strip .profile-submit-btn {
    background: #4198F2;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
}
.profile-strip .profile-submit-btn:hover { background: #3587de; }
.profile-strip .profile-msg { font-size: 0.8rem; padding: 0.55rem 0.8rem; }

@media (max-width: 900px) {
    .app-strip { display: none; }
    .profile-strip { display: none; }
    .app-main-wrap { min-height: 100vh; }
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

.admin-body {
    background: var(--bg);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

/* Nav */
.admin-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-nav-left  { display: flex; align-items: center; gap: 0.75rem; }
.admin-nav-right { display: flex; align-items: center; gap: 1.25rem; }

.admin-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #F9F5F1;
    letter-spacing: 0.04em;
}
.admin-nav-user {
    font-size: 0.8125rem;
    color: rgba(249,245,241,0.55);
}
.admin-nav-link {
    font-size: 0.8125rem;
    color: rgba(249,245,241,0.8);
    text-decoration: none;
    transition: color 0.15s;
}
.admin-nav-link:hover { color: #F9F5F1; }
.admin-nav-link--logout { color: rgba(249,245,241,0.5); }
.admin-nav-link--logout:hover { color: #F7DBD6; }

/* Layout */
.admin-main { padding: 0 1rem 4rem; }
.admin-main > .admin-container { padding-top: 1.5rem; }
.admin-container { max-width: 1100px; margin: 0 auto; }

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Cards */
.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border: 1.5px solid transparent;
    text-decoration: none;
}
.admin-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-btn--primary:hover { background: var(--primary-soft); border-color: var(--primary-soft); }

.admin-btn--outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.admin-btn--outline:hover { border-color: var(--primary); }

.admin-btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.admin-btn--ghost:hover { background: var(--bg); }

.admin-btn--danger { background: transparent; color: #c0392b; border-color: #f5c6c6; }
.admin-btn--danger:hover { background: #fde8e8; border-color: #e74c3c; }

.admin-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }

/* Create form */
.admin-create-form { }
.admin-form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.admin-field { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; min-width: 160px; }
.admin-field--actions { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: flex-end; }

.admin-label { font-size: 0.8125rem; font-weight: 500; color: var(--primary); }
.admin-input {
    padding: 0.6rem 0.875rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.admin-input:focus { border-color: var(--primary); }

.admin-form-error {
    margin-top: 0.75rem;
    padding: 0.55rem 0.875rem;
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    font-size: 0.8125rem;
}

/* Users table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.admin-table th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 0.75rem 0.875rem;
    border-bottom: 1.5px solid var(--border);
}
.admin-table td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-td-username { font-weight: 500; }
.admin-td-date     { color: var(--text-muted); white-space: nowrap; }

/* User avatar + name cell */
.user-name-cell { display: flex; align-items: center; gap: 0.65rem; }
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; color: #fff; letter-spacing: 0.02em;
}
.user-name-info { line-height: 1.35; min-width: 0; }
.user-name-info strong { display: block; font-weight: 500; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-name-info span { font-size: 0.74rem; color: var(--text-muted); }

/* Icon-only action buttons */
.user-actions { display: flex; gap: 0.3rem; align-items: center; }
.user-action-btn {
    width: 30px; height: 30px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius); border: 1.5px solid var(--border);
    background: transparent; cursor: pointer; color: var(--text-muted);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    padding: 0;
}
.user-action-btn:hover { background: var(--bg-warm); border-color: var(--border-strong); color: var(--text); }
.user-action-btn--danger:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.user-action-btn--active { background: var(--bg-warm); border-color: var(--primary); color: var(--primary); }
.user-action-btn svg { width: 14px; height: 14px; pointer-events: none; }

/* Table row hover */
.admin-table tbody tr:hover > td { background: var(--bg-warm); }
.user-tracked-expand > td,
.user-tracked-expand:hover > td { background: #eee9e2 !important; }
.admin-td-actions { white-space: nowrap; }

/* User tracked expand row */
.user-tracked-expand > td { background: #eee9e2; padding: 0.75rem 1rem 0.75rem 3rem; }
.user-tracked-mini-table { width: 100%; font-size: 0.8125rem; border-collapse: collapse; }
.user-tracked-mini-table th { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35rem 0.75rem; text-align: left; white-space: nowrap; }
.user-tracked-mini-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }
.user-tracked-mini-table tr:last-child td { border-bottom: none; }
.user-tracked-empty { font-size: 0.82rem; color: var(--text-muted); margin: 0; padding: 0.25rem 0; }

.admin-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Account chips */
.account-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.account-chip {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
}
.account-chip--none {
    color: var(--text-dim);
    border-style: dashed;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37,36,43,0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 1rem;
}
.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 600; margin: 0; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close:hover { color: var(--primary); }

.modal-body { padding: 1.25rem 1.75rem; overflow-y: auto; flex: 1; }
.modal-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1.25rem; }

.modal-accounts { display: flex; flex-direction: column; gap: 0.5rem; }
.account-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}
.account-checkbox-label:hover { border-color: var(--primary); background: var(--bg); }
.account-checkbox { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.account-checkbox-name { font-size: 0.875rem; font-weight: 500; flex: 1; }
.account-checkbox-id { font-size: 0.75rem; color: var(--text-muted); }

.modal-error {
    margin-top: 0.875rem;
    padding: 0.55rem 0.875rem;
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    font-size: 0.8125rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Admin tabs ─────────────────────────────────────────────── */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    padding-top: 1rem;
}

.admin-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.625rem 1.125rem;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text);
    background: var(--bg-warm);
}

.admin-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Admin panels ───────────────────────────────────────────── */
.admin-panel--hidden { display: none; }

/* ── System Health grid ─────────────────────────────────────── */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.health-loading {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.health-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-left-width: 4px;
    border-radius: var(--radius-lg);
    padding: 1rem 1.125rem;
    box-shadow: var(--shadow-sm);
}

.health-card--ok    { border-left-color: var(--green); }
.health-card--warn  { border-left-color: var(--gold); }
.health-card--error { border-left-color: var(--red); }

.health-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.health-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.health-card-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Log / error-log styles ─────────────────────────────────── */
.log-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.log-table .log-ts { white-space: nowrap; font-size: 0.78rem; }
.log-msg { word-break: break-word; max-width: 480px; font-size: 0.8125rem; }
.log-loc { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.log-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.log-badge--error      { background: var(--red-bg);    color: var(--red); }
.log-badge--warning    { background: var(--gold-bg);   color: var(--gold-dark); }
.log-badge--notice     { background: var(--blue-bg);   color: var(--blue); }
.log-badge--deprecated { background: var(--bg-warm);   color: var(--text-muted); }
.log-badge--raw        { background: var(--bg-warm);   color: var(--text-muted); }
.log-badge--ok         { background: var(--green-bg);  color: var(--green-dark); }

/* ── Cache panel ────────────────────────────────────────────── */
.cache-query {
    font-size: 0.8125rem;
    color: var(--text);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ── User avatar (shared across header, greeting, panel) ────── */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.03em;
    user-select: none;
}
.user-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
.user-avatar--greeting { width: 40px; height: 40px; font-size: 0.825rem; }
.user-avatar--panel    { width: 80px; height: 80px; font-size: 1.4rem; }
.user-avatar--initials { background: var(--primary); color: #fff; }

/* ── Header avatar button ────────────────────────────────────── */
.header-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity var(--transition), box-shadow var(--transition);
}
.header-avatar-btn:hover { opacity: 0.85; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.header-avatar-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Greeting with avatar ────────────────────────────────────── */
.hero-greeting-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}
.hero-greeting-wrap .hero-greeting { margin: 0; }

/* ── Profile panel (slide-in drawer from right) ─────────────── */
.profile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(37,36,43,0.45);
    backdrop-filter: blur(2px);
    z-index: 800;
    display: flex;
    justify-content: flex-end;
}
.profile-panel {
    width: 420px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(37,36,43,0.18);
    animation: profileSlideIn 0.22s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow: hidden;
}
@keyframes profileSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.profile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.profile-panel-title { font-size: 1rem; font-weight: 600; margin: 0; }
.profile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color var(--transition);
}
.profile-close:hover { color: var(--primary); }
.profile-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Avatar section */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.profile-avatar-wrap { line-height: 0; }
.profile-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.profile-upload-label:hover { border-color: var(--primary); background: var(--bg-warm); }
.profile-upload-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.profile-upload-hint { font-size: 0.75rem; color: var(--text-dim); margin: 0; }

/* Messages */
.profile-msg {
    width: 100%;
    padding: 0.55rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    text-align: center;
}
.profile-msg--error   { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.profile-msg--success { background: var(--green-bg); color: var(--green-dark); border: 1px solid rgba(96,210,167,0.3); }

/* Read-only info block */
.profile-info-block { display: flex; flex-direction: column; gap: 0.5rem; }
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.profile-info-row:last-of-type { border-bottom: none; }
.profile-info-label { font-weight: 500; color: var(--text-muted); flex-shrink: 0; min-width: 80px; }
.profile-info-value { color: var(--text); text-align: right; word-break: break-word; }
.profile-info-note  { font-size: 0.75rem; color: var(--text-dim); margin: 0.5rem 0 0; }

/* Change password */
.profile-section-title { font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; }
.profile-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.875rem; }
.profile-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.profile-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 0.875rem;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.profile-input:focus { border-color: var(--primary); }
.profile-submit-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}
.profile-submit-btn:hover    { opacity: 0.88; }
.profile-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────────────────────────────
   OVERVIEW PANEL
───────────────────────────────────────────────────────────────────────────── */

/* Banner */
.overview-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #5b3ee8 100%);
    border-radius: var(--radius-xl, 16px);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.overview-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.overview-banner-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.82;
    text-transform: uppercase;
}
.overview-banner-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.overview-refresh-btn {
    color: #fff !important;
    border-color: rgba(255,255,255,0.45) !important;
    background: rgba(255,255,255,0.1) !important;
    flex-shrink: 0;
}
.overview-refresh-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

/* Metric cards grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.metric-card {
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
}
.metric-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Skeleton loading state */
.metric-skeleton {
    min-height: 100px;
    background: linear-gradient(90deg, var(--bg) 25%, #e8e8e8 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border: 1px solid var(--border);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.metric-icon svg { width: 20px; height: 20px; }

/* Colour themes */
.metric-card--blue   .metric-icon { background: #eff6ff; color: #2563eb; }
.metric-card--green  .metric-icon { background: #f0fdf4; color: #16a34a; }
.metric-card--purple .metric-icon { background: #f5f3ff; color: #7c3aed; }
.metric-card--amber  .metric-icon { background: #fffbeb; color: #d97706; }

.metric-body { flex: 1; min-width: 0; }
.metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.metric-sub {
    font-size: 0.78rem;
    color: var(--text-dim, #9ca3af);
}

/* Overview bottom row */
.overview-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 700px) {
    .overview-bottom { grid-template-columns: 1fr; }
}
.overview-card { min-height: 180px; }
.overview-errors-row { margin-top: 1rem; }

/* DFS spend value highlight */
.dfs-spend { font-weight: 600; color: var(--primary); }

/* ─────────────────────────────────────────────────────────────────────────────
   SETTINGS PANEL
───────────────────────────────────────────────────────────────────────────── */

.settings-section {
    margin-bottom: 1.25rem;
}
.settings-group-title {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem 1.5rem;
}
.settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.settings-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.settings-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-size: 0.875rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.settings-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,69,237,0.1);
}

.settings-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.settings-save-msg {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.875rem;
    border-radius: var(--radius-lg);
}
.settings-save-msg--ok    { background: var(--green-bg, #e6faf2); color: var(--green-dark, #1a7a55); border: 1px solid rgba(96,210,167,0.3); }
.settings-save-msg--error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }

/* Settings — password reveal toggle */
.settings-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.settings-input-wrap .settings-input {
    padding-right: 2.6rem;
}
.settings-reveal-btn {
    position: absolute;
    right: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--transition);
}
.settings-reveal-btn:hover { color: var(--primary); }
.settings-reveal-btn svg   { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────────────────────────────────────
   TRACKED PRODUCTS
───────────────────────────────────────────────────────────────────────────── */

.tracked-card {
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
}

.tracked-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tracked-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.tracked-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-subtle, #f5f5f5);
    border-radius: 99px;
    padding: 0.2rem 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.tracked-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.tracked-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.tracked-loading {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tracked-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.tracked-row:last-child {
    border-bottom: none;
}

.tracked-row-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tracked-freq-select {
    font-size: 0.78rem;
    font-family: inherit;
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--bg-subtle, #f5f5f5);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.tracked-freq-select:focus {
    outline: none;
    border-color: var(--primary);
}

.tracked-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color var(--transition), background var(--transition);
}

.tracked-remove-btn:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}

.tracked-add-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tracked-add-input {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem !important;
    padding: 0.55rem 0.875rem !important;
}

.tracked-add-btn {
    flex-shrink: 0;
    font-size: 0.8rem !important;
    padding: 0.55rem 1rem !important;
}

.tracked-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

.tracked-error {
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(192, 57, 43, 0.06);
    border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────────────────────────────────────── */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.dash-page-loading {
    padding: 3rem 0;
    text-align: center;
}

/* Empty + error states */
.dashboard-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.dash-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dash-empty-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-error {
    padding: 2rem;
    color: #c0392b;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    .dashboard-container { padding: 1rem 1rem 3rem; }
}

/* ── Left-panel tracked products (Search page, hero-left) ────────────────── */

#leftTrackedSection {
    margin-top: 1.5rem;
}

.left-tracked-wrap {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Header row */
.left-tracked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem 0.55rem;
    border-bottom: 1px solid var(--border);
}

.left-tracked-title {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    color: #25242B;
    margin: 0;
}

.left-tracked-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.05rem 0.5rem;
    line-height: 1.7;
}

/* Scrollable body */
.left-tracked-body {
    padding: 0.3rem 0;
    max-height: 240px;
    overflow-y: auto;
}

.left-tracked-group-header {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #25242B;
    padding: 0.55rem 0.9rem 0.2rem;
    margin: 0;
}

.left-tracked-group-header:first-child { padding-top: 0.35rem; }

.left-tracked-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 450;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.12s;
}

.left-tracked-item::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--border-strong);
    flex-shrink: 0;
    margin-top: 0.42rem;
    transition: background 0.12s;
}

.left-tracked-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-tracked-item:hover { background: var(--bg-warm); }
.left-tracked-item:hover::before { background: var(--primary); }

/* Footer */
.left-tracked-footer {
    padding: 0.5rem 0.9rem 0.55rem;
    border-top: 1px solid var(--border);
}

.left-tracked-manage {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.left-tracked-manage:hover { color: var(--primary); }

/* States */
.left-tracked-empty,
.left-tracked-loading {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0.7rem 0.9rem;
    line-height: 1.5;
}

/* ── Dashboard: Manage Tracked Products ─────────────────────────────────── */

.dash-manage-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.dash-manage-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dash-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-manage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.dash-manage-account-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.dash-manage-count {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-manage-list {
    margin-bottom: 0.5rem;
    min-height: 1rem;
}

.dash-manage-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0;
    border-bottom: 1px solid var(--border);
}

.dash-manage-row:last-child { border-bottom: none; }

.dash-manage-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dash-manage-row-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-manage-row-last {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.dash-manage-row-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dash-manage-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0 0.2rem;
    transition: color 0.15s;
    border-radius: 3px;
}

.dash-manage-remove:hover { color: #c0392b; }

.dash-trend-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.42rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.4rem;
}

.dash-trend--up {
    background: rgba(96, 210, 167, 0.15);
    color: #2a9e76;
}

.dash-trend--down {
    background: rgba(224, 138, 95, 0.15);
    color: #c05800;
}

.dash-trend--flat {
    background: rgba(100, 100, 120, 0.1);
    color: var(--text-muted);
}

.dash-manage-add-form {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.dash-manage-input {
    flex: 1;
    min-width: 120px;
    padding: 0.38rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-primary);
    font-family: inherit;
}

.dash-manage-input:focus {
    outline: none;
    border-color: #4748f4;
    box-shadow: 0 0 0 2px rgba(71,72,244,0.1);
}

.dash-manage-no-products {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
}

.dash-manage-limit-msg {
    font-size: 0.73rem;
    color: #E08A5F;
    margin: 0.4rem 0 0;
    width: 100%;
}

.dash-manage-error {
    font-size: 0.73rem;
    color: #c0392b;
    margin: 0.3rem 0 0;
    width: 100%;
}

/* ── DFS Balance Alert Banner ─────────────────────────────────────────────── */

.dfs-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.dfs-alert--warn {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #78350f;
}

.dfs-alert--error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.dfs-alert-body {
    flex: 1;
}

.dfs-alert-body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dfs-alert-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 0.2rem;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.dfs-alert-dismiss:hover { opacity: 1; }

/* ── Sessions & Activity Panel ────────────────────────────────────────────── */

.activity-section {
    margin-bottom: 2rem;
}

.activity-section:last-child {
    margin-bottom: 0;
}

.activity-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.sessions-table .session-ua {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-own-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4748f4;
    border-radius: 3px;
    padding: 0.05rem 0.35rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

/* ── History Panel (search page) ─────────────────────────────────────────── */

.history-panel {
    padding: 1.5rem 2rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.history-panel-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.history-back-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.history-back-btn:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.history-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-export-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.history-export-link:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.history-panel-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.history-search-again-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.history-search-again-btn:hover {
    background: var(--accent-dark);
}

/* Summary stats grid */
.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.history-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.history-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.history-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Chart container */
.history-chart-outer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.history-chart-wrap {
    position: relative;
    height: 280px;
}

/* Empty / loading / error states */
.history-empty,
.history-loading,
.history-error {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 1.5rem 0;
    text-align: center;
}

.history-error { color: #e85454; }

/* Top prices table */
.history-top-prices-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.history-top-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.history-top-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.history-top-table td {
    padding: 0.5rem 0.75rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.history-top-table tr:last-child td { border-bottom: none; }

/* ============================================================
   PUBLIC NAV — shared between login.php and pricing.php
   ============================================================ */
.public-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.public-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.public-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary);
}
.public-nav-logo svg { flex-shrink: 0; }
.public-nav-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
}
.public-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.public-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.public-nav-link:hover { color: var(--primary); }
.public-nav-link--active { color: var(--primary); }
.public-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}
.public-nav-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-body {
    background: var(--bg);
    min-height: 100vh;
    font-family: var(--font);
    display: block;
}
.pricing-main-wrap {
    flex: 1;
    overflow-y: auto;
}

/* Hero */
.pricing-hero {
    text-align: center;
    padding: 5rem 1.5rem 3.5rem;
    max-width: 680px;
    margin: 0 auto;
}
.pricing-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-dark);
    background: var(--green-bg);
    border: 1px solid rgba(96,210,167,0.3);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.pricing-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.pricing-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Billing toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}
.pricing-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}
.pricing-toggle-label--active { color: var(--primary); font-weight: 600; }
.pricing-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-strong);
    border-radius: 100px;
    cursor: pointer;
    transition: background var(--transition);
}
.pricing-toggle-switch.is-annual { background: var(--green); }
.pricing-toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform var(--transition);
}
.pricing-toggle-switch.is-annual .pricing-toggle-knob { transform: translateX(20px); }
.pricing-toggle-save {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green-dark);
    background: var(--green-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

/* Card grid */
.pricing-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .pricing-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* Individual card */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Featured card */
.pricing-card--featured {
    border-color: var(--green);
    border-width: 2px;
    box-shadow: 0 0 0 4px var(--green-bg), var(--shadow-sm);
    transform: translateY(-4px);
}
.pricing-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 4px var(--green-bg), var(--shadow-md);
}

/* Dark / enterprise card */
.pricing-card--dark {
    background: var(--primary);
    border-color: var(--primary-soft);
    color: #fff;
}
.pricing-card--dark .pricing-tier-name { color: rgba(255,255,255,0.6); }
.pricing-card--dark .pricing-tier-desc { color: rgba(255,255,255,0.55); }
.pricing-card--dark .pricing-amount { color: #fff; }
.pricing-card--dark .pricing-period { color: rgba(255,255,255,0.5); }
.pricing-card--dark .pricing-divider { border-color: rgba(255,255,255,0.1); }
.pricing-card--dark .pricing-feature { color: rgba(255,255,255,0.8); }
.pricing-card--dark .pricing-feature-check { color: var(--green); }
.pricing-card--dark .pricing-feature-label { color: rgba(255,255,255,0.5); }

/* Badge */
.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.pricing-badge--featured {
    background: var(--green-bg);
    color: var(--green-dark);
    border: 1px solid rgba(96,210,167,0.35);
}
.pricing-badge--dark {
    background: rgba(242,188,99,0.15);
    color: var(--gold);
    border: 1px solid rgba(242,188,99,0.3);
}
.pricing-badge--placeholder { opacity: 0; pointer-events: none; } /* keeps height consistent */

/* Tier name & description */
.pricing-tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.pricing-tier-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 2.5em;
    margin-bottom: 1.5rem;
}

/* Price */
.pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
}
.pricing-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.2rem;
}
.pricing-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* Feature list */
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.4;
}
.pricing-feature-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--green-dark);
    margin-top: 1px;
}
.pricing-feature strong { font-weight: 600; }
.pricing-feature-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

/* CTA button */
.pricing-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.pricing-cta--outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border-strong);
}
.pricing-cta--outline:hover { border-color: var(--primary); background: var(--bg-warm); }
.pricing-cta--green {
    background: var(--green);
    color: var(--primary);
}
.pricing-cta--green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.pricing-cta--white {
    background: #fff;
    color: var(--primary);
}
.pricing-cta--white:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }

/* "All plans include" section */
.pricing-includes {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}
.pricing-includes-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.pricing-includes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .pricing-includes-grid { grid-template-columns: repeat(2, 1fr); }
}
.pricing-include-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pricing-include-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.pricing-include-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}
.pricing-include-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer bar */
.pricing-footer-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.pricing-footer-bar a { color: var(--text-muted); text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════════════════
   PRICE GAP INDICATOR
═══════════════════════════════════════════════════════════════════════════ */

.price-gap-callout {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1rem;
    padding: .75rem 1.1rem;
    border-radius: .6rem;
    font-size: .9rem;
    font-weight: 500;
    animation: pgFadeIn .3s ease;
}
@keyframes pgFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.price-gap-callout--cheapest {
    background: var(--green-bg);
    color: var(--green-dark);
    border: 1px solid rgba(96,210,167,.3);
}
.price-gap-callout--expensive {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(217,79,79,.2);
}
.price-gap-icon { display: flex; flex-shrink: 0; }
.price-gap-text strong { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   FEEDBACK WIDGET — floating FAB + modal
═══════════════════════════════════════════════════════════════════════════ */

/* FAB button */
.feedback-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 900;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: none;
    background: #F7DBD6;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.feedback-fab:active { transform: scale(.95); }

/* Backdrop */
.feedback-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
}
.feedback-backdrop[hidden] { display: none; }
body.feedback-open { overflow: hidden; }

/* Modal */
.feedback-modal {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: feedbackSlideUp .22s ease;
}
@keyframes feedbackSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
}
.feedback-modal-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark, #1a1a2e);
}
.feedback-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.feedback-modal-close:hover { color: #333; }

/* Body */
.feedback-modal-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

/* Type selector */
.feedback-type-row { display: flex; gap: .75rem; }
.feedback-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem .75rem;
    border-radius: .5rem;
    border: 1.5px solid #ddd;
    background: #fafafa;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    transition: border-color .15s, background .15s, color .15s;
}
.feedback-type-btn--active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, white);
    color: var(--primary);
}

/* Fields */
.feedback-field { display: flex; flex-direction: column; gap: .35rem; }
.feedback-label { font-size: .8rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.feedback-input,
.feedback-textarea {
    border: 1.5px solid #ddd;
    border-radius: .5rem;
    padding: .6rem .85rem;
    font-size: .9rem;
    font-family: inherit;
    color: #222;
    background: #fff;
    resize: vertical;
    transition: border-color .15s;
}
.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Error */
/* File attachment in feedback form */
.feedback-file-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
.feedback-file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    border: 1.5px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.feedback-file-label:hover { border-color: var(--primary); background: var(--bg-warm); }
.feedback-file-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}
.feedback-file-remove {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.feedback-file-remove:hover { color: #a93226; }

/* Attachment badges in admin feedback */
.feedback-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    background: rgba(65,152,242,0.08);
    color: #4198F2;
    border: 1px solid rgba(65,152,242,0.15);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    text-decoration: none;
    margin-right: 0.25rem;
    margin-top: 0.25rem;
}
.feedback-attachment:hover { background: rgba(65,152,242,0.15); }
.feedback-attachment svg { flex-shrink: 0; }

.feedback-error {
    font-size: .84rem;
    color: #d93025;
    background: #fef2f2;
    border-radius: .4rem;
    padding: .5rem .75rem;
}

/* Footer */
.feedback-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}
.feedback-cancel-btn {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: .5rem;
    padding: .55rem 1.1rem;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    font-family: inherit;
}
.feedback-cancel-btn:hover { border-color: #bbb; }
.feedback-submit-btn {
    background: var(--primary);
    color: #F9F5F1;
    border: none;
    border-radius: .5rem;
    padding: .55rem 1.25rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.feedback-submit-btn:hover { opacity: .88; }
.feedback-submit-btn:disabled { opacity: .5; cursor: default; }

/* Success state */
.feedback-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #2e7d32;
}
.feedback-success p { margin: 0; font-size: .95rem; font-weight: 500; }

/* Admin feedback table */
.feedback-table { width: 100%; border-collapse: collapse; }
.feedback-table th,
.feedback-table td { padding: .7rem 1rem; text-align: left; font-size: .875rem; border-bottom: 1px solid #eee; vertical-align: top; }
.feedback-table th { font-weight: 600; color: #555; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.feedback-table tr:last-child td { border-bottom: none; }
.feedback-group { margin-bottom: 1.75rem; }
.feedback-group:last-child { margin-bottom: 0; }
.feedback-group-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.feedback-group-count { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.feedback-badge-type,
.feedback-badge-status {
    display: inline-block;
    padding: .2em .65em;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.feedback-badge-type--bug    { background: #fef2f2; color: #d93025; }
.feedback-badge-type--feature { background: #f0f4ff; color: #1a56db; }
.feedback-badge-status--new         { background: #e8f5e9; color: #2e7d32; }
.feedback-badge-status--in_progress { background: #fff8e1; color: #b07c00; }
.feedback-badge-status--done        { background: #f1f3f4; color: #555; }
.feedback-badge-status--wont_fix    { background: #fce8e8; color: #c62828; }
.feedback-status-select {
    border: 1.5px solid #ddd;
    border-radius: .4rem;
    padding: .25rem .5rem;
    font-size: .8rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}
.feedback-desc-cell { max-width: 280px; }
.feedback-desc-cell p { margin: 0; color: #333; line-height: 1.4; }

/* Header icon button (? help) */
.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: .25rem;
    border-radius: .35rem;
    transition: color .15s;
}
.header-icon-btn:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS OVERLAY
═══════════════════════════════════════════════════════════════════════════ */

.shortcuts-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shortcuts-overlay[hidden] { display: none; }
.shortcuts-modal {
    background: var(--surface);
    border-radius: .75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    box-shadow: var(--shadow-md);
    animation: feedbackSlideUp .2s ease;
}
.shortcuts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.shortcuts-title { font-size: .95rem; font-weight: 600; color: var(--text); }
.shortcuts-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}
.shortcuts-close:hover { color: var(--text); }
.shortcuts-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.shortcuts-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .875rem;
    color: var(--text-muted);
}
.shortcuts-list span { color: var(--text); }
kbd {
    display: inline-block;
    background: var(--bg-warm);
    border: 1px solid var(--border-strong);
    border-radius: .3rem;
    padding: .15em .45em;
    font-size: .78rem;
    font-family: monospace;
    color: var(--text);
    box-shadow: 0 1px 0 var(--border-strong);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHANGES-SINCE-LAST-VISIT BANNER
═══════════════════════════════════════════════════════════════════════════ */

.changes-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--gold-bg);
    border: 1px solid rgba(242,188,99,.35);
    border-radius: .6rem;
    padding: .7rem 1.1rem;
    margin: .75rem 2rem 0;
    font-size: .875rem;
    color: var(--gold-dark);
    animation: pgFadeIn .35s ease;
}
.changes-banner[hidden] { display: none; }
.changes-banner-icon { display: flex; flex-shrink: 0; }
.changes-banner-text { flex: 1; font-weight: 500; }
.changes-banner-dismiss {
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--gold-dark);
    opacity: .55;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.changes-banner-dismiss:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   WORKSPACE / TEAM CARDS (Admin → Teams tab)
═══════════════════════════════════════════════════════════════════════════ */

.teams-create-form {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.25rem;
    align-items: center;
}
.teams-create-form input[type="text"] {
    flex: 1;
    padding: .5rem .8rem;
    border: 1px solid var(--border);
    border-radius: .45rem;
    background: var(--bg);
    color: var(--text);
    font-size: .875rem;
}
.teams-list { display: flex; flex-direction: column; gap: .75rem; }
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .65rem;
    padding: .9rem 1rem;
}
.team-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .25rem;
}
.team-name { font-size: .95rem; font-weight: 600; color: var(--text); }
.team-meta { font-size: .8rem; color: var(--text-muted); margin-left: .5rem; }
.team-members-area {
    border-top: 1px solid var(--border);
    padding-top: .75rem;
    margin-top: .75rem;
}
.team-members-area table { width: 100%; font-size: .83rem; border-collapse: collapse; }
.team-members-area th {
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}
.team-members-area td {
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.team-members-area tr:last-child td { border-bottom: none; }
.team-add-member {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .75rem;
}
.team-add-member select {
    flex: 1;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    border-radius: .4rem;
    background: var(--bg);
    color: var(--text);
    font-size: .83rem;
}

/* ── SPARKLINE TREND COLUMN ───────────────────────────────────────────────── */
.col-trend { width: 68px; text-align: center; }
.trend-cell { display: flex; align-items: center; justify-content: center; min-height: 22px; }

/* ── RECENT SEARCHES DROPDOWN ────────────────────────────────────────────── */
.recent-searches-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 .5rem .5rem;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: .3rem 0;
    margin-top: -1px;
    max-height: 280px;
    overflow-y: auto;
}
.recent-searches-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .85rem;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text);
}
.recent-searches-item:hover,
.recent-searches-item--active { background: var(--bg-warm); }
.recent-searches-icon { flex-shrink: 0; opacity: .45; font-size: .9rem; }
.recent-searches-term { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-searches-remove {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 .2rem;
    flex-shrink: 0;
}
.recent-searches-remove:hover { color: var(--text); }

/* ── MARKET POSITION SCORE CARD ──────────────────────────────────────────── */
.market-score-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .7rem;
    padding: 1rem 1.4rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.market-score-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.market-score-number span { font-size: 1rem; opacity: .55; margin-left: .1rem; }
.market-score-number--green { color: var(--green); }
.market-score-number--amber { color: var(--gold); }
.market-score-number--red   { color: var(--red); }
.market-score-title  { font-size: .88rem; font-weight: 600; color: var(--text); }
.market-score-label  { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }

/* ── OUT-OF-STOCK ─────────────────────────────────────────────────────────── */
.price-oos { font-size: .78rem; color: var(--gold-dark, #b07d1a); font-weight: 500; }
.method-out_of_stock { background: rgba(242,188,99,.18); color: var(--gold-dark, #b07d1a); }

/* ── CRON PANEL ───────────────────────────────────────────────────────────── */
.cron-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.cron-stat { font-size: .8rem; background: var(--bg-warm); border: 1px solid var(--border);
    border-radius: .35rem; padding: .3rem .65rem; color: var(--text); }
.cron-stat--ok   { border-color: var(--green); background: var(--green-bg); }
.cron-stat--fail { border-color: var(--red);   background: var(--red-bg);   }
.cron-stat--warn { border-color: var(--gold);  background: var(--gold-bg);  }
.cron-table { margin-top: .25rem; }
.cron-error-cell { max-width: 280px; }
.cron-error-msg  { font-size: .76rem; color: var(--text-muted); }

/* ── REPRICING HINT ──────────────────────────────────────────────────────── */
.dash-reprice-hint { display: block; font-size: .73rem; color: var(--gold-dark, #b07d1a); margin-top: .15rem; }

/* ── NEW COMPETITOR BADGE ────────────────────────────────────────────────── */
.dash-new-comp-badge { font-size: .72rem; background: var(--blue-bg); color: var(--blue);
    border-radius: .3rem; padding: .15rem .4rem; white-space: nowrap; cursor: default; flex-shrink: 0; }

/* ── COMPETITOR FREQUENCY CARD ───────────────────────────────────────────── */
.comp-freq-card { display: block; padding: 1rem 1.4rem; }
.comp-freq-row  { display: flex; align-items: center; gap: .6rem; padding: .2rem 0; font-size: .8rem; }
.comp-freq-domain { width: 160px; flex-shrink: 0; overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis; color: var(--text); }
.comp-freq-bar-wrap { flex: 1; height: 6px; background: var(--bg-warm); border-radius: 3px; overflow: hidden; }
.comp-freq-bar  { height: 100%; background: var(--green); border-radius: 3px; transition: width .3s ease; }
.comp-freq-count { width: 28px; text-align: right; color: var(--text-muted); flex-shrink: 0; }

/* ── LEFT TRACKED PANEL — item inner layout ──────────────────────────────── */
.left-tracked-item-inner { flex: 1; min-width: 0; overflow: hidden; }
.left-tracked-item-name  { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.left-tracked-item-meta  { display: flex; align-items: center; gap: .35rem; margin-top: .18rem; white-space: nowrap; overflow: hidden; }
.left-tracked-item-meta .dash-reprice-hint  { margin-top: 0; font-size: .7rem; }
.left-tracked-item-meta .dash-new-comp-badge { font-size: .68rem; padding: .1rem .3rem; }

