* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0d0d14; --bg-2: #14141f; --bg-3: #1c1c2b; --border: #26263a;
  --text: #ffffff; --text-dim: #9a9ab0; --text-mute: #6b6b85;
  --accent: #7c3aed; --accent-2: #06b6d4; --gold: #fbbf24;
  --grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --danger: #ef4444; --success: #10b981; --blue: #1d9bf0;
}
html, body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; min-height: 100vh; overflow-x: hidden; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }
select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }

/* LOGIN */
.login-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.15), transparent 60%), var(--bg); z-index: 10; }
.login-box { width: 100%; max-width: 360px; padding: 32px 24px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.login-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(124,58,237,0.4); }
.login-icon svg { width: 30px; height: 30px; stroke: white; }
.login-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--text-mute); margin-bottom: 24px; }
.login-input { width: 100%; padding: 13px 16px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 12px; transition: all 0.2s; }
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.25); }
.login-btn { width: 100%; padding: 13px; background: var(--grad); color: white; border-radius: 12px; font-size: 14px; font-weight: 700; transition: all 0.2s; box-shadow: 0 8px 24px rgba(124,58,237,0.4); }
.login-btn:active { transform: scale(0.97); }
.login-error { margin-top: 12px; font-size: 12px; color: var(--danger); font-weight: 600; min-height: 16px; }

/* ADMIN */
.admin-screen { min-height: 100vh; padding-bottom: 40px; }
.admin-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(13,13,20,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.admin-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.admin-logo svg { stroke: var(--accent); }
.admin-header-actions { display: flex; gap: 8px; }
.admin-icon-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.admin-icon-btn:active { transform: scale(0.92); border-color: var(--accent); }
.admin-icon-btn svg { stroke: var(--text); fill: none; }

.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px 8px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: 0 0 auto; padding: 9px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); transition: all 0.2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.admin-tab svg { stroke: currentColor; flex-shrink: 0; fill: none; }
.admin-tab.active { background: var(--grad); color: white; border-color: transparent; box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.admin-tab.active svg { stroke: white; }
.admin-tab:active { transform: scale(0.95); }

.admin-content { padding: 8px 16px 40px; }
.admin-toolbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.admin-search { flex: 1; padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 13px; outline: none; }
.admin-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.admin-add-btn { padding: 11px 18px; background: var(--grad); color: white; border-radius: 12px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; box-shadow: 0 6px 18px rgba(124,58,237,0.4); }
.admin-add-btn:active { transform: scale(0.95); }
.admin-add-btn svg { width: 14px; height: 14px; stroke: white; fill: none; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; align-items: center; }
.admin-item-thumb { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.admin-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-thumb svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.admin-item-body { flex: 1; min-width: 0; }
.admin-item-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.admin-item-title span { font-weight: 700; color: var(--accent-2); }
.admin-item-sub { font-size: 11px; color: var(--text-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-action-btn { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.admin-action-btn:active { transform: scale(0.9); }
.admin-action-btn svg { width: 15px; height: 15px; fill: none; }
.admin-action-btn.edit svg { stroke: var(--accent-2); }
.admin-action-btn.delete svg { stroke: var(--danger); }
.admin-empty { text-align: center; padding: 60px 20px; color: var(--text-mute); font-size: 13px; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; }
.modal-box { width: 100%; max-width: 500px; max-height: 90vh; background: var(--bg-2); border-radius: 24px 24px 0 0; overflow: hidden; display: flex; flex-direction: column; animation: slideUp 0.3s; }
@keyframes slideUp { from { transform: translateY(40px); } to { transform: translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header h2 { font-size: 16px; font-weight: 800; }
.modal-close { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.modal-close svg { stroke: var(--text); fill: none; }
.modal-body { padding: 18px 20px 24px; overflow-y: auto; flex: 1; }

/* FORM */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 11px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; outline: none; }
.form-textarea { min-height: 90px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.form-hint { font-size: 10.5px; color: var(--text-mute); margin-top: 4px; }
.form-preview { margin-top: 8px; width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: none; }
.form-preview.show { display: block; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-btn { flex: 1; padding: 13px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.form-btn-cancel { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); }
.form-btn-save { background: var(--grad); color: white; box-shadow: 0 8px 20px rgba(124,58,237,0.4); }
.form-btn:active { transform: scale(0.97); }

/* TOGGLE ROW */
.admin-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin-bottom: 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; }
.admin-toggle-info { flex: 1; min-width: 0; }
.admin-toggle-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.admin-toggle-desc { font-size: 10.5px; color: var(--text-mute); line-height: 1.4; }
.admin-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; flex-shrink: 0; }
.admin-toggle-switch { position: relative; width: 42px; height: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; transition: all 0.3s; flex-shrink: 0; order: -1; }
.admin-toggle-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-mute); transition: all 0.3s; }
.admin-toggle.on .admin-toggle-switch { background: var(--grad); border-color: transparent; box-shadow: 0 0 12px rgba(124,58,237,0.5); }
.admin-toggle.on .admin-toggle-switch::after { left: 22px; background: white; }
.admin-toggle-text { font-size: 10px; font-weight: 800; color: var(--text-mute); letter-spacing: 0.5px; min-width: 26px; }
.admin-toggle.on .admin-toggle-text { color: var(--accent-2); }

/* VERIFIED */
.verified-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.verified-label { font-size: 10.5px; font-weight: 700; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }
.verified-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.verified-switch { position: relative; width: 40px; height: 22px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px; transition: all 0.3s; flex-shrink: 0; }
.verified-switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-mute); transition: all 0.3s; }
.verified-toggle.on .verified-switch { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 10px rgba(29,155,240,0.6); }
.verified-toggle.on .verified-switch::after { left: 19px; background: white; }
.verified-text { font-size: 10px; font-weight: 800; color: var(--text-mute); letter-spacing: 0.5px; min-width: 26px; }
.verified-toggle.on .verified-text { color: var(--blue); }
.verified-icon-preview { width: 16px; height: 16px; object-fit: contain; opacity: 0.3; filter: grayscale(100%); flex-shrink: 0; }
.verified-icon-preview.active { opacity: 1; filter: drop-shadow(0 0 4px rgba(29,155,240,0.6)); }
.verified-inline { display: inline-block; width: 14px; height: 14px; vertical-align: middle; object-fit: contain; margin-left: 2px; }

/* TOAST */
.app-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(30,30,45,0.98); color: white; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 9999; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }