/* KwinBase Account Panel - Premium Design */
:root {
    --bg-main: #0E0F12;
    --bg-panel: #14161B;
    --bg-elevated: #1A1D23;
    --border-subtle: #23262D;
    --text-primary: #E6E8EB;
    --text-secondary: #B1B5BD;
    --text-muted: #7C828D;
    --text-disabled: #555A63;
    --accent: #A4161A;
    --accent-hover: #8C1D18;
    --accent-soft: rgba(164,22,26,0.15);
    --success: #2ECC71;
    --warning: #F2B705;
    --error: #A4161A;
    --info: #3A6EA5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg-main); color: var(--text-primary); min-height: 100vh; line-height: 1.6; }

/* Header */
.header { background: var(--bg-panel); border-bottom: 1px solid var(--border-subtle); padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.header-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 1.125rem; }
.header-logo svg { width: 28px; height: 28px; }
.header-center { display: flex; align-items: center; gap: 0.5rem; }
.header-nav { display: flex; gap: 0.25rem; }
.header-nav a { color: var(--text-secondary); text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; transition: all 0.15s; }
.header-nav a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.header-nav a.active { color: var(--accent); background: var(--accent-soft); }

/* User Dropdown */
.user-dropdown { position: relative; }
.user-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 10px; cursor: pointer; transition: border-color 0.15s; }
.user-btn:hover { border-color: var(--text-muted); }
.user-avatar { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--accent) 0%, #6B1012 100%); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; }
.user-info { text-align: left; }
.user-name { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.user-email { font-size: 0.75rem; color: var(--text-muted); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 12px; min-width: 200px; padding: 0.5rem; display: none; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; color: var(--text-secondary); text-decoration: none; border-radius: 8px; font-size: 0.875rem; transition: all 0.15s; }
.dropdown-menu a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dropdown-menu a.danger { color: var(--accent); }
.dropdown-menu a.danger:hover { background: var(--accent-soft); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 0.5rem 0; }

/* Layout */
.layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 260px; background: var(--bg-panel); border-right: 1px solid var(--border-subtle); padding: 1.5rem 1rem; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-title { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; color: var(--text-secondary); text-decoration: none; border-radius: 10px; font-size: 0.875rem; font-weight: 500; transition: all 0.15s; }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 0.9rem; }
.sidebar-nav a:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sidebar-nav a.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-nav a .badge { margin-left: auto; background: var(--accent); color: white; font-size: 0.7rem; padding: 0.125rem 0.5rem; border-radius: 10px; font-weight: 600; }

/* Products */
.products-grid { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.5rem; }
.product-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 10px; text-decoration: none; transition: all 0.15s; }
.product-card:hover { border-color: var(--text-muted); transform: translateX(2px); }
.product-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: white; }
.product-icon.ops { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.product-icon.nr { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.product-icon.dist { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.product-info { flex: 1; }
.product-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.product-status { font-size: 0.7rem; color: var(--text-muted); }
.product-status.active { color: var(--success); }

/* Main Content */
.main { flex: 1; padding: 2rem; max-width: 1000px; }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* Cards */
.card { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 16px; margin-bottom: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.card-title i { color: var(--text-muted); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.form-grid.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.form-control { padding: 0.75rem 1rem; background: var(--bg-main); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); font-size: 0.9rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-control:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; }
.form-control::placeholder { color: var(--text-disabled); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 10px; font-size: 0.875rem; font-weight: 600; font-family: inherit; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1.25rem; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; font-size: 1rem; }
.stat-icon.green { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.stat-icon.blue { background: rgba(58, 110, 165, 0.15); color: var(--info); }
.stat-icon.red { background: var(--accent-soft); color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-value.success { color: var(--success); }

/* Tables */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--border-subtle); }
.table td { padding: 0.875rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.table tbody tr:hover { background: var(--bg-elevated); }
.table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 6px; font-size: 0.75rem; font-weight: 500; }
.badge-success { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-warning { background: rgba(242, 183, 5, 0.15); color: var(--warning); }
.badge-error { background: var(--accent-soft); color: var(--accent); }
.badge-info { background: rgba(58, 110, 165, 0.15); color: var(--info); }

/* Wallet */
.wallet-balance { text-align: center; padding: 2rem; }
.wallet-amount { font-size: 3rem; font-weight: 700; color: var(--success); margin-bottom: 0.5rem; }
.wallet-label { color: var(--text-muted); font-size: 0.9rem; }
.topup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.topup-btn { padding: 1rem; background: var(--bg-main); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.topup-btn:hover { border-color: var(--accent); }
.topup-btn.active { border-color: var(--accent); background: var(--accent-soft); }

/* Audit */
.audit-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.audit-item:last-child { border-bottom: none; }
.audit-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.875rem; }
.audit-icon.login { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.audit-icon.security { background: rgba(242, 183, 5, 0.15); color: var(--warning); }
.audit-icon.billing { background: rgba(58, 110, 165, 0.15); color: var(--info); }
.audit-icon.profile { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.audit-content { flex: 1; min-width: 0; }
.audit-action { font-weight: 500; color: var(--text-primary); margin-bottom: 0.125rem; }
.audit-details { font-size: 0.8rem; color: var(--text-muted); }
.audit-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* Loading & Empty */
.loading { display: flex; justify-content: center; align-items: center; padding: 4rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border-subtle); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state p { margin-bottom: 1rem; }

/* Toasts */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.875rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: slideIn 0.2s ease-out; min-width: 280px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 0 1rem; }
    .header-center { display: none; }
    .sidebar { display: none; }
    .main { padding: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .topup-amounts { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   SUBSCRIPTIONS - NEW STYLES
   ================================ */

/* Sub Tabs */
.sub-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; background: var(--bg-panel); padding: 0.5rem; border-radius: 12px; border: 1px solid var(--border-subtle); }
.sub-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.5rem; background: transparent; border: none; border-radius: 8px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.15s; }
.sub-tab:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sub-tab.active { background: var(--accent); color: white; }

/* Product Section */
.product-section { margin-bottom: 2rem; }
.product-header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 12px 12px 0 0; border-bottom: 2px solid var(--product-color); }
.product-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--product-color); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; }
.product-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.125rem; }
.product-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Subscription Cards */
.subscriptions-list { display: flex; flex-direction: column; gap: 0; }
.subscription-card { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-top: none; padding: 1.25rem; }
.subscription-card:last-child { border-radius: 0 0 12px 12px; }
.sub-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.sub-plan-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.sub-card-body { margin-bottom: 1rem; }
.sub-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sub-detail label { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.25rem; }
.sub-detail span { font-size: 0.9rem; color: var(--text-primary); }
.sub-price { font-weight: 600; color: var(--success); }
.sub-price small { font-weight: 400; color: var(--text-muted); margin-left: 0.125rem; }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

/* Progress bar */
.sub-progress { margin-top: 1rem; }
.sub-progress-bar { height: 6px; background: var(--bg-main); border-radius: 3px; overflow: hidden; }
.sub-progress-fill { height: 100%; background: linear-gradient(90deg, var(--product-color), var(--success)); border-radius: 3px; transition: width 0.3s; }
.sub-progress-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; text-align: right; }

/* Trial notice */
.trial-notice { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: rgba(242, 183, 5, 0.1); border: 1px solid rgba(242, 183, 5, 0.3); border-radius: 8px; font-size: 0.85rem; color: var(--warning); margin-top: 1rem; }

.sub-card-footer { display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }

/* Store */
.store-products { display: flex; flex-direction: column; gap: 2.5rem; }
.store-product { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; position: relative; }
.store-product.coming-soon { opacity: 0.85; }
.store-product-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background: linear-gradient(135deg, var(--product-color) 0%, color-mix(in srgb, var(--product-color), #000 30%) 100%); }

/* Coming Soon Overlay */
.coming-soon-overlay { padding: 2rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle); }
.coming-soon-content { text-align: center; }
.coming-soon-content i { font-size: 2.5rem; color: var(--warning); margin-bottom: 1rem; }
.coming-soon-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.coming-soon-content p { font-size: 0.875rem; color: var(--text-muted); }

.plans-grid.disabled { opacity: 0.4; pointer-events: none; filter: grayscale(0.5); }
.store-product-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; }
.store-product-info { flex: 1; }
.store-product-info h2 { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.store-product-info p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Plans Grid */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; padding: 1.5rem; }
.plan-card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 1.5rem; position: relative; transition: all 0.2s; display: flex; flex-direction: column; }
.plan-card:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.plan-card.popular { border-color: var(--product-color); box-shadow: 0 0 0 1px var(--product-color); }
.plan-card.current { border-color: var(--success); box-shadow: 0 0 0 1px var(--success); }
.plan-popular-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--product-color); color: white; font-size: 0.7rem; font-weight: 600; padding: 0.375rem 0.875rem; border-radius: 0 0 8px 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.plan-current-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--success); color: white; font-size: 0.7rem; font-weight: 600; padding: 0.375rem 0.875rem; border-radius: 0 0 8px 8px; text-transform: uppercase; letter-spacing: 0.03em; }

