/* R2RC Portal Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-width: 260px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.error-icon {
    width: 64px;
    height: 64px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-footer {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-message p {
    margin-bottom: 0.75rem;
}

.auth-tips {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-tips ul {
    margin: 0.5rem 0 0 1.25rem;
    color: var(--gray-600);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
}

/* Portal Layout */
.portal-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-700);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 0.875rem;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--gray-800);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-700);
}

.user-email {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: transparent;
    color: var(--gray-400);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    width: auto;
}

.logout-btn:hover {
    color: white;
    background: transparent;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.page-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.page-content {
    padding: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 12px 12px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dashboard-grid .wide {
    grid-column: span 3;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.status-indicator.connected .status-dot {
    background: var(--success);
}

.status-indicator.warning .status-dot {
    background: var(--warning);
}

.status-indicator.disconnected .status-dot {
    background: var(--error);
}

.status-indicator.loading .status-dot {
    background: var(--gray-300);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-weight: 500;
}

.status-detail {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Stats */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-donation {
    color: var(--primary);
    font-weight: 600;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-error {
    background: var(--error-light);
    color: var(--error);
}

/* Loading States */
.loading-text {
    color: var(--gray-400);
    font-style: italic;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.empty-subtitle {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Payment Method Display */
.payment-method-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-brand {
    font-weight: 600;
}

.card-number {
    color: var(--gray-500);
    font-family: monospace;
}

.card-expiry {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.payment-method-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.card-details {
    flex: 1;
}

.card-details .card-brand {
    display: block;
    margin-bottom: 0.25rem;
}

.card-details .card-number {
    font-family: monospace;
}

/* Info Sections */
.info-section {
    color: var(--gray-600);
}

.info-section p {
    margin-bottom: 1rem;
}

.info-section h4 {
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
}

.info-section ul {
    margin-left: 1.25rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row .label {
    width: 140px;
    font-weight: 500;
    color: var(--gray-500);
}

.info-row .value {
    flex: 1;
}

.monospace {
    font-family: monospace;
    font-size: 0.9em;
}

/* Status Row */
.status-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.status-row .label {
    width: 120px;
    font-weight: 500;
    color: var(--gray-500);
}

.status-row .value {
    flex: 1;
}

/* Health Status */
.health-status {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
}

.health-status.healthy {
    background: var(--success-light);
}

.health-status.warning {
    background: var(--warning-light);
}

.health-status.disconnected {
    background: var(--error-light);
}

.health-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.health-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.health-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* FAQ Section */
.faq-section .faq-item {
    margin-bottom: 1.5rem;
}

.faq-section h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.faq-section p {
    color: var(--gray-600);
}

/* Security Features */
.security-features {
    margin-top: 1.5rem;
}

.security-features .feature {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.security-features .feature:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.feature strong {
    display: block;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* Actions */
.actions {
    white-space: nowrap;
}

.action-btn {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    font-size: 1.1rem;
}

.action-btn:hover {
    opacity: 0.7;
}

/* Integration Actions */
.integration-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* PMS Options */
.pms-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pms-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pms-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pms-option input[type="radio"] {
    width: auto;
    margin-right: 0.75rem;
}

.pms-option input[type="radio"]:checked + .pms-name {
    color: var(--primary);
    font-weight: 600;
}

.pms-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pms-name {
    font-weight: 500;
}

.switch-actions {
    display: flex;
    gap: 1rem;
}

.switch-actions .btn {
    width: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid .wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .portal-layout {
        flex-direction: column;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .nav-item {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid .wide {
        grid-column: span 1;
    }

    .page-content {
        padding: 1rem;
    }
}

/* ================================
   ADMIN PORTAL STYLES
   ================================ */

/* Admin Color Overrides */
.admin-body {
    background: #fafafa;
}

.admin-auth {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.admin-sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.admin-sidebar .nav-item.active {
    background: #dc2626;
}

.admin-badge {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.admin-login-badge {
    background: #dc2626;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-admin {
    background: #dc2626;
}

.btn-admin:hover {
    background: #b91c1c;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stat-card.stat-success {
    border-left: 4px solid var(--success);
}

.stat-card.stat-success .stat-value {
    color: var(--success);
}

.stat-card.stat-warning {
    border-left: 4px solid var(--warning);
}

.stat-card.stat-warning .stat-value {
    color: var(--warning);
}

.stat-card.stat-error {
    border-left: 4px solid var(--error);
}

.stat-card.stat-error .stat-value {
    color: var(--error);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    cursor: pointer;
}

.quick-actions .action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.quick-actions .action-btn.action-warning:hover {
    border-color: var(--warning);
    background: var(--warning-light);
    color: var(--warning);
}

.quick-actions .action-btn.action-secondary:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.quick-actions .action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-actions .action-text {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Bottleneck Grid */
.bottleneck-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bottleneck-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.bottleneck-item.has-issues {
    background: var(--warning-light);
}

.bottleneck-count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.bottleneck-item.has-issues .bottleneck-count {
    color: var(--warning);
}

.bottleneck-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.status-list .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-green {
    background: var(--success);
}

.status-yellow {
    background: var(--warning);
}

.status-red {
    background: var(--error);
}

.status-list .status-detail {
    margin-left: auto;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--success-light);
    border-radius: 8px;
    color: var(--success);
}

.success-message .success-icon {
    width: auto;
    height: auto;
    background: none;
    margin: 0;
    font-size: 1.25rem;
}

/* Filters */
.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

/* Card Header with Actions */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manager-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* No Data State */
.no-data {
    text-align: center;
    color: var(--gray-400);
    padding: 2rem;
    font-style: italic;
}

/* Error Text */
.error-text {
    color: var(--error);
}

.text-error {
    color: var(--error);
}

/* Badge Secondary */
.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.form-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Form Group for Admin */
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Danger Zone */
.card-danger {
    border: 1px solid var(--error-light);
}

.card-danger .card-header {
    background: var(--error-light);
}

.card-danger .card-header h3 {
    color: var(--error);
}

.danger-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: var(--error);
    color: white;
}

/* Back Link */
.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    color: var(--gray-500);
    text-decoration: none;
}

.back-link a:hover {
    color: var(--primary);
}

/* Month Selector */
.month-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.month-selector span {
    min-width: 150px;
    text-align: center;
    font-weight: 500;
}

/* Info Box */
.info-box {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.info-box p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.auth-footer-text a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Responsive for Admin */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .bottleneck-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }
}

/* --- Enrollment Banner --- */

.enrollment-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.enrollment-banner h3 {
    margin: 0 0 0.5rem;
    color: #1e40af;
    font-size: 1.1rem;
}

.enrollment-banner > p {
    color: #3b82f6;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.enrollment-steps {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.enrollment-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.enrollment-step .step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.enrollment-step.completed .step-icon {
    background: #22c55e;
    color: white;
}

.enrollment-step.pending .step-icon {
    background: #2563eb;
    color: white;
}

.enrollment-step.completed .step-label {
    color: #16a34a;
    text-decoration: line-through;
}

.enrollment-step.pending .step-label {
    color: #1e3a5f;
    font-weight: 500;
}

.step-link {
    color: #2563eb !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.step-link:hover {
    color: #1d4ed8 !important;
}

@media (max-width: 640px) {
    .enrollment-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* --- Login Page Enhancements --- */

.form-hint {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--gray-200);
}

.password-section {
    margin-top: 0;
}

.password-section summary.password-toggle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    list-style: none;
}

.password-section summary.password-toggle::-webkit-details-marker {
    display: none;
}

.password-section summary.password-toggle:hover {
    color: var(--primary);
}

.password-section .auth-form {
    margin-top: 1rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* --- $1 Stays Local --- */

.stays-local-banner {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.stays-local-banner h3 {
    margin: 0 0 0.5rem;
    color: #166534;
    font-size: 1.1rem;
}

.stays-local-banner p {
    color: #15803d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-stays-local-enroll {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-stays-local-enroll:hover {
    background: #15803d;
}

.stays-local-enrolled-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #333;
}
