:root {
    --ink: #302827;
    --muted: #786e6b;
    --paper: #fffdfb;
    --cream: #f7f1ec;
    --rose: #b75d57;
    --rose-dark: #8f4642;
    --rose-soft: #ead0c8;
    --sage: #788879;
    --line: #e8ded8;
    --white: #fff;
    --shadow: 0 18px 60px rgba(77, 48, 43, .11);
    --shadow-sm: 0 8px 30px rgba(77, 48, 43, .08);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 253, 251, .88);
    border-bottom: 1px solid rgba(232, 222, 216, .78);
    backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    color: var(--white); background: var(--rose); border-radius: 50% 50% 48% 52%;
    font: 700 14px var(--sans); transform: rotate(-5deg);
}
.brand-mark + span { transform: translateY(-1px); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; color: var(--muted); font-size: .92rem; font-weight: 600; }
.site-nav a:not(.nav-pill)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -7px;
    height: 2px; background: var(--rose); transition: right .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav .nav-pill { padding: 10px 17px; color: var(--white); background: var(--ink); border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px; background: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; }
.display { font-family: var(--serif); font-size: clamp(3.1rem, 7vw, 6.8rem); letter-spacing: -.045em; }
.section-title { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -.035em; margin-bottom: 18px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
    color: var(--rose-dark); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { max-width: 640px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 49px; padding: 0 22px; border: 1px solid var(--rose);
    color: var(--white); background: var(--rose); border-radius: 999px; font-weight: 700;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--rose-dark); box-shadow: 0 10px 24px rgba(183,93,87,.23); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--cream); box-shadow: none; }
