*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f4f4; --surface: #ffffff; --border: #e0e0e0; --text: #222222;
  --text-light: #666666; --accent: #e07c3a; --accent-hover: #c96a2c;
  --green: #2e7d4f; --green-light: #e8f5ee; --yellow: #c8860a; --yellow-light: #fff8e6;
  --red: #c0392b; --red-light: #fdeaea; --sidebar-w: 220px; --topbar-h: 56px;
}
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 13px; }

/* Login */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 36px; width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand h1 { font-size: 18px; font-weight: 600; }
.login-brand p { color: var(--text-light); font-size: 12px; margin-top: 4px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: var(--surface);
}
.form-field input:focus { outline: none; border-color: var(--accent); }
.form-error { color: var(--red); font-size: 12px; margin-bottom: 10px; min-height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e8e8e8; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #256b3f; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* App layout */
.app { display: flex; height: 100vh; overflow: hidden; }
.hidden { display: none !important; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { padding: 20px 16px 16px; border-bottom: 1px solid var(--border); }
.sidebar-brand h2 { font-size: 14px; font-weight: 600; }
.sidebar-brand span { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-nav { flex: 1; padding: 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: var(--text-light); text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.15s, color 0.15s; cursor: pointer; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-icon { font-size: 14px; width: 18px; text-align: center; }
.nav-badge { background: var(--red); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 10px; margin-left: auto; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.sidebar-email { font-size: 11px; color: var(--text-light); margin-bottom: 8px; word-break: break-all; }

/* Main */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.topbar h1 { font-size: 15px; font-weight: 600; }
.content { flex: 1; overflow-y: auto; padding: 24px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.stat-value { font-size: 22px; font-weight: 600; color: var(--text); }
.stat-value.stat-green { color: var(--green); }
.stat-value.stat-yellow { color: var(--yellow); }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 13px; margin-top: 16px; }
.data-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-active, .badge-approved { background: var(--green-light); color: var(--green); }
.badge-pending, .badge-draft { background: var(--yellow-light); color: var(--yellow); }
.badge-rejected, .badge-suspended, .badge-archived { background: var(--red-light); color: var(--red); }

/* Section header */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 14px; font-weight: 600; }

/* Filter bar */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; background: var(--surface); }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--accent); }

/* Review cards */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.review-card-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; gap: 12px; }
.review-card-head strong { font-size: 14px; }
.review-card-head small { color: var(--text-light); }
.review-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.review-card-body { padding: 0 20px 16px; }
.review-card-body p { color: var(--text-light); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.review-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-light); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.tag-green { background: var(--green-light); color: var(--green); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal { background: var(--surface); border-radius: 10px; padding: 28px; max-width: 440px; width: 90%; }
.modal h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.modal p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Misc */
.empty { color: var(--text-light); font-size: 13px; padding: 40px 0; text-align: center; }
.loading { color: var(--text-light); font-size: 13px; padding: 40px 0; text-align: center; }
.error-msg { color: var(--red); font-size: 13px; }
.alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-yellow { background: var(--yellow-light); border: 1px solid var(--yellow); color: #8a6000; }
.alert a { font-weight: 600; }
