/* ===================================
   USER MANAGEMENT CSS — Luxury Dark Glassmorphism
   NigamaConnect Admin v5.0
   =================================== */

.users-content {
    padding: 28px 32px 40px;
}

/* ===================================
   FILTERS CARD (Frosted Glass Drawer)
   =================================== */
.filters-card {
    background: rgba(11, 21, 40, 0.78);
    backdrop-filter: var(--nc-blur-card, blur(20px) saturate(160%));
    -webkit-backdrop-filter: var(--nc-blur-card, blur(20px) saturate(160%));
    border-radius: var(--nc-radius-xl, 24px);
    padding: 24px 28px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
    transition: border-color var(--transition-smooth);
}
.filters-card:hover {
    border-color: rgba(15, 163, 217, 0.25);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-text-primary, #F8FAFC);
    letter-spacing: -0.2px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

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

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-text-secondary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--nc-text-muted, #64748B);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-primary, #F8FAFC);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--nc-brand-primary, #0FA3D9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(15, 163, 217, 0.25);
}

.search-input::placeholder {
    color: var(--nc-text-muted, #64748B);
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-primary, #F8FAFC);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--nc-brand-primary, #0FA3D9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(15, 163, 217, 0.25);
}

.filter-select option {
    background: #0B1528;
    color: #F8FAFC;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-smooth);
    font-family: inherit;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nc-brand-primary, #0FA3D9), #0284C7);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 163, 217, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 163, 217, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    color: var(--nc-text-primary, #F8FAFC);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-sm svg {
    width: 15px;
    height: 15px;
}

/* ===================================
   ACTIONS BAR
   =================================== */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-info {
    font-size: 14px;
    color: var(--nc-text-secondary, #94A3B8);
    font-weight: 500;
}

.results-info span {
    font-weight: 700;
    color: var(--nc-text-primary, #F8FAFC);
}

/* ===================================
   TABLE CARD & DATA GRID
   =================================== */
.table-card {
    background: rgba(11, 21, 40, 0.78);
    backdrop-filter: var(--nc-blur-card, blur(20px) saturate(160%));
    -webkit-backdrop-filter: var(--nc-blur-card, blur(20px) saturate(160%));
    border-radius: var(--nc-radius-xl, 24px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 0;
}

/* Table Loading State */
.table-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(11, 21, 40, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 30;
    min-height: 400px;
}

.table-loading.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--nc-brand-primary, #0FA3D9);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.table-loading p {
    color: var(--nc-text-secondary, #94A3B8);
    font-size: 14px;
    font-weight: 500;
}

.users-grid-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 1150px;
}

.users-grid-header, .users-grid-row {
    display: grid;
    /* 60px check, 2fr name, 3fr email, 1fr gender, 1fr status, 1fr tree, 1.5fr login, 2.5fr actions */
    grid-template-columns: 60px 2fr 3fr 1fr 1fr 1fr 1.5fr 2.5fr;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.users-grid-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 21, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.users-grid-row {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}

.users-grid-row:hover {
    background: #0F1D38;
    box-shadow: inset 0 0 0 1px rgba(15, 163, 217, 0.2);
    position: relative;
    z-index: 10;
}

.users-grid-row:last-child {
    border-bottom: none;
}

/* The body wrapper must be a flex column so each row occupies full width */
.users-grid-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.grid-col {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--nc-text-primary, #F8FAFC);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-grid-header .grid-col {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--nc-text-secondary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.grid-check {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 10px;
    overflow: visible;
    text-overflow: clip;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--nc-brand-primary, #0FA3D9);
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--nc-text-primary, #F8FAFC);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.user-email {
    font-family: 'JetBrains Mono', monospace;
    color: var(--nc-text-secondary, #94A3B8);
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================
   EXPORT MODAL
   =================================== */
.export-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
}

.export-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.export-option-btn:hover {
    border-color: var(--nc-brand-primary, #0FA3D9);
    background: rgba(15, 163, 217, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 163, 217, 0.25);
}

.export-option-icon {
    font-size: 36px;
    line-height: 1;
}

.export-option-label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--nc-text-primary, #F8FAFC);
}

.export-option-desc {
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
    text-align: center;
}

.export-option-btn.excel:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.export-option-btn.pdf:hover {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.25);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.family-tree-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.family-tree-yes {
    background: rgba(15, 163, 217, 0.14);
    border: 1px solid rgba(15, 163, 217, 0.3);
    color: #38BDF8;
}

.family-tree-no {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--nc-text-muted, #64748B);
}

.last-login {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
}

.action-btns {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.btn-view {
    background: rgba(15, 163, 217, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(15, 163, 217, 0.25);
}

.btn-view:hover {
    background: rgba(15, 163, 217, 0.25);
    border-color: rgba(15, 163, 217, 0.4);
    color: #FFFFFF;
}

.btn-edit {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-edit:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FFFFFF;
}

.btn-status {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-status:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.4);
    color: #FFFFFF;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FFFFFF;
}

/* ===================================
   PAGINATION (Floating Glass Pill)
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(11, 21, 40, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-primary, #F8FAFC);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--nc-brand-primary, #0FA3D9);
    color: var(--nc-brand-primary, #0FA3D9);
}

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

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-secondary, #94A3B8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-family: 'JetBrains Mono', monospace;
}

.page-number:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--nc-brand-primary, #0FA3D9);
    color: #FFFFFF;
}

.page-number.active {
    background: linear-gradient(135deg, var(--nc-brand-primary, #0FA3D9), #0284C7);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(15, 163, 217, 0.4);
}

/* ===================================
   MODALS (Luxury Spatial Glass Overlays)
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.modal-content {
    position: relative;
    background: rgba(11, 21, 40, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.modal-sm {
    max-width: 440px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--nc-text-primary, #F8FAFC);
    letter-spacing: -0.3px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    padding: 6px;
    color: var(--nc-text-secondary, #94A3B8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    color: var(--nc-text-primary, #F8FAFC);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form inputs inside modals */
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-text-secondary, #94A3B8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-primary, #F8FAFC);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--nc-brand-primary, #0FA3D9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(15, 163, 217, 0.25);
}

.form-input option {
    background: #0B1528;
    color: #F8FAFC;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

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

/* User Details in Modal */
.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border-left: 3px solid var(--nc-brand-primary, #0FA3D9);
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--nc-text-secondary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--nc-text-primary, #F8FAFC);
    word-break: break-word;
}

/* OTP Input */
.otp-message {
    font-size: 14px;
    color: var(--nc-text-secondary, #94A3B8);
    margin-bottom: 20px;
}

.otp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--nc-text-primary, #F8FAFC);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    transition: all var(--transition-fast);
    font-family: 'JetBrains Mono', monospace;
}

.otp-input:focus {
    outline: none;
    border-color: var(--nc-brand-primary, #0FA3D9);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(15, 163, 217, 0.25);
}

.otp-error {
    margin-top: 12px;
    font-size: 13px;
    color: #F87171;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    display: none;
}
.otp-error:not(:empty) {
    display: block;
}

/* ===================================
   3-STEP PROFILE EDITING WIZARD
   =================================== */
.wizard-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nc-text-muted, #64748B);
    transition: all 0.3s ease;
}

.wizard-step-dot .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.wizard-step-dot.active {
    color: var(--nc-text-primary, #F8FAFC);
}

.wizard-step-dot.active .step-num {
    background: linear-gradient(135deg, var(--nc-brand-primary, #0FA3D9), #0284C7);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(15, 163, 217, 0.5);
}

.wizard-step-dot.completed .step-num {
    background: #10B981;
    border-color: #34D399;
    color: #FFFFFF;
}

.wizard-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.edit-step-header {
    margin-bottom: 20px;
}

.edit-step-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-text-primary, #F8FAFC);
    margin-bottom: 6px;
}

.edit-step-header p {
    font-size: 13px;
    color: var(--nc-text-secondary, #94A3B8);
}

.user-info {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.user-info p {
    font-size: 14px;
    color: var(--nc-text-secondary, #94A3B8);
    margin-bottom: 6px;
}

.user-info p:last-child {
    margin-bottom: 0;
}

.user-info strong {
    color: var(--nc-text-primary, #F8FAFC);
}

.changes-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px 0;
}

.change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.change-label {
    font-weight: 600;
    color: var(--nc-text-secondary, #94A3B8);
}

.change-old {
    color: #F87171;
    text-decoration: line-through;
    opacity: 0.8;
}

.change-new {
    color: #34D399;
    font-weight: 600;
}

/* OTP Modal Specific Styles */
#otpModal .modal-body {
    text-align: center;
}

#otpModal .modal-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

#otpModal .otp-input {
    margin-bottom: 0;
}

#otpModal .modal-body p:last-of-type {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-light);
}

#otpModal .modal-body p:last-of-type strong {
    color: var(--brand-primary);
    font-weight: 700;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 60px 20px;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-data-content svg {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Image Viewer Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   ENHANCED FILTER STYLES
   =================================== */
.filter-actions {
    display: flex;
    gap: 8px;
}

.age-range-inputs, .date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-input, .date-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
}

.age-separator, .date-separator {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.saved-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-tertiary);
}

.saved-filters-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.saved-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.saved-filter-tag {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.saved-filter-tag:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* ===================================
   ENHANCED ACTIONS BAR
   =================================== */
.results-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
}

.sort-order-btn {
    padding: 6px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.sort-order-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sort-order-btn.desc {
    transform: rotate(180deg);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

/* ===================================
   ENHANCED TABLE STYLES
   =================================== */
.checkbox-col {
    width: 40px;
    text-align: center;
}

.table-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.sortable:hover {
    background: var(--bg-tertiary);
}

.sort-icon {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    opacity: 0.5;
    transition: opacity var(--transition-speed);
}

.sortable:hover .sort-icon {
    opacity: 1;
}

.sortable.active .sort-icon {
    opacity: 1;
    color: var(--brand-primary);
}

.user-row.selected {
    background: rgba(30, 58, 138, 0.1);
}

/* ===================================
   FLOATING STATS BUTTON
   =================================== */
.floating-stats-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
    transition: all var(--transition-speed);
    z-index: 1000;
}

.floating-stats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.4);
}

.floating-stats-btn svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   STATS OVERLAY
   =================================== */
.stats-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.stats-overlay.show {
    display: flex;
}

.stats-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stats-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stats-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.stats-close:hover {
    color: var(--text-primary);
}

.stats-close svg {
    width: 20px;
    height: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--bg-tertiary);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   EDIT PROFILE MODAL
   =================================== */
#editModal .modal-content {
    max-width: 900px;
    max-height: 90vh;
}

.edit-header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    padding: 20px 24px;
    margin: -24px -24px 24px -24px;
    border-radius: 16px 16px 0 0;
}

.edit-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.edit-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edit-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--bg-tertiary);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-image-section {
    text-align: center;
}

.current-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--brand-primary);
    margin-bottom: 16px;
}

.no-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-light);
    margin: 0 auto 16px;
    border: 4px solid var(--bg-tertiary);
}

