@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --surface-hover: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    
    /* Brand Colors - Indigo/Blue */
    --primary: #16a34a;
    --primary-strong: #15803d;
    --primary-light: #dcfce7;
    
    /* Accents & Status */
    --accent: #10b981;
    --accent-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Shadows & Layout */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-strong);
}

button, input, select {
    font: inherit;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Typography */
.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0;
}

h1 { font-size: 28px; }
h2 { font-size: 20px; }
p { color: var(--muted); margin-bottom: 16px; }

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
}

.brand-logo {
    display: block;
    width: 210px;
    max-width: 42vw;
    height: auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* Layout */
.page {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.auth-shell {
    background: radial-gradient(circle at top center, var(--primary-light) 0%, var(--bg) 50%);
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.auth-shell .page {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

/* Panels & Cards */
.auth-panel, .panel, .metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.auth-panel {
    width: 100%;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.compact-panel { max-width: 440px; }
.wide-panel { max-width: 760px; }
.register-panel { max-width: 900px; }

.panel-heading { margin-bottom: 32px; text-align: center; }
.panel-heading p { margin-bottom: 0; }

.panel { padding: 24px; }

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stack-form {
    display: grid;
    gap: 20px;
}

label, .field {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 500;
}

label span, .field > label, dt {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

input, select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

input:hover, select:hover { border-color: #cbd5e1; }

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input:disabled {
    background: var(--surface-soft);
    color: var(--muted);
    cursor: not-allowed;
}

.form-section { border: 0; margin-bottom: 32px; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section + .form-section {
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.form-section legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.section-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.info-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--info-light);
    color: var(--info);
    font-size: 12px;
    font-weight: 700;
}

.form-section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

/* Grid Spans */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Registration experience */
.register-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 10%, rgba(34, 197, 94, 0.14), transparent 28%),
        radial-gradient(circle at 95% 85%, rgba(34, 197, 94, 0.08), transparent 24%),
        #0d1117;
    color: #d1d5db;
}

.register-shell .topbar { display: none; }
.register-shell .page { width: min(1320px, calc(100% - 40px)); padding: 20px 0; }
.register-experience {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.55fr);
    min-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid #263241;
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .42), 0 0 55px rgba(34, 197, 94, .07);
}
.register-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    background: linear-gradient(160deg, rgba(34, 197, 94, .08), transparent 42%), radial-gradient(circle at bottom left, rgba(34, 197, 94, .18), transparent 45%), #080d12;
    border-right: 1px solid #263241;
    font-family: "Courier New", monospace;
}
.register-logo { display: inline-flex; align-items: center; align-self: flex-start; }
.register-logo img { display: block; width: min(240px, 100%); height: auto; }
.register-intro-copy { margin: 64px 0; }
.register-command { display: block; color: #22c55e; font-size: 12px; margin-bottom: 22px; }
.register-intro h1 { color: #f9fafb; font-family: "Courier New", monospace; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -2px; margin-bottom: 20px; }
.register-intro p { color: #8b949e; font-size: 15px; line-height: 1.7; }
.register-benefits { display: grid; gap: 13px; margin-top: 34px; list-style: none; }
.register-benefits li { display: flex; align-items: center; gap: 12px; color: #d1d5db; font-size: 13px; }
.register-benefits span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(34, 197, 94, .35); border-radius: 7px; color: #22c55e; font-size: 10px; }
.register-back { color: #8b949e; font-size: 12px; }
.register-back:hover { color: #22c55e; }
.register-shell .register-panel { max-width: none; border: 0; border-radius: 0; padding: 48px clamp(30px, 5vw, 72px); background: #111827; box-shadow: none; }
.register-heading { margin-bottom: 34px; }
.register-heading .eyebrow { color: #22c55e; }
.register-heading h1 { color: #f9fafb; font-size: 34px; margin-bottom: 10px; }
.register-heading p { color: #8b949e; margin: 0; }
.register-shell .validation-box { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.register-shell .register-section { margin: 0; padding: 24px 0; border-top: 1px solid #263241; }
.register-shell .register-section:last-of-type { border-bottom: 1px solid #263241; }
.register-shell .register-section + .register-section { padding-top: 24px; }
.register-shell .register-section legend { justify-content: space-between; margin-bottom: 18px; color: #f3f4f6; font-size: 16px; }
.register-shell .register-section legend span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.register-shell .register-section legend b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: rgba(34, 197, 94, .1); color: #22c55e; font-family: "Courier New", monospace; font-size: 10px; }
.register-shell .register-section legend em { padding: 3px 7px; border-radius: 999px; background: #263241; color: #9ca3af; font-size: 10px; font-style: normal; font-weight: 600; }
.register-shell .section-note { color: #6b7280; font-size: 11px; }
.register-shell label, .register-shell .field { color: #d1d5db; }
.register-shell label span, .register-shell .field > label { color: #d1d5db; }
.register-shell input, .register-shell select { min-height: 48px; border-color: #374151; background: #080d12; color: #f9fafb; box-shadow: none; }
.register-shell input::placeholder { color: #4b5563; }
.register-shell input:hover, .register-shell select:hover { border-color: #4b5563; }
.register-shell input:focus, .register-shell select:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.register-shell input:disabled { background: #161b22; color: #8b949e; }
.register-shell .field-status.is-success { color: #4ade80; }
.register-shell .field-status.is-error { color: #fca5a5; }
.register-shell .cep-button { min-height: 48px; border-color: #374151; background: #161b22; color: #d1d5db; }
.register-shell .cep-button:hover { border-color: #22c55e; color: #22c55e; }
.register-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 28px; }
.register-footer p { max-width: 390px; margin: 0; color: #8b949e; font-size: 12px; }
.register-footer .button-primary { min-width: 220px; background: #22c55e; color: #06130b; box-shadow: 0 4px 20px rgba(34, 197, 94, .2); }
.register-footer .button-primary:hover { background: #4ade80; }
.register-footer .button-primary span { margin-left: 8px; font-size: 18px; }
.register-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.register-progress li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #dbe3ec; border-radius: 10px; color: #64748b; background: #fff; }
.register-progress li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: #e2e8f0; font: 700 11px "Courier New", monospace; }
.register-progress li div { display: grid; gap: 2px; }
.register-progress strong { color: #334155; font-size: 13px; }
.register-progress small { color: #94a3b8; font-size: 10px; }
.register-progress li.is-active { border-color: #22c55e; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(34, 197, 94, .1); }
.register-progress li.is-active > span,
.register-progress li.is-complete > span { background: #dcfce7; color: #15803d; }
.register-progress li.is-complete { border-color: #bbf7d0; }
.register-step { display: none; }
.register-step.is-active { display: block; animation: registerStepIn .24s ease both; }
.register-step .form-section-grid { align-items: start; }
.register-step .field { align-content: start; }
.register-step-footer { min-height: 68px; }
.register-final-action { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-left: auto; }
.register-final-action p { text-align: right; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; }
.choice-card input { width: 18px; min-height: 18px; box-shadow: none; accent-color: #16a34a; }
.choice-card span { color: #334155; font-size: 13px; font-weight: 700; }
.company-cnpj-inline,
.company-fields { display: none; }
.company-cnpj-inline.is-visible { display: grid; }
.company-fields.is-visible { display: block; }
.address-compact { row-gap: 8px; }
.address-compact .field { gap: 4px; }
.address-compact input,
.address-compact select,
.address-compact .cep-button { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.address-compact .field-status { min-height: 14px; margin-top: 2px; }
.register-recaptcha-modal { position: fixed; inset: 0; width: min(420px, calc(100% - 28px)); max-height: max-content; margin: auto; border: 0; border-radius: 16px; padding: 0; background: transparent; color: #0f172a; }
.register-recaptcha-modal::backdrop { background: rgba(2, 6, 23, .66); backdrop-filter: blur(3px); }
.register-recaptcha-card { position: relative; display: grid; gap: 14px; padding: 28px; border: 1px solid #dbe3ec; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(2, 6, 23, .28); }
.register-recaptcha-card p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.55; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; color: #334155; cursor: pointer; }
.recaptcha-fallback { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.recaptcha-fallback input { width: 24px; min-height: 24px; box-shadow: none; accent-color: #16a34a; }
.recaptcha-fallback span { color: #0f172a; font-size: 15px; font-weight: 700; }
.recaptcha-widget { display: flex; justify-content: center; min-height: 78px; }
.swal2-container { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, .58); }
.onlyhosting-swal { display: grid; justify-items: center; gap: 14px; width: min(420px, 100%); padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(2, 6, 23, .28); text-align: center; }
.onlyhosting-swal .swal2-icon { width: 52px; height: 52px; border-radius: 999px; border: 3px solid #ef4444; }
.onlyhosting-swal .swal2-title { margin: 0; color: #0f172a; font-size: 22px; }
.onlyhosting-swal .swal2-html-container { color: #64748b; font-size: 14px; line-height: 1.55; }
.onlyhosting-swal .swal2-confirm { min-height: 42px; min-width: 96px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 700; cursor: pointer; }
@keyframes registerStepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.input-action {
    display: flex;
    gap: 12px;
}

.field-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.field-status.is-error { color: var(--danger); }
.field-status.is-success { color: var(--accent); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.button:active { transform: scale(0.98); }

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.button-primary:hover {
    background: var(--primary-strong);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    background: var(--surface-hover);
    border-color: #cbd5e1;
}

.button-ghost {
    background: transparent;
    color: var(--muted);
}

.button-ghost:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.button-small {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.danger-button {
    color: var(--danger);
}

.full-button { width: 100%; }

.form-footer, .actions-row, .split-links, .dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

/* Alerts & Notices */
.validation-box, .flash {
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.validation-box {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.flash-success {
    background: var(--accent-light);
    color: #047857;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.notice-card, .dev-link {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    margin-bottom: 24px;
}

.dev-link code {
    display: block;
    overflow-wrap: anywhere;
    color: var(--primary);
    font-family: monospace;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

/* Dashboard Specifics */
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-header h1 { font-size: 32px; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
}

.metric-icon.active-icon { background: var(--accent-light); color: var(--accent); }
.metric-icon.inactive-icon { background: var(--surface-soft); color: var(--muted); }
.metric-icon.billing-icon { background: var(--info-light); color: var(--info); }

.metric-info span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.metric-info strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.metric-value-row { display: flex; align-items: baseline; gap: 12px; }
.metric-more { padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; }
.metric-more:hover { color: var(--primary-strong); text-decoration: underline; }
.profile-quick-list { gap: 16px; }
.profile-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.contract-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.contract-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.contract-summary {
    position: sticky;
    top: 94px;
}

.contract-side-stack { display: grid; gap: 12px; align-self: start; }
.contract-restart-form { margin: 0; }
.contract-restart-form .button { width: 100%; border: 1px solid rgba(239, 68, 68, .22); color: #b91c1c; }
.contract-restart-form .button:hover { border-color: rgba(239, 68, 68, .4); background: #fef2f2; color: #991b1b; }

.contract-summary .full-button {
    margin-top: 24px;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0 0 24px;
}

.wizard-step > a,
.wizard-step > span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
}

.wizard-step.is-active > a,
.wizard-step.is-active > span {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.wizard-step.is-complete > a {
    color: var(--accent);
}

.step-index {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: inherit;
    font-size: 12px;
    flex: 0 0 auto;
}

.wizard-panel {
    min-height: 320px;
}

.inline-review,
.review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0;
}

.inline-review {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.review-list {
    margin-bottom: 28px;
}

.plan-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.plan-preview span,
.checkout-auth-box p {
    color: var(--muted);
}

.plan-preview span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-preview strong {
    color: var(--text);
    font-size: 18px;
}

.checkout-auth-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.checkout-auth-box p {
    margin: 0;
}

.payment-form {
    padding-top: 4px;
}

.payment-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 13px 15px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
}

.payment-security-note strong {
    display: block;
    margin-bottom: 2px;
    color: #166534;
    font-size: 14px;
}

.payment-security-note p,
.field-hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.payment-security-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
}

.payment-security-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-section { margin: 0; }
.payment-section > legend { margin-bottom: 18px; color: #0f172a; font-size: 16px; }

.payment-layout {
    display: grid;
    grid-template-columns: minmax(270px, .9fr) minmax(320px, 1.1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
}

.payment-card-column { min-width: 0; }

.credit-card-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    min-height: 184px;
    overflow: hidden;
    padding: clamp(20px, 2.4vw, 27px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, .22), transparent 42%),
        linear-gradient(145deg, #172033 0%, #0b1220 55%, #111827 100%);
    color: #f8fafc;
    box-shadow: 0 24px 45px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
    isolation: isolate;
}

.credit-card-preview::before,
.credit-card-preview::after {
    content: '';
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
}

.credit-card-preview::before { width: 260px; height: 260px; right: -105px; top: -130px; }
.credit-card-preview::after { width: 210px; height: 210px; right: -88px; top: -105px; }
.credit-card-glow { position: absolute; z-index: -1; right: -20%; bottom: -45%; width: 70%; height: 75%; border-radius: 50%; background: rgba(34, 197, 94, .12); filter: blur(34px); }

.credit-card-topline,
.credit-card-chip-row,
.credit-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.credit-card-product { color: #86efac; font: 700 11px "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.credit-card-brand { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 74px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.credit-card-brand img { display: block; width: auto; max-width: 78px; height: 28px; object-fit: contain; }
.credit-card-brand img[hidden] { display: none; }
.credit-card-chip-row { margin-top: clamp(16px, 2vw, 22px); justify-content: flex-start; }

.credit-card-chip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 40px;
    height: 30px;
    overflow: hidden;
    border: 1px solid #d6b85c;
    border-radius: 7px;
    background: linear-gradient(135deg, #f5dd8d, #b89132);
}
.credit-card-chip i { border-right: 1px solid rgba(91, 68, 15, .32); border-bottom: 1px solid rgba(91, 68, 15, .32); }
.credit-card-contactless { width: 25px; height: 25px; stroke: rgba(255, 255, 255, .72); stroke-width: 1.6; stroke-linecap: round; }
.credit-card-number { margin: auto 0 clamp(13px, 1.6vw, 19px); font: 500 clamp(16px, 1.85vw, 21px) "Courier New", monospace; letter-spacing: .075em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
.credit-card-bottom { align-items: flex-end; }
.credit-card-bottom div:first-child { min-width: 0; flex: 1; }
.credit-card-bottom span { display: block; margin-bottom: 3px; color: #94a3b8; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.credit-card-bottom strong { display: block; overflow: hidden; color: #f8fafc; font-size: 10px; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.accepted-card-brands { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 15px; }
.accepted-card-brands span { display: grid; place-items: center; min-width: 42px; height: 25px; padding: 3px 6px; border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; }
.accepted-card-brands img { display: block; width: auto; max-width: 58px; height: 18px; object-fit: contain; }

.payment-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 17px 14px; min-width: 0; }
.payment-field-full { grid-column: 1 / -1; }
.payment-fields .field > span,
.payment-expiry-group > span { display: flex; align-items: center; min-height: 18px; color: #334155; font-size: 12px; font-weight: 700; }
.payment-fields input,
.payment-fields select { min-height: 50px; border-color: #cbd5e1; border-radius: 10px; }
.payment-fields input:focus,
.payment-fields select:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }

.payment-input-shell { position: relative; display: flex; align-items: center; min-height: 50px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.payment-input-shell:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.payment-input-shell > svg { width: 19px; height: 19px; margin-left: 14px; flex: 0 0 auto; stroke: #94a3b8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-shell .panel .payment-input-shell input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.payment-input-brand { min-width: 48px; padding-right: 13px; color: #475569; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-align: right; text-transform: uppercase; }

.payment-expiry-group { display: grid; align-content: start; gap: 8px; }
.payment-expiry-group > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; }
.payment-expiry-group label { min-width: 0; }
.payment-expiry-group select { width: 100%; padding-right: 28px; }
.payment-expiry-group > div > span { color: #94a3b8; font-weight: 700; }
.payment-cvv-field small { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; border: 1px solid #cbd5e1; border-radius: 50%; color: #64748b; font-size: 10px; cursor: help; }
.payment-cvv-field input { width: 100%; }

.payment-consent { margin-top: 24px; padding: 14px 16px; border-left: 3px solid #22c55e; border-radius: 0 9px 9px 0; background: #f8fafc; color: #64748b; font-size: 12px; line-height: 1.55; }
.payment-consent strong { color: #0f172a; }
.payment-footer { margin-top: 2px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.payment-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding-inline: 22px; }
.payment-submit svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.content-stack {
    display: grid;
    gap: 24px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #fff;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
}

td {
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-hover); }

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 280px;
}

.inline-form {
    margin: 0;
}

.empty-state {
    padding: 32px;
    text-align: center;
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--surface-soft);
    font-weight: 500;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-paid, .status-active, .status-paga, .status-ativa { background: var(--accent-light); color: #047857; }
.status-open, .status-aberta { background: var(--info-light); color: #1d4ed8; }
.status-overdue, .status-suspended, .status-vencida, .status-suspensa { background: var(--danger-light); color: #b91c1c; }
.status-cancelled, .status-inactive, .status-cancelada, .status-inativa { background: var(--line); color: var(--muted); }

/* Data List (Sidebar) */
.data-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.compact-list {
    gap: 12px;
    margin-top: 18px;
}

.data-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;}
.data-list dd { color: var(--text); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

/* Modals */
.modal {
    width: min(800px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--surface);
    margin: auto;
}

.modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal[open] {
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.small-modal { width: min(480px, calc(100vw - 32px)); }
.large-modal { width: min(960px, calc(100vw - 32px)); }
.large-modal .modal-body { max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-description { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.profile-form input,
.profile-form select { min-height: 42px; padding: 8px 12px; font-size: 13px; }
.profile-form .field-locked { border-color: #e2e8f0; background: #f1f5f9 !important; color: #64748b; cursor: not-allowed; }
.profile-form .field-locked:focus { border-color: #cbd5e1; box-shadow: none; }
.profile-alert { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; color: #1e40af; font-size: 12px; line-height: 1.45; }
.profile-alert p { margin: 0; }
.profile-alert-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: #dbeafe; color: #2563eb; font: 800 12px Georgia, serif; }

.modal-body { padding: 32px; }

.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: var(--line);
    color: var(--text);
}

.logout-form { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
    .dashboard-grid, .contract-grid { grid-template-columns: 1fr; }
    .contract-summary { position: static; }
    .side-panel { order: -1; }
    .register-experience { grid-template-columns: 1fr; }
    .register-intro { min-height: 390px; border-right: 0; border-bottom: 1px solid #263241; }
    .register-intro-copy { margin: 48px 0 32px; }
}

@media (max-width: 768px) {
    .topbar { padding: 0 20px; }
    .summary-grid, .form-grid, .wizard-steps, .inline-review, .review-list, .plan-preview { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .form-section-grid { grid-template-columns: 1fr; }
    .form-section-grid > * { grid-column: auto !important; }
    .span-2, .span-8 { grid-column: auto; }
    .register-shell .page { width: min(100% - 24px, 720px); padding: 12px 0; }
    .register-experience { min-height: calc(100vh - 24px); }
    .register-intro { min-height: 340px; padding: 30px; }
    .register-shell .register-panel { padding: 34px 28px; }
    .register-shell .register-section legend { align-items: flex-start; flex-direction: column; gap: 7px; }
    .register-footer { align-items: stretch; flex-direction: column; }
    .register-final-action { align-items: stretch; flex-direction: column; margin-left: 0; }
    .register-final-action p { text-align: left; }
    .payment-layout { grid-template-columns: 1fr; }
    .payment-card-column { width: min(430px, 100%); margin: 0 auto; }
}

@media (max-width: 480px) {
    .page { width: 100%; padding: 20px; }
    .auth-panel, .panel, .modal-body { padding: 24px; }
    .brand-logo { width: 170px; max-width: 48vw; }
    .form-footer, .actions-row, .split-links, .dashboard-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .input-action { flex-direction: column; }
    .button { width: 100%; }
    .metric-card { flex-direction: column; align-items: flex-start; gap: 16px; }
    .register-shell .page { width: 100%; padding: 0; }
    .register-experience { min-height: 100vh; border: 0; border-radius: 0; }
    .register-intro { min-height: 310px; padding: 24px; }
    .register-intro-copy { margin: 38px 0 24px; }
    .register-intro h1 { font-size: 31px; }
    .register-benefits { display: none; }
    .register-shell .register-panel { padding: 32px 20px; }
    .register-heading h1 { font-size: 29px; }
    .register-progress { grid-template-columns: 1fr; }
    .choice-row { grid-template-columns: 1fr; }
    .register-progress small { display: none; }
    .credit-card-preview { border-radius: 16px; padding: 19px; }
    .credit-card-number { font-size: clamp(14px, 4.2vw, 18px); letter-spacing: .035em; }
    .payment-fields { grid-template-columns: 1fr; }
    .payment-field-full { grid-column: auto; }
    .payment-expiry-group { grid-column: auto; }
    .payment-cvv-field { max-width: none; }
    .accepted-card-brands { gap: 7px; }
    .accepted-card-brands span { min-width: 38px; padding-inline: 4px; }
    .accepted-card-brands img { max-width: 48px; height: 16px; }
    .payment-security-note { align-items: flex-start; }
    .payment-submit { padding-inline: 15px; }
}

/* Shared Only Hosting application frame */
.auth-shell,
.dashboard-shell,
.register-shell {
    display: block;
    min-height: 100vh;
    padding: 16px;
    background:
        radial-gradient(circle at 8% 8%, rgba(34, 197, 94, .14), transparent 28%),
        radial-gradient(circle at 96% 92%, rgba(34, 197, 94, .08), transparent 25%),
        #0d1117;
}

.app-frame {
    width: min(1400px, 100%);
    min-height: calc(100vh - 32px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #263241;
    border-radius: 18px;
    background: #0d1117;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42), 0 0 60px rgba(34, 197, 94, .08);
}

.app-window-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border-bottom: 1px solid #263241;
    background: #161b22;
}

.window-dot { width: 11px; height: 11px; border-radius: 50%; }
.window-dot-red { background: #ef4444; }
.window-dot-yellow { background: #facc15; }
.window-dot-green { background: #22c55e; }
.app-window-title { margin-left: 8px; color: #8b949e; font: 12px "Courier New", monospace; }

.topbar {
    position: static;
    height: 76px;
    border-color: #263241;
    background: #0d1117;
    backdrop-filter: none;
}

.brand-code { color: #22c55e; font: 800 21px "Courier New", monospace; letter-spacing: -1px; }
.brand-code span { color: #f3f4f6; }
.app-navigation { display: flex; align-items: center; gap: 22px; }
.app-navigation a { color: #9ca3af; font: 600 13px "Courier New", monospace; }
.app-navigation a:hover { color: #22c55e; }
.app-navigation .button-ghost { color: #9ca3af; font-family: "Courier New", monospace; }
.app-navigation .button-ghost:hover { background: #161b22; color: #22c55e; }

.dashboard-shell .page,
.auth-shell .page {
    width: min(1200px, calc(100% - 48px));
    padding: 42px 0 64px;
}

.dashboard-shell .dashboard-header h1,
.dashboard-shell .dashboard-header h2 { color: #f9fafb; }
.dashboard-shell .dashboard-header p { color: #9ca3af; }
.dashboard-shell .eyebrow,
.auth-shell .eyebrow { color: #16a34a; }
.dashboard-shell .wizard-steps { margin-bottom: 22px; }
.dashboard-shell .wizard-step > a,
.dashboard-shell .wizard-step > span { border-color: #263241; background: #111827; color: #9ca3af; }
.dashboard-shell .wizard-step.is-active > a,
.dashboard-shell .wizard-step.is-active > span { border-color: #22c55e; color: #4ade80; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.dashboard-shell .wizard-step.is-complete > a { color: #4ade80; }
.dashboard-shell .wizard-step .step-index { background: #263241; }

.dashboard-shell .panel,
.dashboard-shell .metric-card,
.auth-shell .auth-panel {
    border-color: #dbe3ec;
    background: #f8fafc;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

.dashboard-shell .panel input,
.dashboard-shell .panel select,
.dashboard-shell .modal input,
.dashboard-shell .modal select,
.auth-shell .auth-panel input,
.auth-shell .auth-panel select {
    background: #fff;
}

.dashboard-shell .contract-summary { border-top: 4px solid #22c55e; }
.dashboard-shell .payment-security-note { background: #f0fdf4; }
.dashboard-shell .button-primary,
.auth-shell .button-primary { background: #16a34a; box-shadow: 0 4px 14px rgba(22, 163, 74, .22); }
.dashboard-shell .button-primary:hover,
.auth-shell .button-primary:hover { background: #15803d; }

/* Registration keeps a dark presentation area and a light form area. */
.register-shell .topbar { display: none; }
.register-shell .app-frame { width: min(1320px, 100%); }
.register-shell .page { width: 100%; padding: 0; }
.register-shell .register-experience { min-height: calc(100vh - 80px); border: 0; border-radius: 0; }
.register-shell .register-panel { background: #f8fafc; }
.register-shell .register-heading h1 { color: #0f172a; }
.register-shell .register-heading p { color: #64748b; }
.register-shell .register-section { border-color: #dbe3ec; }
.register-shell .register-section:last-of-type { border-color: #dbe3ec; }
.register-shell .register-section legend { color: #0f172a; }
.register-shell .register-section legend em { background: #e2e8f0; color: #64748b; }
.register-shell .section-note { color: #64748b; }
.register-shell label,
.register-shell .field,
.register-shell label span,
.register-shell .field > label { color: #334155; }
.register-shell input,
.register-shell select { border-color: #cbd5e1; background: #fff; color: #0f172a; }
.register-shell input::placeholder { color: #94a3b8; }
.register-shell input:hover,
.register-shell select:hover { border-color: #94a3b8; }
.register-shell input:disabled { background: #eef2f7; color: #64748b; }
.register-shell .cep-button { border-color: #cbd5e1; background: #fff; color: #334155; }
.register-footer p { color: #64748b; }

@media (max-width: 768px) {
    .auth-shell, .dashboard-shell, .register-shell { padding: 8px; }
    .app-frame { min-height: calc(100vh - 16px); border-radius: 14px; }
    .topbar { height: auto; min-height: 72px; padding: 14px 20px; }
    .app-navigation { gap: 12px; }
    .app-navigation a { display: none; }
    .dashboard-shell .page, .auth-shell .page { width: calc(100% - 32px); padding: 30px 0 46px; }
}

@media (max-width: 480px) {
    .auth-shell, .dashboard-shell, .register-shell { padding: 0; }
    .app-frame { min-height: 100vh; border: 0; border-radius: 0; }
    .app-window-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-code { font-size: 18px; }
    .dashboard-shell .page, .auth-shell .page { width: 100%; padding: 24px 18px 40px; }
    .register-shell .register-experience { min-height: calc(100vh - 46px); }
}
