:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #eff6ff;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.6) 0%, transparent 100%),
        radial-gradient(circle at 85% 90%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 15% 95%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Glassmorphism Navbar */
.app-navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.brand-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
    flex-shrink: 0;
    padding: 3px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.brand-logo-badge:hover {
    transform: scale(1.05);
}

.du-brand-logo {
    width: auto;
    height: 28px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    line-height: 1.15;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.app-navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.app-navbar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.app-navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: #eff6ff;
}

.user-dropdown-pill {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.user-dropdown-pill:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.nav-user-avatar {
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.extra-small {
    font-size: 0.75rem;
}

/* Glassmorphism Footer */
.app-footer {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

/* Modern Alerts */
.alert-modern {
    border: none;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.alert-modern.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-modern.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-modern.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.alert-modern.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

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

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control, .form-select {
    border-color: var(--border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-color);
}

.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: var(--bg-color);
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-bengali {
    font-family: 'Noto Sans Bengali', sans-serif;
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .display-1 {
        font-size: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tom Select Styling & Bengali Font Integration */
.ts-wrapper {
    width: 100%;
}

.ts-control {
    border: 1px solid #ced4da !important;
    border-radius: 0.5rem !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 1rem !important;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif !important;
    min-height: 44px !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.ts-control:hover {
    border-color: #b0b8c1 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15) !important;
}

.ts-wrapper.disabled .ts-control {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    opacity: 0.75;
    cursor: not-allowed;
}

/* Dropdown Container */
.ts-dropdown {
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #ced4da !important;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif !important;
    margin-top: 4px !important;
    z-index: 1055 !important;
}

/* Dedicated search input inside dropdown (via dropdown_input plugin) */
.plugin-dropdown_input .dropdown-input {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    box-sizing: border-box !important;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif !important;
    font-size: 0.95rem !important;
    outline: none !important;
}

.plugin-dropdown_input.focus .ts-dropdown .dropdown-input {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15) !important;
}

.ts-dropdown .option {
    padding: 0.625rem 1rem !important;
    font-size: 0.95rem;
}

.ts-dropdown .active {
    background-color: #eff6ff !important;
    color: var(--primary-color) !important;
}

.ts-dropdown .no-results {
    padding: 0.75rem 1rem !important;
    color: var(--text-secondary) !important;
}

/* Caret / dropdown chevron */
.ts-wrapper.single .ts-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

/* Validation error border */
.ts-wrapper.is-invalid .ts-control {
    border-color: #dc3545 !important;
}

.ts-wrapper.is-invalid.focus .ts-control {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Modern Auth UI & UX Enhancements */
.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.auth-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    background: #ffffff;
}

.auth-brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 6px;
    box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.9);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-brand-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(37, 99, 235, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.du-auth-logo {
    width: auto;
    height: 40px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.auth-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.auth-section-title i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 0.625rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.input-icon-group {
    position: relative;
}

.input-icon-group .form-control {
    padding-left: 2.75rem;
    border-radius: 0.625rem;
    border: 1px solid #cbd5e1;
    min-height: 48px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.input-icon-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.input-icon-group .input-icon-start {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 4;
}

.input-icon-group .password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    z-index: 5;
    border-radius: 0.375rem;
    font-size: 1.1rem;
    transition: color 0.15s ease;
}

.input-icon-group .password-toggle-btn:hover {
    color: var(--primary-color);
}

.input-icon-group .field-validation-indicator {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
}

.input-icon-group input.has-indicator {
    padding-right: 2.75rem;
}

.input-icon-group .form-control.is-valid {
    border-color: #10b981 !important;
    background-image: none !important;
}

.input-icon-group .form-control.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15) !important;
}

.input-icon-group .form-control.is-invalid {
    border-color: #ef4444 !important;
    background-image: none !important;
}

.input-icon-group .form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15) !important;
}

.field-feedback-notice {
    font-size: 0.825rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.field-feedback-notice.text-success {
    color: #10b981 !important;
}

.field-feedback-notice.text-danger {
    color: #ef4444 !important;
}

.custom-gender-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    background: #ffffff;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.custom-gender-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.custom-gender-card i {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.custom-gender-card:hover i {
    transform: scale(1.1);
}

.form-check-input:checked + .custom-gender-card {
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}

.form-check-input:checked + .custom-gender-card.gender-card-male {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1e40af !important;
}

.form-check-input:checked + .custom-gender-card.gender-card-female {
    border-color: #e11d48 !important;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
    color: #9f1239 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15), 0 2px 6px rgba(225, 29, 72, 0.12) !important;
}

.custom-gender-card.is-invalid,
.form-check-input.is-invalid ~ .custom-gender-card,
.border-danger .custom-gender-card,
.custom-gender-card.border-danger {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.profile-upload-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.85rem;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}

.profile-upload-box:hover {
    border-color: var(--primary-color);
}

.profile-avatar-preview {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #e2e8f0;
    flex-shrink: 0;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-primary-gradient:active {
    transform: translateY(0);
}

/* Registration Stepper / Tabs */
.stepper-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.stepper-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 88px;
    right: 88px;
    height: 3px;
    background-color: #e2e8f0;
    z-index: 1;
}

.stepper-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.stepper-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.stepper-title {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.stepper-item.active .stepper-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.stepper-item.active .stepper-title {
    color: var(--primary-color);
    font-weight: 700;
}

.stepper-item.completed .stepper-circle {
    border-color: #10b981;
    background-color: #10b981;
    color: #ffffff;
}

.stepper-item.completed .stepper-title {
    color: #10b981;
}

.wizard-step-pane {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.wizard-step-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .stepper-nav::before {
        left: 20px;
        right: 20px;
        top: 18px;
    }
    .stepper-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-width: 2px;
    }
    .stepper-title {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   Modern Alumni Profile Styles
   ========================================================================== */
.profile-hero-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
    position: relative;
}

.profile-cover-banner {
    min-height: 180px;
    background: linear-gradient(135deg, #091e3a 0%, #102a4e 45%, #1e4273 80%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 16px 16px;
}

.profile-cover-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -60px;
    top: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 75%);
    pointer-events: none;
}

.profile-cover-du-crest {
    position: absolute;
    right: 24px;
    bottom: -15px;
    opacity: 0.14;
    height: 160px;
    pointer-events: none;
    filter: invert(1) brightness(1.5);
    transform: rotate(-10deg);
}

.profile-avatar-wrapper {
    margin-top: -70px;
    position: relative;
    z-index: 5;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .profile-avatar-wrapper {
        margin-top: -55px;
    }
    .profile-avatar-img {
        width: 110px;
        height: 110px;
    }
}

.profile-avatar-img {
    width: 138px;
    height: 138px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-avatar-img:hover {
    transform: scale(1.025);
    box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.25);
}

.profile-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border: 3.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.profile-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* Quick KPI / Stat Strip */
.profile-stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.profile-stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Section Box Modern */
.profile-section-card {
    background: #ffffff;
    border-radius: 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    height: auto;
}

.profile-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-action-capsules {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
    flex-wrap: wrap;
}

.profile-item-row {
    padding: 0.95rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.profile-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-item-label {
    font-size: 0.825rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-item-value {
    font-size: 0.925rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.profile-copy-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0 0.35rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.profile-copy-btn:hover {
    color: var(--primary-color);
}

/* Profile Edit & Security Styles */
.profile-edit-avatar-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    object-fit: cover;
    background: #f8fafc;
}

.profile-edit-hero-banner {
    min-height: 130px;
    background: linear-gradient(135deg, #091e3a 0%, #102a4e 45%, #1e4273 80%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
}

.profile-edit-hero-banner .profile-cover-du-crest {
    height: 130px;
    right: 20px;
    bottom: -15px;
}

.security-hero-banner {
    min-height: 120px;
    background: linear-gradient(135deg, #091e3a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem 1.25rem 0 0;
}

.security-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ==========================================================================
   Directory & Member Cards (Phase 5)
   ========================================================================== */

.directory-hero-banner {
    background: linear-gradient(135deg, #06152b 0%, #0d274c 50%, #1e3a8a 100%);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(6, 21, 43, 0.25);
}

.directory-stat-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.directory-stat-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.directory-search-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.member-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e8eef5;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(13, 39, 76, 0.12);
    border-color: #cbd5e1;
}

.member-card-header {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
    position: relative;
}

.member-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-blood-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

.member-info-row {
    font-size: 0.825rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.member-info-row i {
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.filter-badge-active {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #c7d2fe;
}

/* List View Styling (Phase 5) */
.member-list-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 1.15rem 1.25rem;
}

.member-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(13, 39, 76, 0.08);
    border-color: #cbd5e1;
}

.member-list-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.member-list-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.view-toggle-group .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
    transition: all 0.15s ease;
}

.view-toggle-group .btn i {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.view-toggle-group .btn span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.view-toggle-group .btn.active {
    background-color: #0d274c;
    color: #ffffff;
    border-color: #0d274c;
}

.view-toggle-group .btn:not(.active):hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Tabular Member Table Styling */
.member-table-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.member-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.member-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.member-table tbody tr {
    transition: background-color 0.15s ease;
}

.member-table tbody tr:hover {
    background-color: #f8fafc;
}

.member-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.member-table-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.member-table-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Admin System (Phase 6)
   ========================================================================== */

.admin-hero-banner {
    background: linear-gradient(135deg, #091e3a 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(9, 30, 58, 0.25);
}

.admin-nav-tabs .nav-link {
    font-weight: 600;
    color: #475569;
    border-radius: 0.75rem;
    padding: 0.6rem 1.25rem;
    border: none;
    transition: all 0.2s ease;
}

.admin-nav-tabs .nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.admin-nav-tabs .nav-link.active {
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.admin-stat-card {
    background: #ffffff;
    border-radius: 1.15rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.badge-status-active {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status-blocked {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-status-inactive {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-role-super_admin {
    background-color: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.badge-role-admin {
    background-color: #fae8ff;
    color: #86198f;
    border: 1px solid #f5d0fe;
}

.badge-role-user {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Profile Photo Cropper & Resizer Modal Styles */
.cropper-modal-container {
    max-height: 480px;
    background-color: #0b1120;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cropper-modal-container img {
    max-width: 100%;
    max-height: 460px;
    display: block;
}

.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-preview-container {
    overflow: hidden;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #f8fafc;
}

.cropper-toolbar-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


/* ==========================================================================
   Custom Spacing Utilities & Button Alignment
   ========================================================================== */

/* Fractional padding and margin utilities */
.p-05   { padding: 0.25rem !important; }
.p-25   { padding: 0.625rem !important; }
.px-25  { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.py-05  { padding-top: 0.15rem !important; padding-bottom: 0.15rem !important; }
.py-15  { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.mt-05  { margin-top: 0.15rem !important; }
.mb-25  { margin-bottom: 0.625rem !important; }
.ms-05  { margin-left: 0.15rem !important; }
.me-05  { margin-right: 0.15rem !important; }
.gap-25 { gap: 0.625rem !important; }

/* Ensure circular action icon buttons are perfectly centered */
.btn.rounded-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.btn.rounded-circle i,
.btn.rounded-circle .bi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Ensure button icons and text are perfectly centered vertically without the -0.125em drop */
.btn i,
.btn .bi,
.badge i,
.badge .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn i::before,
.btn .bi::before,
.badge i::before,
.badge .bi::before {
    vertical-align: 0 !important;
    line-height: 1;
    display: inline-block;
}

/* Ensure pill action buttons align icons and text horizontally with proper baseline */
.btn.rounded-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.3 !important;
}

.btn.rounded-pill i,
.btn.rounded-pill .bi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin-top: 0;
    margin-bottom: 0;
}

.btn.rounded-pill span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Directory Member Profile Button with pixel-perfect alignment */
.member-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    line-height: 1 !important;
}

.member-profile-btn i,
.member-profile-btn .bi {
    font-size: 0.95rem;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.member-profile-btn span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Quick Blood Donor Filter Buttons */
.blood-filter-pill {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.2;
}

.blood-filter-pill strong,
.blood-filter-pill span {
    color: #ffffff;
    transition: color 0.15s ease;
}

.blood-filter-pill:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0d274c !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blood-filter-pill:hover strong,
.blood-filter-pill:hover span {
    color: #0d274c !important;
}

.blood-filter-pill.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.blood-filter-pill.active strong,
.blood-filter-pill.active span {
    color: #ffffff !important;
}

.blood-filter-pill.active:hover {
    background-color: #b02a37 !important;
    border-color: #b02a37 !important;
    color: #ffffff !important;
}

.blood-filter-pill.active:hover strong,
.blood-filter-pill.active:hover span {
    color: #ffffff !important;
}

/* Outline buttons with bg-white hover contrast fix */
.btn-outline-secondary.bg-white:hover {
    background-color: #475569 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.btn-outline-secondary.bg-white:hover i,
.btn-outline-secondary.bg-white:hover span {
    color: #ffffff !important;
}

/* Hero banner light outline buttons hover contrast fix */
.directory-hero-banner .btn-outline-light:hover,
.admin-hero-banner .btn-outline-light:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0d274c !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.directory-hero-banner .btn-outline-light:hover i,
.directory-hero-banner .btn-outline-light:hover span,
.admin-hero-banner .btn-outline-light:hover i,
.admin-hero-banner .btn-outline-light:hover span {
    color: #0d274c !important;
}

/* ==========================================================================
   Signup Page & Wizard Full Responsiveness Enhancements
   ========================================================================== */
@media (max-width: 768px) {
    .auth-card {
        border-radius: 1rem;
    }
    
    .auth-section-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    /* Main titles on mobile */
    .signup-main-heading {
        font-size: 1.35rem;
        letter-spacing: -0.01em;
    }
    .signup-subheading {
        font-size: 0.8rem;
    }

    /* Stepper navigation responsive refinement */
    .stepper-nav {
        margin-bottom: 1.5rem;
        padding: 0 4px;
    }
    .stepper-nav::before {
        left: 24px;
        right: 24px;
        top: 17px;
        height: 2px;
    }
    .stepper-circle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-width: 2px;
    }
    .stepper-title {
        font-size: 0.7rem;
        margin-top: 0.35rem;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    /* Input fields and icon padding */
    .input-icon-group .form-control,
    .input-icon-group .form-select {
        min-height: 46px;
        font-size: 0.9rem;
    }

    /* Profile picture box stacking on mobile */
    .profile-upload-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
        padding: 0.85rem;
    }
    .profile-upload-box .flex-grow-1 {
        width: 100%;
    }
    .profile-upload-box input[type="file"] {
        font-size: 0.85rem;
    }

    /* Gender card touch sizing */
    .custom-gender-card {
        padding: 0.5rem 0.65rem;
        min-height: 46px;
        height: 46px;
        font-size: 0.9rem;
        gap: 0.35rem;
    }
    .custom-gender-card i {
        font-size: 1.05rem;
    }

    /* Cropper modal responsiveness */
    .cropper-modal-container {
        height: 260px !important;
        max-height: 260px !important;
    }
    .cropper-preview-container .cropper-preview {
        width: 72px !important;
        height: 72px !important;
    }
}

@media (max-width: 380px) {
    /* Extra narrow devices (iPhone SE, Galaxy Fold outer screen) */
    .stepper-nav::before {
        left: 18px;
        right: 18px;
        top: 15px;
    }
    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
    .stepper-title {
        font-size: 0.65rem;
    }
    .auth-section-title {
        font-size: 0.8rem;
        letter-spacing: 0.02em;
    }
    .signup-main-heading {
        font-size: 1.2rem;
    }
}