/* =====================================================================================================================
   Pedidos — identidad visual y componentes compartidos.

   Archivos:  app.css (este: colores, tipografía, controles)  ·  store.css (la tienda del cliente y el ingreso)
              admin.css (el panel del administrador)

   - Todo el color sale de variables: el modo oscuro solo las redefine ([data-bs-theme="dark"]).
     Para cambiar la marca basta con tocar --brand, --ink y --accent (y volver a revisar el contraste).
   - Mobile-first: lo que está fuera de @media es el celular; desde 640px se ensancha.
   - Accesibilidad: contraste AA, botones de 44px, foco visible y respeto de prefers-reduced-motion.
   ===================================================================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Superficies y texto: crema cálido, no gris frío */
    --bg: #faf7f2;
    --surface: #ffffff;
    --surface-2: #f3eee7;
    --text: #1d1a2f;
    --text-muted: #625c70;
    --border: #e8e1d7;
    --border-strong: #d6ccbe;
    --field-border: #8b8497; /* borde de campos y casillas: 3:1 contra el fondo (WCAG 1.4.11) */

    /* Marca: azul-índigo profundo (encabezados, banner) + naranja (la acción principal) */
    --ink: #1d1a3d;
    --ink-2: #2b2760;
    --on-ink: #ffffff;
    --on-ink-muted: #cfcbec;
    --ink-line: rgb(255 255 255 / 0.14);

    --brand: #ff6b3d;
    --brand-hover: #f55a2a;
    --on-brand: #1d1a3d;
    --brand-soft: #fff0e9;
    --brand-text: #b3350f; /* el naranja como texto sobre claro (el relleno no alcanza contraste) */
    --accent: #ffc933;

    --link: #3a34b0;
    --link-hover: #2b2690;
    --link-soft: #ecebfb;

    --success: #17703f;
    --success-soft: #e3f4ea;
    --warning: #8f4a05;
    --warning-soft: #fff1d1;
    --danger: #b4231b;
    --danger-soft: #fdeceb;
    --info: #0b5d8a;
    --info-soft: #e2f1fa;
    --violet: #5b21b6;
    --violet-soft: #eee6fd;
    --teal: #0f766e;
    --teal-soft: #d9f3ef;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(29 26 61 / 0.07);
    --shadow: 0 8px 28px rgb(29 26 61 / 0.12);
    --shadow-lift: 0 10px 28px rgb(29 26 61 / 0.14);

    --header-h: 60px;
    --nav-h: 62px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    color-scheme: light;
}

[data-bs-theme="dark"] {
    --bg: #12101f;
    --surface: #1c1930;
    --surface-2: #262243;
    --text: #f1eefb;
    --text-muted: #aba5c5;
    --border: #302b4f;
    --border-strong: #423c68;
    --field-border: #7d779b;

    --ink: #0c0a19;
    --ink-2: #1b1840;
    --on-ink: #f4f2ff;
    --on-ink-muted: #b9b4da;
    --ink-line: rgb(255 255 255 / 0.1);

    --brand: #ff7a4d;
    --brand-hover: #ff9068;
    --on-brand: #1d1a3d;
    --brand-soft: #3a2321;
    --brand-text: #ff9d78;
    --accent: #ffc933;

    --link: #b3adff;
    --link-hover: #cfcbff;
    --link-soft: #2a2650;

    --success: #4ade80;
    --success-soft: #11301f;
    --warning: #fbbf24;
    --warning-soft: #33280a;
    --danger: #fb7185;
    --danger-soft: #3a1519;
    --info: #38bdf8;
    --info-soft: #0c2a3b;
    --violet: #c4b5fd;
    --violet-soft: #2a1f4d;
    --teal: #2dd4bf;
    --teal-soft: #0d2f2c;

    --shadow-sm: none;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.5);
    --shadow-lift: 0 10px 28px rgb(0 0 0 / 0.55);

    color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 5rem); scrollbar-gutter: stable; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--text-muted);
    --bs-emphasis-color: var(--text);
    --bs-link-color-rgb: 58, 52, 176;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1, .h1 { font-size: 1.75rem; }
