:root {
    --bg: #f7f1ea;
    --paper: #fffaf5;
    --ink: #171412;
    --muted: #776b61;
    --line: rgba(23, 20, 18, 0.12);
    --gold: #b08a57;
    --rose: #8f425a;
    --danger: #a33a3a;
    --success: #477048;
    --shadow: 0 24px 70px rgba(23, 20, 18, 0.12);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fbf8f2, var(--bg));
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 34px)); margin: 0 auto; }
.admin-header { border-bottom: 1px solid var(--line); background: rgba(255,250,245,.88); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.admin-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-brand strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1; }
.admin-brand span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.admin-links { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-links a, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.56); font-weight: 900; }
.admin-links a:hover, .btn:hover { background: var(--ink); color: white; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: white; }
.btn.danger { color: white; background: var(--danger); border-color: var(--danger); }
main { padding: 42px 0 80px; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 78px); }
h2 { font-size: 38px; }
.lead { color: var(--muted); max-width: 680px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.card { background: rgba(255,250,245,.75); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: 0 12px 34px rgba(23,20,18,.07); }
.stat strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 42px; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin: 28px 0 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,250,245,.72); }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(176,138,87,.18); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-row a, .actions-row button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: white; cursor: pointer; font-weight: 800; }
.actions-row .delete { background: #fff5f5; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-full { grid-column: 1 / -1; }
label { display: block; font-weight: 900; margin-bottom: 7px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); min-height: 48px; padding: 12px 14px; outline: none; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,87,.12); }
.check-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.check-row label { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.check-row input { width: auto; min-height: auto; }
.notice { padding: 14px 16px; border-radius: 16px; margin: 18px 0; font-weight: 800; }
.notice.success { background: rgba(71,112,72,.14); color: var(--success); border: 1px solid rgba(71,112,72,.22); }
.notice.error { background: rgba(163,58,58,.12); color: var(--danger); border: 1px solid rgba(163,58,58,.22); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); background: rgba(255,250,245,.82); border: 1px solid var(--line); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 54px; margin-bottom: 10px; }
.small { color: var(--muted); font-size: 13px; }
.preview-img { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; background: #e4d8cd; }
@media (max-width: 860px) {
    .admin-nav { align-items: flex-start; flex-direction: column; padding: 18px 0; }
    .grid, .form-grid { grid-template-columns: 1fr; }
}
