/* =====================================================
   REGISTRA.ME — DESIGN SYSTEM
   ===================================================== */

/* --- Root Variables --- */
:root {
    color-scheme: light;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Brand — Registra.me palette */
    --brand: #0B5ED7;            /* Brand / Primary */
    --brand-dark: #094DB1;       /* Primary hover */
    --brand-light: #BFD6F6;      /* Primary tint for borders and rings */
    --brand-muted: #EAF2FF;      /* Primary light (tinted backgrounds) */
    --brand-on-dark: #8DB9F5;    /* Brand-tinted text over navy */
    --navy: #062B4F;             /* Navy / premium backgrounds */
    --navy-2: #0A3A69;           /* Lighter navy for gradients over navy */

    /* Accent = the brand. The palette has no second hue; kept as aliases so
       ".button.accent" and older rules keep working with the same look. */
    --accent: var(--brand);
    --accent-dark: var(--brand-dark);
    --accent-light: var(--brand-muted);
    --accent-muted: var(--brand-muted);

    /* Neutral surfaces */
    --bg: #F8FAFC;               /* Fondo general */
    --surface: #FFFFFF;          /* Superficie / cards */
    --border: #E5E7EB;           /* Bordes */
    --border-strong: #D0D5DD;

    /* Text */
    --text: #1F2937;             /* Texto principal (carbón) */
    --text-2: #667085;           /* Texto secundario */
    --muted: #98A2B3;

    /* Dark navigation (navy) */
    --nav-bg: var(--navy);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-text: #A9BCD3;
    --nav-text-hover: #E6EEF7;
    --nav-text-active: #FFFFFF;
    --nav-active-bg: rgba(11, 94, 215, 0.35);
    --nav-hover-bg: rgba(255, 255, 255, 0.06);

    /* Status */
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --success-border: #BBF7D0;
    --error: #DC2626;
    --error-bg: #FEE2E2;
    --error-border: #FECACA;
    --warning: #F59E0B;          /* icons, borders, fills */
    --warning-text: #B45309;     /* readable warning text on light backgrounds */
    --warning-bg: #FEF3C7;
    --warning-border: #FDE68A;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(31 41 55 / 0.05);
    --shadow: 0 4px 6px -1px rgb(31 41 55 / 0.07), 0 2px 4px -2px rgb(31 41 55 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(31 41 55 / 0.08), 0 4px 6px -4px rgb(31 41 55 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(31 41 55 / 0.1), 0 8px 10px -6px rgb(31 41 55 / 0.06);

    /* Border radii */
    --radius-sm: 0.375rem;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 999px;

    /* Transitions */
    --t: 150ms ease;
    --t-md: 250ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-weight: 700;
    color: var(--text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

/* =====================================================
   APP LAYOUT (MainLayout — sidebar + content)
   ===================================================== */

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 17rem 1fr;
    grid-template-rows: auto 1fr;
}

/* Mobile header — hidden on desktop */
.mobile-header {
    display: none;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    padding: 0 1.25rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-brand:hover { color: #fff; text-decoration: none; }
.mobile-brand img { display: block; height: 28px; width: auto; }

/* Hamburger button */
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--t);
}

.hamburger:hover { background: rgba(255,255,255,0.1); }

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--t-md);
}

/* Nav overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.nav-overlay.open { display: block; }

/* =====================================================
   SIDEBAR NAV (NavMenu)
   ===================================================== */

.nav-panel {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 0 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nav-border) transparent;
}

.nav-panel a { color: inherit; text-decoration: none; }

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.75rem 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-panel .brand {
    color: var(--nav-text-active);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-panel .brand img { display: block; height: 32px; width: auto; max-width: 100%; }

.nav-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--nav-text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: color var(--t), background var(--t);
}

.nav-close-btn:hover {
    color: var(--nav-text-active);
    background: var(--nav-hover-bg);
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 1rem 0.875rem 0.35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.875rem;
    border-radius: var(--radius);
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-text-hover);
    text-decoration: none;
}

.nav-link.active {
    background: var(--nav-active-bg);
    color: var(--nav-text-active);
}

.nav-link svg { flex-shrink: 0; opacity: 0.75; }
.nav-link.active svg { opacity: 1; }
.nav-link:hover svg { opacity: 0.9; }

.nav-divider {
    height: 1px;
    background: var(--nav-border);
    margin: 0.5rem 0.75rem;
}

/* Content */
.content {
    padding: 2rem;
    min-width: 0;
    grid-column: 2;
}

/* =====================================================
   LANDING LAYOUT
   ===================================================== */

.landing-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.landing-layout > main { flex: 1; }

/* Landing Topbar */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.landing-nav-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.landing-nav-brand:hover { color: var(--brand-dark); text-decoration: none; }
.landing-nav-brand { display: flex; align-items: center; }
.landing-nav-brand img { display: block; height: 36px; width: auto; }
@media (max-width: 420px) { .landing-nav-brand img { height: 30px; } }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
}

.landing-nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}

.landing-nav-links a:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}

.landing-nav-links a.active {
    background: var(--bg);
    color: var(--brand);
    font-weight: 700;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.landing-nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    margin-left: auto;
    flex-shrink: 0;
    transition: background var(--t);
}

.landing-nav-hamburger:hover { background: var(--bg); }

/* Mobile nav drawer for landing */
.landing-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 98;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.landing-mobile-nav.open { display: flex; }

.landing-mobile-nav a {
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--t), color var(--t);
}

.landing-mobile-nav a:hover {
    background: var(--bg);
    color: var(--text);
}

.landing-mobile-nav a.active {
    background: var(--bg);
    color: var(--brand);
    font-weight: 700;
}

.landing-mobile-nav .mobile-cta {
    color: var(--brand);
    font-weight: 700;
}

.landing-mobile-nav .mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.landing-mobile-nav form {
    display: contents;
}

/* =====================================================
   LANDING PAGE SECTIONS
   ===================================================== */

.landing-section {
    padding: 5rem 1.5rem;
}

.landing-container {
    max-width: 72rem;
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 42rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* Hero */
.landing-hero {
    background: linear-gradient(160deg, #EAF2FF 0%, #F8FAFC 55%, #FFFFFF 100%);
    padding: 5.5rem 1.5rem 6.5rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-muted);
    color: var(--brand);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    max-width: 52rem;
    margin: 0 auto 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight { color: var(--brand); }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-2);
    max-width: 34rem;
    margin: 0 auto 2.25rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.hero-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-types span { padding: 0 0.4rem; }
.hero-types .dot { color: var(--border-strong); }

/* Features */
.features-section { background: var(--bg); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: box-shadow var(--t-md), transform var(--t-md), border-color var(--t-md);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--brand-light);
}

.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--brand-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand);
    font-size: 1.3rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0;
}

/* How it works */
.how-it-works { background: var(--surface); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    left: calc(16.66% + 0.75rem);
    right: calc(16.66% + 0.75rem);
    height: 2px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand-light));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--brand-muted);
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

/* Pricing */
.pricing-section { background: var(--bg); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.price-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: box-shadow var(--t-md), transform var(--t-md);
    position: relative;
}

.price-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.price-card.featured {
    border-color: var(--brand);
    border-width: 2px;
}

.package-wide-card {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.package-summary-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.package-summary-grid .package-wide-card {
    align-items: stretch;
    flex-direction: column;
    margin-top: 0;
}

.package-summary-grid .package-wide-action { margin-top: auto; }

.package-wide-content { max-width: 48rem; }

.package-wide-card .price-features { margin-bottom: 0; }

.package-wide-action {
    align-items: flex-end;
    display: grid;
    gap: 0.75rem;
    justify-items: end;
}

.package-wide-action .button { margin: 0; }
.package-wide-action .button { justify-self: end; }

.event-package-grid {
    align-items: stretch;
    margin-top: 1.5rem;
}

.event-packages-heading { margin-top: 2.5rem; }

.event-package-grid .price-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.25rem;
}

.event-package-grid .price-amount {
    align-items: baseline;
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.event-package-grid .price-features { margin-bottom: 0; }

.event-package-grid .package-includes { margin-bottom: 1rem; }

.event-package-grid .button { margin-top: 0; }

.event-package-grid .price-period { padding-top: 0.35rem; }

.event-package-grid .package-total {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.pricing-grid .package-card {
    display: flex;
    flex-direction: column;
}

.pricing-grid .package-card > .button { margin-top: auto; }

.pricing-grid .package-card .package-total {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 1rem;
    white-space: nowrap;
}

@media (min-width: 1025px) {
    .pricing-section .pricing-grid {
        align-items: stretch;
        grid-auto-rows: 1fr;
    }

    .pricing-section .pricing-grid .price-card { height: 100%; }
}

.event-credits-disclaimer {
    margin: 0.75rem 0 0;
    text-align: center;
}

.package-wide-card .price-period { font-size: 0.7rem; }

.price-card-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.price-plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-2);
    margin-bottom: 0.5rem;
}

.price-card.featured .price-plan-name { color: var(--brand); }

.price-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin: 1.25rem 0 0.2rem;
    letter-spacing: -0.02em;
}

.price-amount small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.price-period {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    display: block;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.6rem;
}

