/* =============================================================================
   PANTALLA · FLUJO DE INSCRIPCIÓN  (/inscripcion, /preinscripciones/nueva,
   recibo mensual manual)
   -----------------------------------------------------------------------------
   Este fichero tenía su propio sistema de tokens con nombres genéricos
   (--bg, --text, --border, --brand, --font) declarados en :root. Al cargarse
   junto al resto se pisaban con los de otras hojas y, sobre todo, definía
   `body { font-family: var(--font) }` con una pila de fuentes del sistema:
   cualquier pantalla que cargara este CSS dejaba de usar Outfit.

   Ahora los nombres antiguos se conservan como alias del sistema de diseño
   para no reescribir las 1.700 líneas de reglas de golpe, pero ya no aportan
   valores propios: todo sale de css/tokens.css.
   ========================================================================== */

:root {
    --bg: var(--sb-canvas);
    --card: var(--sb-surface);
    --muted: var(--sb-text-muted);
    --text: var(--sb-text);
    --border: var(--sb-border);
    --border2: var(--sb-border-subtle);
    --shadow: var(--sb-shadow-lg);
    --shadow2: var(--sb-shadow-md);
    --brand: var(--sb-brand);
    --brand2: var(--sb-brand-accent);
    --brandSoft: var(--sb-brand-surface);
    --success: var(--sb-success);
    --successSoft: var(--sb-success-surface);
    --chip: var(--sb-surface-muted);
    --btn: var(--sb-neutral-850);
    --btnText: var(--sb-text-on-inverse);
    --radius: var(--sb-radius-xl);
    --radius2: var(--sb-radius-lg);
    --radius3: var(--sb-radius-lg);
    --font: var(--sb-font);
}

/* Layout */
.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    gap: 18px;
    background: var(--sb-neutral-0);
    border-bottom: 1px solid var(--border2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(212, 59, 26, .18);
}

.brand-badge svg {
    width: 22px;
    height: 22px;
    fill: var(--sb-neutral-0);
}

.brand-title {
    line-height: 1.05;
}

.brand-title .h1 {
    font-weight: 600;
    letter-spacing: .2px;
    font-size: 18px;
    margin: 0;
}

.brand-title .sub {
    margin: 4px 0 0 0;
    font-size: 11px;
    letter-spacing: .9px;
    color: var(--muted);
    font-weight: 700;
}

/* Stepper */
.stepper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-right: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    user-select: none;
}

.step .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #d9dee9;
    color: #8c97aa;
    background: var(--sb-neutral-0);
    font-weight: 900;
    font-size: 13px;
}

.step.active {
    color: var(--brand);
}

.step.active .dot {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--sb-neutral-0);
    box-shadow: 0 10px 20px rgba(212, 59, 26, .18);
}

.connector {
    width: 70px;
    height: 2px;
    background: #e6e9f2;
    border-radius: 999px;
}

/* Content */
.content {

    display: flex;
    gap: 26px;
    align-items: flex-start;
}

/* Left panel */
.left {
    width: 35%;
    flex: 0 0 35%;
    position: sticky;
    top: 110px;
}

/* Right panel */
.right {
    flex: 1;
    /* Takes the remaining space (approx 65% minus gap) */
    min-width: 0;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: visible;
    /* Cambiado para permitir dropdown */
    height: 100%;
    /* Ensure it fills height if needed */
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 22px 22px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    border-bottom: 1px solid var(--border2);
}

.panel-header svg {
    width: 22px;
    height: 22px;
    fill: var(--brand);
}

.panel-body {
    padding: 16px 22px 22px;
    overflow: visible;
    /* Asegurar que el dropdown sea visible */
}

.field-group {
    margin-bottom: 14px;
}

