/* ═══════════════════════════════════════════════════════════
   NBI Institute Refer & Earn — Main Stylesheet
   Brand: Inter font, #1E3A8A primary, #3B82F6 accent
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --primary: #1E3A8A;
    --primary-dark: #162D6E;
    --primary-light: #2F52C4;
    --accent: #3B82F6;
    --accent-light: #EFF6FF;
    --success: #059669;
    --success-light: #ECFDF5;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --bg: #F1F5F9;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --transition: all .2s ease;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

main.main-content {
    flex: 1;
}

/* ─── Navbar ───────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary);
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo.large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.brand-logo-text {
    color: white;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .5px;
}

.brand-logo.large .brand-logo-text {
    font-size: 18px;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.brand-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: none;
}

@media (min-width: 768px) {
    .brand-tag {
        display: inline;
    }
}

.navbar-links {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--accent-light);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-mobile {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding: 8px 24px 16px;
    background: white;
}

.navbar-mobile.open {
    display: flex;
}

.mobile-link {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, .3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, .4);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #B45309;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-full {
    width: 100%;
}

.btn-primary-sm {
    padding: 7px 14px;
    font-size: 13px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
}

.btn-outline-sm {
    padding: 6px 12px;
    font-size: 13px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.btn-outline-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success-sm {
    padding: 5px 10px;
    font-size: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-danger-sm {
    padding: 5px 10px;
    font-size: 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.card-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header-row .card-title {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 20px;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: white;
    transition: var(--transition);
    width: 100%;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.form-input.input-error {
    border-color: var(--danger);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.input-with-prefix {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.input-with-prefix:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.input-prefix,
.input-suffix {
    padding: 10px 14px;
    background: var(--bg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.input-with-prefix .form-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.input-with-suffix {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.inline-form .input-with-suffix {
    flex: 1;
}

.inline-form .form-input {
    flex: 1;
}

/* ─── Flash Alerts ─────────────────────────────────────── */
.flash-container {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border-left: 3px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: #991B1B;
    border-left: 3px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
    border-left: 3px solid var(--warning);
}

.alert-info {
    background: var(--accent-light);
    color: #1E40AF;
    border-left: 3px solid var(--accent);
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: .5;
}

.alert-close:hover {
    opacity: 1;
}

.alert-inline {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-warning.alert-inline {
    background: var(--warning-light);
    color: #92400E;
}

/* ─── Badges & Tags ─────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.badge-primary {
    background: var(--accent-light);
    color: var(--primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-lg {
    font-size: 13px;
    padding: 5px 14px;
}

/* ─── Auth Pages ─────────────────────────────────────────── */
.auth-page {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 60px);
    padding: 40px 24px;
}

.auth-container.wider .auth-card {
    max-width: 600px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ─── Student Page ─────────────────────────────────────── */
.student-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 24px;
    text-align: center;
    color: white;
}

.student-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.student-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 16px 0 8px;
}

.student-hero p {
    font-size: 16px;
    opacity: .85;
}

.student-form-wrap {
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.student-card {
    max-width: 600px;
    width: 100%;
}

.referral-badge {
    margin-bottom: 16px;
}

/* ─── Dashboard Layout ─────────────────────────────────── */
.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.commission-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
}

.badge-label {
    display: block;
    font-size: 11px;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ─── Stats Grid ────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-blue {
    background: #EFF6FF;
}

.stat-green {
    background: #ECFDF5;
}

.stat-purple {
    background: #F5F3FF;
}

.stat-orange {
    background: #FFF7ED;
}

.stat-indigo {
    background: #EEF2FF;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

/* ─── Dashboard Columns ─────────────────────────────────── */
.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

/* ─── Referral Card ─────────────────────────────────────── */
.referral-card {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #EEF2FF, #E0F2FE);
    border: 1px solid #BFDBFE;
}

.referral-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.referral-link-box {
    display: flex;
    gap: 10px;
}

.referral-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    background: white;
    color: var(--text);
    min-width: 0;
}

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #F8FAFF;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.student-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.student-email {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    font-size: 13px;
}

.empty-state-block {
    padding: 32px;
    text-align: center;
}

/* ─── Withdrawal Card ────────────────────────────────────── */
.withdrawal-card {
    overflow: hidden;
}

.bank-info {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bank-info p {
    margin-bottom: 4px;
}

.bank-info strong {
    color: var(--text);
}

/* ─── Detail Page ─────────────────────────────────────── */
.back-link {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 6px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--text-secondary);
}

.text-green {
    color: var(--success);
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 12px;
}

/* ─── Search & Filter ─────────────────────────────────── */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-form {
    display: block;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-btn-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding-bottom: 0;
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tab-row {
    display: flex;
    gap: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    display: inline-flex;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.tab-active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border);
}

.page-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ─── Quick Links ─────────────────────────────────────────── */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-link-card:hover {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ql-icon {
    font-size: 24px;
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn .2s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.action-row {
    display: flex;
    gap: 6px;
}

/* ─── Success Page ─────────────────────────────────────── */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 64px - 60px);
    padding: 40px 24px;
}

.success-card {
    text-align: center;
    max-width: 440px;
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.success-card h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ─── Logo Image ─────────────────────────────────────────── */
.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
}

.auth-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.brand-accent {
    color: var(--accent);
}

/* ─── Updated Footer (Public) ────────────────────────────── */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, .85);
    padding: 40px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.footer-brand .brand-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    font-size: 13px;
    opacity: .7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    opacity: .5;
}