.price-features li {
    font-size: 0.875rem;
    color: var(--text-2);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.price-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* Final CTA section */
.landing-cta-section {
    background: var(--nav-bg);
    padding: 5.5rem 1.5rem;
    text-align: center;
}

.landing-cta-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.landing-cta-section p {
    color: var(--nav-text);
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.landing-cta-section .cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Landing Footer */
.landing-footer {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 3.5rem 1.5rem 2rem;
    border-top: 1px solid var(--nav-border);
}

.landing-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
    display: block;
    height: 36px;
    width: auto;
}

.footer-tagline {
    color: var(--nav-text);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.footer-col h4 {
    color: var(--nav-text-hover);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.2rem 0;
    transition: color var(--t);
}

.footer-col a:hover {
    color: var(--nav-text-hover);
    text-decoration: none;
}

.footer-bottom {
    max-width: 72rem;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.footer-bottom a:hover {
    color: var(--nav-text-hover);
}

/* =====================================================
   BUTTON SYSTEM
   ===================================================== */

.button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    appearance: none;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    background: var(--brand);
    color: #fff;
    padding: 0.65rem 1.3rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}

.button:hover, .btn:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button:active, .btn:active { transform: translateY(0); }
.button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.admin-inline-form {
    margin-top: 1.25rem;
}

.admin-inline-form .button + .button {
    margin-left: 0.5rem;
}

.standard-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 43, 79, 0.55);
}

.standard-modal {
    width: min(100%, 58rem);
    max-height: min(92vh, 54rem);
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1.5rem 4rem rgba(6, 43, 79, 0.25);
}

.standard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.standard-modal-header h2 { margin: 0; }

.standard-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.standard-modal-close:hover {
    background: var(--brand-muted);
    color: var(--text);
}

.standard-modal-body { padding: 1.5rem; }
.standard-modal-body > .form-card { padding: 0; border: 0; box-shadow: none; }

/* Small size (table rows, compact actions) */
.button.sm, .btn.sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* Secondary */
.button.secondary, .btn-secondary {
    background: var(--brand-muted);
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

.button.secondary:hover, .btn-secondary:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand);
    box-shadow: none;
}

/* Accent (orange — primary landing CTAs) */
.button.accent, .btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.button.accent:hover, .btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* Outline */
.button.outline, .btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.button.outline:hover, .btn-outline:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-2);
    box-shadow: none;
}

/* Ghost (for dark backgrounds) */
.button.ghost, .btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.button.ghost:hover, .btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    box-shadow: none;
}

/* Danger */
.button.danger, .btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
}

.button.danger:hover, .btn-danger:hover {
    background: var(--error);
    color: #fff;
}

/* =====================================================
   APP PAGE ELEMENTS
   ===================================================== */

/* Shared hero (app pages) */
.hero, .cards article, .empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hero {
    padding: 2.5rem;
    margin-bottom: 0;
}

.hero h1 {
    max-width: 56rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0.4rem 0 1rem;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.lead {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 0;
}

/* Page header */
.page-header { margin-bottom: 1.5rem; }
.event-list-header { align-items: flex-start; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.dashboard-page-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-credit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.dashboard-credit-chip {
    align-items: center;
    background: var(--brand-muted);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius-full);
    color: var(--brand-dark);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    text-decoration: none;
}

.dashboard-credit-chip strong { font-size: 0.9rem; }
.dashboard-credit-chip:hover { color: var(--brand-dark); border-color: var(--brand); }

/* Actions row */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

/* Cards grid */
.cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.cards.three, .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards article {
    padding: 1.5rem;
    transition: box-shadow var(--t-md), border-color var(--t-md);
}

.cards article:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-metric-column,
.summary-metrics-details {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.summary-metrics-left {
    display: grid;
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}

.summary-metric-column > article { min-height: 9rem; }
.summary-metrics-details > article { min-height: 9rem; }

.dashboard-grid article {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-grid > article > span,
.summary-metric-column > article > span,
.summary-metrics-details > article > span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
}

.empty-state h2, .empty-state h3 { color: var(--text-2); }
.empty-state p { color: var(--muted); }

/* =====================================================
   FORMS
   ===================================================== */

.form-shell {
    display: grid;
    gap: 1.25rem;
    max-width: 60rem;
}

.form-shell.narrow { max-width: 34rem; }

.event-create-shell {
    max-width: none;
    width: 100%;
    margin: 2rem 0;
}

.event-create-form {
    display: grid;
    gap: 1.75rem;
    width: 100%;
}

.field-top { align-self: start; }

.banner-source-options {
    display: flex;
    gap: 0.5rem;
}

.banner-source-options button {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.55rem 0.875rem;
}

.banner-source-options button.selected {
    background: var(--brand-muted);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.banner-preview {
    aspect-ratio: 3 / 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 42rem;
    overflow: hidden;
}

.banner-preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.form-actions {
    align-items: flex-end;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.25rem;
}

.form-actions .notice { width: 100%; }

.inline-form-actions {
    display: flex;
    justify-content: flex-end;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    color: var(--muted);
    height: 1rem;
    left: 0.8rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
}

.input-with-icon > input:not([type="checkbox"]):not([type="radio"]) { padding-left: 2.75rem; }

.contact-input {
    max-width: 24rem;
    width: 100%;
}

.timing-details-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timing-services {
    align-self: start;
    grid-column: span 2;
}

.event-timing-details-layout {
    grid-template-columns: 1fr;
}

.event-timing-details-layout .timing-services {
    grid-column: auto;
}


.form-card {
    display: grid;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.65rem 0.875rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
    width: 100%;
    line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-muted);
}

input::placeholder { color: var(--muted); }
textarea { min-height: 7rem; resize: vertical; }

/* Checkbox / radio: dedicated styling so the global input rule
   above no longer stretches them to full width. */
input[type="checkbox"], input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    accent-color: var(--brand);
    cursor: pointer;
    margin: 0;
}

input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.checkbox-line {
    align-items: flex-start;
    display: flex;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    line-height: 1.4;
}

/* Works for both <div> and <label> variants; overrides label { display:grid } */
.checkbox-row,
label.checkbox-row {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

/* Nudge the control down so it aligns with the first line of text. */
.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"],
.checkbox-line input[type="checkbox"],
.checkbox-line input[type="radio"],
.checkbox-list label input[type="checkbox"],
.checkbox-list label input[type="radio"] {
    margin-top: 0.15rem;
}

.checkbox-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkbox-list label {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}

/* =====================================================
   NOTICES
   ===================================================== */

.notice {
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.notice p { margin: 0.15rem 0; }

.notice.error {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
}

.notice.success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.notice.info {
    background: var(--brand-muted);
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

.notice.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

/* Payment disclaimer: funds go directly to the organizer. */
.payment-disclaimer {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.payment-disclaimer svg { flex-shrink: 0; margin-top: 0.1rem; }
.payment-disclaimer strong { color: var(--warning-text); }

.registration-receipt {
    background: var(--surface);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
}

.receipt-banner { margin: -1.5rem -1.5rem 0; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.receipt-banner img { display: block; width: 100%; max-height: 18rem; object-fit: cover; }
.receipt-heading { padding-top: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.receipt-sections { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.receipt-section { display: grid; gap: 0.85rem; }
.receipt-section h3 { margin: 0; color: var(--brand-dark); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.receipt-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--border); }
.receipt-details > div { display: grid; gap: 0.2rem; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); }
.receipt-details > div:nth-child(odd) { border-right: 1px solid var(--border); }
.receipt-details dt { color: var(--text-2); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.receipt-details dd { margin: 0; color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.receipt-details .receipt-total { background: var(--brand-muted); }
.receipt-details .receipt-total dd { color: var(--brand-dark); font-size: 1.25rem; font-weight: 900; }

.receipt-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.receipt-finish-button { margin-left: auto; }

/* =====================================================
   TABLES
   ===================================================== */

.data-table {
    background: var(--surface);
    border: 1px solid var(--border);
    /* separate (not collapse) + no overflow:hidden so the row action
       dropdown can escape the table bounds without being clipped. */
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
    width: 100%;
}

.data-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.data-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }

.data-table th, .data-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-2);
}

.table-sort-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: inherit;
    gap: 0.3rem;
    letter-spacing: inherit;
    padding: 0;
    text-align: left;
    text-transform: inherit;
}

.table-sort-button:hover { color: var(--brand); }
.table-sort-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.table-sort-button span { color: var(--brand); font-size: 0.9rem; line-height: 1; }

.data-table tbody tr {
    transition: background var(--t);
}

.data-table tbody tr:hover { background: var(--brand-muted); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table a { font-size: 0.875rem; }

.compact-table { box-shadow: none; margin-top: 0.75rem; }

/* =====================================================
   SECTION HEADING
   ===================================================== */

.section-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-heading h2, .section-heading h3 { margin: 0; }

/* =====================================================
   FORM COMPONENTS
   ===================================================== */

.field-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
}

.category-form { margin-top: 1.5rem; }

.nested-panel {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
}

.price-row {
    align-items: end;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
    padding-top: 1rem;
}

.compact-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-2);
}

.compact-actions { margin-top: 0; }

/* =====================================================
   STATUS PILLS
   ===================================================== */

.status-pill {
    border-radius: var(--radius-full);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill.danger { background: var(--error-bg); color: var(--error); }
.status-pill.success { background: var(--success-bg); color: var(--success); }
.status-pill.info { background: var(--brand-muted); color: var(--brand); }
.status-pill.warning { background: var(--warning-bg); color: var(--warning-text); }

/* =====================================================
   LINK BUTTONS
   ===================================================== */

.link-button {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity var(--t);
}

.link-button:hover { opacity: 0.75; }
.link-button.accent { color: var(--brand); font-weight: 600; }
.link-button.danger { color: var(--error); font-weight: 600; }

.table-action-message {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.45rem;
    max-width: 16rem;
}

.table-action-message.error { color: var(--error); }
.table-action-message.success { color: var(--success); }

/* Row action bar: primary button + overflow menu. */
.event-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.action-menu { position: relative; display: inline-block; }

.action-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.action-menu-trigger:hover {
    background: var(--brand-muted);
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

.action-menu-trigger.danger {
    background: var(--error-bg);
    border-color: #fecaca;
    color: #dc2626;
}

.action-menu-trigger.danger:hover {
    background: #fee2e2;
    border-color: var(--error-border);
    color: var(--error);
}

.action-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: transparent;
}

.action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 12rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.35rem;
    display: grid;
    gap: 0.1rem;
}

.action-menu-panel a,
.action-menu-panel button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.action-menu-panel a:hover,
.action-menu-panel button:hover {
    background: var(--brand-muted);
    color: var(--brand-dark);
}

.action-menu-panel .danger { color: var(--error); }
.action-menu-panel .danger:hover { background: var(--error-bg); color: var(--error); }

/* =====================================================
   EVENT PAGES
   ===================================================== */

.event-hero { display: grid; gap: 1.25rem; }

/* Bounded banner preview (organizer edit form). */
.event-banner {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 16rem;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--border);
    display: block;
}

/* Hero with image + gradient overlay. Fixed 3:1 ratio; the banner is shown
   whole (object-fit: contain) over a blurred copy of itself, so any uploaded
   proportion looks standardized and nothing gets cropped. */
.event-hero-media {
    position: relative;
    width: 100%;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3 / 1;
    max-height: 24rem;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--brand-muted), var(--bg));
}

