/* MewPass - Dark Social Network Styles */
:root {
  --bg-primary: #0f0f17;
  --bg-secondary: #16161f;
  --bg-card: #1e1e2a;
  --bg-hover: #252533;
  --border: #2a2a3a;
  --text-primary: #ffffff;
  --text-secondary: #8888aa;
  --text-muted: #55556a;
  --accent: #9b59b6;
  --accent-2: #e91e8c;
  --accent-grad: linear-gradient(135deg, #9b59b6 0%, #e91e8c 100%);
  --accent-grad-btn: linear-gradient(135deg, #b06ed4 0%, #f020a0 100%);
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --sidebar-w: 260px;
  --topbar-h: 56px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.hidden { display: none !important; }

/* Auth */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
.auth-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 400px; max-width: 95vw; }
.auth-logo { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; font-weight: 700; }
.logo-icon { margin-right: 0.4rem; }
.logo-text { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-form h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }
.auth-switch { text-align: center; margin-top: 1rem; color: var(--text-secondary); font-size: 0.9rem; }
.auth-switch a { color: var(--accent); }

/* Layout */
.main-layout { display: flex; min-height: 100vh; }
.topbar { position: fixed; top: 0; right: 0; left: var(--sidebar-w); height: var(--topbar-h); background: var(--bg-secondary); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; z-index: 100; transition: left 0.3s; }
.topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-toggle { display: none; background: none; color: var(--text-primary); font-size: 1.2rem; padding: 0.5rem; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: var(--bg-secondary); border-right: 1px solid var(--border); position: fixed; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; z-index: 200; transition: transform 0.3s; overflow-y: auto; }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 1.2rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.sidebar-user:hover { background: var(--bg-hover); }
.sidebar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.sidebar-name { font-weight: 600; font-size: 0.95rem; }
.sidebar-username { color: var(--text-secondary); font-size: 0.8rem; }
.sidebar-nav { padding: 0.75rem 0; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; color: var(--text-secondary); transition: all 0.2s; border-radius: 0; font-size: 0.95rem; }
.nav-item:hover, .nav-item.active { color: var(--text-primary); background: var(--bg-hover); }
.nav-item i { width: 20px; text-align: center; }
.nav-logout { color: var(--danger) !important; }
.btn-create { margin: 0.75rem 1rem; background: var(--accent-grad-btn); color: white; padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: opacity 0.2s; }
.btn-create:hover { opacity: 0.9; }
.sidebar-bottom { padding: 1rem; border-top: 1px solid var(--border); }
.sidebar-links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.balance-bar { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; cursor: pointer; transition: border-color 0.2s; margin-bottom: 0.5rem; }
.balance-bar:hover { border-color: var(--accent); }
.pepper-icon { font-size: 1.2rem; }
.balance-amount { font-weight: 700; font-size: 1.1rem; }
.balance-label { color: var(--text-secondary); font-size: 0.8rem; flex: 1; }
.pepper-btn-icon { color: var(--accent); margin-left: auto; }

/* Content */
.content-area { margin-left: var(--sidebar-w); margin-top: var(--topbar-h); flex: 1; padding: 1.5rem; max-width: 750px; }
.page { }
.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-size: 1.4rem; font-weight: 700; }
.page-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.tab-btn { background: none; color: var(--text-secondary); padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 500; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--text-primary); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: var(--text-secondary); margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-input { width: 100%; background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-primary); padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; cursor: pointer; }
.error-msg { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.4); color: #ff6b6b; padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Buttons */
.btn-primary { background: var(--accent-grad-btn); color: white; padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid var(--border); font-size: 0.95rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-secondary:hover { border-color: var(--accent); background: var(--bg-card); }
.btn-danger { background: var(--danger); color: white; padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; }
.btn-success { background: var(--success); color: white; padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-publish { margin-top: 1rem; font-size: 1rem; padding: 0.9rem; }

/* Profile */
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem; overflow: hidden; }
.profile-cover { height: 180px; background: linear-gradient(135deg, #2a1a3e, #1a1a2e); position: relative; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-upload-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.cover-upload-btn:hover { background: rgba(0,0,0,0.7); }
.profile-info { padding: 1.25rem; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 0.75rem; margin-top: -50px; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-card); background: var(--bg-hover); display: block; }
.avatar-upload-btn { position: absolute; bottom: 0; right: 0; background: var(--accent); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.7rem; }
.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.profile-username-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.profile-username { color: var(--text-secondary); font-size: 0.9rem; }
.verified-badge { background: var(--accent); color: white; border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.profile-stats { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.2rem; font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 0.8rem; }
.profile-bio { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.profile-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Posts */
.posts-list { display: flex; flex-direction: column; gap: 1rem; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--border); }
.post-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; cursor: pointer; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.35rem; }
.post-author-name { cursor: pointer; }
.post-author-name:hover { color: var(--accent); }
.post-time { color: var(--text-muted); font-size: 0.8rem; }
.post-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; white-space: pre-wrap; word-break: break-word; }
.post-media { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; border-radius: var(--radius-sm); overflow: hidden; }
.post-media.single img, .post-media.single video { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius-sm); }
.post-media.double { grid-template-columns: 1fr 1fr; }
.post-media.double img, .post-media.double video { width: 100%; height: 200px; object-fit: cover; }
.post-media img, .post-media video { width: 100%; height: 200px; object-fit: cover; cursor: pointer; }
.post-media img:hover { opacity: 0.9; }
.post-actions { display: flex; gap: 1rem; align-items: center; }
.post-action-btn { background: none; color: var(--text-secondary); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); transition: all 0.2s; }
.post-action-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.post-action-btn.liked { color: #e74c3c; }
.post-action-btn.liked i { color: #e74c3c; }
.post-delete-btn { margin-left: auto; }
.post-price-tag { background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.4rem 0.75rem; font-size: 0.85rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.5rem; }
.empty-state { text-align: center; color: var(--text-secondary); padding: 3rem 1rem; }
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; margin-bottom: 1rem; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 1rem; position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.modal-close { background: none; color: var(--text-secondary); font-size: 1.1rem; transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }
.modal-back { background: none; color: var(--text-secondary); font-size: 1rem; }

/* Balance Modal */
.balance-modal { max-width: 420px; }
.balance-display { text-align: center; padding: 1.5rem 1rem 0.5rem; }
.pepper-icon-lg { font-size: 2.5rem; }
.balance-big { font-size: 2.5rem; font-weight: 800; margin-left: 0.5rem; }
.balance-tab-content { padding: 1rem 1.25rem; }
.topup-info { display: flex; align-items: center; justify-content: space-between; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.topup-peppers { font-size: 1.8rem; font-weight: 800; }
.pepper-tag { background: rgba(155,89,182,0.2); color: var(--accent); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.payment-methods { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-method-item { display: flex; align-items: center; gap: 1rem; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1rem; cursor: pointer; transition: border-color 0.2s; }
.payment-method-item:hover { border-color: var(--accent); }
.pm-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.pm-icon.card { background: rgba(52,152,219,0.2); color: #3498db; }
.pm-icon.crypto { background: rgba(241,196,15,0.2); color: #f1c40f; }
.pm-icon.telegram { background: rgba(41,182,246,0.2); color: #29b6f6; }
.pm-info { flex: 1; }
.pm-name { font-weight: 600; font-size: 0.95rem; }
.pm-desc { color: var(--text-secondary); font-size: 0.8rem; }
.pm-price { color: var(--text-secondary); font-weight: 600; }

/* Create Post Modal */
.create-post-modal { max-width: 580px; }
.post-author-info { display: flex; align-items: center; gap: 0.75rem; }
.post-modal-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.post-modal-name { font-weight: 600; font-size: 0.95rem; }
.post-modal-username { color: var(--text-secondary); font-size: 0.8rem; }
.post-form { padding: 1.25rem; }
.post-textarea { width: 100%; background: var(--bg-hover); border: 1px solid var(--border); color: var(--text-primary); padding: 0.75rem; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 100px; }
.post-textarea:focus { outline: none; border-color: var(--accent); }
.char-count { text-align: right; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
.format-link { color: var(--accent); font-size: 0.8rem; }
.add-media-btn { width: 100%; background: var(--bg-hover); border: 1px dashed var(--border); color: var(--text-secondary); padding: 0.75rem; border-radius: var(--radius-sm); transition: all 0.2s; font-size: 0.9rem; margin-bottom: 0.75rem; }
.add-media-btn:hover { border-color: var(--accent); color: var(--accent); }
.media-preview-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.media-preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.7); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.post-options { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; }
.post-option-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: var(--text-secondary); cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.2s; font-size: 0.9rem; }
.post-option-row:last-child { border-bottom: none; }
.post-option-row:hover { background: var(--bg-hover); color: var(--text-primary); }
.post-option-row i:first-child { width: 16px; }
.post-option-row .fa-chevron-right { margin-left: auto; font-size: 0.75rem; }
.option-value { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; }
.option-content { padding: 0.75rem 1rem; background: var(--bg-hover); border-bottom: 1px solid var(--border); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; margin-left: auto; }
.toggle-switch input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 12px; cursor: pointer; transition: 0.3s; }
.toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; left: 3px; top: 3px; transition: 0.3s; }
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Edit Profile Modal */
.edit-modal { max-width: 480px; }
.edit-form { padding: 1.25rem; }
.edit-avatar-section { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.edit-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.edit-cover-preview { width: 80px; height: 40px; background: var(--bg-hover); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; }

/* Verification */
.verification-steps { padding: 1.25rem; }
.step-info { text-align: center; margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; }
.upload-zone { background: var(--bg-hover); border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 2rem 1rem; text-align: center; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; }
.upload-zone:hover { border-color: var(--accent); color: var(--accent); }
.upload-zone.uploaded { border-color: var(--success); color: var(--success); }

/* Notifications */
.notif-modal { max-width: 400px; }
.notif-item { display: flex; gap: 0.75rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: rgba(155,89,182,0.05); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-icon.subscribe { background: rgba(155,89,182,0.2); color: var(--accent); }
.notif-icon.topup { background: rgba(46,204,113,0.2); color: var(--success); }
.notif-icon.verified { background: rgba(52,152,219,0.2); color: #3498db; }
.notif-icon.new_post { background: rgba(231,76,60,0.2); color: var(--danger); }
.notif-icon.ban { background: rgba(231,76,60,0.2); color: var(--danger); }
.notif-body { flex: 1; }
.notif-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.notif-text { color: var(--text-secondary); font-size: 0.85rem; }
.notif-time { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.2rem; }
.notif-badge { background: var(--accent-2); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: absolute; top: -4px; right: -4px; }
.icon-btn { position: relative; background: none; color: var(--text-secondary); font-size: 1.1rem; padding: 0.5rem; border-radius: var(--radius-sm); transition: color 0.2s; }
.icon-btn:hover { color: var(--text-primary); }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; cursor: pointer; background: var(--bg-hover); }

/* Admin Panel */
.admin-layout { display: flex; gap: 1.5rem; min-height: calc(100vh - var(--topbar-h) - 3rem); }
.admin-sidebar { width: 220px; flex-shrink: 0; }
.admin-sidebar h3 { font-size: 1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; padding: 0 0.75rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-nav-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.75rem; color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.9rem; transition: all 0.2s; }
.admin-nav-item:hover, .admin-nav-item.active { color: var(--text-primary); background: var(--bg-hover); }
.admin-nav-item i { width: 16px; text-align: center; }
.admin-content { flex: 1; min-width: 0; }
.admin-section { }
.admin-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.admin-section-header h2 { margin-bottom: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat-card-num { font-size: 1.8rem; font-weight: 800; }
.stat-card-label { color: var(--text-secondary); font-size: 0.85rem; }
.admin-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-table-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.admin-table-block h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { color: var(--text-secondary); text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); font-weight: 500; }
.data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.user-row-info { display: flex; align-items: center; gap: 0.5rem; }
.user-row-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); }
.badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(46,204,113,0.2); color: var(--success); }
.badge-warning { background: rgba(243,156,18,0.2); color: var(--warning); }
.badge-danger { background: rgba(231,76,60,0.2); color: var(--danger); }
.badge-purple { background: rgba(155,89,182,0.2); color: var(--accent); }
.badge-gray { background: var(--bg-hover); color: var(--text-secondary); }
.actions-cell { display: flex; gap: 0.4rem; }
.action-link { color: var(--accent); font-size: 0.85rem; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 4px; background: none; border: none; font-family: inherit; }
.action-link:hover { background: var(--bg-hover); }
.action-link.danger { color: var(--danger); }
.action-link.success { color: var(--success); }

/* Payment method admin form */
.pm-admin-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.pm-admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pm-admin-title { font-weight: 600; font-size: 1rem; }

/* Settings */
.settings-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.settings-section { margin-bottom: 1.5rem; }
.settings-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 0.9rem; }
.settings-row-value { display: flex; align-items: center; gap: 0.75rem; }

/* Subscriptions */
.subscriptions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.sub-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.sub-card:hover { border-color: var(--accent); }
.sub-card-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg-hover); margin: 0 auto 0.75rem; }
.sub-card-name { font-weight: 600; margin-bottom: 0.2rem; }
.sub-card-username { color: var(--text-secondary); font-size: 0.85rem; }

/* Payment modal */
.payment-modal { max-width: 420px; }
.payment-form { padding: 1.25rem; }
.payment-details { background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.payment-qr { text-align: center; padding: 1.5rem; }
.payment-amount { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.payment-instruction { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.payment-address { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; font-family: monospace; font-size: 0.85rem; word-break: break-all; margin: 0.75rem 0; }
.payment-copy { color: var(--accent); cursor: pointer; font-size: 0.85rem; }

/* Toast */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1.25rem; font-size: 0.95rem; max-width: 320px; z-index: 9999; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--accent); }

/* Loader */
.loader { text-align: center; padding: 2rem; color: var(--text-muted); }
.spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .topbar { left: 0; }
  .sidebar-toggle { display: block; }
  .content-area { margin-left: 0; padding: 1rem; }
  .admin-tables { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
@media (max-width: 600px) {
  .auth-container { padding: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-actions { flex-direction: column; }
  .admin-section-header { flex-direction: column; align-items: flex-start; }
}

/* Verified badge in posts */
.post-verified { color: var(--accent); font-size: 0.8rem; }

/* Image lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.1); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Verification badge styles */
.verif-status-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.verif-pending { background: rgba(243,156,18,0.15); color: var(--warning); }
.verif-approved { background: rgba(46,204,113,0.15); color: var(--success); }
.verif-rejected { background: rgba(231,76,60,0.15); color: var(--danger); }

/* Admin user modal */
.user-detail-section { padding: 1.25rem; }
.user-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.user-detail-label { color: var(--text-secondary); }
.admin-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }

/* Verif preview */
.verif-img-preview { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--radius-sm); margin-top: 0.5rem; border: 1px solid var(--border); }