.h3 { font-size: 1.4rem; }
h2, .h2 { font-size: 1.3rem; }
.h5 { font-size: 1.0625rem; }
.h6 { font-size: 0.95rem; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
.text-muted, .text-body-secondary { color: var(--text-muted) !important; }
.small, small { font-size: 0.875rem; }
code { padding: 0.1em 0.4em; font-size: 0.9em; color: var(--text); background: var(--surface-2); border-radius: 6px; }
h1:focus { outline: none; }
.num, .product-price, .order-total, .cart-total, .order-line, .stat-value { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { flex: none; vertical-align: -0.125em; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
[data-bs-theme="dark"] :focus-visible { outline-color: var(--accent); }
.form-control:focus, .form-select:focus, .form-check-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 35%, transparent); border-color: var(--link); outline: none; }

.skip-link {
    position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000; padding: 0.6rem 1rem; color: var(--on-brand); background: var(--brand);
    border-radius: var(--radius-sm); transform: translateY(-200%); text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: none; }

/* ---------- Pantalla de carga y errores ---------- */

.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--text-muted); background: var(--bg); }
.boot-logo { border-radius: 18px; box-shadow: var(--shadow); }
.boot-bar { width: 9rem; height: 4px; overflow: hidden; background: var(--border); border-radius: 999px; }
.boot-bar span { display: block; height: 100%; width: var(--blazor-load-percentage, 8%); background: var(--brand); border-radius: 999px; transition: width 0.2s ease; }
.boot-text { font-size: 0.9rem; }