/* Blurred backdrop fill (uses the --banner custom property set inline). */
.event-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--banner);
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.85);
    transform: scale(1.15);
    z-index: 0;
}

.event-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(to top, rgba(6, 43, 79, 0.9), rgba(6, 43, 79, 0.2) 55%, rgba(6, 43, 79, 0));
    color: #fff;
}

.event-hero-overlay .eyebrow { color: rgba(255, 255, 255, 0.85); }
.event-hero-overlay h1 { color: #fff; margin: 0; }
.event-hero-overlay .event-hero-meta { color: rgba(255, 255, 255, 0.92); margin: 0; }

.event-preview-badge {
    background: var(--accent);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.75rem;
    position: absolute;
    right: 1rem;
    text-transform: uppercase;
    top: 1rem;
    z-index: 3;
}

.event-hero-fallback .event-preview-badge { position: static; justify-self: start; }

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.event-details-content {
    grid-column: span 2;
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.event-details-sidebar {
    grid-column: 3;
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.organizer-details {
    display: grid;
    gap: 0.8rem;
    margin: 0 0 1rem;
}

.organizer-details div { display: grid; gap: 0.15rem; }
.organizer-details dt { color: var(--text-2); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.organizer-details dd { margin: 0; font-weight: 600; }
.public-description { white-space: pre-line; }
.description-card { display: flex; flex-direction: column; }
.description-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 1.25rem; }

/* Fallback header when the event has no banner image. */
.event-hero-fallback {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.35rem;
}

.event-hero-fallback .eyebrow { color: rgba(255, 255, 255, 0.85); }
.event-hero-fallback h1 { color: #fff; margin: 0; }
.event-hero-fallback .event-hero-meta { color: rgba(255, 255, 255, 0.92); margin: 0; }

/* CTA bar below the hero. */
.event-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Category cards on the public event page. */
.category-pill-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.category-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    background: var(--surface);
}

.category-pill .category-pill-name { font-weight: 600; color: var(--text); }
.category-pill .category-pill-price { font-weight: 700; color: var(--brand); font-size: 1.05rem; }

/* Prominent registration submit button. */
.submit-cta {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    justify-content: center;
}

/* Public event listing cards. */
.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.event-card-thumb {
    position: relative;
    aspect-ratio: 3 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-muted), var(--bg));
}

.coupon-delete-action { color: var(--error); }
.coupon-delete-action:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* Blurred backdrop fill (uses --banner set inline on the element). */
.event-card-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--banner);
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.9);
    transform: scale(1.15);
    z-index: 0;
}

.event-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.event-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    flex: 1;
}

.event-card-body h2 { font-size: 1.1rem; margin: 0; }
.event-card-type { margin: 0; color: var(--brand-dark); }
.event-card-desc {
    font-size: 0.875rem;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.event-card-meta {
    display: grid;
    gap: 0.55rem;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-2);
}
.event-card-meta span { display: flex; align-items: center; gap: 0.5rem; }
.event-card-meta svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; color: var(--brand); }
.event-card-categories { display: grid; gap: 0.2rem; margin-top: 0.75rem; color: var(--text-2); font-size: 0.85rem; line-height: 1.5; }
.event-card-categories span { color: var(--text-2); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.event-card-categories p { margin: 0; }
.event-card-organizer { font-size: 0.8rem; color: var(--text-2); margin: 0; }
.event-card-organizer strong { color: var(--text); }
.event-card-capacity { color: var(--accent-dark); font-weight: 600; }

.event-card-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.event-card-price {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.05rem;
}

.event-card-footer .button { margin-top: 0; width: auto; flex-shrink: 0; }

/* Filters bar for the public listing. */
.filters-bar {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) 2fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filters-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filters-search svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
}

.filters-search .event-search-input { min-width: 0; padding-left: 3rem !important; }

.filters-selects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.filters-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-2);
    font-weight: 600;
}

.status-pill.neutral { background: var(--border); color: var(--text-2); }

.analytics-grid article, .detail-cards article, .filters-card { min-width: 0; }
.detail-cards span { font-size: 1.15rem; font-weight: 700; }

/* =====================================================
   EVENT WORKSPACE (per-event tabbed shell)
   ===================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb-sep { color: var(--border-strong); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

.event-context {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.25rem;
}

.event-context-thumb {
    width: 234px;
    aspect-ratio: 3 / 1;
    height: 78px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
}

.event-context-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.event-context-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.event-context-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-2);
}

.event-context-meta .dot { color: var(--border-strong); }
.event-context-status { display: flex; gap: 0.4rem; margin-top: 0.15rem; }

.event-context-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.event-tabs {
    display: flex;
    gap: 0.15rem;
    border-bottom: 1px solid var(--border);
    margin: 1.4rem 0 1.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.event-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--t), border-color var(--t);
}

.event-tab:hover { color: var(--text); text-decoration: none; }

.event-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.event-tab .count {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.02rem 0.42rem;
    color: var(--text-2);
}

.event-tab.active .count {
    background: var(--brand-muted);
    border-color: var(--brand-light);
    color: var(--brand);
}

@media (max-width: 768px) {
    .event-context { flex-direction: column; align-items: flex-start; }
    .event-context-thumb { width: 100%; height: 96px; }
    .event-context-actions { justify-content: flex-start; width: 100%; }
    .event-tabs { margin: 1rem 0 1.25rem; }
}

/* =====================================================
   CATEGORY MANAGER (list of cards + sectioned editor)
   ===================================================== */

.cat-manager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.25rem;
}

.cat-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cat-list-head .cat-list-count { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.cat-list-head .cat-list-count small { display: block; font-weight: 500; color: var(--text-2); }

.cat-list { display: grid; gap: 0.85rem; }

.inactive-categories-toggle { margin-bottom: 1rem; }

.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
    align-items: center;
}

.cat-card.editing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-muted); }
.cat-card.is-inactive { opacity: 0.72; }

.cat-card-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.cat-chip {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--brand-muted);
    color: var(--brand);
}

.cat-chip.muted { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }

.cat-card-rules {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    color: var(--text-2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.cat-card-rules .sep { color: var(--border-strong); }

.cap-meter {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 0.4rem;
    max-width: 260px;
}

.cap-meter > i { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-full); }

.cat-card-side {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    justify-self: end;
}

.cat-card-price { text-align: right; }
.cat-card-price b { font-size: 1.05rem; font-weight: 800; color: var(--brand); }
.cat-card-price small { display: block; color: var(--text-2); }

.cat-card-actions { display: flex; gap: 0.35rem; }

/* Accessible switch */
.switch {
    appearance: none;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 0;
    background: var(--border-strong);
    position: relative;
    cursor: pointer;
    transition: background var(--t);
}

.switch[aria-checked="true"] { background: var(--success); }

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform var(--t);
    box-shadow: var(--shadow-sm);
}

.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Sectioned editor */
.cat-editor {
    position: sticky;
    top: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
}

.cat-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cat-editor-head h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.cat-editor-head p { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--text-2); }

.cat-editor-body { padding: 1.15rem 1.25rem; display: grid; gap: 1.4rem; }
.cat-editor-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.cat-editor-notice { padding: 0 1.25rem; }
.cat-editor-notice-top { padding-top: 1rem; }
.cat-editor-notice-bottom { padding-bottom: 1.25rem; }

.fieldset { display: grid; gap: 0.8rem; }

.fieldset-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.fieldset-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Segmented control */
.segmented {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.segmented button {
    flex: 1;
    appearance: none;
    padding: 0.5rem 0.4rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--surface);
    color: var(--text-2);
    border: 0;
    border-right: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--t), color var(--t);
}

.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: var(--bg); }
.segmented button.on { background: var(--brand); color: #fff; }
.segmented button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Size chips */
.size-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.size-chip {
    appearance: none;
    padding: 0.4rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--t), border-color var(--t), color var(--t);
}

.size-chip.on { background: var(--brand-muted); border-color: var(--brand); color: var(--brand-dark); }
.size-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1024px) {
    .cat-manager { grid-template-columns: 1fr; }
    .cat-editor { position: static; }
}

