@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

:root {
    --bg-color: #050505;
    --bg-gradient: radial-gradient(circle at top left, #1a1515, #0a0a0a 40%, #050505 100%);
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --primary-color: #ef4444;
    --primary-hover: #dc2626;
    --primary-glow: 0 0 20px rgba(239, 68, 68, 0.25);
    --text-color: #ffffff;
    --text-cream: #fdfbf7;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-color);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    min-height: 100vh; overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

.main-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}

/* ---- Containers ---- */
.login-container, .signup-container, .verify-container {
    width: 100%; max-width: 440px;
}

/* ---- Cards ---- */
.login-card, .signup-card, .verify-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* ---- Card Header ---- */
.card-header { text-align: center; margin-bottom: 24px; }
.card-header .logo {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 26px; font-weight: 700; color: var(--text-cream);
    letter-spacing: -0.5px;
}
.card-header .logo img { border-radius: 8px; }
.card-header .logo .brand-text,
.card-header .logo span:last-child {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.3px;
    color: var(--text-cream);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ---- Auth Tabs ---- */
.auth-tabs {
    display: flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 32px;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    transition: var(--transition);
}
.auth-tab:hover { color: var(--text-color); text-decoration: none; }
.auth-tab.active {
    background: var(--surface-hover);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
    color: var(--text-cream);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-align: left;
    line-height: 1.5;
}

.info-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}
.info-box i { color: var(--warning-color); font-size: 16px; margin-top: 2px; }
.info-box-text { flex: 1; }
.info-box h4 { color: var(--warning-color); font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.info-box p { color: var(--text-muted); font-size: 12px; line-height: 1.4; }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.5px;
}
.form-group input {
    width: 100%; padding: 14px 16px; font-family: var(--font-family);
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-color);
    border-radius: 8px; color: var(--text-color); font-size: 15px; font-weight: 500;
    transition: var(--transition); outline: none;
}
.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* ---- Password Wrapper ---- */
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 48px; }
.password-toggle-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    padding: 4px; display: flex; align-items: center; justify-content: center;
}
.password-toggle-btn svg { width: 20px; height: 20px; }
.password-toggle-btn:hover { color: var(--text-color); }

/* ---- Password Strength ---- */
.password-strength-meter { margin-top: 10px; }
.strength-bar { width: 100%; height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.strength-bar-fill { height: 100%; width: 0%; border-radius: 3px; transition: width 0.3s ease, background-color 0.3s ease; }
.strength-bar-fill.weak { background-color: var(--error-color); }
.strength-bar-fill.medium { background-color: var(--warning-color); }
.strength-bar-fill.strong { background-color: var(--success-color); }
.strength-text { font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.strength-text.weak { color: var(--error-color); }
.strength-text.medium { color: var(--warning-color); }
.strength-text.strong { color: var(--success-color); }
.confirmation-message { font-size: 13px; color: var(--error-color); font-weight: 500; margin-top: 8px; }

/* ---- Password Requirements Checklist ---- */
.password-requirements {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}
.password-requirements-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.password-requirements-title i { font-size: 12px; }
.password-req-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 10px;
}
.password-req-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 6px 10px;
    transition: var(--transition);
    user-select: none;
}
.password-req-item i {
    font-size: 6px;
    color: var(--text-muted);
    opacity: 0.5;
    width: 12px;
    text-align: center;
    transition: var(--transition);
}
.password-req-item.met {
    color: var(--text-color);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.password-req-item.met i {
    font-size: 11px;
    color: var(--success-color);
    opacity: 1;
}
@media (max-width: 360px) {
    .password-req-list { grid-template-columns: 1fr; }
}

/* ---- Form Options Row (Remember Me Toggle / Forgot Password) ---- */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 22px;
    font-size: 13px;
}

.remember-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    user-select: none;
    max-width: 100%;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    margin: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 22px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #cbd5e1;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-hover);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background-color: #ffffff;
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.remember-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s ease;
    line-height: 1.35;
}