/* ─── Sidebar Dashboard Layout ───────────────────────────── */
:root {
    --sidebar-w: 260px;
    --topbar-h: 60px;
}

.dashboard-body {
    background: var(--bg);
    overflow-x: hidden;
}

.dashboard-body,
.dashboard-body body {
    display: block;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 150;
    transition: transform .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.sidebar-brand .brand-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.sidebar-brand .brand-accent {
    color: #93C5FD;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: .6;
    display: none;
}

.sidebar-close:hover {
    opacity: 1;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, .12);
    color: white;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, .18);
    color: white;
    font-weight: 600;
}

.sidebar-link-danger {
    color: rgba(255, 150, 150, .8) !important;
}

.sidebar-link-danger:hover {
    background: rgba(220, 38, 38, .2) !important;
    color: #FCA5A5 !important;
}

.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .4);
    padding: 12px 12px 4px;
    margin-top: 4px;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

.sidebar-logout {
    margin-left: auto;
    font-size: 18px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-logout:hover {
    color: white;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .3s ease;
}

/* Top Bar */
.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-h);
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}

.topbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.topbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.topbar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Main Content */
.dash-main {
    padding: 28px 28px 48px;
    flex: 1;
}

.dash-flash {
    max-width: none;
    margin: 0;
    padding: 12px 28px 0;
}

/* Dashboard Page Header */
.dash-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-top: 2px;
}

.dash-page-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 140;
}

.sidebar-overlay.show {
    display: block;
}

/* Mobile Responsive Sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .dashboard-wrapper {
        margin-left: 0;
    }

    .topbar-toggle {
        display: flex;
    }

    .dash-main {
        padding: 20px 16px 48px;
    }
}

/* ─── Stats variations ───────────────────────────────────── */
.stats-4 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

/* ─── Student Course Overview Card ────────────────────────── */
.course-overview-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    color: white;
    flex-wrap: wrap;
}

.coc-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.coc-info {
    flex: 1;
    min-width: 200px;
}

.coc-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coc-meta {
    font-size: 13px;
    opacity: .8;
    margin-bottom: 8px;
}

.coc-progress {
    flex: 1;
    min-width: 220px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.progress-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, .3);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #34D399;
    border-radius: 999px;
    transition: width .6s ease;
}

.progress-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: .75;
    margin-top: 6px;
}

/* ─── Balance Summary (Payment Page) ──────────────────────── */
.balance-summary {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.bs-due {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

/* ─── Landing Page Styles ─────────────────────────────────── */
.landing-page {
    background: white;
}

.landing-page main {
    flex: 1;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0F1F5C 0%, var(--primary) 50%, #1D4ED8 100%);
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, .3) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-highlight {
    background: linear-gradient(135deg, #60A5FA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    opacity: .85;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero-primary {
    padding: 14px 28px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    background: #F0F9FF;
}

.btn-hero-outline {
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, .5);
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.hero-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .2);
}

.hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 540px;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrap {
        display: none;
    }
}

/* Stats Bar */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}

.stats-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.stat-lbl {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section wrapper */
.section {
    padding: 80px 0;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    background: var(--bg);
}

.how-grid {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.how-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    position: relative;
    transition: var(--transition);
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.how-step {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.how-icon {
    font-size: 40px;
    margin: 8px 0 12px;
}

.how-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.how-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-connector {
    font-size: 24px;
    color: var(--text-muted);
    padding: 0 12px;
}

.how-image-wrap {
    text-align: center;
}

.how-img {
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Courses */
.courses-section {
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.course-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.course-icon {
    font-size: 36px;
}

.course-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.course-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.course-duration {
    font-size: 12px;
    color: var(--text-secondary);
}

.course-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.course-enroll {
    align-self: flex-start;
}

.courses-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px;
}

/* Why Join */
.why-section {
    background: linear-gradient(135deg, #0F1F5C 0%, var(--primary) 100%);
    color: white;
}

.why-section .section-title {
    color: white;
}

.why-section .section-tag {
    background: rgba(255, 255, 255, .15);
    color: white;
}

.why-section .section-subtitle {
    color: rgba(255, 255, 255, .7);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.why-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.why-card:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-3px);
}

.why-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.why-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.why-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1E40AF 0%, var(--accent) 100%);
    padding: 80px 24px;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .section {
        padding: 52px 0;
    }

    .section-container {
        padding: 0 20px;
    }

    .how-connector {
        display: none;
    }

    .stats-bar-inner {
        gap: 24px;
    }
}

/* ═══════════════════════════════
   ENROLLMENT CARDS (Student Dashboard)
═══════════════════════════════ */
.enrollment-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.enrollment-card:hover {
    box-shadow: var(--shadow-md);
}

.enrollment-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.enrollment-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.enrollment-info {
    flex: 1;
}

.enrollment-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.enrollment-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.enrollment-progress {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.progress-bar-wrap {
    background: #e2e8f0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.enrollment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Course Picker Grid ── */
.dashboard-columns.course-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.course-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-icon {
    font-size: 36px;
}

.course-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.course-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-duration {
    font-size: 12px;
    color: var(--text-secondary);
}

.course-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.course-enroll {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* ── Detail list (admin settings) ── */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--text-secondary);
}

/* ── Empty state ── */
.empty-state-block {
    text-align: center;
    padding: 56px 32px;
}

/* ── Back link ── */
.back-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.back-link:hover {
    color: var(--primary);
}

/* ── Alert inline ── */
.alert-inline {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Input with suffix ── */
.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-suffix input {
    flex: 1;
}