@media (max-width: 560px) {
    .cat-card { grid-template-columns: 1fr; }
    .cat-card-side { justify-self: start; }
}

/* =====================================================
   EVENT SUMMARY (Resumen tab)
   ===================================================== */

.summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.25rem;
}

.summary-col { display: grid; gap: 1.25rem; align-content: start; }

.summary-metrics-supporting { grid-column: span 2; }

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem;
}

.summary-card > h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.15rem; }
.summary-card > .summary-card-sub { font-size: 0.8rem; color: var(--text-2); margin: 0 0 1rem; }

.summary-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-card-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }

/* Publish checklist */
.checklist { display: grid; gap: 0.85rem; }

.checklist-item { display: flex; align-items: flex-start; gap: 0.7rem; }

.checklist-ic {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.checklist-ic.done { background: var(--success-bg); color: var(--success); }
.checklist-ic.pending { background: var(--warning-bg); color: var(--warning-text); }
.checklist-ic.optional { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.checklist-item .ci-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checklist-item .ci-detail { font-size: 0.8rem; color: var(--text-2); margin: 0.1rem 0 0; line-height: 1.5; }

.ci-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.08rem 0.4rem;
    border-radius: var(--radius-full);
    background: var(--brand-muted);
    color: var(--brand);
}

.progress-bar {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 1.1rem 0 0.75rem;
}

.progress-bar > i { display: block; height: 100%; background: var(--brand); border-radius: var(--radius-full); transition: width var(--t-md); }

.checklist-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-2);
}

/* Mini bar chart */
.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 128px;
    padding-top: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.mini-bars .mb {
    flex: 1;
    min-width: 0;
    background: var(--brand);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}

.mini-bars-x {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-2);
    margin-top: 0.4rem;
}

/* Capacity list (por categoría / tallas) */
.cap-list { display: grid; gap: 0.9rem; }
.cap-list-row { display: grid; gap: 0.3rem; }

.cap-list-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
}

.cap-list-top b { font-weight: 600; color: var(--text); }
.cap-list-top span { color: var(--text-2); }

/* Quick actions */
.quick-actions { display: grid; gap: 0.55rem; }

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
    transition: border-color var(--t), background var(--t);
}

.quick-actions a:hover { border-color: var(--brand-light); background: var(--brand-muted); color: var(--brand-dark); }
.quick-actions a svg { color: var(--brand); flex-shrink: 0; }

@media (max-width: 1024px) {
    .summary-layout { grid-template-columns: 1fr; }
}

/* =====================================================
   REGISTRANTS (Inscritos tab)
   ===================================================== */

.reg-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.reg-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 260px;
}

.reg-search .reg-search-ic {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    display: flex;
}

.reg-search input {
    flex: 1;
    padding-left: 3.25rem !important;
    border-radius: var(--radius-full);
}

.reg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
}

.fchip {
    appearance: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--t), border-color var(--t), color var(--t);
}

.fchip:hover { border-color: var(--border-strong); }
.fchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fchip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.reg-chip-select select {
    width: auto;
    padding: 0.4rem 2rem 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
}

.reg-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.85rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.9rem;
    font-size: 0.83rem;
    color: var(--text-2);
}

.reg-summary b { color: var(--text); font-weight: 700; }

.reg-bulk {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
    background: var(--brand-muted);
    border: 1px solid var(--brand-light);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.reg-bulk-cat { display: flex; align-items: center; gap: 0.4rem; }
.reg-bulk-cat select { width: auto; padding: 0.35rem 1.75rem 0.35rem 0.7rem; font-size: 0.8rem; }

.data-table tbody tr.is-selected { background: var(--brand-muted); }
.data-table input[type="checkbox"] { margin: 0; }

.reg-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: var(--text-2);
}

.reg-pages { display: flex; gap: 0.3rem; }

.reg-pages button {
    appearance: none;
    min-width: 30px;
    height: 30px;
    padding: 0 0.4rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
}

.reg-pages button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.reg-pages button:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 768px) {
    .reg-summary { gap: 1rem; }
}

/* =====================================================
   PUBLIC EVENT PAGE + REGISTRATION WIZARD
   ===================================================== */

.quick-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0;
}

.quick-fact {
    background: var(--surface);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-facts-title {
    margin: 0;
    padding: 1rem 1.1rem 0.8rem;
    background: var(--surface);
    font-size: 1.1rem;
}

.quick-fact-icon { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; color: var(--brand); }
.quick-fact-content { display: grid; gap: 0.2rem; min-width: 0; }

.quick-fact span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-2);
}

.quick-fact b { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.organizer-card { padding: 1.25rem; }
.organizer-card h2 { font-size: 1.1rem; }

.category-selection-summary {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--brand-muted);
    border-radius: var(--radius);
    background: var(--brand-muted);
}

.category-selection-actions { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.category-selection-prompt { margin: 0; padding: 0 0.15rem; }
.category-selection-continue:disabled {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-2);
    box-shadow: none;
    cursor: default;
    opacity: 0.7;
}
.category-selection-continue:disabled:hover {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-2);
    box-shadow: none;
}

.coupon-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.coupon-actions {
    display: flex;
    gap: 0.65rem;
    justify-self: end;
}

.coupon-toolbar {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.coupon-actions .button { gap: 0.4rem; }
.coupon-page-notice { margin-bottom: 1rem; }
.coupon-modal-description { margin: 0; }
.coupon-modal-actions { display: flex; gap: 0.65rem; justify-content: flex-end; }
.standard-modal-body > .coupon-modal-form { margin-top: -0.75rem; }

.table-sort {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    padding: 0;
}

.table-sort:hover { color: var(--brand); }
.coupon-entry-heading { display: flex; gap: 0.75rem; align-items: center; }
.coupon-entry-icon { display: block; width: 1.25rem !important; height: 1.25rem !important; max-width: 1.25rem; max-height: 1.25rem; color: var(--brand); flex: 0 0 1.25rem; }
.coupon-entry-heading h3, .coupon-entry-heading p { margin: 0; }
.coupon-entry-heading h3 { font-size: 0.95rem; }
.coupon-entry-heading p { color: var(--text-2); font-size: 0.85rem; margin-top: 0.15rem; }
.coupon-entry-form { display: flex; gap: 0.6rem; grid-column: 1 / -1; }
.coupon-entry-form input { min-width: 0; flex: 1; }
.coupon-entry .notice { grid-column: 1 / -1; margin: 0; }
.checkbox-row.has-error { color: var(--error); }
.field-error { margin: -0.35rem 0 0; color: var(--error); font-size: 0.85rem; font-weight: 600; }

.reg-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

.reg-flow-main { display: grid; gap: 1.75rem; align-content: start; }

.reg-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.reg-block h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.reg-block .lead { margin: 0; }
.reg-block p + a.button { margin-top: 0.75rem; }

.dist-list { display: grid; gap: 0.7rem; }

.dist-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 1rem 1.1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t);
}

.dist-card:hover:not(:disabled) { border-color: var(--border-strong); }
.dist-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-muted); }
.dist-card.is-disabled { opacity: 0.55; cursor: not-allowed; }

.dist-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    flex-shrink: 0;
    position: relative;
}

.dist-card.selected .dist-radio { border-color: var(--brand); }
.dist-card.selected .dist-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
}

.dist-info { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.dist-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.dist-meta { font-size: 0.8rem; color: var(--text-2); }
.dist-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.dist-price b { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.dist-price small { color: var(--text-2); }
.dist-price > span { display: flex; flex-direction: column; align-items: flex-end; gap: 0.05rem; }
.dist-price .price-change { color: var(--accent-dark); font-size: 0.72rem; line-height: 1.35; max-width: 16rem; }

/* The organizer and description are presented above the selector. */
.reg-flow-main > .reg-block:not(:first-child) { display: none; }

.reg-flow-aside { position: sticky; top: 1.5rem; }

.reg-cta-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.reg-cta-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.reg-cta-lines { display: grid; gap: 0.5rem; }
.reg-cta-lines > div { display: flex; justify-content: space-between; font-size: 0.9rem; }
.reg-cta-lines span { color: var(--text-2); }
.reg-cta-lines b { font-weight: 700; }

.reg-cta-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border);
    font-size: 0.9rem;
}

.reg-cta-total .amt { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }

/* Wizard */
.wizard { width: 100%; max-width: none; margin: 1.5rem auto 0; }

.wizard-steps {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: step;
}

.wizard-steps li {
    flex: 1;
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    padding-top: 1.9rem;
    position: relative;
}

.wizard-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-strong);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.wizard-steps li::after {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(-50% + 13px);
    width: calc(100% - 26px);
    height: 2px;
    background: var(--border);
}

.wizard-steps li:first-child::after { display: none; }

.wizard-steps li.is-current { color: var(--text); }
.wizard-steps li.is-current::before { background: var(--brand); border-color: var(--brand); color: #fff; }

.wizard-steps li.is-done { color: var(--text); }
.wizard-steps li.is-done::before {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    content: "✓";
}
.wizard-steps li.is-done::after { background: var(--success); }

.wizard-panel { display: grid; gap: 1.4rem; }
.wizard { scroll-margin-top: 6.5rem; }
.wizard-panel > h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }

.field-group {
    display: grid;
    gap: 0.8rem;
}

.field-group-title {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.field-group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.required-marker {
    color: #dc2626;
    font-weight: 800;
}

.field-label { display: inline-flex; align-items: baseline; gap: 0.2rem; }

label.is-invalid { color: #dc2626; }

.wizard-error-bottom { margin-top: 1rem; }

.wizard-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wizard-nav .wizard-total {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.wizard-nav .submit-cta { margin-left: auto; }

.order-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
}

.order-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}

.order-line:last-of-type { border-bottom: 0; }
.order-line b { font-weight: 700; }

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 2px solid var(--border-strong);
    font-size: 0.9rem;
}

