:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --border: #2a2a2f;
  --text: #f3f2ee;
  --text-muted: #a5a3ab;
  --gold: #f2b705;
  --red: #e0332f;
  --green: #25d366;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 88px;
}

.hero {
  text-align: center;
  padding: 28px 16px 18px;
  background: radial-gradient(circle at 50% -20%, #262124, var(--bg) 70%);
}

.hero .logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(6px);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

main { padding: 16px 12px 8px; max-width: 640px; margin: 0 auto; }

.cat-section { display: none; }
.cat-section.active { display: block; }

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.card p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.price-row { display: flex; gap: 16px; }
.price, .price-single { font-size: 15px; color: var(--gold); }
.price strong, .price-single strong { font-size: 18px; }
.price-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: 1px;
}

.btn-order {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #06210f;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.empty { color: var(--text-muted); font-size: 14px; padding: 24px 4px; text-align: center; }

.footer {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}

.footer .borda { color: var(--gold); margin: 0 0 6px; }
.footer .pay { margin: 0; }

.floating-order {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #06210f;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

/* Admin */
.admin { max-width: 900px; margin: 0 auto; padding: 16px; }
.admin-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-header h1 { font-size: 16px; margin: 0; flex: 1; font-weight: 700; }
.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.admin-section h2 { font-size: 14px; margin: 0 0 12px; color: var(--gold); }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 6px 4px; }
.admin-table td { padding: 6px 4px; border-top: 1px solid var(--border); }
.admin-table tr.inactive { opacity: 0.45; }
.admin-table input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}
.admin-table .actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-table form { display: contents; }

.add-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.add-form input {
  flex: 1;
  min-width: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
}

.settings-form { display: flex; flex-direction: column; gap: 10px; }
.settings-form label { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.settings-form input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
}

.btn-primary, .btn-small, .btn-ghost, .btn-danger {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-small { padding: 6px 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-danger { background: transparent; border: 1px solid #5b2323; color: #f0a3a3; }

.admin-link { text-align: center; }
.admin-link a { color: var(--gold); text-decoration: none; font-size: 13px; }

.notice {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--green);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.login-card h1 { font-size: 16px; margin: 0; }
.login-card label { width: 100%; text-align: left; font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.login-card input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
}
.form-error { color: #f0a3a3; font-size: 13px; margin: 0; }

@media (min-width: 480px) {
  .card { align-items: center; }
}