.image-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.image-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

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

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

.btn-upload:hover {
    background: var(--brand-secondary);
}

.btn-delete:hover {
    background: #dc2626;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--bg-tertiary);
    transition: all var(--transition-speed);
}

.photo-item:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
}

.photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}

.photo-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.photo-item:hover .photo-delete {
    opacity: 1;
}

.add-photo-btn {
    height: 100px;
    border: 2px dashed var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    color: var(--text-light);
}

.add-photo-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(30, 58, 138, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    padding: 12px 14px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-speed);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-input[readonly] {
    background: var(--bg-tertiary) !important;
    color: var(--text-light) !important;
    cursor: not-allowed !important;
    border-color: var(--bg-tertiary) !important;
}

.form-input[readonly]:focus {
    box-shadow: none !important;
    border-color: var(--bg-tertiary) !important;
}

.hidden-input {
    display: none;
}

.changes-preview {
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.changes-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.change-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    font-size: 13px;
}

.change-item:last-child {
    border-bottom: none;
}

.change-field {
    font-weight: 600;
    color: var(--text-secondary);
}

.change-values {
    display: flex;
    gap: 8px;
    align-items: center;
}

.old-value {
    color: var(--error-color);
    text-decoration: line-through;
}

.new-value {
    color: var(--success-color);
    font-weight: 600;
}

