:root {
    --hub-purple: #6B21A8;
    --hub-purple-dark: #4C1D95;
    --hub-purple-darker: #3B0764;
    --hub-purple-light: #9333EA;
    --hub-purple-soft: #F5F3FF;
    --hub-orange: #F97316;
    --hub-orange-dark: #EA580C;
    --hub-orange-light: #FB923C;
    --hub-orange-soft: #FFF7ED;
    --hub-white: #FFFFFF;
    --hub-surface: #FAFAFA;
    --hub-text: #1F2937;
    --hub-text-muted: #6B7280;
    --hub-border: #E5E7EB;
    --hub-shadow: 0 10px 30px rgba(107, 33, 168, 0.08);
    --hub-radius: 14px;
    --hub-font: 'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root.auto-theme {
        --hub-purple-soft: #2F1C42;
        --hub-orange-soft: #3D2614;
        --hub-white: #261736;
        --hub-surface: #1A1028;
        --hub-text: #F9FAFB;
        --hub-text-muted: #C4B5FD;
        --hub-border: rgba(196, 181, 253, 0.18);
        --hub-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.hub-public {
    margin: 0;
    min-height: 100vh;
    font-family: var(--hub-font);
    background: linear-gradient(180deg, var(--hub-purple-soft) 0%, var(--hub-surface) 220px);
    color: var(--hub-text);
    -webkit-font-smoothing: antialiased;
}

.hub-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.hub-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.hub-brand img {
    height: 2.25rem;
}

.hub-logo-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root.auto-theme .hub-logo-light {
        display: none;
    }

    :root.auto-theme .hub-logo-dark {
        display: block;
    }
}

.hub-brand small {
    display: block;
    color: var(--hub-text-muted);
    font-size: 0.75rem;
}

.hub-brand strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hub-purple);
}

.hub-card {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow);
    padding: 28px;
}

.hub-card + .hub-card {
    margin-top: 20px;
}

.hub-hero {
    background: linear-gradient(135deg, var(--hub-purple) 0%, var(--hub-purple-dark) 55%, #5B21B6 100%);
    color: #fff;
    border: 0;
    position: relative;
    overflow: hidden;
}

.hub-hero::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35) 0%, transparent 70%);
}

.hub-hero > * {
    position: relative;
    z-index: 1;
}

.hub-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #FED7AA;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0 0 12px;
    line-height: 1.2;
    color: var(--hub-purple-dark);
}

.hub-hero h1,
.hub-hero h2,
.hub-hero p {
    color: #fff;
}

h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h2 {
    font-size: 1.15rem;
    margin-top: 28px;
}

p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.hub-muted {
    color: var(--hub-text-muted);
}

.hub-link,
a.hub-back {
    color: var(--hub-purple);
    font-weight: 700;
    text-decoration: none;
}

a.hub-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.hub-link:hover,
a.hub-back:hover {
    color: var(--hub-orange-dark);
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.hub-table th,
.hub-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--hub-border);
}

.hub-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hub-text-muted);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hub-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hub-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hub-field {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

/* `.hub-field { display: grid }` sobrescreve o UA de [hidden]; forçar ocultação. */
.hub-field[hidden],
.hub-finance[hidden],
.hub-finance > [hidden],
[data-finance-empty][hidden],
[data-finance-body][hidden],
[data-finance-monthly-wrap][hidden],
[data-finance-vacation-wrap][hidden] {
    display: none !important;
}

.hub-field label,
label.hub-option {
    font-weight: 600;
    font-size: 0.92rem;
}

.hub-field label span {
    font-weight: 400;
}

.hub-field input,
.hub-field select,
.hub-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: var(--hub-white);
    color: var(--hub-text);
    font: inherit;
}

.hub-field input[type="radio"],
.hub-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.hub-field input:focus,
.hub-field select:focus,
.hub-field textarea:focus {
    outline: 2px solid rgba(107, 33, 168, 0.25);
    border-color: var(--hub-purple-light);
}

