:root { --red: #e10613; --ink: #141518; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; color: var(--ink); background: #f4f5f7; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #0c0d10;
    padding: 24px;
}
.login-card {
    width: min(420px, 100%);
    background: #111318;
    color: #fff;
    border: 1px solid #2a2f38;
    border-radius: 12px;
    padding: 28px;
}
.login-card img {
    height: 88px;
    width: auto;
    max-width: 220px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.login-card h1 { text-align: center; font-size: 28px; margin: 0 0 6px; color: #fff; }
.login-card p { text-align: center; color: #9aa3af; margin: 0 0 18px; }
.login-card label { color: #d7dbe3; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 6px;
    min-height: 42px;
    padding: 0 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.login-card button { width: 100%; margin-top: 16px; }
.error { background: #ffe4e6; color: #9f1239; padding: 10px 12px; border-radius: 6px; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: #0c0d10; color: #fff; padding: 18px 14px; }
.side-logo img {
    height: 64px;
    width: auto;
    max-width: 180px;
    margin-bottom: 18px;
    object-fit: contain;
}
.side nav { display: grid; gap: 4px; }
.side a { color: #d5d8de; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.side a.is-active, .side a:hover { background: #1c1e24; color: #fff; }
.admin-main { padding: 22px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-top h1 { margin: 0; font-size: 28px; }
.flash { padding: 12px 14px; border-radius: 8px; background: #e8f8ee; }
.flash-err { background: #ffe4e6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: 10px; padding: 16px; }
.stat strong { display: block; font-size: 32px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eceff3; vertical-align: middle; }
td img { width: 72px; height: 52px; object-fit: cover; border-radius: 4px; }
.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }
.button.ghost, button.ghost { background: #fff; color: var(--ink); border: 1px solid #d0d4da; }
button.danger { background: #fff; color: #b80510; border: 1px solid #f0c2c6; }
.form-card { background: #fff; border-radius: 10px; padding: 18px; max-width: 820px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 16px; }
.check input { width: auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .stats, .grid-2 { grid-template-columns: 1fr; }
}
