.small { font-size: 13px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, #2a0605, var(--bg) 60%); }
.login-card { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.login-card h1 { margin: 4px 0 0; font-weight: 400; font-size: 34px; }
.login-card p { margin: 0; }
.login-card input { width: 100%; }

input, select, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-title { font-size: 14px; font-weight: 600; }
.form small { color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.form-error { color: #ff6b62; margin: 0; min-height: 1em; font-size: 14px; }
.form-ok { color: var(--wa); margin: 0; min-height: 1em; font-size: 14px; }

.tag { font-size: 11px; font-weight: 700; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: 1px; }
.tab { background: none; border: none; cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--red); }

.admin { max-width: 1100px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 60px; }
.admin h2 { font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: 1px; margin: 0 0 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; }
.admin-head h2 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.warn { background: #2b2108; border: 1px solid #5c4511; color: #ffd36b; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.item h4 { margin: 0; font-size: 16px; }
.item p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.item .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.red { background: var(--red); border-color: var(--red); color: #fff; }
.pill.off { color: #ff8a82; border-color: #5a1a1a; }
.item-actions { display: flex; gap: 8px; }

.editor { display: block; padding: 28px 24px; grid-template-columns: none; width: min(720px, 100%); }
.editor h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none; background: #000b; color: #fff; cursor: pointer; font-size: 12px; }
.photo .cover { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.photo-add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 600; font-size: 13px; }
.photo-add:hover { border-color: var(--red); color: var(--text); }
.photo-add b { font-size: 28px; line-height: 1; color: var(--red); }

@media (max-width: 600px) {
  .item { grid-template-columns: 60px 1fr; }
  .item img { width: 60px; height: 60px; }
  .item-actions { grid-column: 1 / -1; }
  .item-actions .btn { flex: 1; }
  .brand-name { font-size: 20px; }
  .nav { gap: 14px; }
}