.remember-text.active {
    color: #38bdf8;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.form-options-row a,
.forgot-password-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.form-options-row a:hover,
.forgot-password-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px 20px; font-family: var(--font-family);
    font-size: 14px; font-weight: 600; cursor: pointer;
    background: var(--primary-color); color: white; border: 1px solid var(--primary-hover);
    border-radius: var(--border-radius-sm, 8px); transition: var(--transition);
    box-shadow: var(--primary-glow);
    margin-top: 12px; letter-spacing: 0.5px;
}
.submit-btn:hover {
    background: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Card Footer ---- */
.card-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-muted); }
.card-footer a { color: var(--primary-color); font-weight: 600; }

/* ---- Footer ---- */
.footer-wrapper {
    width: 100%;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
}
.auth-footer {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-brand { max-width: 450px; }
.footer-brand .logo {
    display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin-bottom: 16px;
    color: var(--text-cream);
}
.footer-brand .logo .brand-text,
.footer-brand .logo span:last-child {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.3px;
    color: var(--text-cream);
}
.footer-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text-color); }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-internal { font-size: 12px; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.footer-links-grid { display: flex; gap: 80px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; color: var(--text-color); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 16px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.footer-col ul li i { opacity: 0.5; width: 16px; text-align: center; }
.footer-col ul li a { color: var(--text-muted); font-weight: 500; }
.footer-col ul li a:hover { color: var(--text-color); text-decoration: none; }

.footer-bottom-wrapper {
    width: 100%;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}
.footer-bottom {
    width: 100%; max-width: 1100px; margin: 0 auto;
    padding: 24px 40px; display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-muted);
}
.footer-bottom span.highlight { color: white; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .main-wrapper { padding: 30px 16px; }
    .auth-footer { flex-direction: column; gap: 40px; padding: 40px 20px; }
    .footer-links-grid { flex-direction: column; gap: 30px; width: 100%; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
    
    /* Prevent iOS auto-zoom */
    input, textarea, select {
        font-size: 16px !important;
    }
}
@media (max-width: 480px) {
    .main-wrapper { padding: 20px 12px; }
    .login-card, .signup-card, .verify-card { padding: 28px 18px; width: 100%; }
    .card-header .logo { font-size: 22px; }
    .auth-title { font-size: 20px; }
}
@media (max-width: 360px) {
    .main-wrapper { padding: 14px 8px; }
    .login-card, .signup-card, .verify-card { padding: 22px 14px; }
}

/* ========================================================
   SESSION CONFLICT DIALOG (MULTI-DEVICE ALERT SYSTEM)
   ======================================================== */
.conflict-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.conflict-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.conflict-modal-card {
    background: rgba(18, 18, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.12);
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    margin: auto;
    padding: 30px 26px 24px 26px;
    position: relative;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-family);
    color: var(--text-color);
    box-sizing: border-box;
}

.conflict-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.conflict-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

.conflict-close-btn:active {
    transform: scale(0.95);
}

.conflict-modal-overlay.show .conflict-modal-card {
    transform: scale(1) translateY(0);
}

.conflict-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.conflict-badge.session-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.conflict-badge.transfer-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.conflict-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.conflict-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
}

.conflict-icon-circle.session-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
}

.conflict-icon-circle.transfer-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.28);
    animation: transferAura 2s infinite ease-in-out;
}

@keyframes transferAura {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); }
    50% { box-shadow: 0 0 38px rgba(245, 158, 11, 0.5); }
}

.conflict-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.conflict-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 20px;
}

.conflict-card-details {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.conflict-device-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    flex-shrink: 0;
}

.conflict-details-meta {
    flex-grow: 1;
    min-width: 0;
}

.conflict-details-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.conflict-details-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.conflict-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}

.conflict-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.conflict-warning-callout {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #fca5a5;
    line-height: 1.5;
}

.conflict-warning-callout i {
    font-size: 16px;
    color: #ef4444;
    margin-top: 1px;
    flex-shrink: 0;
}

.conflict-question {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.45;
}

.conflict-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.conflict-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    line-height: 1.35;
    text-align: center;
    box-sizing: border-box;
}

.conflict-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.conflict-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.conflict-btn-terminate {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.conflict-btn-terminate:hover {
    background: #dc2626;
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.55);
    transform: translateY(-1px);
}

.conflict-btn-abort-transfer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.4);
}

.conflict-btn-abort-transfer:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    transform: translateY(-1px);
}

.conflict-btn:active {
    transform: scale(0.97) !important;
}