#blazor-error-ui {
    color-scheme: light only; background: #fff4cf; color: #3b2a00; bottom: 0; box-shadow: 0 -1px 2px rgb(0 0 0 / 0.2);
    box-sizing: border-box; display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.blazor-error-boundary { background: var(--danger); padding: 1rem; color: #fff; border-radius: var(--radius); }
.blazor-error-boundary::after { content: "Ocurrió un error."; }

/* ---------- Botones: en píldora; el naranja es SIEMPRE la acción principal ---------- */

.btn {
    --bs-btn-border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.3rem;
    font-weight: 700; line-height: 1.2; border-radius: 999px; transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.25rem; padding: 0.7rem 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 2.25rem; padding: 0.3rem 1rem; font-size: 0.875rem; }
.btn:disabled, .btn.disabled { opacity: 0.55; }

.btn-primary { color: var(--on-brand); background: var(--brand); border-color: var(--brand); box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 55%, #000 25%); }
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active { color: var(--on-brand); background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-primary:disabled { color: var(--on-brand); background: var(--brand); border-color: var(--brand); box-shadow: none; }

.btn-outline-primary { color: var(--link); background: transparent; border: 1.5px solid var(--link); }
.btn-outline-primary:hover, .btn-outline-primary:active { color: var(--link-hover); background: var(--link-soft); border-color: var(--link-hover); }
.btn-outline-secondary { color: var(--text); background: transparent; border: 1.5px solid var(--border-strong); }
.btn-outline-secondary:hover, .btn-outline-secondary:active { color: var(--text); background: var(--surface-2); border-color: var(--field-border); }
.btn-outline-danger { color: var(--danger); background: transparent; border: 1.5px solid var(--danger); }
.btn-outline-danger:hover, .btn-outline-danger:active { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.btn-outline-success { color: var(--success); background: transparent; border: 1.5px solid var(--success); }
.btn-outline-success:hover, .btn-outline-success:active { color: var(--success); background: var(--success-soft); border-color: var(--success); }
.btn-link { color: var(--link); font-weight: 700; text-decoration: none; }
.btn-ghost { color: var(--text-muted); background: transparent; border: 0; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Formularios ---------- */

.form-label { margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 700; }
.form-control, .form-select {
    min-height: 2.9rem; font-size: 1rem; color: var(--text); background-color: var(--surface); border: 1.5px solid var(--field-border); border-radius: 12px;
}
textarea.form-control { min-height: 5.5rem; }
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:disabled, .form-select:disabled { color: var(--text-muted); background-color: var(--surface-2); }
.form-check-input { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--field-border); background-color: var(--surface); }
.form-check-input:checked { background-color: var(--link); border-color: var(--link); }
.form-switch { display: flex; align-items: center; gap: 0.6rem; padding-left: 0; min-height: 2.75rem; }
.form-switch .form-check-input { flex: none; width: 2.5rem; height: 1.4rem; margin: 0; }
.form-switch .form-check-label { margin: 0; }
.table .form-switch { min-height: 0; }
/* La perilla del interruptor apagado necesita contraste propio (Bootstrap la deja casi transparente) */
.form-switch .form-check-input:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238b8497'/%3e%3c/svg%3e"); }
[data-bs-theme="dark"] .form-switch .form-check-input:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a9a3c4'/%3e%3c/svg%3e"); }
.valid.modified:not([type=checkbox]) { border-color: var(--success); }
.invalid { border-color: var(--danger) !important; }
.validation-message { margin-top: 0.25rem; font-size: 0.875rem; color: var(--danger); }
.input-group-action { position: relative; }
.input-group-action .form-control { padding-right: 3.25rem; }
.input-group-action .btn-ghost { position: absolute; top: 50%; right: 0.25rem; transform: translateY(-50%); min-height: 2.5rem; min-width: 2.5rem; padding: 0; }

/* ---------- Avisos, estados y etiquetas ---------- */

.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1px solid transparent; border-radius: var(--radius); }
.alert > .icon { margin-top: 0.2rem; font-size: 1.1rem; }
.alert-danger { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-warning { color: var(--warning); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert-success { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-info { color: var(--info); background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert h2, .alert h3, .alert .h5, .alert strong { color: inherit; }
.alert-dismissible .btn-close { margin-left: auto; filter: none; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.badge { font-weight: 700; }
.status {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; font-size: 0.8rem; font-weight: 700; line-height: 1.2;
    white-space: nowrap; border-radius: 999px;
}
.status-pendiente { color: var(--warning); background: var(--warning-soft); }
.status-confirmado { color: var(--info); background: var(--info-soft); }
.status-facturado { color: var(--teal); background: var(--teal-soft); }
.status-preparando { color: var(--link); background: var(--link-soft); }
.status-listo { color: var(--success); background: var(--success-soft); }
.status-enviado { color: var(--violet); background: var(--violet-soft); }
.status-entregado { color: var(--success); background: var(--success-soft); }
.status-cancelado { color: var(--danger); background: var(--danger-soft); }

.chip {
    flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; padding: 0 1rem; font: inherit; font-size: 0.875rem; font-weight: 700;
    color: var(--text); white-space: nowrap; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 999px; cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
[data-bs-theme="dark"] .chip[aria-pressed="true"] { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }

/* ---------- Carga, vacíos y paginado ---------- */

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 60%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; }
.skeleton-row { display: grid; grid-template-columns: 3.5rem 1fr 8rem; gap: 0.9rem; align-items: center; padding: 0.9rem; margin-bottom: 0.65rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.skeleton-row .skeleton:first-child { width: 3.5rem; height: 3.5rem; }
.skeleton-line { height: 0.9rem; margin: 0.25rem 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 3rem 1rem; text-align: center; color: var(--text-muted); }
.empty-state .empty-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; font-size: 2rem; color: var(--brand-text); background: var(--brand-soft); border-radius: 50%; }
.empty-state h1, .empty-state h2 { margin: 0.5rem 0 0; font-size: 1.2rem; }
.empty-state p { max-width: 24rem; margin: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 1rem; }
.pager-info { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Cantidad ---------- */

.stepper { display: inline-flex; align-items: center; gap: 0.3rem; }
.stepper-btn { width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; font-size: 1.1rem; }
.stepper-input { width: 3.1rem; height: 2.75rem; min-height: 2.75rem; padding: 0.25rem; text-align: center; font-weight: 800; border-radius: 12px; -moz-appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Foto del producto: sin foto, una ficha con las iniciales y el color de su línea ---------- */

.product-thumb { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-sm); }
.product-thumb-empty {
    --h: 215; position: relative; display: grid; place-items: center; overflow: hidden; font-weight: 800; letter-spacing: 0.02em;
    color: hsl(var(--h) 55% 28%);
    background:
        radial-gradient(circle at 18% 12%, hsl(var(--h) 90% 98% / 0.9) 0 18%, transparent 19%),
        radial-gradient(circle at 92% 88%, hsl(var(--h) 70% 82% / 0.8) 0 30%, transparent 31%),
        hsl(var(--h) 70% 92%);
}
.product-thumb-empty > span { position: relative; font-size: 1.6em; line-height: 1; }
[data-bs-theme="dark"] .product-thumb-empty {
    color: hsl(var(--h) 85% 82%);
    background:
        radial-gradient(circle at 18% 12%, hsl(var(--h) 40% 30% / 0.9) 0 18%, transparent 19%),
        radial-gradient(circle at 92% 88%, hsl(var(--h) 40% 18% / 0.9) 0 30%, transparent 31%),
        hsl(var(--h) 32% 24%);
}

/* ---------- Menú de la cuenta (compartido por la tienda y el panel) ---------- */

.account { position: relative; }
.account-trigger {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; font: inherit; font-weight: 800; color: var(--link);
    background: var(--link-soft); border: 0; border-radius: 50%; cursor: pointer;
}
.account-trigger:hover { filter: brightness(0.96); }
.account-backdrop { position: fixed; inset: 0; z-index: 95; background: transparent; border: 0; cursor: default; }
.account-menu {
    position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 100; width: min(20rem, calc(100vw - 2rem)); padding: 0.5rem;
    color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-head { padding: 0.5rem 0.75rem 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; }
.menu-head strong { display: block; }
.menu-head span { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); font-size: 0.875rem; }
.menu-item {
    display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 2.75rem; padding: 0 0.75rem; font: inherit; font-weight: 600; color: var(--text);
    text-align: left; text-decoration: none; background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.menu-item:hover { color: var(--text); background: var(--surface-2); }
.menu-label { padding: 0.5rem 0.75rem 0.25rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; margin: 0 0.5rem 0.4rem; background: var(--surface-2); border-radius: 999px; }
.theme-switch button { min-height: 2.5rem; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { color: var(--text); font-weight: 800; background: var(--surface); box-shadow: var(--shadow-sm); }

/* ---------- Estructura común de página ---------- */

.card-surface, .form-panel {
    padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.form-panel + .form-panel { margin-top: 1rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.5rem; margin-bottom: 0.25rem; font-weight: 700; text-decoration: none; }

/* ---------- Movimiento: se respeta a quien pide menos animación ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .skeleton { animation: none; }
}

/* ---------- Barra de pestañas de abajo (celular y tablet): la usan la tienda y el panel ---------- */

.store-tabbar, .admin-tabbar {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: flex; padding-bottom: var(--safe-bottom);
    background: var(--surface); border-top: 1px solid var(--border);
}
.tab {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: var(--nav-h);
    padding: 0.4rem 0.25rem; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-decoration: none; white-space: nowrap;
}
.tab .icon { font-size: 1.45rem; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--link); }
.tab.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.tab .badge {
    position: absolute; top: 0.4rem; left: calc(50% + 0.45rem); min-width: 1.25rem; padding: 0.15rem 0.4rem; font-size: 0.7rem; font-weight: 800; line-height: 1.1;
    color: var(--on-brand); background: var(--brand); border-radius: 999px;
}
@media (min-width: 1024px) { .store-tabbar, .admin-tabbar { display: none; } }

/* ---------- Versión de prueba ---------- */
.trial-options { display: grid; gap: 0.75rem; margin: 1.25rem 0 1rem; }
.trial-option {
    display: flex; align-items: center; gap: 0.9rem; width: 100%; padding: 0.95rem 1rem; color: var(--text); text-align: left;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.trial-option:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.trial-option:disabled { opacity: 0.6; }
.trial-option .stat-icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; font-size: 1.2rem; color: var(--on-brand); background: var(--brand); border-radius: 12px; }
.trial-option strong { display: block; }
.trial-option small { display: block; color: var(--text-muted); }
.trial-option-go { flex: none; margin-left: auto; color: var(--text-muted); }
.trial-wait { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); }

.trial-bar { color: var(--info); background: var(--info-soft); border-bottom: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.trial-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; max-width: 80rem; margin: 0 auto; padding: 0.5rem 1rem; font-size: 0.9rem; }
.trial-bar-inner > .icon { flex: none; }
.trial-bar-error { color: var(--danger); }
.trial-bar-link {
    display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; padding: 0.25rem 0.7rem; font-weight: 700; color: var(--info);
    background: transparent; border: 1.5px solid currentColor; border-radius: 999px;
}
.trial-bar-link:hover:not(:disabled) { color: var(--surface); background: var(--info); border-color: var(--info); }