.order-total .amt { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }

@media (max-width: 680px) {
    .reg-flow { grid-template-columns: 1fr; }
    .reg-flow-aside { position: static; order: 2; }
    .quick-facts { grid-template-columns: 1fr; }
    .event-details-grid { grid-template-columns: 1fr; }
    .event-details-content,
    .event-details-sidebar { grid-column: 1; }
    .event-details-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .wizard-steps li { font-size: 0; padding-top: 1.9rem; }
    .dist-card { flex-wrap: wrap; }

    .wizard-nav { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .wizard-nav .button { width: 100%; margin-left: 0; justify-content: center; }
    .wizard-nav .wizard-total { width: 100%; margin-left: 0; text-align: center; order: -1; }
}

@media (max-width: 768px) {
    .event-hero-media { width: 100%; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .price-row { grid-template-columns: 1fr; }
    .filters-bar { grid-template-columns: 1fr; }
    .section-heading { flex-direction: column; }
    .form-grid.three { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin: 0 auto;
    }

    .landing-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
    /* App layout — mobile */
    .shell { grid-template-columns: 1fr; }

    .mobile-header { display: flex; }

    .nav-panel {
        position: fixed;
        top: 0;
        left: -17.5rem;
        width: 16.5rem;
        height: 100vh;
        z-index: 200;
        transition: left var(--t-md);
        padding-top: 0;
    }

    .nav-panel.open {
        left: 0;
        box-shadow: var(--shadow-xl);
    }

    .nav-close-btn { display: flex; }

    .content {
        padding: 1.25rem;
        grid-column: 1;
    }

    .dashboard-page-header { align-items: flex-start; flex-direction: column; }
    .dashboard-credit-chips { justify-content: flex-start; }

    /* Landing nav mobile */
    .landing-nav-links,
    .landing-nav-actions {
        display: none;
    }

    .landing-nav-hamburger { display: flex; }

    /* Grids → single column */
    .cards.three, .dashboard-grid { grid-template-columns: 1fr; }
    .summary-metrics-left { grid-column: auto; grid-template-columns: 1fr; }
    .summary-metrics-supporting { grid-column: auto; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
    .package-wide-card { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .package-summary-grid { grid-template-columns: 1fr; }
    .package-wide-action { justify-items: start; align-items: start; }
    .timing-details-layout { grid-template-columns: 1fr; }
    .timing-services { grid-column: auto; }
    .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
    .checkbox-list { grid-template-columns: 1fr; }
    .category-pill-list { grid-template-columns: 1fr; }

    /* Filters — mobile */
    .filters-bar { grid-template-columns: 1fr; }
    .filters-selects { grid-template-columns: 1fr 1fr; }

    /* Event hero — mobile: fill the compact frame instead of letterboxing it. */
    .event-hero-media {
        aspect-ratio: 2 / 1;
    }

    .event-hero-media img { object-fit: cover; }
    .event-hero-overlay { padding: 1.25rem; }
    .event-hero-overlay h1 {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
        line-height: 1.1;
    }
    .event-hero-fallback { padding: 1.5rem 1.25rem; }
    .event-hero-actions .button { flex: 1 1 auto; justify-content: center; }
    .submit-cta { width: 100%; }

    .landing-hero { padding: 3.5rem 1.25rem 4.5rem; }
    .landing-section { padding: 3.5rem 1.25rem; }

    .landing-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-title { letter-spacing: -0.01em; }
}

@media (max-width: 480px) {
    .content { padding: 1rem; }
    .hero { padding: 1.5rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .landing-cta-section .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .landing-cta-section .cta-actions .button,
    .landing-cta-section .cta-actions .btn {
        width: 100%;
        max-width: 18rem;
    }
}

/* =====================================================
   POLISH — responsive tables, focus, touch targets
   ===================================================== */

/* Wide tables scroll inside their own container instead of the page body. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
}

.table-scroll .data-table { margin-top: 0; min-width: 44rem; }

/* Visible keyboard focus on custom interactive elements added in this redesign. */
.dist-card:focus-visible,
.cat-card .action-menu-trigger:focus-visible,
.reg-pages button:focus-visible,
.reg-chip-select select:focus-visible,
.event-tab:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.event-tab:focus-visible { outline-offset: -2px; border-radius: var(--radius-sm); }

@media (max-width: 768px) {
    /* Comfortable touch targets for primary actions on small screens. */
    .event-context-actions .button,
    .wizard-nav .button,
    .reg-bulk .button,
    .cat-editor-foot .button { min-height: 44px; }

    /* Primary CTAs go full width where they head their own row. */
    .cat-editor-foot { flex-wrap: wrap; }
    .cat-editor-foot .button { flex: 1 1 100%; justify-content: center; }

    .reg-toolbar .reg-search { min-width: 0; }
    .reg-toolbar > .button { flex: 1; justify-content: center; }

    .quick-facts { grid-template-columns: 1fr; }

    /* Show event context before the registration flow on phones. */
    .event-details-grid {
        display: flex;
        flex-direction: column;
    }

    .event-details-content,
    .event-details-sidebar { display: contents; }

    .event-details-sidebar .quick-facts { order: 1; }
    .event-details-content .description-card { order: 2; }
    .event-details-sidebar .organizer-card { order: 3; }
    .event-details-content > .reg-block:not(.description-card),
    .event-details-content > .empty-state,
    .event-details-content > .wizard { order: 4; }

    .event-details-sidebar .quick-facts,
    .event-details-content .description-card,
    .event-details-sidebar .organizer-card,
    .event-details-content > .reg-block:not(.description-card),
    .event-details-content > .empty-state,
    .event-details-content > .wizard {
        box-sizing: border-box;
        width: 100%;
    }
}

@media print {
    body { background: #fff; }

    .no-print,
    .event-hero,
    .cards,
    .category-form,
    nav,
    header,
    footer {
        display: none !important;
    }

    .registration-receipt {
        border-color: #999;
        box-shadow: none;
        margin: 0;
    }

    .receipt-banner img { max-height: 10rem; }
    .receipt-section { break-inside: avoid; }
}

/* Registration detail */
.cards.three.detail-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-cards .detail-card {
    align-items: flex-start;
    background: var(--surface, var(--card));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 1.125rem;
}

.detail-card > div { min-width: 0; }
.detail-card strong,
.detail-card span { display: block; }
.detail-card .detail-card-icon { display: inline-flex; }
.detail-card strong { color: var(--muted); font-size: 0.8rem; }
.detail-card span:not(.detail-card-icon) { margin-top: 0.2rem; overflow-wrap: anywhere; }

.detail-card-icon,
.detail-title-icon {
    align-items: center;
    background: var(--brand-muted);
    border-radius: 0.625rem;
    color: var(--brand);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2rem;
    justify-content: center;
    width: 2rem;
    line-height: 0;
}

.detail-card-icon svg,
.detail-title-icon svg { display: block; height: 1.125rem; width: 1.125rem; }

.detail-section-title {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: 0.625rem;
    margin: 0;
}

.detail-actions { border-top: 1px solid var(--border); padding-top: 1rem; }
.detail-action-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0.75rem;
}
.detail-action-buttons .button,
.detail-save-action .button { align-items: center; display: inline-flex; gap: 0.5rem; }
.detail-action-buttons .button { justify-content: center; width: 100%; }
.detail-action-buttons svg,
.detail-save-action svg { display: block; height: 1rem; width: 1rem; }
.detail-action-buttons svg { color: var(--brand); }
.detail-save-action { border-top: 1px solid var(--border); display: flex; justify-content: flex-end; padding-top: 1rem; }

.detail-close { align-items: center; display: inline-flex; gap: 0.375rem; }
.detail-close svg { display: block; height: 1rem; width: 1rem; }

.compact-detail-panel { align-content: start; gap: 0.5rem; }
.compact-detail-panel p { margin: 0; }
.coupon-detail-values { display: grid; gap: 0.35rem; }

@media (max-width: 768px) {
    .cards.three.detail-cards { gap: 0.5rem; }
    .detail-cards .detail-card { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
    .detail-card-icon { height: 1.75rem; width: 1.75rem; }
    .detail-action-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Landing: savings badge, calculator, social proof, FAQ */
.price-savings {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin: -1rem 0 1.25rem;
}

.pricing-free-note strong { color: var(--text); }

.volume-section { background: var(--surface); }

.volume-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.volume-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem 1.5rem;
}

.volume-card.featured {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
}

.volume-card-size {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.01em;
}

.volume-card-size span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0;
}

.volume-card-price {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1.1;
}

.volume-card-price small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.volume-card .price-savings { margin: 0; }

.volume-card-total {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-2);
}

.volume-facts {
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
}

.volume-facts li {
    font-size: 0.9rem;
    color: var(--text-2);
}

.volume-facts li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
}

.landing-stats {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.landing-stat strong {
    display: block;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.landing-stat span {
    font-size: 0.875rem;
    color: var(--text-2);
}

.faq-section { background: var(--surface); }

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 1rem 1.25rem;
}

.faq-list details[open] { border-color: var(--brand-light); }

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0.75rem 0 0;
}

@media (max-width: 1024px) {
    .volume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .volume-grid { grid-template-columns: 1fr; }
    .landing-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.registration-credit-notice { margin-bottom: 1.5rem; }
.registration-credit-notice a { font-weight: 700; margin-left: 0.25rem; }
.cards .negative-balance { color: var(--error); }

.openpay-steps {
    margin: 0.5rem 0 1.5rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.4rem;
    color: var(--text-2);
}

.openpay-status.ok {
    color: var(--success);
    font-weight: 600;
}

.landing-footnotes {
    background: var(--bg);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
}

.landing-footnotes p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.feature-card h3 sup,
.price-features sup { color: var(--accent-dark); font-weight: 700; }

/* Invoicing */
.fiscal-notice a,
.fiscal-summary a { font-weight: 700; }
.fiscal-summary { margin: 0 0 1.25rem; }

.fiscal-choice {
    border: 0;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.fiscal-choice legend {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.fiscal-choice-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    cursor: pointer;
}

.fiscal-choice-option.selected { border-color: var(--brand); background: var(--brand-muted); }
.fiscal-choice-option input { margin-top: 0.3rem; }
.fiscal-choice-option span { display: grid; gap: 0.2rem; }
.fiscal-choice-option small { color: var(--text-2); }

.invoice-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
}

.invoice-status.issued { background: var(--success-bg); color: var(--success); }
.invoice-status.pending { background: var(--warning-bg); color: var(--warning-text); }
.invoice-status.failed { background: var(--error-bg); color: var(--error); }
.invoice-error { color: var(--error); }

/* =====================================================
   LANDING — COMMERCIAL PAGE (lp-*)
   ===================================================== */

.lp-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.lp-center { text-align: center; }
.lp-center .section-subtitle { margin: 0 auto; }
.lp-button-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.lp-button-lg .lp-icon { width: 1.1em; height: 1.1em; }

/* Hero */
.lp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(11, 94, 215, 0.12), transparent 60%),
        radial-gradient(40rem 25rem at 0% 100%, rgba(6, 43, 79, 0.06), transparent 60%),
        linear-gradient(160deg, #EAF2FF 0%, #F8FAFC 55%, #FFFFFF 100%);
    padding: 4.5rem 1.5rem 3rem;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.lp-hero .hero-badge .lp-icon { width: 0.95rem; height: 0.95rem; }

.lp-hero-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 1.25rem;
}

.lp-hero-title:focus { outline: none; }

.lp-hero-money {
    white-space: nowrap;
    background: linear-gradient(90deg, var(--brand) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.lp-hero-subtitle strong { color: var(--text); }

.lp-hero-promise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.lp-hero-promise span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1.5px solid var(--success-border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.lp-hero-promise .lp-icon { color: var(--success); }

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lp-hero-fineprint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.lp-sports {
    list-style: none;
    padding: 0;
    margin: 3.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.lp-sports li {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
}

/* Hero visual */
.lp-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2.5rem 0;
}

.lp-phone {
    width: 17.5rem;
    background: var(--surface);
    border-radius: 2rem;
    border: 8px solid var(--nav-bg);
    box-shadow: 0 30px 60px -15px rgba(6, 43, 79, 0.35);
    overflow: hidden;
    transform: rotate(2deg);
}

.lp-phone-banner {
    background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
    color: #fff;
    padding: 1.1rem 1.1rem 1rem;
    display: grid;
    gap: 0.15rem;
}

.lp-phone-org {
    justify-self: start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.4rem;
}

.lp-phone-banner strong { font-size: 1rem; line-height: 1.25; }
.lp-phone-banner small { font-size: 0.75rem; opacity: 0.8; }

.lp-phone-body { padding: 1rem 1.1rem 1.25rem; display: grid; gap: 0.85rem; }

.lp-phone-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--success-bg);
    color: var(--success);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius);
    padding: 0.5rem;
}

.lp-phone-qr {
    width: 8.5rem;
    margin: 0 auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.lp-phone-qr svg { display: block; width: 100%; height: auto; }

.lp-phone-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0;
    text-align: center;
}

.lp-phone-data div { background: var(--bg); border-radius: var(--radius-sm); padding: 0.4rem 0.2rem; }
.lp-phone-data dt { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.lp-phone-data dd { margin: 0; font-size: 0.78rem; font-weight: 800; color: var(--text); }

.lp-phone-hint { font-size: 0.7rem; text-align: center; color: var(--text-2); }

.lp-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.65rem 0.9rem;
    animation: lp-float 6s ease-in-out infinite;
}

.lp-float strong { display: block; font-size: 0.82rem; color: var(--text); line-height: 1.2; }
.lp-float small { font-size: 0.72rem; color: var(--text-2); }

.lp-float-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-float-icon.success { background: var(--success-bg); color: var(--success); }
.lp-float-icon.brand { background: var(--brand-muted); color: var(--brand); }
.lp-float-icon.accent { background: var(--accent-light); color: var(--accent-dark); }

.lp-float-pay { top: 0; right: 0; }
.lp-float-openpay { top: 52%; right: -0.5rem; animation-delay: -2s; }
.lp-float-whatsapp { bottom: 0.5rem; left: 0; animation-delay: -4s; }

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-float { animation: none; }
}

/* Story */
.lp-story { background: var(--surface); }

.lp-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: center;
}

.lp-story-badge {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 2.25rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.lp-story-badge::after {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -5rem;
    bottom: -5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 94, 215, 0.55), transparent 70%);
}

