/* ==========================================================================
   CrownateStudio Authentic8 — Professional Standard Styling
   Unified with CrownateStudio Platform Design System (css/main.css)
   Clean, prestigious, executive architectural & institutional aesthetic
   ========================================================================== */

:root {
    /* Brand Color Palette */
    --auth-bg-page: #F8FAFC;
    --auth-bg-card: #FFFFFF;
    --auth-bg-elevated: #F1F5F9;
    --auth-bg-subtle: #F8FAFC;
    --auth-bg-input: #FFFFFF;
    
    /* Text Hierarchy */
    --auth-text-title: #0F172A;
    --auth-text-body: #334155;
    --auth-text-muted: #64748B;
    --auth-text-dim: #94A3B8;
    
    /* Borders */
    --auth-border: #E2E8F0;
    --auth-border-strong: #CBD5E1;
    --auth-border-focus: #1E3A8A;
    
    /* Executive Accents */
    --auth-primary: #0B0B0B;
    --auth-primary-hover: #1E293B;
    --auth-navy: #1E3A8A;
    --auth-gold: #C5A059;
    
    /* Feedback States */
    --auth-success: #059669;
    --auth-success-bg: #ECFDF5;
    --auth-success-border: #A7F3D0;
    
    --auth-warning: #D97706;
    --auth-warning-bg: #FFFBEB;
    --auth-warning-border: #FDE68A;
    
    --auth-danger: #DC2626;
    --auth-danger-bg: #FEF2F2;
    --auth-danger-border: #FECACA;

    /* Shadows */
    --auth-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --auth-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --auth-shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --auth-shadow-glow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* Page Canvas */
body.authentic8-body {
    background-color: var(--auth-bg-page);
    color: var(--auth-text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
}

/* Header Status Bar */
.auth-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--auth-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--auth-text-title);
}

.auth-brand-symbol {
    width: 38px;
    height: 38px;
    background: #0B0B0B;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--auth-text-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-brand-badge {
    background: #F1F5F9;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #E2E8F0;
}

.auth-brand-tagline {
    font-size: 11px;
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--auth-success-bg);
    color: var(--auth-success);
    border: 1px solid var(--auth-success-border);
}

.auth-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--auth-success);
    display: inline-block;
    animation: authPulse 2s infinite ease-in-out;
}

@keyframes authPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.auth-clock {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--auth-text-muted);
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.auth-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    font-size: 13px;
    color: var(--auth-text-title);
    box-shadow: var(--auth-shadow-sm);
}

.auth-user-role-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #0B0B0B;
    color: #FFFFFF;
}

.auth-header-btn {
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    color: var(--auth-text-title);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.auth-header-btn:hover {
    background: #F8FAFC;
    border-color: var(--auth-border-strong);
    color: #000000;
}

/* Main Application Wrapper */
.auth-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* -------------------------------------------------------------
   GATEWAY CARD (SIGN IN / REGISTER / RECOVERY)
   ------------------------------------------------------------- */
.auth-gateway-container {
    max-width: 500px;
    width: 100%;
    margin: 1.5rem auto 2.5rem;
}

.auth-card {
    background: var(--auth-bg-card);
    border: 1px solid var(--auth-border);
    border-top: 4px solid var(--auth-navy);
    border-radius: 12px;
    box-shadow: var(--auth-shadow-card);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

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

.auth-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-text-title);
    margin-bottom: 6px;
}