.plan-header { text-align: center; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.plan-subtitle { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.plan-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.plan-description { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.4; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; }
.plan-amount { font-size: 2rem; font-weight: 700; color: var(--accent); }
.plan-period { font-size: 0.875rem; color: var(--text-muted); }

.plan-card.downgrade { opacity: 0.6; }
.plan-card.downgrade:hover { transform: none; border-color: var(--border-subtle); }

.plan-limits { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem; margin-bottom: 1rem; background: var(--bg-main); border-radius: 8px; }
.plan-limits span { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8rem; color: var(--text-secondary); }
.plan-limits i { color: var(--text-muted); font-size: 0.75rem; }

.plan-features { list-style: none; flex: 1; margin-bottom: 1.5rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0; font-size: 0.875rem; color: var(--text-secondary); }
.plan-features li i { color: var(--success); font-size: 0.75rem; margin-top: 0.25rem; flex-shrink: 0; }

.plan-footer { margin-top: auto; }

.btn-outline { background: transparent; border: 1px solid var(--product-color); color: var(--product-color); }
.btn-outline:hover { background: var(--product-color); color: white; }

.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }
.badge i { margin-right: 0.25rem; }

/* Responsive subscriptions */
@media (max-width: 768px) {
    .sub-tabs { flex-direction: column; }
    .product-header { flex-wrap: wrap; }
    .sub-details-grid { grid-template-columns: 1fr 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .store-product-header { flex-direction: column; text-align: center; }
    .store-product-info { text-align: center; }
}

/* ================================
   MODAL STYLES
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
}

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.modal-header h3 i {
    color: var(--accent);
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-close:hover {
    background: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

/* 2FA Specific Styles */
.twofa-step {
    animation: fadeIn 0.3s ease;
}

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

.qr-container {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.5rem;
}

.qr-container img,
.qr-container canvas {
    border-radius: 8px;
}

.manual-code code {
    display: block;
    word-break: break-all;
    user-select: all;
}

.backup-codes-warning {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.backup-codes code {
    user-select: all;
    cursor: pointer;
    transition: background 0.15s;
}

.backup-codes code:hover {
    background: var(--bg-elevated);
}

/* Error button variant */
.btn-error {
    background: var(--error);
    color: white;
}

.btn-error:hover {
    background: #8a1316;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.mobile-sidebar-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100vh - 64px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 95;
        display: block;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .modal {
        max-width: calc(100% - 2rem);
    }
    
    .backup-codes {
        grid-template-columns: 1fr !important;
    }
}