.lp-story-years {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #FFFFFF 0%, var(--brand-on-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-story-years::before { content: "~"; font-size: 3rem; vertical-align: top; }
.lp-story-years-label { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.lp-story-brand { font-size: 0.9rem; color: var(--nav-text); }
.lp-story-brand strong { color: #fff; }

.lp-lead { font-size: 1.15rem; line-height: 1.7; color: var(--text); font-weight: 600; margin: 0 0 1rem; }
.lp-body { color: var(--text-2); line-height: 1.7; margin: 0 0 1rem; }

.lp-pain-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-pain-list li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.lp-quote {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    border-left: 4px solid var(--accent);
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 1.5rem 0 0;
}

/* Benefits */
.lp-benefits { background: var(--bg); }

.lp-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.lp-benefit {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    transition: box-shadow var(--t-md), transform var(--t-md);
}

.lp-benefit:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.lp-benefit.featured {
    background: linear-gradient(160deg, var(--brand) 0%, var(--navy) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.lp-benefit-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-lg);
    background: var(--accent-muted);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.lp-benefit.featured .lp-benefit-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }

.lp-benefit h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 0.6rem; line-height: 1.3; }
.lp-benefit p { font-size: 0.93rem; color: var(--text-2); line-height: 1.7; margin: 0 0 1rem; }
.lp-benefit p strong { color: var(--text); }
.lp-benefit.featured h3, .lp-benefit.featured p strong { color: #fff; }
.lp-benefit.featured p { color: rgba(255, 255, 255, 0.85); }

.lp-benefit.featured .lp-benefit-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: #fff;
    margin-bottom: 0;
}

.lp-x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }

.lp-x-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.lp-x-list .lp-icon {
    color: var(--error);
    background: var(--error-bg);
    border-radius: 50%;
    padding: 0.2rem;
    width: 1.3rem;
    height: 1.3rem;
}

/* Journey */
.lp-journey { background: var(--surface); }

.lp-journey-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
}

.lp-journey-list::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--navy));
}

.lp-journey-list li { text-align: center; position: relative; }

.lp-journey-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--brand);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
    box-shadow: 0 0 0 8px var(--brand-muted);
}

.lp-journey-list li:last-child .lp-journey-icon { border-color: var(--navy); background: var(--navy); color: #FFFFFF; box-shadow: 0 0 0 8px var(--brand-muted); }

.lp-journey-icon span {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-journey-list h3 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 0.5rem; }
.lp-journey-list p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; margin: 0; }

.lp-tagline {
    text-align: center;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--text);
    margin: 3rem 0 0;
}

.lp-tagline span { color: var(--brand); }

/* Brand page */
.lp-brand { background: linear-gradient(180deg, var(--brand-muted) 0%, var(--surface) 100%); }

.lp-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.lp-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }

.lp-check-list li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--text-2); line-height: 1.6; }

.lp-check-list .lp-icon {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.55rem;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--brand);
    border: 1px solid var(--brand-light);
}

.lp-browser {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(6, 43, 79, 0.3);
    overflow: hidden;
}

.lp-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.lp-browser-bar > span { width: 0.65rem; height: 0.65rem; flex-shrink: 0; border-radius: 50%; }
.lp-browser-bar > span:first-child { background: #D0D5DD; }
.lp-browser-bar > span:nth-child(2) { background: #D0D5DD; }
.lp-browser-bar > span:nth-child(3) { background: #D0D5DD; }

.lp-browser-url {
    flex: 1;
    min-width: 0;
    margin-left: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.85rem;
    font-size: 0.75rem;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-browser-hero {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    min-height: 9rem;
    padding: 1.25rem;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(6, 43, 79, 0.8), rgba(6, 43, 79, 0) 70%),
        linear-gradient(120deg, var(--brand) 0%, var(--navy) 100%);
}

.lp-browser-logo {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--brand);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--shadow-lg);
}

.lp-browser-hero small { display: block; font-size: 0.75rem; opacity: 0.85; }
.lp-browser-hero strong { font-size: 1.2rem; line-height: 1.2; }

.lp-browser-body { padding: 1.25rem; display: grid; gap: 0.6rem; }

.lp-browser-chips { display: flex; gap: 0.4rem; margin-bottom: 0.3rem; }

.lp-browser-chips span {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    color: var(--text-2);
}

.lp-browser-chips span.active { border-color: var(--brand); background: var(--brand-muted); color: var(--brand); }

.lp-browser-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.lp-browser-row span { color: var(--text-2); }
.lp-browser-row strong { color: var(--text); }

.lp-browser-cta {
    margin-top: 0.5rem;
    text-align: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    border-radius: var(--radius-full);
    padding: 0.7rem;
}

/* Features */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Comparison */
.lp-compare { background: var(--surface); }

.lp-compare-table {
    max-width: 56rem;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lp-compare-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--border);
}

