/* =========================================================
   PASSWORD & ACCOUNT RECOVERY SUITE - MODERN DARK GLASS UI
   External Stylesheet (Zero Inline Styles)
   ========================================================= */

:root {
    --pw-bg: #030712;
    --pw-card-bg: rgba(15, 23, 42, 0.72);
    --pw-input-bg: rgba(9, 14, 26, 0.75);
    --pw-border: rgba(56, 189, 248, 0.24);
    --pw-border-strong: rgba(56, 189, 248, 0.55);
    --pw-accent: #0ea5e9;
    --pw-accent-light: #38bdf8;
    --pw-success: #10b981;
    --pw-warning: #f59e0b;
    --pw-danger: #f43f5e;
    --pw-text: #f8fafc;
    --pw-muted: #94a3b8;
}

body.pw-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--pw-bg) !important;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(56, 189, 248, 0.1) 0%, transparent 45%) !important;
    background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100% !important;
    color: var(--pw-text);
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.pw-page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.pw-card {
    width: 100%;
    max-width: 500px;
    background: var(--pw-card-bg);
    border: 1.5px solid var(--pw-border);
    border-radius: 28px;
    padding: 40px 36px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 50px rgba(14, 165, 233, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    animation: pwCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pw-accent-light), transparent);
}

@keyframes pwCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top Navigation Bar inside Card */
.pw-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.pw-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--pw-accent-light) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.pw-back-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--pw-accent-light);
    transform: translateX(-2px);
}

.pw-brand-logo {
    max-height: 34px;
    max-width: 130px;
    object-fit: contain;
}

/* Header & Glowing Badge */
.pw-header {
    text-align: center;
    margin-bottom: 26px;
}

.pw-icon-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(56, 189, 248, 0.08));
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pw-accent-light);
    font-size: 32px;
    box-shadow: 0 0 32px rgba(14, 165, 233, 0.25);
}

.pw-icon-badge.is-danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(244, 63, 94, 0.06));
    border-color: rgba(244, 63, 94, 0.4);
    color: var(--pw-danger);
    box-shadow: 0 0 32px rgba(244, 63, 94, 0.22);
}

.pw-icon-badge.is-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.06));
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--pw-success);
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.22);
}

.pw-title {
    margin: 0 0 8px 0 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.pw-subtitle {
    margin: 0;
    font-size: 14.5px;
    color: var(--pw-muted);
    line-height: 1.6;
}

/* Stepper Pills */
.pw-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pw-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.25s ease;
}

.pw-step-pill .pw-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.pw-step-pill.is-active {
    color: var(--pw-accent-light);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.12);
}

.pw-step-pill.is-active .pw-step-num {
    background: var(--pw-accent-light);
    color: #020617;
}

.pw-step-pill.is-done {
    color: var(--pw-success);
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.pw-step-pill.is-done .pw-step-num {
    background: var(--pw-success);
    color: #020617;
}

.pw-step-line {
    width: 24px;
    height: 1.5px;
    background: rgba(148, 163, 184, 0.2);
}

/* Status & Timer Banner */
.pw-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.26);
    margin-bottom: 20px;
    font-size: 13.5px;
    color: #cbd5e1;
}

.pw-status-banner strong {
    color: var(--pw-accent-light);
}

.pw-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--pw-accent-light);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Form Elements */
.pw-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pw-hidden {
    display: none !important;
}

.pw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pw-req-star {
    color: var(--pw-danger);
    margin-left: 3px;
}

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-input-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 19px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.pw-input {
    width: 100% !important;
    height: 52px !important;
    padding: 0 46px 0 46px !important;
    background: var(--pw-input-bg) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: all 0.22s ease !important;
    box-sizing: border-box;
}

.pw-input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.pw-input:focus {
    outline: none !important;
    border-color: var(--pw-accent-light) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    box-shadow: 0 0 0 3.5px rgba(14, 165, 233, 0.14) !important;
}

.pw-input-wrap:focus-within .pw-input-icon {
    color: var(--pw-accent-light);
}