@media (min-width: 520px) {
    .conflict-actions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .conflict-btn {
        padding: 12px 14px;
        min-height: 48px;
        font-size: 13px;
    }
}

@media (max-width: 519px) {
    .conflict-modal-overlay {
        padding: 12px 10px !important;
    }
    .conflict-modal-card {
        padding: 24px 18px 20px 18px !important;
        border-radius: 16px !important;
        max-height: calc(100dvh - 24px) !important;
    }
    .conflict-close-btn {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    .conflict-icon-circle {
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    .conflict-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
        margin-bottom: 12px !important;
    }
    .conflict-title {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }
    .conflict-subtitle {
        font-size: 12.5px !important;
        margin-bottom: 14px !important;
        line-height: 1.5 !important;
    }
    .conflict-card-details {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        gap: 10px !important;
    }
    .conflict-device-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    .conflict-details-title {
        font-size: 13px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    .conflict-details-sub {
        font-size: 11px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .conflict-warning-callout {
        padding: 10px 12px !important;
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    .conflict-question {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    .conflict-actions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .conflict-btn {
        padding: 12px 14px !important;
        font-size: 13px !important;
        min-height: 44px !important;
    }
}

/* ========================================================
   LEGAL PAGES & PRIVACY/TERMS/COOKIES STYLING
   ======================================================== */
.footer-bottom-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-bottom-legal-links a {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}
.footer-bottom-legal-links a:hover {
    color: var(--text-color);
    text-decoration: none;
}
.footer-bottom-legal-links .sep {
    color: var(--border-color);
    font-size: 10px;
}

.legal-main-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.legal-card {
    width: 100%;
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    padding: 48px;
    color: var(--text-color);
}

.legal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 36px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.legal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.legal-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-nav-tabs {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
    flex-wrap: wrap;
}

.legal-nav-tab {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.legal-nav-tab:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.legal-nav-tab.active {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--primary-glow);
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 .sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.legal-section p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #d1d5db;
    margin-bottom: 16px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.legal-section ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: #d1d5db;
}

.legal-section ul li::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 0;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}

.legal-callout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 24px 0;
}

.legal-callout.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    border-left-color: var(--warning-color);
}

.legal-callout h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-callout p {
    font-size: 13.5px;
    margin-bottom: 0;
    color: #e5e7eb;
    line-height: 1.6;
}

.legal-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 28px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.legal-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.legal-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-cream);
    padding: 14px 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.legal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #d1d5db;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12.5px;
    color: #fca5a5;
}

/* ========================================================
   FULL-WIDTH COOKIE CONSENT BANNER (BOTTOM DOCK)
   ======================================================== */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    background: rgba(12, 12, 16, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(239, 68, 68, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.cookie-banner-wrapper.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-icon {
    font-size: 26px;
    color: var(--primary-color);
    background: rgba(239, 68, 68, 0.12);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-content {
    flex-grow: 1;
}

.cookie-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 4px;
}

.cookie-banner-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text .cookie-policy-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.cookie-btn-essential {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border: 1px solid var(--border-color);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

/* ========================================================
   PHONE & MOBILE RESPONSIVENESS OVERRIDES (< 768px & < 480px)
   ======================================================== */
@media (max-width: 768px) {
    .legal-main-wrapper {
        margin: 20px auto 40px;
        padding: 0 16px;
    }
    .legal-card {
        padding: 32px 20px;
        border-radius: 14px;
    }
    .legal-header {
        padding-bottom: 20px;
        margin-bottom: 24px;
    }
    .legal-title {
        font-size: 26px;
        line-height: 1.25;
    }
    .legal-nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
        margin-top: 16px;
        scrollbar-width: none;
    }
    .legal-nav-tabs::-webkit-scrollbar {
        display: none;
    }
    .legal-nav-tab {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12.5px;
        white-space: nowrap;
    }
    .legal-section {
        margin-bottom: 28px;
    }
    .legal-section h2 {
        font-size: 18px;
        gap: 10px;
        line-height: 1.35;
    }
    .legal-callout {
        padding: 14px 16px;
        margin: 18px 0;
    }
    .cookie-banner-wrapper {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }
    .cookie-banner-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 20px;
    }
    .cookie-banner-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 10px 8px;
    }
    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 28px;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 20px 16px;
    }
    .footer-bottom-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .legal-main-wrapper {
        padding: 0 10px;
        margin: 14px auto 30px;
    }
    .legal-card {
        padding: 22px 14px;
        border-radius: 12px;
    }
    .legal-title {
        font-size: 22px;
    }
    .legal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }
    .legal-section p, .legal-section ul li {
        font-size: 13.5px;
    }
    .legal-section ul li {
        padding-left: 22px;
    }
    .legal-section ul li::before {
        left: 6px;
    }
    .cookie-banner-icon {
        display: none;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-brand .logo {
        justify-content: flex-start;
    }
    .form-options-row {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* =========================================================================
   AUTHENTICATION & SECURITY TRUST STRIP
   ========================================================================= */
.auth-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.auth-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.auth-trust-pill i {
    color: var(--primary-color);
    font-size: 10px;
}

.auth-trust-pill:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Top accent gradient bar on auth & legal cards */
.login-card::before, .signup-card::before, .verify-card::before, .legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    pointer-events: none;
}

/* Quick Action / Secondary Button */
.btn-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary-link:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}

/* =========================================================================
   ERROR PAGE ELEVATION STYLES
   ========================================================================= */
.error-card-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.error-hero-card {
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 48px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    text-align: center;
}

.error-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.error-badge-pill.status-404 {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.error-badge-pill.status-403 {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-badge-pill.status-500, .error-badge-pill.status-503 {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.error-badge-pill.status-default {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.error-icon-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: var(--primary-color);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.2);
    animation: errorPulse 3s infinite ease-in-out;
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.18); }
    50% { transform: scale(1.04); box-shadow: 0 0 40px rgba(239, 68, 68, 0.35); }
}

.error-num-display {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 40%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-headline {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 12px;
}

.error-desc-text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 28px;
}

.error-guidance-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 30px;
}

.error-guidance-box h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-cream);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.error-guidance-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.error-guidance-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.error-guidance-box ul li i {
    color: var(--primary-color);
    font-size: 11px;
    margin-top: 4px;
}

.error-actions-cluster {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================================
   HELP & KNOWLEDGEBASE HUB STYLES
   ========================================================================= */
.help-hero-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.help-hero-text h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-cream);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-hero-text p {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.help-search-container {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
}

.help-search-input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.help-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.help-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

/* Help Navigation Grid */
.help-grid-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.help-nav-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.help-nav-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
}

.help-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.help-nav-text h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-cream);
    margin-bottom: 2px;
}

.help-nav-text p {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.35;
}

/* Help Topic Sections */
.help-topic-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
    scroll-margin-top: 30px;
}

.help-topic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

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

.help-topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.help-topic-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-cream);
    margin: 0;
}

/* Interactive Example / Scenario Callouts */
.help-scenario-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}

.help-scenario-card.warning-scenario {
    background: rgba(41, 23, 10, 0.5);
    border-color: rgba(245, 158, 11, 0.3);
}

.help-scenario-card.success-scenario {
    background: rgba(6, 40, 25, 0.5);
    border-color: rgba(16, 185, 129, 0.3);
}

.help-scenario-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-scenario-card p {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.55;
}

/* Step-by-Step Flow List */
.help-steps-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.help-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 16px;
}

.help-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.help-step-body h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-cream);
    margin-bottom: 4px;
}

.help-step-body p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Monospace Code / Key Display Chip */
.help-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fca5a5;
    margin: 6px 0;
}

.help-code-chip i {
    color: var(--text-muted);
    font-size: 11px;
}

/* FAQ Accordion */
.help-faq-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.help-faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.help-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.help-faq-question {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-cream);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
}

.help-faq-question i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.help-faq-item.open .help-faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.help-faq-answer {
    display: none;
    padding: 0 18px 16px 18px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.help-faq-item.open .help-faq-answer {
    display: block;
}

@media (max-width: 768px) {
    .help-grid-nav {
        grid-template-columns: 1fr;
    }
    .help-hero-banner {
        padding: 18px;
    }
    .help-topic-block {
        padding: 18px 14px;
    }
    .error-hero-card {
        padding: 32px 18px;
    }
    .error-num-display {
        font-size: 54px;
    }
}