.button.dark { background: var(--ink); border-color: var(--ink); }
.button.small { min-height: 38px; padding-inline: 16px; font-size: .84rem; }
.button.danger { background: #a44343; border-color: #a44343; }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.text-link { color: var(--rose-dark); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.hero { position: relative; overflow: hidden; padding: clamp(68px, 10vw, 130px) 0 90px; background: var(--cream); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.hero::before { width: 390px; height: 390px; right: -120px; top: -170px; background: rgba(234,208,200,.6); }
.hero::after { width: 230px; height: 230px; left: -110px; bottom: -120px; background: rgba(120,136,121,.12); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .8fr; gap: clamp(48px, 8vw, 110px); align-items: center; }
.hero-copy .display { margin-bottom: 25px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 500px; }
.hero-photo {
    position: absolute; width: 76%; right: 4%; top: 0; padding: 13px 13px 54px;
    background: #fff; box-shadow: var(--shadow); transform: rotate(3.2deg);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo figcaption { position: absolute; inset-inline: 17px; bottom: 14px; font: italic 600 1rem var(--serif); text-align: center; }
.hero-note {
    position: absolute; left: 0; bottom: 25px; width: 190px; padding: 22px;
    background: #f6df88; box-shadow: var(--shadow-sm); transform: rotate(-6deg);
    font: italic 600 1.05rem/1.4 var(--serif);
}
.hero-note::after { content: "♥"; display: block; margin-top: 12px; color: var(--rose); font-family: var(--sans); font-style: normal; }

.section { padding: clamp(72px, 9vw, 118px) 0; }
.section.cream { background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head .section-title { margin-bottom: 0; }
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.memory-card {
    position: relative; border-radius: 20px; overflow: hidden; background: var(--white);
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.memory-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.memory-card .image-wrap { position: relative; overflow: hidden; }
.memory-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .45s ease; }
.memory-card:hover img { transform: scale(1.025); }
.memory-card-body { padding: 20px 21px 22px; }
.memory-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.28rem; }
.memory-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.memory-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; color: var(--rose-dark); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.heart-badge, .featured-badge {
    position: absolute; z-index: 2; top: 14px; display: inline-flex; align-items: center; justify-content: center;
    min-height: 30px; padding: 0 10px; border-radius: 999px; box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.heart-badge { right: 14px; width: 30px; padding: 0; color: var(--rose); background: var(--white); }
.featured-badge { left: 14px; color: var(--ink); background: #f6df88; font-size: .7rem; font-weight: 700; text-transform: uppercase; }

.love-stat { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--white); }
.love-stat-art { min-height: 430px; background: var(--rose-soft); }
.love-stat-art img { width: 100%; height: 100%; object-fit: cover; }
.love-stat-copy { padding: clamp(45px, 7vw, 85px); display: flex; flex-direction: column; justify-content: center; }
.love-stat-copy .eyebrow { color: #edbcb4; }
.love-stat-copy .section-title { color: var(--white); }
.love-stat-copy p { color: #d3c9c6; }
.counter { margin: 18px 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; color: #f1c6bd; }

.page-hero { padding: 78px 0 64px; text-align: center; background: var(--cream); }
.page-hero .lede { margin-inline: auto; }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 34px 0 0; }
.filter-chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: .83rem; font-weight: 700; }
.filter-chip:hover, .filter-chip.active { color: var(--white); background: var(--rose); border-color: var(--rose); }
.empty-state { padding: 70px 30px; border: 1px dashed #d9c9c2; border-radius: 24px; text-align: center; background: var(--cream); }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--rose); background: var(--rose-soft); font-size: 1.8rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 42px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; }
.pagination .current { color: var(--white); background: var(--rose); border-color: var(--rose); }

.memory-detail { padding: 62px 0 105px; }
.memory-detail-grid { display: grid; grid-template-columns: 1.1fr .75fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.memory-polaroid { padding: 16px 16px 65px; background: var(--white); box-shadow: var(--shadow); transform: rotate(-1deg); }
.memory-polaroid img { width: 100%; max-height: 760px; object-fit: cover; }
.memory-detail-copy { position: sticky; top: 125px; padding-top: 28px; }
.memory-detail-copy h1 { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -.035em; margin-bottom: 20px; }
.detail-facts { display: grid; gap: 14px; padding: 22px 0; margin: 22px 0; border-block: 1px solid var(--line); }
.detail-fact { display: grid; grid-template-columns: 90px 1fr; gap: 15px; }
.detail-fact strong { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.story-copy { color: #5f5653; white-space: pre-line; }

.timeline { position: relative; width: min(850px, 100%); margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { position: relative; width: 50%; padding: 0 50px 55px 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 55px 50px; }
.timeline-dot { position: absolute; top: 26px; right: -7px; width: 15px; height: 15px; border: 4px solid var(--paper); border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -7px; }
.timeline-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); }
.timeline-card img { width: 100%; aspect-ratio: 16/10; margin-bottom: 20px; border-radius: 12px; object-fit: cover; }
.timeline-date { display: block; margin-bottom: 9px; color: var(--rose-dark); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.timeline-card h2 { margin-bottom: 10px; font: 600 1.45rem var(--serif); }
.timeline-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.auth-page { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.auth-art { position: relative; overflow: hidden; min-height: 690px; background: var(--rose-soft); }
.auth-art::before {
    content: "♥"; position: absolute; z-index: 2; inset: 0; display: grid; place-items: center;
    color: rgba(255,255,255,.82); font-size: 10rem; text-shadow: 0 16px 45px rgba(105,54,50,.18);
}
.auth-art img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.auth-panel { display: flex; align-items: center; padding: 60px clamp(30px, 7vw, 110px); }
.auth-box { width: min(460px, 100%); }
.auth-box h1 { margin-bottom: 13px; font: 600 clamp(2.5rem, 5vw, 4rem) var(--serif); letter-spacing: -.04em; }
.auth-box > p { color: var(--muted); margin-bottom: 32px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 49px; padding: 11px 14px; border: 1px solid #d9cdc7;
    outline: none; color: var(--ink); background: var(--white); border-radius: 11px;
    transition: border .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(183,93,87,.12); }
.field-hint { color: var(--muted); font-size: .76rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-toggle { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border: 0; color: var(--rose-dark); background: transparent; font-size: .78rem; font-weight: 700; }
.form-error { margin-bottom: 18px; padding: 12px 14px; color: #852e2e; background: #fae2e0; border-radius: 10px; font-size: .87rem; }
.form-status { display: block; margin-top: 14px; font-size: .86rem; font-weight: 600; }
.form-status.error { color: #9a3838; }
.form-status.success { color: #417149; }

.toast-stack { position: fixed; z-index: 100; right: 24px; top: 96px; display: grid; gap: 10px; }
.toast {
    min-width: 280px; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 14px 16px; color: var(--ink); background: var(--white); border-left: 4px solid var(--sage);
    border-radius: 10px; box-shadow: var(--shadow);
    animation: toast-in .3s ease both;
}
.toast-error { border-left-color: #b24c4c; }
.toast button { border: 0; background: transparent; font-size: 1.2rem; }
.toast-out { animation: toast-out .35s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px); pointer-events: none; } }

.site-footer { padding: 55px 0; color: #d9d0cd; background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.footer-brand { color: var(--white); margin-bottom: 10px; }
.footer-inner p { margin: 0; font-size: .87rem; }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: .85rem; }
.footer-links a:hover, .link-button:hover { color: var(--white); }
.link-button { padding: 0; border: 0; color: inherit; background: transparent; }

[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-grid, .memory-detail-grid, .love-stat { grid-template-columns: 1fr; }
    .hero-copy { max-width: 690px; }
    .hero-art { width: min(520px, 100%); margin: 0 auto; }
    .memory-grid { grid-template-columns: repeat(2, 1fr); }
    .love-stat-art { max-height: 480px; }
    .memory-detail-copy { position: static; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { min-height: calc(100vh - 78px); justify-content: center; }
}

@media (max-width: 720px) {
    .shell, .narrow { width: min(100% - 28px, 1160px); }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 14px; right: 14px; top: calc(100% + 8px);
        display: none; align-items: stretch; flex-direction: column; gap: 5px; padding: 14px;
        background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 12px; }
    .site-nav a::after { display: none; }
    .site-nav .nav-pill { text-align: center; }
    .hero { padding-top: 60px; }
    .hero-grid { gap: 50px; }
    .hero-art { min-height: 420px; }
    .hero-note { width: 155px; padding: 17px; font-size: .9rem; }
    .section-head { align-items: start; flex-direction: column; }
    .memory-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 7px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 35px 38px; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
    .footer-inner, .footer-links { align-items: flex-start; flex-direction: column; }
    .footer-links { gap: 12px; }
    .toast-stack { left: 14px; right: 14px; top: 88px; }
    .toast { min-width: 0; }
}

/* Private dashboard */
.admin-body { min-height: 100vh; background: #f5f2ef; }
.admin-sidebar {
    position: fixed; z-index: 70; inset: 0 auto 0 0; width: 260px; display: flex; flex-direction: column;
    padding: 28px 20px 22px; color: #e7ddda; background: var(--ink);
}
.admin-brand { padding: 0 9px 28px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-nav { display: grid; gap: 5px; padding: 24px 0; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; font-size: .88rem; font-weight: 600; }
.admin-nav a span { width: 20px; color: #cfa29d; text-align: center; font-size: 1.05rem; }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.1); }
.admin-sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 20px 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { color: var(--white); }
.admin-sidebar-foot button { padding: 0; border: 0; color: inherit; background: transparent; }
.admin-layout { min-height: 100vh; margin-left: 260px; }
.admin-topbar {
    min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 25px;
    padding: 0 34px; background: var(--white); border-bottom: 1px solid var(--line);
}
.admin-topbar p { margin: 0; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-topbar > div > strong { font-family: var(--serif); font-size: 1.35rem; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--rose); border-radius: 50%; font-weight: 700; }
.admin-user div { display: grid; line-height: 1.2; }
.admin-user strong { font-size: .83rem; }
.admin-user small { color: var(--muted); font-size: .7rem; }
.admin-menu { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.admin-main { padding: 34px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.admin-page-head h1 { margin: 0 0 6px; font: 600 clamp(2rem, 4vw, 3.1rem) var(--serif); letter-spacing: -.035em; }
.admin-page-head p { margin: 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.stat-card span { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 10px; font: 600 2rem var(--serif); }
.stat-card em { display: inline-grid; place-items: center; width: 31px; height: 31px; float: right; color: var(--rose); background: #f7e8e4; border-radius: 9px; font-style: normal; }
.admin-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-head h2, .panel h2 { margin: 0; font: 600 1.35rem var(--serif); }
.mini-list { display: grid; }
.mini-memory { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-memory:last-child { border-bottom: 0; }
.mini-memory img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.mini-memory strong { display: block; font-size: .87rem; }
.mini-memory small { color: var(--muted); font-size: .75rem; }
.mini-memory a { color: var(--rose-dark); font-size: .78rem; font-weight: 700; }
.quick-actions { display: grid; gap: 11px; }
.quick-action { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; font-weight: 700; }
.quick-action span { width: 35px; height: 35px; display: grid; place-items: center; color: var(--rose); background: #f8e9e6; border-radius: 9px; }
.quick-action:hover { border-color: #c9aaa3; background: #fffafa; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th { padding: 13px 16px; color: var(--muted); background: #faf8f6; font-size: .7rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-memory { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.table-memory img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.table-memory strong { display: block; }
.table-memory small { color: var(--muted); }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.icon-button { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .75rem; font-weight: 700; }
.icon-button:hover { background: var(--cream); }
.icon-button.danger { color: #a23e3e; }
.status-pill { display: inline-flex; padding: 5px 8px; color: #417149; background: #e7f3e8; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.admin-form { max-width: 920px; }
.admin-form .panel + .panel { margin-top: 20px; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 20px; }
.upload-zone { position: relative; min-height: 340px; display: grid; place-items: center; overflow: hidden; border: 2px dashed #d8c7c0; border-radius: 18px; background: #fcf9f7; }
.upload-zone input { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }
.upload-preview { width: 100%; text-align: center; padding: 30px; }
.upload-preview img { display: none; width: 100%; max-height: 440px; object-fit: contain; border-radius: 12px; }
.upload-preview.has-image img { display: block; }
.upload-preview.has-image .upload-prompt { display: none; }
.upload-prompt strong { display: block; margin: 12px 0 5px; font-family: var(--serif); font-size: 1.25rem; }
.upload-prompt span { color: var(--muted); font-size: .8rem; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--rose); }
.checkbox-row label { font-size: .86rem; font-weight: 600; }
.alert { padding: 12px 15px; margin-bottom: 14px; border-radius: 10px; font-size: .85rem; }
.alert-success { color: #356641; background: #e5f2e7; }
.alert-error { color: #8d3333; background: #f7dfdd; }
.setting-section { margin-bottom: 28px; }
.setting-section h2 { margin-bottom: 5px; }
.setting-section > p { color: var(--muted); font-size: .86rem; }

@media (max-width: 1060px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
    .admin-sidebar.open { transform: none; }
    .admin-layout { margin-left: 0; }
    .admin-menu { display: block; }
    .admin-topbar { padding-inline: 17px; }
    .admin-topbar > div:nth-child(2) { margin-right: auto; }
    .admin-user div { display: none; }
    .admin-main { padding: 24px 15px; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .admin-page-head { align-items: flex-start; flex-direction: column; }
}