.label {
    font-size: 11px;
    letter-spacing: .8px;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: var(--sb-neutral-0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    color: #2a3655;
    font-weight: 600;
}

.input .placeholder {
    color: #2b3651;
    font-weight: 500;
}

.row {
    display: flex;
    gap: 12px;
}

.row .field-group {
    flex: 1;
}

.btn {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 0;
    background: var(--btn);
    color: var(--btnText);
    font-weight: 600;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(31, 42, 68, .16);
    margin-top: 6px;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: var(--sb-neutral-0);
}

.divider {
    height: 1px;
    background: var(--border2);
    margin: 18px 0;
}

.selected-head {
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    margin-bottom: 8px;
}

.selected-head .title {
    font-size: 11px;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 900;
}

.badge-count {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--sb-neutral-0);
    font-size: 12px;
    font-weight: 700;
}

.selected-list {
    padding: 0 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sel-card {
    border: 1px solid var(--border2);
    background: var(--sb-neutral-25);
    border-radius: 16px;
    padding: 14px 14px;
    box-shadow: 0 6px 16px rgba(18, 26, 44, .04);
}

.sel-card .name {
    font-weight: 600;
    margin: 0 0 6px;
}

/* Typography refinements */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.section-title {
    color: var(--text);
    font-weight: 600;
    /* Reduced from bold/700 */
}

/* Specific component overrides */
.section-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
    /* Lighter */
}

.table th {
    font-weight: 500;
    /* Lighter header */
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border2);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border2);
    color: var(--text);
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Card layout consistency */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow2);
    margin-bottom: 1.5rem;
    /* Ensure spacing */
    width: 100%;
    /* Force full width */
    /* Ensure the card stretches if in a flex consainer */
    flex: 1;
    border: 1px solid var(--border2);
    display: flex;
    /* Make card a flex container too */
    flex-direction: column;
    /* Stack content vertically */
}

/* Search input specific */
.search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--sb-neutral-0);
    /* Ensure white background */
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    padding: 0 14px;
    height: 48px;
    transition: all 0.2s;
}

.search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(212, 59, 26, 0.1);
}

.search i {
    width: 20px;
    height: 20px;
    color: var(--muted);
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 1.1rem; */
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #2a3655;
}

.search input::placeholder {
    color: var(--sb-neutral-400);
}

.student-pill {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid #ffd7cc;
    background: var(--brandSoft);
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.student-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--brand);
    color: var(--sb-neutral-0);
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(212, 59, 26, .22);
    flex: 0 0 auto;
}

.student-info {
    min-width: 0;
}

.student-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--successSoft);
    color: var(--success);
    border: 1px solid rgba(28, 154, 90, .18);
    letter-spacing: .5px;
}

.student-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6f7a90;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edit {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #ffd7cc;
    background: var(--sb-neutral-0);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(18, 26, 44, .04);
}

.edit svg {
    width: 18px;
    height: 18px;
    fill: #8a94aa;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border2);
}

.table thead th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 900;
    padding: 14px 16px;
    background: var(--sb-neutral-25);
    border-bottom: 1px solid var(--border2);
}

.table tbody td {
    padding: 16px 16px;
    border-bottom: 1px solid var(--border2);
    font-weight: 500;
    color: #243152;
    vertical-align: middle;
    background: var(--sb-neutral-0);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--border2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .4px;
    color: #3a4664;
}

/* Responsive */
@media (max-width: 1040px) {
    .content {
        flex-direction: column;
    }

    .left {
        width: 100%;
        flex: 0 0 auto;
        position: relative;
        top: auto;
    }
}

@media (max-width: 720px) {
    .topbar {
        height: auto;
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .brand {
        min-width: unset;
    }

    .stepper {
        justify-content: flex-start;
        padding-right: 0;
        overflow: auto;
        width: 100%;
    }

    .connector {
        width: 44px;
    }

    .section-title {
        font-size: 22px;
    }}

/* ... previous styles ... */

/* Button to remove item from cart */
.btn-remove-item {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--sb-neutral-300);
    /* Light gray by default */
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--sb-z-raised);
}

.btn-remove-item:hover {
    color: var(--sb-red-500);
    /* Red on hover */
    transform: scale(1.1);
}

/* Meta details styles (Style, Level) */
.meta-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.meta-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sb-neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--sb-neutral-600);
    font-weight: 500;
}

