/*
 * E-Brom — Checkout / Site Público
 * Carrega depois de tokens.css.
 */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--font-sans);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: hsl(var(--primary-hover)); }

img { max-width: 100%; height: auto; }

/* ========================================================================
   HEADER / NAV PILL
   ======================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 20px 0;
    background: transparent;
}
.nav-pill {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 24px;
    background: hsl(var(--card) / .82);
    border: 1px solid hsl(var(--border) / .6);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow-sm);
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.025em;
    color: hsl(var(--foreground));
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.logo .dot { color: hsl(var(--primary)); }
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
    font-family: inherit;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / .35);
}
.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow-primary);
}
.btn-primary:hover {
    background: hsl(var(--primary-hover));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}
.btn-outline:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: hsl(var(--muted-foreground));
}
.btn-ghost:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
    text-decoration: none;
}
.btn-destructive {
    background: hsl(var(--destructive));
    color: white;
}
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ========================================================================
   LANG DROPDOWN
   ======================================================================== */
.lang-dropdown { position: relative; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid hsl(var(--border) / .6);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    font-family: inherit;
    transition: border-color .15s ease, color .15s ease;
}
.lang-toggle:hover {
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}
.lang-toggle .flag-icon { font-size: 14px; line-height: 1; }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    z-index: 60;
    display: none;
}
.lang-menu.open { display: block; }
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.lang-item:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    text-decoration: none;
}
.lang-item.active {
    color: hsl(var(--primary));
    font-weight: 600;
}
.lang-item .flag-icon { font-size: 16px; line-height: 1; }

/* ========================================================================
   LAYOUT / CONTAINER
   ======================================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
    width: 100%;
}
.container-narrow { max-width: var(--container-narrow); }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
    padding: 64px 0 32px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.hero > div { max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .hero { padding: 80px 0 40px; } }

.hero-eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
    margin: 0;
    color: hsl(var(--foreground));
}
.hero h1 em {
    font-style: normal;
    color: hsl(var(--primary));
}
.hero p {
    margin: 18px auto 0;
    max-width: 580px;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}
.hero-aside {
    font-size: 14px;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    border-left: 2px solid hsl(var(--primary));
    padding: 8px 0 8px 18px;
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
}
.hero-aside strong { color: hsl(var(--foreground)); font-weight: 600; }

/* ========================================================================
   CHECKOUT TITLE (step1/step2)
   ======================================================================== */
.checkout-title-block {
    text-align: center;
    margin-bottom: 32px;
}
.checkout-title-block .hero-eyebrow {
    justify-content: center;
}
.checkout-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0;
    color: hsl(var(--foreground));
}

/* ========================================================================
   PRICING GRID
   ======================================================================== */
.plans-rail {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    position: relative;
}
@media (min-width: 760px) { .plans-rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; } }

.plan-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover {
    border-color: hsl(var(--border));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.plan-card.featured {
    border-color: hsl(var(--primary) / .35);
    box-shadow: var(--shadow-featured);
}
@media (min-width: 1100px) {
    .plan-card.featured { transform: scale(1.02); }
    .plan-card.featured:hover { transform: scale(1.02) translateY(-3px); }
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: var(--shadow-glow-primary);
}

.plan-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0 0 6px;
    color: hsl(var(--foreground));
}
.trial-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / .1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}
.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 8px 0 24px;
    min-width: 0;
}
.price .amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1;
    letter-spacing: -.025em;
    color: hsl(var(--foreground));
    white-space: nowrap;
}
.price .per {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    align-self: flex-end;
}

.plan-card .btn { margin-top: 4px; }

.feature-cat {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    color: hsl(var(--foreground));
}
.feature-list li.disabled {
    color: hsl(var(--muted-foreground));
}
.feature-list .check,
.feature-list .cross {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature-list .check { color: hsl(var(--primary)); }
.feature-list .cross { color: hsl(var(--muted-foreground) / .55); }
.feature-list .check svg,
.feature-list .cross svg { width: 100%; height: 100%; display: block; }
.feature-list li strong { color: hsl(var(--foreground)); font-weight: 600; }

/* ========================================================================
   STEPPER
   ======================================================================== */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px 0 24px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    letter-spacing: .04em;
    font-weight: 500;
    font-family: var(--font-sans);
}
.step .badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.step.active .badge {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow-primary);
}
.step.active { color: hsl(var(--foreground)); font-weight: 600; }
.step-line {
    width: 80px;
    height: 1px;
    background: hsl(var(--border));
}

