:root {
  --ink: #1d1a2f;
  --muted: #756f86;
  --paper: #fff8ef;
  --card: #ffffff;
  --coral: #ff5c7a;
  --sun: #ffb703;
  --teal: #00b8a9;
  --violet: #6c5ce7;
  --line: rgba(29,26,47,.1);
  --shadow: 0 20px 55px rgba(29,26,47,.09);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #151326; color: #fff; padding: 1.25rem; display: flex; flex-direction: column; gap: 2rem; }
.admin-brand { display: flex; align-items: center; gap: .8rem; font-weight: 950; font-size: 1.1rem; }
.admin-brand img { width: 52px; height: 52px; object-fit: contain; }
.admin-brand small { color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.sidebar nav { display: grid; gap: .4rem; }
.sidebar nav a { padding: .85rem 1rem; border-radius: 16px; color: rgba(255,255,255,.78); font-weight: 800; transition: .18s ease; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-main { padding: 2rem; }
.admin-topbar { margin-bottom: 1.5rem; padding: 1.5rem; border-radius: 28px; background: linear-gradient(135deg, rgba(255,92,122,.16), rgba(0,184,169,.13)), #fff; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 .4rem; color: var(--coral); font-weight: 950; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; }
h1 { margin: 0; letter-spacing: -.04em; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; }
h2 { margin: 0 0 1rem; letter-spacing: -.03em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 1.25rem; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat strong { font-size: 2.2rem; display: block; line-height: 1; }
.stat span { color: var(--muted); font-weight: 750; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border: 0; cursor: pointer; padding: .75rem 1rem; border-radius: 999px; font-weight: 900; background: var(--ink); color: #fff; transition: transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--violet)); }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #c62843; }
.admin-flash { padding: .9rem 1rem; margin-bottom: 1rem; border-radius: 16px; font-weight: 850; }
.admin-flash.success { background: rgba(0,184,169,.14); color: #00685f; }
.admin-flash.error { background: rgba(255,92,122,.14); color: #a90029; }
form.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: .45rem; font-weight: 900; color: var(--ink); }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: .85rem .95rem; background: #fffaf3; outline: none; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,92,231,.1); }
.help { color: var(--muted); font-size: .9rem; font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
tr:last-child td { border-bottom: 0; }
.thumb { width: 82px; height: 82px; object-fit: cover; border-radius: 16px; background: linear-gradient(135deg, rgba(255,92,122,.2), rgba(0,184,169,.2)); }
.badge { display: inline-flex; padding: .35rem .55rem; border-radius: 999px; background: rgba(108,92,231,.1); color: var(--violet); font-weight: 900; font-size: .78rem; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 20%, rgba(255,183,3,.3), transparent 25rem), radial-gradient(circle at 90% 20%, rgba(0,184,169,.25), transparent 28rem), var(--paper); }
.login-card { width: min(100%, 440px); background: #fff; padding: 1.5rem; border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card .admin-brand { color: var(--ink); margin-bottom: 1.5rem; }
.preview-image { width: 160px; height: 120px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #fffaf3; }
.message-card { display: grid; gap: .5rem; }
.message-card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main { padding: 1rem; }
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
}

.logo-preview { object-fit: contain; background: #fff; }
.image-manager { display: grid; gap: .65rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 22px; background: #fffaf3; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.image-tile { display: grid; gap: .5rem; padding: .55rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-weight: 800; }
.image-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #fffaf3; }
.image-tile span { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .88rem; }
.image-tile input { width: auto; }