.meta-schedule i {
    color: var(--brand);
    font-size: 0.9rem;
}

/* Next Step Button */
.btn-next-step {
    background: linear-gradient(135deg, var(--brand) 0%, #a5250d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    /* Rounded corners as requested */
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(212, 59, 26, 0.3);
    transition: all 0.3s ease;
}

.btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 59, 26, 0.4);
}

.btn-next-step:active {
    transform: translateY(0);
}

/* Update sel-card padding to accommodate top-right button properly */
.sel-card {
    position: relative;
    padding-right: 40px !important;
    /* Make room for the close button */
}

/* Badge Status Styles for Enrollments */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-status i {
    font-size: 0.9rem;
}

.badge-active {
    background: #e7f7ee;
    color: #1c9a5a;
    border: 1px solid rgba(28, 154, 90, 0.18);
}

.badge-inactive {
    background: var(--sb-red-100);
    color: var(--sb-red-600);
    border: 1px solid rgba(220, 38, 38, 0.18);
}

/* Skeleton Loading */
.skeleton-shimmer {
    background: #f0f2f5;
    background-image: linear-gradient(90deg, #f0f2f5 0px, var(--sb-neutral-50) 40px, #f0f2f5 80px);
    background-size: 600px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton-panel {
    border-color: var(--sb-neutral-100) !important;
    background: var(--sb-neutral-0) !important;
}

.skeleton-content {
    padding: 26px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.action-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px !important;
}

.btn-remove-enroll,
.btn-activate-enroll {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-remove-enroll {
    background: var(--sb-red-100);
    color: var(--sb-red-600);
}

.btn-remove-enroll:hover {
    background: var(--sb-red-200);
    transform: scale(1.05);
}

.btn-activate-enroll {
    background: #e7f7ee;
    color: #1c9a5a;
}

.btn-activate-enroll:hover {
    background: var(--sb-green-100);
    transform: scale(1.05);
}

.fee-info-content .title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--sb-neutral-800);
    margin-bottom: 2px;
}

.fee-info-content .desc {
    display: block;
    font-size: 12px;
    color: var(--sb-neutral-500);
    font-weight: 500;
}

.summary-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--sb-neutral-100);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.student-name {
    font-size: 0.95rem;
    color: var(--sb-neutral-500);
    font-weight: 600;
}

.cash-status-compact.is-open {
    border-left: 4px solid var(--sb-green-500);
}

.cash-status-compact.is-closed {
    border-left: 4px solid var(--sb-red-500);
}

.course-name {
    font-weight: 600;
    color: var(--sb-neutral-800);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--sb-neutral-400);
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-neutral-500);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.custom-input {
    width: 100%;
}

.custom-input {
    padding: 12px 16px;
    border: 1px solid var(--sb-neutral-200);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.custom-input:focus {
    outline: none;
    border-color: var(--sb-brand);
    box-shadow: 0 0 0 3px rgba(212, 59, 26, 0.1);
}

.cash-status-badge.success {
    background: #e7f7ee;
    color: #1c9a5a;
}

.cash-status-badge.danger {
    background: var(--sb-red-100);
    color: var(--sb-red-600);
}

.summary-card {
    background: white;
    border-radius: 20px;
    overflow: visible;
    /* To allow shadow to bleed or decorations */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
    position: relative;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--brand);
    border-radius: 0 0 4px 4px;
}

.student-name {
    font-size: 15px;
    color: var(--sb-neutral-500);
    font-weight: 600;
    display: block;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--sb-neutral-600);
}

