/* home-modern.css — matches v5 reference design exactly.
   All colours via CSS custom properties. Token fallbacks ensure the page
   renders correctly before /api/style-vars.css loads. */

/* ── Page-level aliases ───────────────────────────────────────────────────── */
/* Brand tokens (--primary-color, --background-color, --muted-color, --border-color,
   etc.) are emitted by BuildThemeCss() as an inline <style> that runs before this
   file — no fallbacks needed here. nav-bar-* variables come from the async StylesUrl
   CDN stylesheet and fall back to the API-sourced counterparts in the critical CSS. */
:root {
    --hero-overlay: linear-gradient(to bottom,rgba(0,0,0,.06) 0%,rgba(0,0,0,.08) 40%,rgba(0,0,0,.60) 100%);
    --panel-border: var(--border-color);
    --panel-surface: var(--surface-color);
    --panel-input-bg: color-mix(in srgb, var(--on-background-color) 5%, transparent);
    --trust-bg: var(--surface-color);

    /* Hero photo overlay — frosted-glass pill on a photographic hero image.
       Always dark/white regardless of brand; defined here so they can be
       overridden per-tenant via StylesUrl if needed. */
    --hero-pill-bg: rgba(0,0,0,0.38);
    --hero-pill-text: rgba(255,255,255,0.92);
    --hero-pill-border: rgba(255,255,255,0.18);

    /* Structural shadows and modal backdrops — not brand colours. */
    --shadow-sm: rgba(0,0,0,0.2);
    --shadow-md: rgba(0,0,0,0.35);
    --backdrop: rgba(0,0,0,0.5);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must win over any element's display rule (nav auth states,
   loyalty icon, feedback views, etc.). */
[hidden] { display: none !important; }
body {
    background: var(--background-color);
    color: var(--on-background-color);
    font-family: 'Segoe UI',system-ui,-apple-system,sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: fill at least the viewport so the footer sits at the
       bottom and any spare space appears above it, not below. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main-content { flex: 1 0 auto; }

/* ── Promo bar ────────────────────────────────────────────────────────────── */
.promo-bar {
    background: var(--primary-color);
    color: var(--on-primary-color);
    padding: 8px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
}
.promo-cta {
    background: rgba(var(--on-primary-color-rgb),0.2);
    border: 1px solid rgba(var(--on-primary-color-rgb),0.4);
    color: var(--on-primary-color);
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.promo-close {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--on-primary-color);
    opacity: .55;
    cursor: pointer;
    font-size: 18px;
}
.promo-close:hover { opacity: 1; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site-nav {
    background: var(--nav-bar-background-colour);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
}
.nav-logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-logo-link { display: flex; align-items: center; height: 100%; text-decoration: none; }
.nav-logo-img { height: 100%; width: auto; display: block; object-fit: contain; }
.nav-left,
.nav-right { display: flex; align-items: center; gap: 14px; min-width: 120px; }
.nav-right { justify-content: flex-end; }
.nav-link {
    font-size: 12px;
    color: var(--nav-bar-font-colour);
    opacity: .55;
    text-decoration: none;
    /* Works whether rendered as <a> or <button> (Feedback trigger) */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.nav-link:hover { opacity: .9; }
.nav-feedback-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-feedback-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-account-btn {
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 22px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-join-btn {
    background: transparent;
    color: var(--nav-bar-font-colour);
    border: 1.5px solid var(--primary-color);
    border-radius: 22px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.nav-join-btn:hover {
    background: var(--primary-color);
    color: var(--on-primary-color);
}
.nav-loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--primary-color-rgb),0.1);
    border: 1px solid rgba(var(--primary-color-rgb),0.2);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    cursor: pointer;
    text-decoration: none;
}
.nav-loyalty-badge:hover { background: rgba(var(--primary-color-rgb),0.18); }
.nlb-icon { font-size: 16px; line-height: 1; }
.nlb-icon-img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; display: block; }
.nlb-pts { font-size: 12px; font-weight: 800; color: var(--primary-color); white-space: nowrap; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* The image is a fixed-height 16:9 landscape panel that no longer sits behind the
   card. The aside fills the remaining width, so its whitespace grows with the screen
   while the image keeps its aspect ratio. */
.hero-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    /* Height grows with the viewport so the 16:9 image widens and the aside
       whitespace shrinks. Reserves ~480px for the card, clamped 440–760px. */
    height: clamp(440px, calc((100vw - 480px) * 9 / 16), 760px);
    overflow: hidden;
    background: var(--background-color);
}
.hero-section {
    position: relative;
    height: 100%;
    aspect-ratio: 16 / 9;          /* width derived from the fixed height → always 16:9 */
    flex: 0 0 auto;                /* image never stretches or squashes */
    overflow: hidden;
    background: var(--secondary-color);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    pointer-events: none;
}
/* Right-side scrim no longer needed — the image now stops before the card */
.hero-scrim-r { display: none; }
.hero-brand-content { position: absolute; bottom: 44px; left: 44px; z-index: 10; }
.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--hero-pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hero-pill-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hero-pill-text);
}
.hero-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb),.9);
    flex-shrink: 0;
}