.auth-card-subtitle {
    font-size: 13px;
    color: var(--auth-text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Navigation Tabs (Segmented Control) */
.auth-nav-tabs {
    display: flex;
    background: #F1F5F9;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.75rem;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.auth-tab-btn.active {
    background: #FFFFFF;
    color: var(--auth-text-title);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn:hover:not(.active) {
    color: var(--auth-text-title);
}

/* Forms & Controls */
.auth-form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text-title);
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: var(--auth-bg-input);
    border: 1px solid var(--auth-border-strong);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--auth-text-title);
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.auth-input:focus {
    border-color: var(--auth-border-focus);
    box-shadow: var(--auth-shadow-glow);
}

.auth-input::placeholder {
    color: var(--auth-text-dim);
}

.auth-select {
    width: 100%;
    background: var(--auth-bg-input);
    border: 1px solid var(--auth-border-strong);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--auth-text-title);
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-select:focus {
    border-color: var(--auth-border-focus);
    box-shadow: var(--auth-shadow-glow);
}

.auth-input-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Password Eye Toggle */
.auth-pw-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.auth-pw-toggle:hover {
    color: var(--auth-text-title);
}

.auth-pw-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Password Strength Bar & Criteria */
.auth-pw-strength-bar-container {
    height: 4px;
    background: #E2E8F0;
    border-radius: 20px;
    margin-top: 8px;
    overflow: hidden;
}

.auth-pw-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-pw-criteria {
    margin-top: 8px;
    font-size: 11px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    color: var(--auth-text-muted);
}

.auth-criterion {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.auth-criterion.met {
    color: var(--auth-success);
    font-weight: 600;
}

.auth-criterion-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Checkbox & Terms */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 12px;
    color: var(--auth-text-body);
}

.auth-checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--auth-navy);
    cursor: pointer;
}

.auth-checkbox-group a {
    color: var(--auth-navy);
    text-decoration: underline;
    font-weight: 500;
}

/* Primary Action Buttons */
.auth-submit-btn {
    width: 100%;
    background: #0B0B0B;
    color: #FFFFFF;
    border: 1px solid #0B0B0B;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-submit-btn:hover {
    background: #1E293B;
    border-color: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Human Operator Verification Task Widget
   ========================================================================== */
.auth-verification-box {
    background: #F8FAFC;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.auth-verification-box.auth-shake {
    animation: authVerifShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #EF4444;
    background: #FEF2F2;
}

@keyframes authVerifShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.auth-verification-box.verified {
    background: #F0FDF4;
    border-color: #86EFAC;
}

.auth-verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-verification-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--auth-text-title);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-verif-icon {
    width: 15px;
    height: 15px;
    color: var(--auth-navy);
}

.auth-verif-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    transition: all 0.2s ease;
}

.auth-verif-badge.verified {
    background: #D1FAE5;
    color: #065F46;
    border-color: #6EE7B7;
}