.hub-option {
    display: block;
    border: 1px solid var(--hub-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    background: var(--hub-surface);
    cursor: pointer;
}

.hub-option:has(input:checked) {
    border-color: var(--hub-orange);
    background: var(--hub-orange-soft);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.hub-option input {
    margin-right: 8px;
}

.hub-extra-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--hub-border);
}

.hub-extra-terms {
    margin-top: 16px;
    padding: 14px;
    border: 2px solid var(--hub-orange);
    border-radius: 12px;
    background: var(--hub-orange-soft);
}

.hub-btn-secondary {
    background: transparent;
    color: var(--hub-purple);
    border: 1px solid var(--hub-purple);
    margin-top: 8px;
    margin-right: 8px;
}

.hub-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.hub-modal-backdrop.open {
    display: flex;
}

.hub-modal {
    width: min(640px, 100%);
    max-height: 80vh;
    background: var(--hub-white);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-modal-body {
    overflow-y: auto;
    padding: 20px;
    line-height: 1.6;
}

.hub-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--hub-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hub-option-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hub-orange), var(--hub-orange-dark));
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.hub-btn:hover {
    filter: brightness(1.03);
}

.hub-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--hub-orange-soft);
    color: var(--hub-orange-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.hub-alert {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--hub-orange-soft);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #9A3412;
}

.hub-alert-error,
.hub-error {
    color: #B91C1C;
}

.hub-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hub-border);
}

.hub-day {
    border: 1px solid var(--hub-border);
    border-radius: 12px;
    padding: 16px;
    background: var(--hub-surface);
}

.hub-period {
    border-top: 1px solid var(--hub-border);
    padding: 10px 0;
}

.hub-empty {
    padding: 16px;
    border-radius: 10px;
    background: var(--hub-surface);
    color: var(--hub-text-muted);
}

.hub-help {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--hub-text-muted);
}

.hub-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-weight: 600;
}

.hub-check input {
    margin-top: 3px;
}

.hub-check-highlight {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--hub-orange-soft);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.hub-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 12px;
}

.hub-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--hub-border);
    border-radius: 999px;
    background: var(--hub-surface);
    cursor: pointer;
    font-weight: 600;
}

.hub-chip:has(input:checked) {
    border-color: var(--hub-orange);
    background: var(--hub-orange-soft);
}

.hub-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 16px;
    margin: 8px 0 12px;
}

.hub-repeater-row {
    border: 1px dashed var(--hub-border);
    border-radius: 12px;
    padding: 12px 14px 16px;
    margin-top: 12px;
    background: var(--hub-surface);
}

.hub-btn-secondary {
    background: transparent;
    color: var(--hub-purple);
    border: 1px solid var(--hub-purple);
    box-shadow: none;
    margin-top: 12px;
}

.hub-terms {
    max-height: 220px;
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: var(--hub-surface);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 12px 0;
}

.hub-photo-preview {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--hub-border);
    display: block;
    margin: 8px 0 12px;
}

.hub-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--hub-text-muted);
}

@media (max-width: 720px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hub-card {
        padding: 20px;
    }
}

.hub-extra-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--hub-border);
}

.hub-extra-terms {
    margin-top: 16px;
    padding: 14px;
    border: 2px solid var(--hub-orange);
    border-radius: 12px;
    background: var(--hub-orange-soft);
}

.hub-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.hub-modal-backdrop.open {
    display: flex;
}