.lp-compare-row:first-child { border-top: 0; }

.lp-compare-row > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    font-size: 0.92rem;
}

.lp-compare-row > span:first-child { font-weight: 700; color: var(--text); }

.lp-compare-manual { color: var(--text-2); }
.lp-compare-manual .lp-icon { color: var(--error); }

.lp-compare-ours {
    background: var(--brand-muted);
    color: var(--text);
    font-weight: 700;
}

.lp-compare-ours .lp-icon { color: var(--success); }

.lp-compare-head > span {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
    background: var(--bg);
}

.lp-compare-head > span:last-child { background: var(--brand); color: #fff; }

/* Start */
.lp-start { background: var(--bg); }

.lp-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.lp-start-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
}

.lp-start-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-start-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0 0 0.5rem; }
.lp-start-card p { font-size: 0.93rem; color: var(--text-2); line-height: 1.7; margin: 0; }
.lp-start-card p strong { color: var(--text); }

/* Different pricing band */
.lp-different {
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgba(11, 94, 215, 0.45), transparent 60%),
        var(--nav-bg);
    color: #fff;
    padding: 4.5rem 1.5rem;
}

.lp-different-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.lp-different .section-eyebrow { color: var(--brand-on-dark); }

.lp-different h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    color: #fff;
}

.lp-different p { color: var(--nav-text); font-size: 1.05rem; line-height: 1.75; margin: 0; }
.lp-different p strong { color: #fff; }

.lp-different-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.lp-different-stats div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1rem;
    text-align: center;
}

.lp-different-stats strong {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.25rem;
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.lp-different-stats strong .lp-icon { width: 3rem; height: 3rem; stroke-width: 2.2; }
.lp-different-stats span { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--nav-text-hover); line-height: 1.4; }

/* Plans */
.lp-free {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
    gap: 2rem;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--success-border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow);
}

.lp-free-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--success); letter-spacing: -0.03em; margin: 0.25rem 0 0.5rem; }
.lp-free-price p { margin: 0; font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.lp-free-price p strong { color: var(--text); }

.lp-free-includes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
}

.lp-free-includes li { font-size: 0.88rem; color: var(--text-2); }
.lp-free-includes li::before { content: "✓ "; color: var(--success); font-weight: 800; }

.lp-plans-header { margin: 4rem 0 3rem; }

.lp-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
    align-items: stretch;
}

.lp-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.lp-plan.featured {
    box-shadow: 0 25px 50px -15px rgba(11, 94, 215, 0.35);
    transform: scale(1.03);
}

.lp-plan.featured:hover { transform: scale(1.03) translateY(-3px); }

.lp-plan-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
}

.lp-plan.featured .lp-plan-name { color: var(--brand); }

.lp-plan-price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-top: 0.5rem;
}

.lp-plan-price small { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-plan-total { font-size: 0.9rem; color: var(--text-2); font-weight: 600; }

.lp-savings {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.lp-plan .button { margin-top: auto; width: 100%; }
.lp-plan-total { margin-bottom: 0.5rem; }
.lp-plan .lp-savings { margin-bottom: 1.25rem; }

.lp-plan-note {
    max-width: 60rem;
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.lp-plan-note p { flex: 1 1 24rem; margin: 0; color: var(--text-2); font-size: 0.93rem; }
.lp-plan-note p strong { color: var(--text); }

.lp-never-stop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 52rem;
    margin: 2.5rem auto 0;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.lp-never-stop-icon { color: var(--success); font-size: 2.25rem; display: flex; }
.lp-never-stop strong { color: var(--text); }
.lp-never-stop p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-2); }

/* Why credits + WhatsApp */
.lp-why { background: var(--bg); }

.lp-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.lp-why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
}

.lp-why-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 0 0 0.75rem; }
.lp-why-card p { color: var(--text-2); line-height: 1.7; margin: 0 0 1.25rem; }

.lp-why-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }

.lp-why-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.lp-why-points .lp-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--brand-muted);
    color: var(--brand);
}

.lp-whatsapp { border-color: var(--success-border); background: var(--surface); }

.lp-whatsapp-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.lp-whatsapp-price { margin-bottom: 0.25rem; }
.lp-whatsapp-price strong { font-size: 2rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; }
.lp-whatsapp-price span { color: var(--text-2); font-weight: 600; }
.lp-whatsapp small { color: var(--muted); }

/* Trust */
.lp-trust { background: var(--surface); }

.lp-trust-inner {
    max-width: 50rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, var(--brand-muted) 0%, var(--surface) 70%);
}

.lp-trust-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 0 0 8px var(--brand-light);
}

.lp-trust .section-subtitle { margin: 0 auto; }
.lp-trust .section-subtitle strong { color: var(--text); }

.lp-trust-highlight {
    display: inline-block;
    margin: 1.5rem 0;
    font-weight: 800;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--brand-light);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.25rem;
}

.lp-trust-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.lp-faq { background: var(--bg); }
.lp-faq .faq-list details p strong { color: var(--text); }

/* Final CTA */
.lp-cta {
    background:
        radial-gradient(40rem 20rem at 50% 0%, rgba(11, 94, 215, 0.45), transparent 70%),
        radial-gradient(30rem 15rem at 50% 100%, rgba(11, 94, 215, 0.2), transparent 70%),
        var(--nav-bg);
}

.lp-cta .lp-cta-sub {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: var(--brand-on-dark);
    margin-bottom: 1rem;
}

.lp-cta .lp-cta-motto {
    margin: 2.5rem auto 0.5rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.lp-cta .lp-cta-fineprint { margin: 0 auto; font-size: 0.85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
    .lp-hero-grid,
    .lp-story-grid,
    .lp-brand-grid,
    .lp-different-grid,
    .lp-why-grid { grid-template-columns: minmax(0, 1fr); }

    .lp-hero-grid { gap: 2rem; }
    .lp-hero-copy { text-align: center; }
    .lp-hero-subtitle { margin-left: auto; margin-right: auto; }
    .lp-hero-promise, .lp-hero-actions { justify-content: center; }
    .lp-story-grid, .lp-brand-grid { gap: 2.5rem; }
    .lp-story-badge { max-width: 28rem; }

    .lp-benefit-grid { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; }
    .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-journey-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
    .lp-journey-list::before { display: none; }

    .lp-free { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .lp-free-includes { text-align: left; max-width: 30rem; margin: 0 auto; }
    .lp-free-cta { justify-self: center; }
    .lp-plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 26rem; }
    .lp-plan.featured, .lp-plan.featured:hover { transform: none; }
}

@media (max-width: 768px) {
    .lp-hero { padding: 3rem 1rem 2.5rem; }
    .lp-different { padding: 3.5rem 1rem; }
    .lp-hero-visual { padding: 1rem 0 2.5rem; }
    .lp-phone { transform: none; width: 15.5rem; }
    .lp-float { padding: 0.5rem 0.7rem; }
    .lp-float { display: none; }

    .lp-feature-grid,
    .lp-journey-list,
    .lp-start-grid,
    .lp-different-stats { grid-template-columns: minmax(0, 1fr); }

    .lp-compare-head { display: none; }
    .lp-compare-row { grid-template-columns: minmax(0, 1fr); padding: 0.9rem 1rem; gap: 0.35rem; }
    .lp-compare-row > span { padding: 0.35rem 0.6rem; border-radius: var(--radius-sm); }
    .lp-compare-row > span:first-child { padding: 0 0 0.15rem; }

    .lp-free { padding: 1.75rem 1.25rem; }
    .lp-free-includes { grid-template-columns: 1fr; }
    .lp-trust-inner { padding: 2.25rem 1.25rem; }
    .lp-why-card { padding: 1.75rem 1.25rem; }
    .lp-never-stop { flex-direction: column; text-align: center; }
    .lp-plan-note { flex-direction: column; text-align: center; }
    .lp-hero-actions .button, .lp-cta .cta-actions .button { width: 100%; }
}

/* =====================================================
   ORGANIZER BRANDING (public page + profile)
   ===================================================== */

.org-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* 4:1 banner, cropped to the center; height clamps so it never dominates on wide screens. */
.org-hero-banner {
    height: clamp(160px, 25vw, 320px);
    background-color: var(--nav-bg);
    background-image: linear-gradient(120deg, var(--brand), var(--navy));
    background-size: cover;
    background-position: center;
}

.org-hero-body {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 0 1.75rem 1.5rem;
}

.org-hero-logo {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    margin-top: -56px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.org-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-hero-logo span { font-size: 2rem; font-weight: 900; color: var(--brand); }

.org-hero-text { min-width: 0; padding-top: 0.75rem; }
.org-hero-text h1, .org-hero-text h3 { margin: 0 0 0.2rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--text); }
.org-hero-text p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.org-hero-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.org-hero-text .org-hero-contact { margin-top: 0.35rem; }
.org-hero-contact a { font-weight: 600; }

.org-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.org-profile-form h2 { margin-top: 0; }

.org-slug-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    margin-top: 0.35rem;
}