/* ── Order card region ───────────────────────────────────────────────────── */
/* Fills the height of the image and all the space to its right. The card is
   centred inside it, so the surrounding whitespace grows as the screen widens. */
.hero-aside {
    flex: 1 1 0;                   /* takes all remaining width — the growing whitespace */
    min-width: 0;
    height: 100%;                  /* fills the full height of the image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--background-color);
    z-index: 20;
}
.hero-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--background-color);
    border-radius: 22px;
    overflow: hidden;
}
.order-panel { padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.order-panel-title {
    /* Holds at 22px on smaller/standard screens, grows slightly (max 26px) on large ones. */
    font-size: clamp(22px, 1.2vw + 8px, 26px);
    font-weight: 900;
    color: var(--on-background-color);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.order-panel-header { display: flex; flex-direction: column; gap: 4px; }
.order-panel-tagline { font-size: 13px; color: var(--muted-color); line-height: 1.55; }

/* Occasion cards */
.order-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-type-card {
    border: 2px solid var(--panel-border);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    background: var(--panel-input-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.order-type-card:hover { border-color: var(--primary-color); }
.order-type-card.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb),.08);
}
.order-type-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.otc-icon { font-size: 22px; }
.otc-label { font-size: 13px; font-weight: 800; color: var(--on-background-color); }
.otc-desc { font-size: 11px; color: var(--muted-color); }

/* Meta row — ETA + loyalty side by side */
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eta-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface-color);
}
.eta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 5px rgba(var(--success-color-rgb),.55);
    flex-shrink: 0;
}
.loyalty-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    max-width: 45%;
}
.loyalty-pill:hover { opacity: .8; }
.loyalty-pill-icon { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }

/* CTA */
.cta-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb),.3);
    font-family: inherit;
    transition: transform .2s, opacity .2s;
}
.cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.cta-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--on-primary-color-rgb),.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.secure-checkout-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted-color);
    margin-top: -6px;
}
.panel-divider { display: flex; align-items: center; gap: 12px; margin: -2px 0; }
.pdivline { flex: 1; height: 1px; background: var(--panel-border); }
.pdivtxt { font-size: 11px; font-weight: 600; color: var(--muted-color); }
#aw-order-form { display: flex; flex-direction: column; gap: 14px; }
.browse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 2px solid var(--panel-border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-background-color);
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    font-family: inherit;
}
.browse-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb),.06);
}

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-strip {
    background: var(--trust-bg);
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    padding: 22px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 300px;
}
.trust-divider { width: 1px; height: 42px; background: var(--panel-border); margin: 0 14px; flex-shrink: 0; }
.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(var(--primary-color-rgb),.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.trust-title { font-size: 13px; font-weight: 800; color: var(--on-background-color); margin-bottom: 2px; }
.trust-desc { font-size: 11px; color: var(--muted-color); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--background-color); color: var(--on-background-color); padding: 36px 48px 24px; }
.ft-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 5px;
}
.ft-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-color);
    margin-bottom: 14px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-links li a {
    font-size: 13px;
    color: var(--on-background-color);
    text-decoration: none;
    cursor: pointer;
}
.ft-links li a:hover { color: var(--primary-color); }
.ft-secure-line {
    font-size: 11px;
    color: var(--on-background-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.ft-pay { display: flex; flex-wrap: wrap; gap: 5px; }
.pay-chip {
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    color: var(--on-surface-color);
    font-weight: 600;
}
.ft-social { display: flex; gap: 8px; margin-bottom: 18px; }
.soc-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-color);
    text-decoration: none;
}
.soc-btn svg { width: 16px; height: 16px; }
.soc-btn:hover { color: var(--primary-color); }
.ft-app-none { font-size: 12px; color: var(--on-background-color); margin-top: 4px; }
.ft-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted-color);
}
.ft-legal-link { color: var(--on-background-color); text-decoration: none; }
.ft-legal-link:hover { color: var(--primary-color); }
.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--on-background-color);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}
.powered-by img { 
    height: 46px;
    width: auto;
    display: block;
    margin-left: -13px;
 }

