/* =============================================================================
   SecureKYC - Professional White Theme
   Modern, clean, responsive design for KYC Verification Portal
   ============================================================================= */

/* =============================================================================
   1. CSS Variables & Theme
   ============================================================================= */
:root {
    /* Colors */
    --primary: #FF6B6B;
    --primary-dark: #e55a5a;
    --primary-bg: #fff5f2;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;
    
    /* Grays */
    --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;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* =============================================================================
   2. Reset & Base
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: #ffffff;
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    flex: 1;
}

/* =============================================================================
   3. Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.text-muted {
    color: var(--gray-500) !important;
}

/* =============================================================================
   4. Header & Navigation
   ============================================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-bg);
}

.nav-link i {
    font-size: 1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Button style nav link */
.btn-sm-nav {
    padding: 0.4rem 1rem !important;
    border-radius: var(--radius-sm) !important;
}

.btn-sm-nav.btn-primary {
    background: var(--primary) !important;
    color: white !important;
}

.btn-sm-nav.btn-outline-danger {
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* =============================================================================
   5. Page Layout
   ============================================================================= */
.page-wrapper {
    padding: 2rem 0 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.header-subtitle {
    color: var(--gray-500);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   6. Form Sections
   ============================================================================= */
.form-section {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition-slow);
}

.form-section:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.section-info h2 {
    font-size: 1.125rem;
    margin-bottom: 0.125rem;
}

.section-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.section-body {
    padding: 1.5rem;
}

/* =============================================================================
   7. Form Controls
   ============================================================================= */
.form-floating > .form-control,
.form-floating > .form-select {
    height: 56px;
    padding: 1rem 0.75rem 0.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: #ffffff;
    transition: var(--transition);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-floating > .form-control.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-floating > .form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-floating > label {
    padding: 0.875rem 0.75rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-floating > label i {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Select styling */
.form-floating select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* Textarea */
.form-floating textarea.form-control {
    height: auto;
    min-height: 80px;
    padding-top: 1.5rem;
    width: 100% !important;
    max-width: 100%;
    resize: vertical;
}

.form-floating textarea.form-control:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.form-floating textarea.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

.form-floating textarea.form-control::placeholder {
    color: transparent;
}

/* File inputs */
input[type="file"].form-control {
    padding: 0.4rem 0.5rem;
    height: auto;
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    margin-right: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: var(--transition);
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--primary-dark);
}

/* Form error/hint */
.form-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Dynamic error appended outside form-floating (sibling of form-floating) */
.form-error-dynamic {
    display: none;
}

/* Ensure form-error doesn't break form-floating label positioning */
.form-floating + .form-error,
.form-floating + .form-error-dynamic {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
}

.form-hint {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-hint i {
    margin-right: 0.25rem;
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-strength .progress {
    flex: 1;
    border-radius: 10px;
    background: var(--gray-100);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-400);
    white-space: nowrap;
    min-width: 60px;
}

.password-match {
    font-size: 0.8125rem;
}

.match-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =============================================================================
   8. Upload Cards & Zones
   ============================================================================= */
.upload-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.upload-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.upload-card-header i {
    font-size: 1.125rem;
    color: var(--primary);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #ffffff;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-zone.success {
    border-color: var(--success);
    background: var(--success-light);
}

.upload-zone-icon {
    font-size: 2rem;
    color: var(--gray-400);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.upload-zone:hover .upload-zone-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.upload-zone-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.upload-zone-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Simple upload (for complete page) */
.simple-upload {
    padding: 2rem;
}

/* =============================================================================
   9. Buttons
   ============================================================================= */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-primary:disabled, .btn-primary.disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    opacity: 0.8;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
}

/* Make disabled outline buttons always visible */
.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-outline-primary:disabled, .btn-outline-primary.disabled {
    color: var(--gray-500);
    border-color: var(--gray-300);
    background: var(--gray-50);
    opacity: 0.9;
    pointer-events: none;
}

/* Submit section */
.submit-section {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-submit {
    min-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
    background: var(--primary);
}

.btn-submit:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.submit-note i {
    margin-right: 0.25rem;
}

/* =============================================================================
   10. OTP Input
   ============================================================================= */
.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    color: var(--gray-800);
}

.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =============================================================================
   11. Agreement Box
   ============================================================================= */
.agreement-box {
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border: 2px solid var(--gray-300);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

/* =============================================================================
   12. Video Card
   ============================================================================= */
.video-card {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-container {
    position: relative;
    min-height: 240px;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: #666;
    background: #1a1a1a;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.video-placeholder h6 {
    color: #999;
    margin: 0;
}

.video-placeholder p {
    font-size: 0.8125rem;
    color: #666;
    margin: 0.25rem 0 0;
}

.video-controls {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: center;
    background: #111;
}

.recording-indicator {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.recording-indicator.active { display: flex; }

.recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.timer-display {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 1.125rem;
    font-weight: 700;
    z-index: 10;
    font-variant-numeric: tabular-nums;
}

/* =============================================================================
   13. Status Steps
   ============================================================================= */
.status-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.status-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.status-step::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 3rem;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.status-step:last-child::before {
    display: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.status-step.completed .step-icon {
    background: var(--success);
    color: white;
}

.status-step.active .step-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.status-step.pending .step-icon {
    background: var(--gray-100);
    color: var(--gray-400);
}

.step-content h6 {
    font-size: 0.9375rem;
    margin: 0 0 0.125rem;
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* =============================================================================
   14. Login Page
   ============================================================================= */
.login-page {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1rem;
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.login-form .form-floating > .form-control {
    height: 52px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    z-index: 5;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--gray-600);
}

.login-footer-text {
    text-align: center;
}

.login-footer-text small {
    font-size: 0.75rem;
}

/* =============================================================================
   15. Alerts
   ============================================================================= */
.alert {
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* =============================================================================
   16. Footer
   ============================================================================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.footer-brand i {
    color: var(--primary);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

.footer-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-item a:hover {
    color: var(--primary);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--gray-400);
    width: 100%;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-links a:hover {
    color: var(--primary);
}

/* =============================================================================
   17. Modal
   ============================================================================= */
.modal-content {
    border-radius: var(--radius-lg);
}

.modal-header {
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
}

/* =============================================================================
   18. Loading Spinner
   ============================================================================= */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.spinner-overlay.active {
    display: flex;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

/* =============================================================================
   19. Animations
   ============================================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease-out;
}

/* =============================================================================
   20. Responsive - Mobile First
   ============================================================================= */
@media (max-width: 575.98px) {
    .page-wrapper { padding: 1rem 0 2rem; }
    .page-header h1 { font-size: 1.5rem; }
    .header-subtitle { font-size: 0.9375rem; }
    
    .form-section { border-radius: var(--radius-md); }
    .section-header { padding: 1rem; }
    .section-body { padding: 1rem; }
    
    .section-icon { width: 40px; height: 40px; font-size: 1rem; }
    .section-info h2 { font-size: 1rem; }
    
    .form-floating > .form-control { height: 50px; font-size: 0.875rem; }
    
    .otp-digit { width: 42px; height: 48px; font-size: 1.25rem; }
    .otp-inputs { gap: 0.35rem; }
    
    .otp-email-wrapper { padding: 0.75rem; }
    .email-otp-actions { flex-direction: column; align-items: stretch; }
    .email-otp-actions .btn { width: 100%; }
    
    .btn-submit { min-width: auto; width: 100%; }
    
    .login-card { padding: 1.5rem; border-radius: var(--radius-lg); }
    
    .footer-content { flex-direction: column; text-align: center; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .page-wrapper { padding: 1.5rem 0 3rem; }
    .page-header h1 { font-size: 1.75rem; }
}

@media (max-width: 991.98px) {
    .navbar-nav { margin-top: 0.75rem; gap: 0.25rem; }
    .nav-link { padding: 0.5rem !important; }
    .btn-sm-nav { text-align: center; }
    
    .status-steps { margin-top: 1rem; }
}

/* =============================================================================
   21. Utility Classes
   ============================================================================= */
.h-100 { height: 100%; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* File Preview */
.file-preview {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.file-preview img {
    max-height: 120px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
}

/* =============================================================================
   22. WhatsApp Floating Button
   ============================================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float i {
    line-height: 1;
}

/* =============================================================================
   23. Thank You Page
   ============================================================================= */
.thank-you-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.thank-you-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
    padding: 3rem 2rem;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.thank-you-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.thank-you-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.thank-you-subtitle {
    color: var(--gray-500);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.thank-you-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.detail-row i {
    font-size: 1.125rem;
    color: var(--success);
}

.thank-you-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   24. Contact Page
   ============================================================================= */
.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-card-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.contact-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-card-sub {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.office-address {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.address-item i {
    font-size: 1.125rem;
    color: var(--primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* =============================================================================
   25. OTP Email Section
   ============================================================================= */
.otp-email-wrapper {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.email-otp-field .form-floating > .form-control {
    border-color: var(--primary);
    border-style: solid;
}

.email-otp-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.otp-status-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.otp-status-text.success {
    color: var(--success);
}

.otp-status-text.error {
    color: var(--danger);
}

.otp-verify-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.otp-inputs-container {
    flex: 1;
}

.otp-timer {
    font-size: 0.8125rem;
    color: var(--gray-400);
    white-space: nowrap;
    margin-top: 0.5rem;
}

/* =============================================================================
   26. Selfie Capture Button & OTP Verified
   ============================================================================= */
.selfie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.selfie-capture-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    opacity: 1 !important;
    visibility: visible !important;
}

.selfie-capture-btn:hover {
    background: var(--primary);
    color: white !important;
}

.selfie-capture-btn i {
    font-size: 0.9375rem;
}

.selfie-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.selfie-hint i {
    margin-right: 0.25rem;
}

/* OTP digits after verified - green border */
.otp-digit.verified-otp {
    border-color: var(--success);
    background: var(--success-light);
    color: var(--success);
}

/* =============================================================================
   27. Responsive - Mobile
   ============================================================================= */
@media (max-width: 575.98px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .thank-you-card {
        padding: 2rem 1.25rem;
    }
    
    .thank-you-card h1 {
        font-size: 1.5rem;
    }
    
    .otp-verify-section {
        flex-direction: column;
    }
}

/* =============================================================================
   28. Admin Panel - Complete Modern Redesign
   ============================================================================= */

/* --- Admin Header (White, Professional) --- */
.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e9edf4;
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 64px;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 100%;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: var(--transition);
}

.admin-hamburger:hover .hamburger-line {
    background: #475569;
}

.admin-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header-icon {
    width: 36px;
    height: 36px;
    background: #1a56db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.admin-header-text {
    display: flex;
    flex-direction: column;
}

.admin-header-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.2;
}

.admin-header-sub {
    font-size: 0.6875rem;
    color: #94a3b8;
    line-height: 1;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.admin-header-date i {
    color: #94a3b8;
}

.admin-header-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

.admin-user-btn {
    background: none;
    border: none;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.admin-user-btn:hover {
    background: #f1f5f9;
}

.admin-user-btn::after {
    display: none !important;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a56db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    color: white;
}

.admin-user-name {
    font-weight: 500;
    color: #1e293b;
}

/* --- Admin Layout (Sidebar + Content) --- */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    position: relative;
}

.admin-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e9edf4;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar::-webkit-scrollbar { width: 3px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }

/* Sidebar Profile */
.sidebar-profile {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a56db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.sidebar-profile-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 0.75rem;
}

.sidebar-menu-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.5rem 0.75rem 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.675rem 0.75rem;
    border-radius: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: #1a56db;
}

.sidebar-link.active {
    background: #eef2ff;
    color: #1a56db;
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #1a56db;
    border-radius: 0 3px 3px 0;
}

.sidebar-link i:first-child {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link .sidebar-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    transition: var(--transition);
}

.sidebar-link:hover .sidebar-link-icon {
    transform: scale(1.05);
}

.sidebar-link.active .sidebar-link-icon {
    background: #1a56db;
    color: white;
}

.sidebar-link:not(.active) .sidebar-link-icon {
    background: #f1f5f9;
    color: #64748b;
}

.sidebar-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}

.sidebar-ext-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.675rem 0.75rem;
    border-radius: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.sidebar-ext-link:hover {
    background: #f1f5f9;
    color: #1a56db;
}

/* --- Admin Content Area --- */
.admin-content {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    position: relative;
}

/* Page header inside admin content */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-page-header h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.admin-page-header h4 i {
    color: #1a56db;
}

/* --- Modern Admin Cards --- */
.admin-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9edf4;
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.admin-card-header {
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-card-body.p-0 {
    padding: 0;
}

/* --- Modern Stat Cards --- */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    border-radius: 14px;
    padding: 1.25rem 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    background: rgba(255,255,255,0.2);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.125rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    opacity: 0.85;
    font-weight: 500;
}

.stat-change {
    font-size: 0.6875rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* --- Admin Badges (Modern Pills) --- */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.admin-badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.admin-badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.admin-badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.admin-badge-info {
    background: #eff6ff;
    color: #2563eb;
}

.admin-badge i {
    font-size: 0.75rem;
}

/* --- Modern Data Tables --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid #e9edf4;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* User avatar in tables */
.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9edf4;
}

.user-avatar-placeholder-xs {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 2px solid #e9edf4;
}

/* --- Modern Pagination --- */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-pagination .page-link {
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8125rem;
    transition: var(--transition);
}

.admin-pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1a56db;
}

.admin-pagination .page-item.active .page-link {
    background: #1a56db;
    border-color: #1a56db;
}

/* --- Modern Filters Form --- */
.admin-filters {
    padding: 1.25rem;
}

.admin-filters .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.admin-filters .form-control,
.admin-filters .form-select {
    font-size: 0.875rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.admin-filters .form-control:focus,
.admin-filters .form-select:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* --- Animations --- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.35s ease-out both;
}

/* Staggered animations for stat cards */
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

/* --- Mobile Sidebar Fixes --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(15, 23, 42, 0.6);
    z-index: 1010;
    backdrop-filter: blur(4px);
}

/* --- Activity Timeline --- */
.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f8fafc;
}

.activity-item:hover {
    background: #f8fafc;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content small {
    font-size: 0.8125rem;
    color: #475569;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Modal Refinements --- */
.admin-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}

.admin-modal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.admin-modal .modal-body {
    padding: 1.5rem;
}

.admin-modal .modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1399.98px) {
    .admin-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile Sidebar: Slide in BELOW header (never cover it) --- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 64px;
        left: -290px;
        height: calc(100vh - 64px);
        z-index: 1015;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(15, 23, 42, 0.6);
        z-index: 1010;
        backdrop-filter: blur(4px);
    }
    
    .admin-sidebar.show ~ .sidebar-overlay {
        display: block;
    }
    
    .admin-content {
        padding-bottom: 4rem;
    }
    
    .admin-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-header-date {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .admin-header-inner {
        padding: 0 1rem;
    }
    
    .admin-header-sub {
        display: none;
    }
    
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-page-header h4 {
        font-size: 1.125rem;
    }
}

/* --- Admin Card with Table: rounded corners via overflow --- */
.admin-card {
    overflow: hidden;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table-row:hover {
    background: #f1f5f9 !important;
}

.admin-table-row:active {
    background: #e2e8f0 !important;
}

.admin-table td:focus,
.admin-table th:focus {
    outline: none;
}

@media (max-width: 575.98px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .admin-header-date {
        display: none;
    }
    
    .admin-header-divider {
        display: none;
    }
    
    .admin-card-header {
        padding: 0.875rem 1rem;
    }
    
    .admin-card-body {
        padding: 1rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .admin-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .admin-pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* =============================================================================
   29. Custom Scrollbar for Admin Content
   ============================================================================= */
.admin-content::-webkit-scrollbar { width: 6px; }
.admin-content::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.admin-content::-webkit-scrollbar-track { background: transparent; }

/* =============================================================================
   29. Gradient Theme Overrides for Login & Register
   ============================================================================= */
.btn-primary,
.btn-submit,
#startSelfieCamera,
#captureSelfieBtn,
#startRecording,
#uploadVideo,
#sendOtpBtn,
#verifyOtpBtn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover,
.btn-submit:hover,
#startSelfieCamera:hover,
#captureSelfieBtn:hover,
#startRecording:hover,
#uploadVideo:hover,
#sendOtpBtn:hover,
#verifyOtpBtn:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

.btn-outline-primary {
    color: #FF6B6B !important;
    border: 2px solid #FF6B6B !important;
    background: transparent !important;
}

.btn-outline-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.section-icon,
.login-icon,
.status-step.active .step-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    color: white !important;
}

.upload-card-header i,
.form-floating > label i,
.upload-zone-icon,
.upload-zone:hover .upload-zone-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15) !important;
}

/* --- Admin Header & Sidebar Icon Gradient Overrides --- */
.admin-header-icon,
.admin-user-avatar {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    color: white !important;
}

.sidebar-link.active .sidebar-link-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    color: white !important;
}

.sidebar-link:hover:not(.active) .sidebar-link-icon {
    background: #fff5f2 !important;
    color: #FF6B6B !important;
}

.sidebar-link.active {
    color: #FF6B6B !important;
    background: #fff5f2 !important;
}

.sidebar-link.active::before {
    background: #FF6B6B !important;
}

.sidebar-ext-link:hover {
    color: #FF6B6B !important;
    background: #fff5f2 !important;
}