/* ========================================================================
   FORM / CARD
   ======================================================================== */
.grid { display: grid; gap: 20px; }
.checkout-grid { grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.6fr 1fr; } }

.card {
    background: hsl(var(--card));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -.01em;
    margin: 0 0 22px;
    color: hsl(var(--foreground));
}

.form-grid { display: grid; gap: 18px; }
.col-span-2 { grid-column: 1 / -1; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-phone {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 12px;
}
.form-grid-address-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) {
    .form-grid-phone,
    .form-grid-address-3 { grid-template-columns: 1fr; }
}

label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .06em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
}
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--ring) / .2);
}
.has-error input,
.has-error select { border-color: hsl(var(--destructive)); }
.error-msg {
    color: hsl(var(--destructive));
    font-size: 12px;
    margin-top: 4px;
}

/* ========================================================================
   CHECKOUT ASIDE (sticky wrapper around summary + actions)
   ======================================================================== */
.checkout-aside {
    position: sticky;
    top: 96px;
    align-self: start;
}
@media (max-width: 899px) {
    .checkout-aside { position: static; }
}

/* ========================================================================
   SUMMARY (resumo de cobrança)
   ======================================================================== */
.summary {}
.summary .label {
    color: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.summary .value {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14.5px;
    color: hsl(var(--foreground));
}
.summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed hsl(var(--border));
}
.summary .row:last-of-type { border-bottom: none; }
.summary .row.total {
    padding-top: 18px;
    margin-top: 6px;
    border-top: 1px solid hsl(var(--border));
    border-bottom: none;
}
.summary .row.total .label {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-transform: uppercase;
    letter-spacing: .08em;
}
.summary .row.total .value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: hsl(var(--foreground));
}

/* USERS STEPPER */
.users-stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: stretch;
    border: 1px solid hsl(var(--primary));
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 36px;
    background: hsl(var(--card));
}
.users-stepper button {
    width: 36px;
    flex: 0 0 36px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 0;
    font-family: var(--font-sans);
    transition: background .15s ease;
}
.users-stepper button:hover { background: hsl(var(--primary-hover)); }
.users-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.users-stepper input[type=number] {
    width: 52px !important;
    flex: 0 0 52px;
    border: 0 !important;
    outline: 0 !important;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 14px;
    -moz-appearance: textfield;
    padding: 0 !important;
    background: hsl(var(--card)) !important;
    box-shadow: none !important;
}
.users-stepper input::-webkit-outer-spin-button,
.users-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ========================================================================
   ALERTS
   ======================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    border-left: 3px solid;
}
.alert-error {
    background: hsl(var(--destructive) / .08);
    color: hsl(var(--destructive));
    border-color: hsl(var(--destructive));
}
.alert-info {
    background: hsl(var(--primary) / .08);
    color: hsl(var(--primary-hover));
    border-color: hsl(var(--primary));
}
.alert-success {
    background: hsl(var(--success) / .1);
    color: hsl(var(--success));
    border-color: hsl(var(--success));
}
.alert-warning {
    background: hsl(var(--warning) / .12);
    color: hsl(38 92% 35%);
    border-color: hsl(var(--warning));
}

/* ========================================================================
   TRUST ROW (security badges)
   ======================================================================== */
.trust-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    align-items: flex-start;
    line-height: 1.5;
}
.trust-row svg {
    flex-shrink: 0;
    color: hsl(var(--primary));
    margin-top: 2px;
}
.trust-row strong {
    color: hsl(var(--foreground));
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* ========================================================================
   TABS (segmented control)
   ======================================================================== */
.tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 22px;
    background: hsl(var(--muted));
    padding: 4px;
    border-radius: var(--radius-full);
}
.tab {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    user-select: none;
}
.tab:hover { color: hsl(var(--foreground)); }
.tab.active {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    box-shadow: var(--shadow-sm);
}

/* ========================================================================
   OAUTH BUTTONS
   ======================================================================== */