.auth-verification-desc {
    font-size: 11px;
    color: var(--auth-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.auth-slider-container {
    position: relative;
    width: 100%;
    height: 46px;
    background: #FFFFFF;
    border: 1px solid var(--auth-border-strong);
    border-radius: 23px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    touch-action: pan-y;
}

.auth-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.auth-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1E3A8A 0%, #3B82F6 100%);
    border-radius: 23px 0 0 23px;
    transition: width 0.05s ease;
    opacity: 0.9;
    pointer-events: none;
}

.auth-slider-progress.verified {
    background: linear-gradient(90deg, #059669 0%, #10B981 100%);
    width: 100% !important;
    border-radius: 23px;
    transition: width 0.3s ease;
}

.auth-slider-label {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.2px;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.auth-slider-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 38px;
    height: 38px;
    background: #0B0B0B;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.05s ease, background-color 0.2s ease;
    pointer-events: auto !important;
    touch-action: none;
}

.auth-slider-handle:active {
    cursor: grabbing;
    transform: scale(1.08);
}

.auth-slider-handle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.auth-slider-handle.verified {
    background: #059669 !important;
    cursor: default;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.auth-verif-alt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 11px;
    position: relative;
    z-index: 5;
}

.auth-verif-success-text {
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-verif-alt-btn {
    background: none;
    border: none;
    color: var(--auth-navy, #1E3A8A);
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: auto !important;
    position: relative;
    z-index: 6;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-verif-alt-btn:hover {
    color: #0F172A;
    background: #E2E8F0;
}

.auth-math-challenge-box {
    margin-top: 10px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.auth-math-prompt {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text-title);
}

.auth-math-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-math-input {
    width: 65px;
    padding: 5px 8px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.auth-math-check-btn {
    background: var(--auth-navy, #1E3A8A);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto !important;
    transition: background 0.15s ease;
}

.auth-math-check-btn:hover {
    background: #1e40af;
}

.auth-secondary-btn {
    background: #FFFFFF;
    border: 1px solid var(--auth-border-strong);
    color: var(--auth-text-title);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.auth-secondary-btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #000000;
}

.auth-danger-btn {
    background: var(--auth-danger-bg);
    border: 1px solid var(--auth-danger-border);
    color: var(--auth-danger);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-danger-btn:hover {
    background: #FEE2E2;
}

/* Copy Button */
.auth-copy-btn {
    background: #F1F5F9;
    border: 1px solid var(--auth-border);
    color: var(--auth-text-body);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.auth-copy-btn:hover {
    background: #E2E8F0;
    color: var(--auth-text-title);
}

.auth-copy-btn.copied {
    background: var(--auth-success-bg);
    border-color: var(--auth-success-border);
    color: var(--auth-success);
}

/* Alerts */
.auth-alert {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-alert-error {
    background: var(--auth-danger-bg);
    border: 1px solid var(--auth-danger-border);
    color: var(--auth-danger);
}

.auth-alert-success {
    background: var(--auth-success-bg);
    border: 1px solid var(--auth-success-border);
    color: var(--auth-success);
}

.auth-alert-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

/* Badges */
.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-badge-active {
    background: var(--auth-success-bg);
    color: var(--auth-success);
    border: 1px solid var(--auth-success-border);
}

.auth-badge-pending {
    background: var(--auth-warning-bg);
    color: var(--auth-warning);
    border: 1px solid var(--auth-warning-border);
}

.auth-badge-danger {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    border: 1px solid var(--auth-danger-border);
}

.auth-badge-muted {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

/* -------------------------------------------------------------
   USER SECURITY CENTER VIEW
   ------------------------------------------------------------- */
.auth-dashboard-layout {
    width: 100%;
}

.auth-dashboard-header {
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--auth-shadow-sm);
}

.auth-user-identity-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #0B0B0B;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.auth-sec-card {
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--auth-shadow-sm);
}

.auth-sec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.auth-sec-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-text-title);
}

.auth-sec-card-desc {
    font-size: 12px;
    color: var(--auth-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------
   ADMINISTRATOR CONTROL CENTER VIEW (100% RESPONSIVE)
   ------------------------------------------------------------- */
.auth-admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: var(--auth-shadow-card);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    min-height: calc(100vh - 220px);
    align-items: start;
}

.auth-admin-sidebar {
    background: #F8FAFC;
    border-right: 1px solid var(--auth-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
    align-self: flex-start;
    border-radius: 12px 0 0 12px;
    position: static;
    transform: none !important;
}

.auth-admin-nav-item {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text-body);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.auth-admin-nav-item:hover {
    background: #EDF2F7;
    color: var(--auth-text-title);
}

.auth-admin-nav-item.active {
    background: #0B0B0B;
    color: #FFFFFF;
}

.auth-admin-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.75rem 2rem;
    min-height: 600px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

/* KPI Summary Cards */
.auth-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.auth-kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--auth-shadow-sm);
}

.auth-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--auth-text-muted);
    margin-bottom: 8px;
}

.auth-kpi-value {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

/* Universal Table Slide Bar & Controls */
.auth-table-slide-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid var(--auth-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    gap: 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.auth-table-slide-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.auth-table-slide-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth-table-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.auth-table-slide-btn:hover {
    background: #0B0B0B;
    color: #FFFFFF;
    border-color: #0B0B0B;
}

.auth-table-slide-btn:active {
    transform: scale(0.96);
}

/* Tables & Responsive Scrolling */
.auth-table-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--auth-border);
    border-radius: 0 0 8px 8px;
    margin-bottom: 1.5rem;
    background: #FFFFFF;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #94A3B8 #F1F5F9;
    scroll-behavior: smooth;
}

.auth-table-wrapper.no-slide-bar {
    border-radius: 8px;
}

.auth-table-wrapper::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.auth-table-wrapper::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

.auth-table-wrapper::-webkit-scrollbar-thumb {
    background: #94A3B8;
    border-radius: 4px;
}

.auth-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

.auth-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.auth-table.auth-table-wide {
    min-width: 1040px;
}

.auth-table.auth-table-medium {
    min-width: 860px;
}

.auth-table th {
    background: #F8FAFC;
    color: var(--auth-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--auth-border);
    white-space: nowrap;
}

.auth-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--auth-text-title);
    vertical-align: middle;
}

.auth-table tr:hover {
    background-color: #F8FAFC;
}

.auth-table code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0F172A;
}

/* Key Vault Box in Modals */
.auth-key-vault-box {
    background: #F8FAFC;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.auth-key-vault-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--auth-text-muted);
    margin-bottom: 6px;
}

.auth-key-vault-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
    letter-spacing: 1px;
    word-break: break-all;
}