/* ── Tablet 681–1159px — too narrow for image + card side-by-side, so stack ── */
@media (min-width: 681px) and (max-width: 1159px) {
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 24px 16px; }
    .hero-card { max-width: 560px; }
}
/* Narrow desktops keep the card on the right but the aside is tight — trim its
   padding so the order card has room. */
@media (min-width: 1160px) and (max-width: 1280px) {
    .hero-aside { padding: 16px; }
}
/* Portrait orientation: the hero <picture> loads the portrait image, so stack the
   card below it regardless of width (keeps layout and image source in sync). */
@media (orientation: portrait) {
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 24px 16px; }
    .hero-card { max-width: 560px; }
}

/* ── Mobile ≤680px ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .promo-bar { padding: 9px 14px; font-size: 12px; justify-content: flex-start; }
    .promo-cta { display: none; }
    .promo-close { position: static; margin-left: auto; }
    .site-nav { height: 56px; padding: 0 16px; }
    .nav-left { min-width: 36px; gap: 0; }
    .nav-right { min-width: unset; gap: 8px; }
    .nav-link { display: none; }
    /* Keep the feedback trigger on mobile, icon-only (mirrors Angular's mobile icon button) */
    .nav-feedback-link { display: inline-flex; }
    .nav-feedback-text { display: none; }
    .nav-account-btn { display: none; }
    .nav-join-btn { padding: 5px 10px; font-size: 11px; }
    /* Image stays 16:9 (so it's short) and the card is pulled up directly below it */
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-scrim-r { display: none; }
    .hero-brand-content { bottom: 16px; left: 16px; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 0; }
    .hero-card {
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--panel-border);
    }
    .order-panel { padding: 20px 16px; gap: 14px; }
    .order-panel-title { font-size: 18px; }
    .trust-strip { flex-direction: column; padding: 16px; gap: 0; align-items: stretch; }
    .trust-item { max-width: 100%; justify-content: flex-start; padding: 12px 0; }
    .trust-divider { width: 100%; height: 1px; margin: 0; }
    .site-footer { padding: 20px 16px 12px; }
    .ft-top { grid-template-columns: 1fr; gap: 16px; }
    .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
/* ── App download section ─────────────────────────────────────────── */
.app-section {
    background: var(--trust-bg);
    border-top: 1px solid var(--panel-border);
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.app-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.app-heading {
    font-size: 26px;
    font-weight: 900;
    color: var(--on-background-color);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.app-sub {
    font-size: 14px;
    color: var(--muted-color);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 380px;
}
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--on-background-color);
    color: var(--background-color);
    border-radius: 12px;
    padding: 10px 20px;
    text-decoration: none;
    transition: opacity .15s;
}
.app-badge:hover { opacity: .85; }
.app-badge-icon { font-size: 22px; line-height: 1; }
.app-badge-sm { font-size: 9px; opacity: .65; }
.app-badge-lg { font-size: 15px; font-weight: 700; }
.app-phone-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
}
.app-phone {
    width: 88px;
    height: 158px;
    border-radius: 18px;
    background: var(--on-background-color);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-sm);
}
.app-phone--offset { opacity: .45; transform: translateY(12px); }
.app-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.app-phone-bar { border-radius: 2px; background: rgba(var(--on-primary-color-rgb),.28); height: 4px; }
.app-phone-bar--wide { width: 50px; }
.app-phone-bar--narrow { width: 36px; background: rgba(var(--on-primary-color-rgb),.16); }

@media (max-width: 680px) {
    .app-section { flex-direction: column; padding: 22px 16px; gap: 16px; }
    .app-phone-wrap { display: none; }
}