.oauth-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.oauth-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.oauth-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}
.oauth-btn.google { background: #DC3545; }
.oauth-btn.github { background: hsl(var(--foreground)); }
.oauth-btn.facebook { background: #1877F2; }
.oauth-btn.linkedin { background: #0077B5; }
.oauth-btn.microsoft {
    background: hsl(var(--card));
    color: #1877F2;
    border-color: hsl(var(--border));
}

.separator {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}
.separator span { padding: 0 14px; }

/* ========================================================================
   CHECKBOX ROW
   ======================================================================== */
.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 13.5px;
    color: hsl(var(--foreground));
}
.checkbox-row input[type=checkbox] {
    margin-top: 2px;
    accent-color: hsl(var(--primary));
}
.checkbox-row label {
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13.5px;
    color: inherit;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}
.checkbox-row label a {
    color: hsl(var(--primary));
    font-weight: 500;
}

.small-input { width: 60px; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    padding: 32px 24px;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .04em;
    border-top: 1px solid hsl(var(--border));
    margin-top: 64px;
    background: hsl(var(--background));
}

/* ========================================================================
   ENTRANCE ANIMATIONS
   ======================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s cubic-bezier(.22,.61,.36,1) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .19s; }
.rise-4 { animation-delay: .26s; }
.rise-5 { animation-delay: .33s; }

/* ========================================================================
   RULE DIVIDER
   ======================================================================== */
.rule-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    margin: 48px 0 24px;
}
.rule-divider::before,
.rule-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}

/* ========================================================================
   PROMO CODE INPUT GROUP
   ======================================================================== */
.promo-group {
    display: flex;
    gap: 8px;
}
.promo-feedback {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}
.promo-feedback.success { color: hsl(var(--success)); }
.promo-feedback.error { color: hsl(var(--destructive)); }

/* ========================================================================
   FINISH PAGE
   ======================================================================== */
.finish-stack {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.finish-card-eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 10px;
}
.finish-card-cta {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--primary) / .3);
    box-shadow: var(--shadow-featured);
    text-align: center;
}
.finish-card-cta h2 { color: hsl(var(--foreground)); }
.finish-card-cta p {
    margin: 0 0 22px;
    color: hsl(var(--muted-foreground));
    font-size: 15px;
    line-height: 1.6;
}
.pix-qr {
    max-width: 220px;
    margin: 0 auto 16px;
    border: 1px solid hsl(var(--border));
    padding: 8px;
    background: #fff;
    border-radius: var(--radius-sm);
    display: block;
}
.pix-copy {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;
    font-size: 12px;
    word-break: break-all;
    background: hsl(var(--muted));
    padding: 14px;
    border-radius: var(--radius-sm);
    color: hsl(var(--foreground));
    text-align: left;
}

/* ========================================================================
   AUTH SHELL (login, MFA, password reset)
   ======================================================================== */
.auth-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    min-height: calc(100vh - 80px);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
}
.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-card-eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
}
.auth-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    color: hsl(var(--foreground));
}
.auth-card-subtitle {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.55;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-form label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
}
.input-with-icon {
    position: relative;
}
.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    pointer-events: none;
}
.input-with-icon input {
    padding-left: 40px;
}
.input-with-icon.has-trailing input {
    padding-right: 44px;
}
.input-toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-full);
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
    padding: 0;
}
.input-toggle-pw:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}
.input-toggle-pw:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--ring) / .25);
    color: hsl(var(--foreground));
}
.input-toggle-pw .icon-show { display: inline-block; }
.input-toggle-pw .icon-hide { display: none; }
.input-toggle-pw[aria-pressed="true"] .icon-show { display: none; }
.input-toggle-pw[aria-pressed="true"] .icon-hide { display: inline-block; }
.input-feedback {
    color: hsl(var(--destructive));
    font-size: 12px;
    margin-top: 2px;
}
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.auth-row label {
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}
.auth-link {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 13px;
}
.auth-link:hover { color: hsl(var(--primary-hover)); }
.auth-divider {
    display: flex;
    align-items: center;
    margin: 4px 0;
    color: hsl(var(--muted-foreground));
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}
.auth-divider span { padding: 0 12px; }
.auth-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
    font-size: 13.5px;
    color: hsl(var(--muted-foreground));
}
.auth-card-footer .auth-link { margin-left: 4px; }

/* OTP / 2FA digit-like field */
.otp-input {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: .3em;
    padding: 14px 16px !important;
}
.auth-actions {
    display: flex;
    gap: 10px;
}
.auth-actions .btn { flex: 1; }

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    .auth-card-title { font-size: 24px; }
}

/* Auth header — minimal logo-only nav-pill variant */
.site-header.auth-minimal { padding-top: 24px; }
.site-header.auth-minimal .nav-pill { justify-content: center; }

/* ========================================================================
   MISC HELPERS
   ======================================================================== */
.text-center { text-align: center; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 18px; }