.auth-key-vault-notice {
    font-size: 11px;
    color: var(--auth-danger);
    font-weight: 600;
    margin-top: 6px;
}

/* Modals */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.auth-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--auth-shadow-modal);
    border: 1px solid var(--auth-border);
    padding: 2rem;
    transform: translateY(12px);
    transition: transform 0.2s ease;
}

.auth-modal-backdrop.open .auth-modal {
    transform: translateY(0);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--auth-border);
}

.auth-modal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--auth-text-title);
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--auth-text-muted);
    cursor: pointer;
    line-height: 1;
}

.auth-modal-close:hover {
    color: var(--auth-text-title);
}

.auth-recovery-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
}

.auth-code-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    background: #F8FAFC;
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    text-align: center;
    color: var(--auth-navy);
}

/* Floating Toast Notifications */
#authToastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.auth-toast {
    pointer-events: auto;
    background: #FFFFFF;
    border: 1px solid var(--auth-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-title);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    animation: authToastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authToastSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-toast-success { border-left: 4px solid var(--auth-success); }
.auth-toast-error { border-left: 4px solid var(--auth-danger); }
.auth-toast-info { border-left: 4px solid var(--auth-navy); }

/* =============================================================
   DYNAMIC SLIDE TRANSITIONS & TOUCH-SLIDING CONTROLS
   ============================================================= */
