:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --dark: #071225;
  --dark2: #0b2d63;
  --primary: #155eef;
  --green: #16a34a;
  --orange: #f97316;
  --red: #dc2626;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe6f3;
  --soft: #eef5ff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.btn { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px rgba(21, 94, 239, 0.24); }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-full { width: 100%; }
.link-btn { border: 0; background: var(--soft); color: var(--primary); font-weight: 900; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, rgba(21,94,239,.16), transparent 32%), linear-gradient(135deg, #071225, #0b2d63); }
.login-card { width: min(100%, 520px); background: #fff; border-radius: 34px; padding: 36px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 900; color: var(--primary); }
.login-brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; }
.login-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.06em; margin-bottom: 12px; }
.login-card p, .login-note { color: var(--muted); line-height: 1.6; }
.login-note { margin-top: 16px; font-size: .9rem; }
.login-form { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 8px; font-weight: 800; color: #334155; font-size: .92rem; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; background: #fff; color: var(--text); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21,94,239,.08); }
.form-message { min-height: 22px; margin-top: 10px; font-weight: 800; color: var(--muted); }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, #071225, #0b2d63); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; }
.sidebar-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; }
.sidebar-brand strong { display: block; font-size: 1.25rem; letter-spacing: -0.04em; }
.sidebar-brand span, .admin-email { color: rgba(255,255,255,.7); font-size: .86rem; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-btn { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: #dbeafe; border-radius: 16px; padding: 13px 14px; font-weight: 850; cursor: pointer; }
.nav-btn:hover, .nav-btn.active { background: #fff; color: var(--dark); }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.admin-main { padding: 24px; min-width: 0; }
.topbar-admin { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.eyebrow { display: inline-flex; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 6px 10px; font-size: .72rem; letter-spacing: .08em; font-weight: 900; text-transform: uppercase; }
.topbar-admin h1 { margin-top: 8px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -0.055em; }
.topbar-admin p { color: var(--muted); margin-top: 6px; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.view { display: none; }
.view.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card, .panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 18px; }
.stat-card span { display: block; color: var(--muted); font-weight: 800; font-size: .88rem; }
.stat-card strong { display: block; margin-top: 8px; font-size: 2rem; letter-spacing: -0.05em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.align-start { align-items: start; }
.panel-card { padding: 22px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { font-size: 1.35rem; letter-spacing: -0.04em; }
.panel-head p { color: var(--muted); margin-top: 4px; }
.admin-form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.check-row { display: flex; align-items: center; gap: 10px; background: #f8fbff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.check-row input { width: auto; }
.form-actions, .table-tools, .inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 220px; }
.image-preview { width: 180px; min-height: 110px; border: 1px dashed var(--line); border-radius: 16px; display: grid; place-items: center; color: var(--muted); background: #f8fbff; overflow: hidden; font-weight: 800; }
.image-preview img { width: 100%; height: 110px; object-fit: cover; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; background: #fff; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { background: #f8fbff; color: #475569; font-weight: 900; }
td img { width: 70px; height: 52px; object-fit: cover; border-radius: 10px; background: #f1f5f9; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn { border: 0; border-radius: 999px; padding: 8px 10px; font-weight: 900; cursor: pointer; }
.action-edit { background: var(--soft); color: var(--primary); }
.action-delete { background: #fee2e2; color: var(--red); }
.action-wa { background: #dcfce7; color: var(--green); }
.status-select { min-width: 130px; padding: 8px 10px; border-radius: 999px; font-weight: 800; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 900; background: var(--soft); color: var(--primary); }
.badge.green { background: #dcfce7; color: var(--green); }
.badge.red { background: #fee2e2; color: var(--red); }
.mini-list, .card-list { display: grid; gap: 10px; }
.mini-item, .list-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #f8fbff; }
.mini-item strong, .list-card strong { display: block; margin-bottom: 4px; }
.mini-item span, .list-card span, .list-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.list-card .row-actions { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.code-box { background: #071225; color: #dbeafe; border-radius: 18px; padding: 18px; overflow-x: auto; line-height: 1.5; }
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(3,1fr); } .form-grid.four { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .admin-app { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; } .sidebar-nav { grid-template-columns: repeat(2,1fr); } .topbar-admin, .grid-2 { grid-template-columns: 1fr; display: grid; } .form-grid.two, .form-grid.four, .stats-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .admin-main, .sidebar { padding: 14px; } .sidebar-nav { grid-template-columns: 1fr; } .panel-card, .topbar-admin { padding: 16px; border-radius: 18px; } .topbar-actions, .form-actions { width: 100%; } .btn { width: 100%; } }