.pw-eye-btn {
    position: absolute;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 19px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
}

.pw-eye-btn:hover {
    color: var(--pw-accent-light);
    background: rgba(56, 189, 248, 0.1);
}

/* 6-Digit OTP Input Grid */
.pw-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.pw-otp-digit {
    width: 100% !important;
    height: 56px !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    font-family: 'JetBrains Mono', Consolas, monospace !important;
    color: var(--pw-accent-light) !important;
    background: var(--pw-input-bg) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.24) !important;
    border-radius: 14px !important;
    transition: all 0.2s ease !important;
}

.pw-otp-digit:focus {
    outline: none !important;
    border-color: var(--pw-accent-light) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 18px rgba(14, 165, 233, 0.22) !important;
    transform: translateY(-2px);
}

/* Password Strength Meter & Checklist */
.pw-strength-box {
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-strength-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--pw-muted);
}

.pw-strength-label {
    font-weight: 700;
    color: #94a3b8;
}

.pw-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.pw-strength-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    transition: background-color 0.25s ease;
}

.pw-strength-box[data-level="1"] .pw-strength-bar:nth-child(-n+1) { background: var(--pw-danger); }
.pw-strength-box[data-level="1"] .pw-strength-label { color: var(--pw-danger); }

.pw-strength-box[data-level="2"] .pw-strength-bar:nth-child(-n+2) { background: var(--pw-warning); }
.pw-strength-box[data-level="2"] .pw-strength-label { color: var(--pw-warning); }

.pw-strength-box[data-level="3"] .pw-strength-bar:nth-child(-n+3) { background: var(--pw-accent-light); }
.pw-strength-box[data-level="3"] .pw-strength-label { color: var(--pw-accent-light); }

.pw-strength-box[data-level="4"] .pw-strength-bar:nth-child(-n+4) { background: var(--pw-success); }
.pw-strength-box[data-level="4"] .pw-strength-label { color: var(--pw-success); }

.pw-req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    font-size: 12px;
    color: #64748b;
}

.pw-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pw-req-item i {
    font-size: 14px;
}

.pw-req-item.is-valid {
    color: var(--pw-success);
}

.pw-match-hint {
    font-size: 12.5px;
    font-weight: 600;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pw-match-hint.is-match {
    color: var(--pw-success);
}

.pw-match-hint.is-mismatch {
    color: var(--pw-danger);
}

/* Primary & Secondary Buttons */
.pw-submit-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #020617 !important;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 26px rgba(14, 165, 233, 0.35);
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.pw-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
    filter: brightness(1.06);
}

.pw-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.pw-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    color: var(--pw-muted);
    margin-top: 2px;
}

.pw-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--pw-accent-light);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pw-link-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.pw-link-btn:disabled {
    color: #64748b;
    cursor: not-allowed;
}

/* Footer Links inside Card */
.pw-card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 14px;
    color: var(--pw-muted);
}

.pw-card-footer a {
    color: var(--pw-accent-light) !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.pw-card-footer a:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

/* Found Username List (/forgot-username) */
.pw-found-box {
    margin-top: 6px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.08);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
}

.pw-found-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--pw-accent-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pw-found-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-found-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.pw-found-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    font-family: Consolas, Monaco, monospace;
    word-break: break-all;
}

.pw-found-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pw-mini-btn {
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.12);
    color: var(--pw-accent-light) !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.pw-mini-btn:hover {
    background: rgba(14, 165, 233, 0.24);
    border-color: var(--pw-accent-light);
}

/* Support Social Bar */
.pw-support-bar {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(12px);
    font-size: 13.5px;
    color: var(--pw-muted);
}

.pw-support-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pw-support-link:hover {
    transform: translateY(-2px);
    border-color: var(--pw-accent-light);
}

.pw-support-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pw-copyright {
    margin-top: 20px;
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
}

/* Spinner */
.pw-spin {
    animation: pwSpin 0.85s linear infinite;
    display: inline-block;
}