.org-slug-input span { padding: 0 0.6rem; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.org-slug-input input { border: 0; box-shadow: none; min-width: 0; flex: 1; padding-left: 0; padding-right: 0; }
.org-slug-input input:focus { box-shadow: none; }

.org-image-field {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.org-image-field strong { display: block; color: var(--text); }
.org-image-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.org-profile-preview { position: sticky; top: 1rem; }
.org-preview-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5rem; }
.org-hero-preview .org-hero-banner { height: auto; aspect-ratio: 4 / 1; }
.org-hero-preview .org-hero-logo { width: 72px; height: 72px; margin-top: -36px; border-width: 3px; }
.org-hero-preview .org-hero-logo span { font-size: 1.3rem; }
.org-hero-preview .org-hero-body { padding: 0 1rem 1rem; gap: 0.85rem; }
.org-hero-preview .org-hero-text h3 { font-size: 1.1rem; }

.organizer-card-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .org-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .org-profile-preview { position: static; order: -1; }
}

@media (max-width: 640px) {
    .org-hero-body { flex-direction: column; align-items: flex-start; padding: 0 1.25rem 1.25rem; gap: 0.5rem; }
    .org-hero-logo { width: 88px; height: 88px; margin-top: -44px; }
    .org-hero-text { padding-top: 0; }
}

/* =====================================================
   REGISTRATION RECOVERY (public)
   ===================================================== */

.recover-section { background: linear-gradient(160deg, #EAF2FF 0%, #F8FAFC 55%, #FFFFFF 100%); }

.recover-card {
    max-width: 34rem;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem 2rem;
}

.recover-card h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 800; }
.recover-lead { color: var(--text-2); line-height: 1.65; margin: 0 0 1.25rem; }
.recover-form { display: grid; gap: 1rem; }
.recover-form label { font-weight: 600; }
.recover-form input { display: block; width: 100%; margin-top: 0.35rem; }

.recover-list { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }

.recover-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.recover-option.selected { border-color: var(--brand); background: var(--brand-muted); }
.recover-option input { margin-top: 0.3rem; }
.recover-option span { display: grid; gap: 0.15rem; }
.recover-option small { color: var(--text-2); }

.recover-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.recover-empty { background: var(--bg); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1rem; color: var(--text-2); }
.recover-empty p { margin: 0 0 0.5rem; }
.recover-empty p:last-child { margin: 0; }

.recover-done { text-align: center; margin-bottom: 1.25rem; color: var(--text-2); line-height: 1.6; }
.recover-done-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0.5rem auto 1rem;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recover-hint { font-size: 0.85rem; color: var(--text-2); text-align: center; margin: 1rem 0 0; }

@media (max-width: 560px) {
    .recover-card { padding: 1.75rem 1.25rem; }
    .recover-actions .button { width: 100%; }
}

/* =====================================================
   EXTERNAL REGISTRATIONS (bulk entry)
   ===================================================== */

.ext-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.ext-summary div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
}

.ext-summary span { display: block; font-size: 0.75rem; color: var(--text-2); font-weight: 600; }
.ext-summary strong { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.ext-summary .negative strong { color: var(--error); }
.ext-balance-note { font-size: 0.85rem; color: var(--warning-text); margin: 0.25rem 0 0; }

.ext-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0.75rem; }

.ext-paste {
    background: var(--brand-muted);
    border: 1px dashed var(--brand-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ext-paste p { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-2); }
.ext-paste .ext-paste-columns { font-weight: 700; color: var(--text); }
.ext-paste textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.ext-paste-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }

.ext-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.ext-table { width: 100%; border-collapse: collapse; min-width: 1180px; }

.ext-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-2);
    background: var(--bg);
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.ext-table td { padding: 0.35rem 0.3rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ext-table input, .ext-table select { width: 100%; min-width: 0; padding: 0.4rem 0.5rem; font-size: 0.85rem; margin: 0; }
.ext-table td:nth-child(2), .ext-table td:nth-child(3) { min-width: 120px; }
.ext-table td:nth-child(6) { min-width: 130px; }
.ext-table td:nth-child(7) { min-width: 170px; }
.ext-table .ext-narrow { width: 90px; }
.ext-index { color: var(--muted); font-size: 0.8rem; text-align: center; width: 2rem; }

.ext-table tr.has-error td { background: var(--error-bg); }
.ext-error-row td { background: var(--error-bg); color: var(--error); font-size: 0.82rem; font-weight: 600; padding: 0.2rem 0.5rem 0.6rem; }

.ext-remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
}

.ext-remove:hover { color: var(--error); background: var(--error-bg); }
.ext-hint { margin: 0.75rem 0 0; }

.ext-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ext-pill { margin-left: 0.4rem; font-size: 0.68rem; vertical-align: middle; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .ext-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ext-footer .button { width: 100%; }
}

h1:focus { outline: none; }

/* =====================================================
   PAYMENT SLIP (convenience-store cash payment)
   ===================================================== */

.slip-page {
    padding: 3rem 1rem 4rem;
    background: linear-gradient(160deg, #EAF2FF 0%, #F8FAFC 55%, #FFFFFF 100%);
}

.slip-loading { text-align: center; color: var(--muted); }

.slip-card {
    max-width: 40rem;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.slip-missing { padding: 2.5rem 2rem; text-align: center; }
.slip-missing h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }

.slip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.75rem;
    background: linear-gradient(120deg, var(--brand) 0%, var(--navy) 100%);
    color: #fff;
}

.slip-brand { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.slip-kind { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; text-align: right; }

.slip-status {
    display: grid;
    gap: 0.3rem;
    justify-items: start;
    margin: 1.25rem 1.75rem 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
}

.slip-status.paid { background: var(--success-bg); color: var(--success); }
.slip-status.expired { background: var(--warning-bg); color: var(--warning-text); }
.slip-status span { color: var(--text-2); font-size: 0.9rem; }
.slip-status .button { margin-top: 0.35rem; }

.slip-pay {
    margin: 1.5rem 1.75rem 0;
    padding: 1.5rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.slip-pay.inactive { opacity: 0.45; }

.slip-amount span, .slip-reference span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-2);
}

.slip-amount strong { font-size: 2.75rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.slip-amount small { font-weight: 700; color: var(--muted); margin-left: 0.25rem; }

.slip-reference strong {
    display: block;
    margin-top: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    word-break: break-word;
}

.slip-barcode { display: block; max-width: 100%; height: 72px; object-fit: contain; image-rendering: pixelated; }

.slip-due { margin: 0; color: var(--text-2); }
.slip-due strong { color: var(--accent-dark); }

.slip-event {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 1.75rem 0;
}

.slip-org-logo { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem; background: #fff; flex-shrink: 0; }

.slip-event dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.25rem; flex: 1; }
.slip-event dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.slip-event dd { margin: 0; font-weight: 700; color: var(--text); }

.slip-steps { margin: 1.5rem 1.75rem 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.slip-steps h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }
.slip-steps ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; color: var(--text-2); line-height: 1.55; }
.slip-steps strong { color: var(--text); }
.slip-note { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }

.slip-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 1.75rem 0; }

.slip-footer {
    margin: 1.5rem 0 0;
    padding: 0.9rem 1.75rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 560px) {
    .slip-page { padding: 1.5rem 0.75rem 3rem; }
    .slip-top { padding: 1rem 1.25rem; }
    .slip-status, .slip-pay, .slip-event, .slip-steps, .slip-actions { margin-left: 1.25rem; margin-right: 1.25rem; }
    .slip-pay { padding: 1.25rem 0.75rem; }
    .slip-event dl { grid-template-columns: minmax(0, 1fr); }
    .slip-actions .button { width: 100%; }
}

@media print {
    .slip-page { padding: 0; background: #fff; }
    .slip-card { box-shadow: none; border-color: #999; max-width: none; }
    .slip-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.recover-code-input { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.4em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }


/* =====================================================
   WIDE TABLES & MOBILE MENUS
   ===================================================== */

/* The visually-hidden header text must stay inside the scrolling wrapper. */
.ext-table-wrap { position: relative; }

/* Admin tables scroll inside their card instead of widening the page. */
.category-form > .data-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {
    /* Tables keep their columns and scroll sideways within the content area. */
    .data-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Row menus open as a bottom sheet so a scrolling table cannot clip them. */
    .action-menu-panel {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        min-width: 0;
        box-shadow: var(--shadow-xl);
    }

    .coupon-toolbar { flex-wrap: wrap; }
    .coupon-actions { flex-wrap: wrap; justify-self: start; }
}

/* Honeypot field: off screen instead of display:none, which some bots skip. */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Online payment readiness (organizer) and document verification (admin) */
.readiness-panel { margin: 0.25rem 0 1rem 1.9rem; padding: 0.9rem 1rem; border: 1px solid var(--brand-light); background: var(--brand-muted); border-radius: var(--radius-sm, 10px); }
.readiness-title { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.readiness-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.readiness-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.875rem; color: var(--text); }
.readiness-list li > span:last-child { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; align-items: baseline; }
.readiness-list li small { flex-basis: 100%; color: var(--text-2); line-height: 1.5; }
.readiness-list a { font-weight: 600; }
.readiness-mark { flex: 0 0 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; background: var(--surface); color: var(--muted); border: 1px solid var(--border-strong); }
.readiness-list li.done { color: var(--text-2); }
.readiness-list li.done .readiness-mark { background: var(--success); border-color: var(--success); color: #fff; }
.verify-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 9.5rem; }
.verify-cell small { color: var(--text-2); }
.verify-checks { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.verify-checks span { font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.verify-checks span.ok { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.verify-checks span.missing { text-decoration: line-through; }
.link-button { background: none; border: none; padding: 0; color: var(--text-2); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--error); }