.auth-admin-pane-slide {
    animation: authAdminPaneSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authAdminPaneSlide {
    0% {
        opacity: 0;
        transform: translateX(18px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-view-slide-in {
    animation: authViewSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authViewSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slide Nav Wrapper */
.auth-nav-slider-wrapper {
    position: sticky;
    top: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: flex-start;
    z-index: 10;
}

.auth-nav-slide-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0B0B0B;
    color: #FFFFFF;
    border: 1px solid #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.auth-nav-slide-arrow:hover {
    background: #1E3A8A;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}

.auth-nav-slide-arrow.left { left: 4px; }
.auth-nav-slide-arrow.right { right: 4px; }

/* Responsive Horizontal Table Slide Indicator */
.auth-table-slide-hint {
    display: none;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* One-Way Admin Chat Board Directives Styling */
.auth-chat-board-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #1E3A8A;
}

.auth-chat-board-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.auth-chat-board-card.priority-urgent {
    border-left-color: #DC2626;
    background: #FFFDFD;
}

.auth-chat-board-card.priority-high {
    border-left-color: #F59E0B;
    background: #FFFDF7;
}

.auth-chat-board-card.priority-normal {
    border-left-color: #1E3A8A;
}

/* Floating Navigation HUD (Up, Down, Left, Right) */
.auth-floating-nav-hud {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-floating-nav-hud:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.auth-hud-pill {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    margin-bottom: 2px;
}

.auth-hud-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.auth-hud-h-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-hud-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1E293B;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-hud-btn:hover {
    background: #3B82F6;
    color: #FFFFFF;
    transform: scale(1.1);
}

.auth-hud-btn:active {
    transform: scale(0.95);
}

/* Responsive Media Queries (Tablets, Laptops, Phones) */
@media (max-width: 1024px) {
    .auth-nav-slide-arrow {
        display: flex;
    }
    .auth-table-slide-hint {
        display: flex;
    }
    .auth-admin-layout {
        grid-template-columns: 100%;
        border-radius: 8px;
        gap: 1rem;
        align-items: stretch;
    }
    .auth-nav-slider-wrapper {
        position: sticky;
        top: 0;
        z-index: 30;
        background: #FFFFFF;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .auth-admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--auth-border);
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 12px 36px 12px 36px;
        gap: 8px;
        white-space: nowrap;
        scrollbar-width: none;
        border-radius: 0;
        max-height: none;
        align-self: auto;
    }
    .auth-admin-sidebar::-webkit-scrollbar {
        display: none;
    }
    .auth-admin-nav-item {
        flex-shrink: 0;
        scroll-snap-align: start;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }
    .auth-admin-sidebar-gateway-wrap {
        display: none;
    }
    .auth-admin-content {
        padding: 1.25rem 0.85rem;
    }
    .auth-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .auth-grid-cards {
        grid-template-columns: 1fr;
    }
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    .auth-clock {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-main-wrapper {
        padding: 1rem 0.5rem 3rem;
    }
    .auth-admin-content {
        padding: 0.85rem 0.5rem;
    }
    .auth-card {
        padding: 1.15rem 0.85rem !important;
        border-radius: 8px;
    }
    .auth-table-slide-bar {
        padding: 6px 8px;
    }
    .auth-table-slide-info {
        font-size: 10px;
    }
    .auth-table th, .auth-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .auth-header-bar {
        padding: 0 1rem;
        height: 68px;
    }
    .auth-brand-symbol {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .auth-brand-name {
        font-size: 14px;
    }
    .auth-header-actions {
        gap: 6px;
    }
    .auth-header-actions button,
    .auth-header-actions a {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
    .auth-kpi-grid {
        grid-template-columns: 1fr;
    }
    .auth-modal-dialog {
        width: 96% !important;
        max-height: 90vh;
        padding: 16px 12px !important;
    }
    .auth-floating-nav-hud {
        bottom: 16px;
        right: 16px;
        padding: 6px 8px;
    }
    .auth-hud-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* -------------------------------------------------------------
   STATUTORY FOOTER & BRAND LEGAL NOTICE
   ------------------------------------------------------------- */
.site-footer {
    background-color: #0B0B0B;
    color: #FFFFFF;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid #2B2B2B;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.disclaimer-banner {
    background-color: #141414;
    border: 1px solid #2B2B2B;
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 2.75rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #B3B3B3;
}

.disclaimer-banner strong {
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h3 {
    font-family: 'Manrope', sans-serif;
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #B3B3B3;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    font-family: 'Manrope', sans-serif;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #B3B3B3;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #2B2B2B;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8E8E8A;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* -------------------------------------------------------------
   GEMINI AI 2FA & SECURITY ASSISTANT
   ------------------------------------------------------------- */
.auth-gemini-panel {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.auth-gemini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.auth-gemini-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1E3A8A;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 8px;
    border-radius: 4px;
}

.auth-gemini-response {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.85rem;
    font-size: 13px;
    line-height: 1.6;
    color: #1E293B;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.auth-gemini-response h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #0F172A;
}

.auth-gemini-response ul, .auth-gemini-response ol {
    margin: 6px 0 6px 1.25rem;
    padding: 0;
}

.auth-gemini-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.auth-gemini-chip {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-gemini-chip:hover {
    background: #0B0B0B;
    color: #FFFFFF;
    border-color: #0B0B0B;
}

/* -------------------------------------------------------------
   TICKETS, COMPLAINTS & DIRECT MESSAGING
   ------------------------------------------------------------- */
.auth-msg-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 14px;
}

.auth-msg-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
}

.auth-msg-bubble.admin {
    background: #1E3A8A;
    color: #FFFFFF;
    align-self: flex-start;
}

.auth-msg-bubble.user {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    align-self: flex-end;
}

.auth-msg-meta {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Danger Zone */
.auth-danger-card {
    background: #FFF5F5;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}