@keyframes pwSpin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   PROFILE PAGE - UPGRADED CHANGE PASSWORD CARD
   ========================================================= */
.pw-profile-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-profile-input-wrap input {
    padding-right: 44px !important;
}

.pw-profile-input-wrap .pw-eye-btn {
    right: 10px;
}

.pw-profile-strength {
    margin-top: 10px;
    margin-bottom: 6px;
}

@media (max-width: 540px) {
    .pw-card {
        padding: 28px 20px;
        border-radius: 22px;
    }
    .pw-title {
        font-size: 24px !important;
    }
    .pw-otp-grid {
        gap: 6px;
    }
    .pw-otp-digit {
        height: 48px !important;
        font-size: 19px !important;
    }
    .pw-req-list {
        grid-template-columns: 1fr;
    }
    .pw-status-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* =========================================================
   PROFILE PAGE - FULL EXTERNAL STYLES & UPGRADED SECURITY UI
   ========================================================= */
.profile-header {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.25);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #090e1a, #1e293b);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #38bdf8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    color: #020617;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}

.profile-info p {
    color: rgba(2, 6, 23, 0.8);
    font-size: 14.5px;
    font-weight: 600;
    margin: 0;
}

.profile-badges {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    color: #38bdf8;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.stat-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.28s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
}

.stat-icon.wallet {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.stat-icon.charge {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-icon.level {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.stat-label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

.security-section {
    background: rgba(15, 23, 42, 0.82);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 22px;
    padding: 32px;
    backdrop-filter: blur(22px);
    margin-bottom: 30px;
}

.security-section h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-section h3 i {
    color: #38bdf8;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.security-card {
    background: rgba(9, 14, 26, 0.68);
    border: 1.5px solid rgba(56, 189, 248, 0.2);
    border-radius: 18px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.security-card:hover {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.security-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.security-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 22px;
    flex-shrink: 0;
}

.security-card h4 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-card-sub {
    color: #94a3b8;
    font-size: 12.5px;
    margin: 0;
}

.security-forgot-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.security-forgot-pill:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: #38bdf8;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group input {
    width: 100%;
    height: 48px;
    background: rgba(2, 6, 23, 0.65);
    border: 1.5px solid rgba(56, 189, 248, 0.22);
    border-radius: 12px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.22s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.form-group input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pw-profile-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

#wrapper #page .security-card .pw-profile-input-wrap input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 46px 0 16px !important;
    box-sizing: border-box !important;
}

#wrapper #page .security-card .pw-profile-input-wrap .pw-eye-btn,
.pw-input-wrap .pw-eye-btn {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
}

#wrapper #page .security-card .pw-profile-input-wrap .pw-eye-btn:hover,
.pw-input-wrap .pw-eye-btn:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    transform: translateY(-50%) !important;
}

#wrapper #page .security-card .token-actions-bar .pw-mini-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    background: rgba(14, 165, 233, 0.14) !important;
    color: #38bdf8 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
}

#wrapper #page .security-card .token-actions-bar .pw-mini-btn:hover {
    background: rgba(14, 165, 233, 0.28) !important;
    border-color: #38bdf8 !important;
    transform: none !important;
}

.token-display {
    background: rgba(2, 6, 23, 0.72);
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.token-display code {
    color: #38bdf8;
    font-size: 13.5px;
    word-break: break-all;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
}

.token-actions-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.security-tip-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.18);
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.security-tip-box i {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 1px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #020617 !important;
    border: none;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}

.activity-log {
    margin-top: 20px;
}

.activity-table {
    background: rgba(9, 14, 26, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.activity-table table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table thead {
    background: rgba(56, 189, 248, 0.1);
}

.activity-table th {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    text-align: left;
}

.activity-table td {
    color: #cbd5e1;
    font-size: 14px;
    padding: 16px;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.activity-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.05);
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.activity-title i {
    color: #38bdf8;
    font-size: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .stats-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
    .security-card-head {
        flex-direction: column;
    }
    .activity-table {
        overflow-x: auto;
    }
    .activity-table table {
        min-width: 600px;
    }
}