/* ============================================
   PREMIUM MODAL STYLES
   ============================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.premium-modal {
    background: white;
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.modal-header-premium {
    padding: 24px 32px;
    background: linear-gradient(to right, var(--sb-neutral-50), var(--sb-neutral-0));
    border-bottom: 1px solid var(--sb-neutral-100);
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header-premium .icon-wrap {
    width: 48px;
    height: 48px;
    background: #fef3f2;
    color: var(--sb-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-header-premium h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sb-neutral-900);
}

.modal-body-premium {
    padding: 32px;
}

.modal-footer-premium {
    padding: 20px 32px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: var(--sb-neutral-500);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.2s;
}

.btn-cancel:hover {
    color: var(--sb-neutral-800);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fee-info-content .title {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--sb-neutral-800);
    margin-bottom: 2px;
}

.fee-info-content .desc {
    display: block;
    font-size: 13px;
    color: var(--sb-neutral-500);
    font-weight: 500;
}

.cash-status-compact.is-open {
    border-left: 4px solid var(--sb-green-500);
}

.cash-status-compact.is-closed {
    border-left: 4px solid var(--sb-red-500);
    background: var(--sb-red-50);
}

.cash-status-compact.is-open .cash-icon-circle {
    background: var(--sb-green-50);
    color: var(--sb-green-500);
}

.cash-status-compact.is-closed .cash-icon-circle {
    background: var(--sb-neutral-0);
    color: var(--sb-red-500);
}

/* ============================================
   NEW PAYMENT STEP 2 (REBOOT)
   ============================================ */

.enroll-payment-view {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    padding: 20px 0;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.enroll-payment-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Base Card Style */
.enroll-card {
    background: var(--sb-neutral-0);
    border-radius: 16px;
    border: 1px solid var(--sb-neutral-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.enroll-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--sb-neutral-100);
    background: var(--sb-neutral-25);
}

.enroll-card-header .header-icon {
    width: 40px;
    height: 40px;
    background: var(--sb-neutral-0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.enroll-card-header .header-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-neutral-800);
}

.enroll-card-header .header-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--sb-neutral-500);
}

.enroll-card-header .header-badge {
    margin-left: auto;
    background: var(--sb-neutral-100);
    color: var(--sb-neutral-600);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Enrollment Table */
.enroll-table-wrap {
    overflow-x: auto;
}

.enroll-table {
    width: 100%;
    border-collapse: collapse;
}

.enroll-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--sb-neutral-50);
    border-bottom: 1px solid var(--sb-neutral-100);
}

.enroll-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--sb-neutral-100);
    vertical-align: middle;
}

.enroll-table tr:last-child td {
    border-bottom: none;
}

.item-primary {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-neutral-800);
}

.item-secondary {
    font-size: 12px;
    color: var(--sb-neutral-400);
    font-weight: 500;
}

.item-schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sb-neutral-600);
    font-weight: 600;
}

.item-schedule i {
    color: var(--brand);
    font-size: 0.85rem;
}

.pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.pill-soft {
    background: var(--sb-neutral-100);
    color: var(--sb-neutral-600);
}

/* Mini Options Grid */
.enroll-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.enroll-card-mini {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--sb-neutral-200);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.enroll-card-mini.active {
    border-color: var(--sb-red-200);
    background: #fffcfb;
}

.enroll-card-mini.status-success {
    border-left: 4px solid var(--sb-green-500);
}

.enroll-card-mini.status-danger {
    border-left: 4px solid var(--sb-red-500);
}

.mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--sb-neutral-50);
    color: var(--sb-neutral-500);
    border: 1px solid var(--sb-neutral-100);
}

.active .mini-icon {
    background: #fff5f3;
    color: var(--sb-brand);
    border-color: var(--sb-red-100);
}

.status-success .mini-icon {
    background: #f0fdf4;
    color: var(--sb-green-500);
}

.status-danger .mini-icon {
    background: var(--sb-red-50);
    color: var(--sb-red-500);
}

.mini-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-neutral-800);
}

.mini-content p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--sb-neutral-400);
    font-weight: 500;
}

.mini-action {
    margin-left: auto;
}