.hub-modal {
    width: min(640px, 100%);
    max-height: 80vh;
    background: var(--hub-white);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-modal-body {
    overflow-y: auto;
    padding: 20px;
    line-height: 1.6;
}

.hub-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--hub-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hub-option-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Formulário de intenção — estilo cotação */
.hub-quote {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.hub-quote__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hub-quote__section {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow);
    padding: 24px 28px;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hub-quote__section.is-active {
    opacity: 1;
    border-color: color-mix(in srgb, var(--hub-purple) 35%, var(--hub-border));
}

.hub-quote__section.is-completed {
    opacity: 0.55;
}

.hub-quote__section.is-upcoming {
    opacity: 0.38;
}

.hub-quote__section.is-completed .hub-quote__section-actions,
.hub-quote__section.is-upcoming .hub-quote__section-actions {
    pointer-events: none;
}

.hub-quote__section.is-active .hub-quote__section-actions {
    pointer-events: auto;
}

.hub-quote__step {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-orange-dark);
}

.hub-quote__section-head h2 {
    margin-top: 0;
}

.hub-quote__placeholder {
    margin: 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--hub-purple-soft);
    color: var(--hub-text-muted);
    border: 1px dashed color-mix(in srgb, var(--hub-purple) 25%, var(--hub-border));
}

.hub-quote__section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hub-btn--ghost {
    background: transparent;
    color: var(--hub-purple);
    border: 1px solid var(--hub-border);
    box-shadow: none;
}

.hub-btn--ghost:hover {
    border-color: var(--hub-purple);
    background: var(--hub-purple-soft);
}

.hub-quote__submit-wrap {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow);
    padding: 24px 28px;
}

.hub-quote__submit-wrap .hub-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hub-quote__sidebar {
    position: sticky;
    top: 16px;
}

.hub-quote__sidebar-card {
    background: var(--hub-white);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow);
    padding: 20px;
}

.hub-quote__sidebar-card h2,
.hub-sticky-panel__desktop-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.hub-quote__sidebar-intro {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.hub-quote__summary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-quote__summary-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: var(--hub-surface);
    padding: 10px 12px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-quote__summary-btn:disabled {
    cursor: default;
    opacity: 0.55;
}

.hub-quote__summary-item.is-active .hub-quote__summary-btn {
    opacity: 1;
    border-color: var(--hub-purple);
    background: var(--hub-purple-soft);
}

.hub-quote__summary-item.is-done .hub-quote__summary-btn {
    opacity: 0.85;
}

.hub-quote__summary-index {
    flex: 0 0 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--hub-purple);
    color: #fff;
}

.hub-quote__summary-item.is-pending .hub-quote__summary-index {
    background: var(--hub-text-muted);
}

.hub-quote__summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hub-quote__summary-text strong {
    font-size: 0.9rem;
    color: var(--hub-purple-dark);
}

.hub-quote__summary-text small {
    color: var(--hub-text-muted);
    font-size: 0.75rem;
}

.hub-quote__section {
    scroll-margin-top: 20px;
}

/* Desktop: painel lateral sempre aberto; summary da sanfona some.
   O UA de <details> usa display:none !important nos filhos sem [open]. */
.hub-sticky-panel__summary {
    display: none;
}

.hub-sticky-panel__details > .hub-sticky-panel__body {
    display: block !important;
}