/* Custom Alert Popup */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.alert-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease-out;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

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

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

.alert-warning .alert-icon {
    background: var(--warning-color);
    color: white;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.alert-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.alert-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.alert-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

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

.alert-btn-primary:hover {
    background: var(--brand-secondary);
}

.alert-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.alert-btn-secondary:hover {
    background: var(--bg-tertiary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    #editModal .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .alert-content {
        width: 95%;
        padding: 20px;
    }
}
.edit-step-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.edit-step-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.edit-step-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

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

.user-info {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.otp-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-speed);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.changes-summary {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.change-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.change-item:last-child {
    border-bottom: none;
}

.change-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.change-value {
    color: var(--text-primary);
}

.change-old {
    color: var(--error-color);
    text-decoration: line-through;
}

.change-new {
    color: var(--success-color);
    font-weight: 600;
}

/* ===================================
   BULK ACTIONS MODAL
   =================================== */
.bulk-info {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.bulk-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.bulk-info span {
    font-weight: 700;
    color: var(--brand-primary);
}

.bulk-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-action-btn {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-speed);
}

.bulk-action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

.bulk-action-btn.danger {
    border-color: var(--error-color);
    color: var(--error-color);
}

.bulk-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
}

.bulk-action-btn svg {
    width: 18px;
    height: 18px;
}

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

@media (max-width: 768px) {
    .users-content {
        padding: 20px;
    }
    
    .filters-card {
        padding: 20px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .results-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .table-wrapper {
        border-radius: 12px;
    }
    
    .users-table {
        font-size: 13px;
    }
    
    .users-table th,
    .users-table td {
        padding: 12px 16px;
    }
    
    .action-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .floating-stats-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .users-table th,
    .users-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-email {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .user-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .floating-stats-btn {
        width: 44px;
        height: 44px;
    }
    
    .floating-stats-btn svg {
        width: 20px;
        height: 20px;
    }
}