.btn-mini-action {
    background: var(--sb-neutral-900);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* Payment Body */
.payment-setup-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.field-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estos campos ya llevan su etiqueta encima, así que el texto de ayuda del
   control no debe subir además como segunda etiqueta flotante (mismo criterio
   que .sb-field-control en el sistema de diseño). El placeholder del navegador
   sigue apareciendo al enfocar. */
.field-wrap .sb-float {
    display: none;
}

.field-wrap label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.enroll-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enroll-select,
.enroll-input {
    width: 100% !important;
}

/* Modern Receipt */
.modern-receipt {
    background: var(--sb-neutral-0);
    border-radius: 2px 2px 24px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    border-top: 8px solid var(--brand);
}

.receipt-header {
    text-align: center;
    margin-bottom: 24px;
}

.receipt-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -1px;
}

.receipt-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--sb-neutral-400);
    letter-spacing: 2px;
    margin-top: 4px;
}

.receipt-line {
    height: 1px;
    background: repeating-linear-gradient(to right, var(--sb-neutral-200) 0, var(--sb-neutral-200) 4px, transparent 4px, transparent 8px);
    margin-top: 20px;
}

.receipt-student {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--sb-neutral-50);
    border-radius: 12px;
}

.receipt-student .label {
    font-size: 10px;
    font-weight: 800;
    color: var(--sb-neutral-400);
    margin-bottom: 4px;
}

.receipt-student .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--sb-neutral-800);
}

.receipt-student .date {
    font-size: 11px;
    color: var(--sb-neutral-500);
    margin-top: 4px;
}

.receipt-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.receipt-item .name {
    color: var(--sb-neutral-600);
    font-weight: 600;
}

.receipt-item .price {
    font-weight: 700;
    color: var(--sb-neutral-800);
}

.receipt-item.discount,
.receipt-item.is-discount,
.receipt-item-row.is-discount {
    color: var(--success) !important;
}

.receipt-item.discount .name,
.receipt-item.discount .price,
.receipt-item.is-discount .name,
.receipt-item.is-discount .price,
.receipt-item-row.is-discount .item-name span,
.receipt-item-row.is-discount .item-price {
    color: var(--success) !important;
}

.receipt-total-box {
    margin-top: auto;
    background: var(--sb-neutral-800);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.receipt-total-box .total-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 8px;
    color: white !important;
}

.receipt-total-box .total-value {
    font-size: 32px;
    font-weight: 900;
    color: #4ade80;
    font-family: var(--sb-font);
}

.receipt-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-confirm-final {
    width: 100%;
    background: var(--brand);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(212, 59, 26, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-confirm-final:hover:not(:disabled) {
    background: var(--sb-red-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(212, 59, 26, 0.4);
}

.btn-back-link {
    background: transparent;
    border: none;
    color: var(--sb-neutral-500);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.btn-back-link:hover {
    color: var(--sb-neutral-800);
}

.receipt-decoration {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}

.receipt-decoration .circle {
    width: 20px;
    height: 20px;
    background: #f6f7fb;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Utilities */
.btn-action-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-soft {
    background: var(--sb-red-50);
    color: var(--sb-red-500);
}

.btn-danger-soft:hover {
    background: var(--sb-red-100);
    transform: scale(1.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--sb-green-500);
    border-radius: 50%;
    position: relative;
    margin: 0 10px;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .enroll-payment-view {
        grid-template-columns: 1fr;
    }

    .enroll-payment-sidebar {
        order: 2;
    }
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }

    .enroll-options-grid {
        grid-template-columns: 1fr;
    }

    .payment-setup-row {
        flex-direction: column;
    }}

/* ============================================
   SUCCESS STEP (Step 3) - Premium Receipt View
   ============================================ */
.enroll-success-view {
    max-width: 650px;
    margin: 40px auto;
    width: 100%;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.success-header .header-main {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: var(--sb-z-base);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.info-group .label {
    font-size: 10px;
    font-weight: 800;
    color: var(--sb-neutral-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-group .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-neutral-800);
}

.info-group .value.highlight {
    color: var(--sb-green-500);
}

.success-total-box .total-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-neutral-400);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.success-total-box .total-value {
    font-size: 40px;
    font-weight: 900;
    color: white;
    font-family: var(--sb-font);
    letter-spacing: -1px;
}