@media (max-width: 860px) {
    .hub-quote {
        grid-template-columns: 1fr;
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .hub-quote__section {
        scroll-margin-top: 12px;
        scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .hub-quote__sidebar.hub-sticky-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        order: unset;
        top: auto;
        padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    .hub-quote__sidebar.hub-sticky-panel .hub-quote__sidebar-card {
        pointer-events: auto;
        padding: 0;
        border-radius: 16px 16px 12px 12px;
        box-shadow: 0 -10px 36px rgba(59, 7, 100, 0.16);
        max-height: min(72vh, 560px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .hub-sticky-panel__details {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: min(72vh, 560px);
    }

    .hub-sticky-panel__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        list-style: none;
        cursor: pointer;
        padding: 14px 16px;
        font: inherit;
        color: var(--hub-text);
        user-select: none;
    }

    .hub-sticky-panel__summary::-webkit-details-marker {
        display: none;
    }

    .hub-sticky-panel__summary::after {
        content: '';
        flex: 0 0 10px;
        width: 10px;
        height: 10px;
        margin-left: 4px;
        border-right: 2px solid var(--hub-purple);
        border-bottom: 2px solid var(--hub-purple);
        /* Fechado no rodapé: seta para cima (expande). */
        transform: rotate(-135deg);
        transition: transform 0.2s ease;
    }

    .hub-sticky-panel__details[open] > .hub-sticky-panel__summary::after {
        /* Aberto: seta para baixo (recolhe). */
        transform: rotate(45deg);
        margin-top: 0;
    }

    .hub-sticky-panel__summary-title {
        font-weight: 700;
        color: var(--hub-purple-dark);
    }

    .hub-sticky-panel__summary-meta {
        margin-left: auto;
        font-size: 0.8rem;
        color: var(--hub-text-muted);
        text-align: right;
    }

    .hub-sticky-panel__desktop-title {
        display: none;
    }

    .hub-sticky-panel__body {
        padding: 0 16px 16px;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .hub-sticky-panel__details:not([open]) > .hub-sticky-panel__body {
        display: none !important;
    }

    .hub-sticky-panel__details[open] > .hub-sticky-panel__body {
        display: block !important;
        border-top: 1px solid var(--hub-border);
        padding-top: 12px;
    }
}

a.hub-quote__summary-btn {
    text-decoration: none;
    color: inherit;
}

.hub-payment-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.hub-payment-totals > div {
    padding: 14px 16px;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: var(--hub-surface);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hub-payment-totals strong {
    font-size: 1.15rem;
    color: var(--hub-purple-dark);
}

.hub-fieldset {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}

.hub-fieldset legend {
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
}

.hub-choice-hint {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.4;
}

.hub-payment-branch {
    margin-top: 8px;
    margin-bottom: 20px;
    padding-top: 8px;
    border-top: 1px dashed var(--hub-border);
}

.hub-payment-branch h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.hub-note {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--hub-orange-soft);
    color: var(--hub-text);
    font-size: 0.92rem;
}

.hub-payment-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-payment-summary__monthly {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--hub-purple-soft);
    border: 1px solid color-mix(in srgb, var(--hub-purple) 22%, var(--hub-border));
}

@media (max-width: 640px) {
    .hub-payment-totals {
        grid-template-columns: 1fr;
    }
}

.hub-subsection {
    margin: 28px 0 12px;
    font-size: 1.05rem;
    color: var(--hub-purple-dark);
}

.hub-terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 20px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.hub-terms-item {
    padding: 14px 16px;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    background: var(--hub-surface);
}

.hub-terms-item h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.hub-terms-item p {
    margin: 0;
    color: var(--hub-text-muted);
    font-size: 0.9rem;
}

.hub-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 20px;
    font-weight: 600;
}

.hub-check input {
    margin-top: 3px;
}

.hub-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.hub-price--struck {
    color: #B91C1C;
    text-decoration: line-through;
    margin-right: 0.4rem;
}

.hub-price--deal {
    color: #15803D;
    font-weight: 700;
}

.hub-student-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-student-card {
    border: 1px solid var(--hub-border);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--hub-surface);
}

.hub-student-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.hub-student-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--hub-purple);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.hub-student-card__pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 0;
}

.hub-student-card__pricing dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hub-text-muted);
}

.hub-student-card__pricing dd {
    margin: 2px 0 0;
}

.hub-student-card__actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hub-student-card__actions form {
    margin: 0;
}

.hub-btn--small {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.hub-sidebar-students {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-sidebar-students li {
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--hub-surface);
}

.hub-sidebar-students__money {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    font-size: 0.82rem;
}

.hub-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--hub-border);
    border-radius: 10px;
    cursor: pointer;
}

.hub-choice:has(input:checked) {
    border-color: var(--hub-purple);
    background: var(--hub-purple-soft);
}

.hub-finance {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-finance dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hub-text-muted);
}

.hub-finance dd {
    margin: 2px 0 0;
}
