:root { --orange: #F05A22; --orange-deep: #D44812; --ink: #1A1A1A; --line: #e5e5e5; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", sans-serif; color: var(--ink); background: #f4f4f4; }
a { color: var(--orange-deep); }
img { max-width: 100%; display: block; }
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #0E0E0E, #1A1A1A 55%, #F05A22);
    padding: 24px;
}
.login-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px;
}
.login-card img { height: 64px; width: auto; max-width: 100%; margin: 0 auto 12px; object-fit: contain; }
.login-card h1 { text-align: center; font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.login-card p { text-align: center; color: #5c6570; margin: 0 0 18px; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d7dbe2;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: 8px;
    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: #0E0E0E; color: #fff; padding: 18px 14px; }
.side-logo img { height: 48px; width: auto; max-width: 100%; margin-bottom: 18px; object-fit: contain; }
.side nav { display: grid; gap: 4px; }
.side a { color: #d5d8de; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.side a.is-active, .side a:hover { background: rgba(240, 90, 34, 0.22); 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; color: var(--ink); }
.flash { padding: 12px 14px; border-radius: 8px; background: #fff3eb; }
.flash-err { background: #ffe4e6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 32px; color: var(--orange); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
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: 6px; }
.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: 12px; padding: 18px; max-width: 820px; border: 1px solid var(--line); }
.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; }
}
