/* FIRELEAF NY — admin dashboard styles */
:root {
  --black: #060607;
  --bg: #0a0a0c;
  --panel: #101014;
  --panel-2: #15161b;
  --line: rgba(255, 255, 255, 0.08);
  --line-red: rgba(255, 46, 31, 0.35);
  --text: #f2f2f4;
  --muted: #a2a3ac;
  --dim: #6d6e78;
  --red: #ff2e1f;
  --red-soft: #ff5a3c;
  --red-deep: #8f1a10;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background:
    radial-gradient(55% 45% at 80% 0%, rgba(255, 46, 31, 0.1), transparent 60%),
    var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: 0.22s;
}
.btn-red {
  background: linear-gradient(135deg, #ff3b22, #d81f10);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 46, 31, 0.3);
}
.btn-red:hover { box-shadow: 0 0 32px rgba(255, 46, 31, 0.5); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-red); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-danger { background: transparent; border-color: var(--line); color: var(--dim); }
.btn-danger:hover { border-color: rgba(255,46,31,.5); color: var(--red-soft); }

/* ---------- LOGIN ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(22,22,27,.96), rgba(12,12,15,.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 38px;
  text-align: center;
  box-shadow: 0 0 80px rgba(255,46,31,.1), 0 30px 80px rgba(0,0,0,.7);
}
.login-card .logo { width: 88px; margin: 0 auto 18px; display: block; }
.login-kicker {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--red-soft);
  margin-bottom: 8px;
}
.login-card h1 { font-family: var(--font-display); font-size: 26px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.field { text-align: left; margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text); font-size: 14.5px; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { border-color: var(--line-red); box-shadow: 0 0 16px rgba(255,46,31,.12); }
.login-card .btn { width: 100%; margin-top: 8px; }
.login-error { color: var(--red-soft); font-size: 13.5px; margin-top: 14px; min-height: 18px; }
.login-foot { margin-top: 22px; font-size: 12.5px; color: var(--dim); }
.login-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.login-foot a:hover { color: var(--red-soft); }

/* ---------- DASHBOARD LAYOUT ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  background: rgba(8,8,10,.95);
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.side .brand img { width: 44px; }
.side .brand .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.side .brand .t span { color: var(--red-soft); font-size: 11px; letter-spacing: .18em; display: block; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side nav button {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--muted); padding: 12px 14px; border-radius: 12px;
  transition: .2s;
}
.side nav button:hover { color: #fff; background: rgba(255,46,31,.08); }
.side nav button.active { color: #fff; background: rgba(255,46,31,.14); box-shadow: inset 0 0 0 1px var(--line-red); }
.side .foot { display: flex; flex-direction: column; gap: 8px; }

.main { padding: 34px 40px 60px; max-width: 1060px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.topbar h1 { font-family: var(--font-display); font-size: 26px; }
.topbar .hint { color: var(--dim); font-size: 13px; }

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 18px;
}
.card h2 { font-family: var(--font-display); font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-red), transparent); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.item-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.015);
}
.item-row .row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.item-row .row-head .n { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--red-soft); }
.empty-note { color: var(--dim); font-size: 14px; padding: 14px 4px 18px; }

.save-bar { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.save-msg { font-size: 13.5px; color: var(--dim); min-height: 18px; transition: color .2s; }
.save-msg.ok { color: #59d98c; }
.save-msg.err { color: var(--red-soft); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin-bottom: 16px; }
.switch input { display: none; }
.switch .track {
  width: 44px; height: 24px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid var(--line);
  position: relative; transition: .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--dim); transition: .2s;
}
.switch input:checked + .track { background: rgba(255,46,31,.4); border-color: var(--line-red); }
.switch input:checked + .track::after { left: 22px; background: var(--red-soft); }
.switch .lbl { font-size: 14px; color: var(--muted); }

.preview-tip {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red-deep);
  border-radius: 12px;
  background: rgba(255,46,31,.03);
  color: var(--dim); font-size: 13px; line-height: 1.6;
  padding: 14px 18px; margin-bottom: 22px;
}
.preview-tip b { color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side .foot { flex-direction: row; }
  .main { padding: 24px 5vw 60px; }
}
