:root {
  --navy: #172847;
  --navy-soft: #233b65;
  --gold: #c9a227;
  --bg: #f5f7fb;
  --text: #1c2635;
  --muted: #6f7b8f;
  --danger: #b42318;
  --success: #0b7a3b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
.screen { min-height: 100vh; padding: 18px; }
.login-screen { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.login-card, .panel, .request-card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 22px 60px rgba(23,40,71,.15); }
.logo { display: block; max-width: 220px; max-height: 90px; object-fit: contain; margin: 0 auto 22px; }
h1, h2, h3 { color: var(--navy); margin-top: 0; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
input { width: 100%; border: 1px solid #d7deea; border-radius: 14px; padding: 13px 14px; background: #fff; }
.btn { border: 0; border-radius: 14px; padding: 13px 16px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; }
.btn.gold { background: var(--gold); color: #111; }
.btn.secondary { background: #e9edf5; color: var(--navy); }
.btn.success { background: var(--success); }
.btn.danger { background: var(--danger); }
.btn.full { width: 100%; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: 0 8px 26px rgba(23,40,71,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); }
.brand img { width: 106px; max-height: 36px; object-fit: contain; }
.content { width: min(760px, 100%); margin: 0 auto; padding: 18px; }
.menu-grid { display: grid; gap: 14px; }
.menu-card { border: 0; text-align: left; width: 100%; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 12px 36px rgba(23,40,71,.1); }
.request-list { display: grid; gap: 14px; }
.request-card { width: 100%; padding: 18px; }
.request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.request-meta { display: grid; gap: 8px; margin: 12px 0; color: var(--muted); }
.request-meta span { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #edf1f7; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.benefit-block { display: grid; gap: 12px; margin: 16px 0; }
.benefit-block h3, .benefit-group h4 { margin: 0; }
.benefit-group { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: #f8fafc; border: 1px solid #edf1f7; }
.benefit-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f7; color: var(--muted); }
.benefit-row:last-child { border-bottom: 0; }
.benefit-row.active { color: var(--success); }
.benefit-row span { text-align: right; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #fff4cc; color: #8a6500; white-space: nowrap; }
.badge.approved { background: #dff7e9; color: var(--success); }
.badge.rejected { background: #fee4e2; color: var(--danger); }
.muted { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; }
.alert.danger { background: #fee4e2; color: var(--danger); }
.alert.success { background: #e8f8ef; color: var(--success); }
.install-banner { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; background: var(--navy); color: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.28); align-items: center; justify-content: space-between; gap: 12px; }
.install-banner.show { display: flex; }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); font-weight: 800; }
@media (min-width: 800px) {
  .request-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .request-actions { grid-template-columns: 1fr; }
  .install-banner { align-items: flex-start; flex-direction: column; }
}