/* ── Feedback modal (mirrors Angular feedback component) ───────────────────── */
.feedback-dialog {
    width: min(600px, 95vw);
    max-width: 95vw;
    margin: auto;                 /* restore dialog centring (global reset zeroes margins) */
    border: none;
    border-radius: 18px;
    padding: 0;
    background: var(--background-color);
    color: var(--on-background-color);
    box-shadow: 0 32px 80px var(--shadow-md);
}
.feedback-dialog:not([open]) { display: none; }
.feedback-dialog::backdrop { background: var(--backdrop); }
.feedback-container { display: flex; flex-direction: column; padding: 24px; gap: 4px; }
.feedback-view { display: flex; flex-direction: column; }
/* A display rule on .feedback-view would otherwise override the hidden attribute */
.feedback-view[hidden] { display: none; }
.feedback-header { position: relative; text-align: center; font-weight: 700; margin-bottom: 8px; }
.feedback-header h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feedback-header p { font-size: 13px; color: var(--muted-color); font-weight: 400; }
.feedback-close-icon {
    position: absolute; top: -6px; right: -4px;
    background: none; border: none; cursor: pointer;
    font-size: 24px; line-height: 1; color: var(--muted-color);
}
.feedback-close-icon:hover { color: var(--on-background-color); }
.feedback-body { display: flex; flex-direction: column; }
.feedback-detail, .feedback-email {
    width: 100%; font-family: inherit; font-size: 14px;
    color: var(--on-background-color);
    background: var(--panel-input-bg);
    border: 2px solid var(--panel-border); border-radius: 12px;
    padding: 12px; outline: none; transition: border-color .15s;
}
.feedback-detail { resize: vertical; }
.feedback-detail:focus, .feedback-email:focus { border-color: var(--primary-color); }
.feedback-detail::placeholder, .feedback-email::placeholder { color: var(--muted-color); }
.feedback-counter { text-align: left; font-size: 12px; color: var(--muted-color); margin: 4px 0 16px; }
.feedback-email-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.feedback-label { font-size: 12px; font-weight: 600; color: var(--muted-color); }
.feedback-error { font-size: 12px; color: var(--error-color); }
.feedback-rating { display: flex; justify-content: center; gap: 24px; }
.feedback-rating-star {
    background: none; border: none; cursor: pointer;
    font-size: 30px; line-height: 1; padding: 0;
    color: var(--panel-border); transition: color .12s, transform .12s;
}
.feedback-rating-star:hover { transform: scale(1.12); }
.feedback-rating-star.selected { color: var(--primary-color); }
.feedback-footer { margin-top: 20px; display: flex; justify-content: flex-end; }
.feedback-send {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-color); color: var(--on-primary-color);
    border: none; border-radius: 12px; padding: 12px 22px;
    font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: opacity .15s;
}
.feedback-send:hover { opacity: .9; }
.feedback-send:disabled { opacity: .45; cursor: not-allowed; }
.feedback-thank-you { align-items: center; text-align: center; gap: 12px; padding: 16px 0; }
.feedback-thank-you-icon {
    font-size: 64px; line-height: 1;
    color: var(--success-color);
}
.feedback-thank-you-title { font-size: 24px; font-weight: 800; }
.feedback-thank-you-detail { font-size: 14px; color: var(--muted-color); }
.feedback-loading { align-items: center; justify-content: center; padding: 48px 0; }
.lds-dual-ring { width: 48px; height: 48px; }
.lds-dual-ring::after {
    content: " "; display: block; width: 40px; height: 40px; margin: 4px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: lds-dual-ring 1.1s linear infinite;
}
@keyframes lds-dual-ring { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* ── Iframe login modal (mirrors Angular's Iframe auth experience) ─────────── */
/* Transparent container — IdentityServer sets its own body transparent when framed,
   so only its login card paints. A transparent dialog lets the card float over the
   dimmed backdrop (no white box) and copes with the form growing during sign-up. */
.login-dialog {
    width: min(480px, 96vw);
    height: min(90vh, 760px);
    margin: auto;
    padding: 0;
    border: none;
    overflow: visible;
    background: transparent;
}
.login-dialog:not([open]) { display: none; }
.login-dialog::backdrop { background: var(--backdrop); }
.login-iframe { width: 100%; height: 100%; border: none; display: block; background: transparent; }
