@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --bg: #f5efe5;
    --surface: #fffaf3;
    --surface-strong: #fff;
    --ink: #1e1b18;
    --muted: #64594f;
    --accent: #166534;
    --accent-dark: #14532d;
    --danger: #7c2d12;
    --danger-soft: #f97316;
    --border: rgba(30, 27, 24, 0.12);
    --shadow: 0 20px 50px rgba(74, 47, 24, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(22, 101, 52, 0.14), transparent 28%),
        linear-gradient(180deg, #f7f1e8 0%, var(--bg) 100%);
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.hero-card,
.panel {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.hero-card h1,
.panel h1,
.panel h2,
.profile-card h3 {
    margin: 0;
}

.hero-title {
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.lead,
.profile-card p,
.panel p,
dd {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--accent-dark);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-actions,
.panel-header,
.field-row,
.profile-meta,
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button,
button,
.text-link {
    text-decoration: none;
    transition: 0.2s ease;
}

.button,
button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: #e7ecdf;
    color: var(--ink);
}

.button-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-soft) 100%);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.admin-grid {
    align-items: start;
}

.panel {
    padding: 24px;
}

.stats {
    display: grid;
    gap: 14px;
}

.stats div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 27, 24, 0.08);
}

dt {
    font-size: 0.85rem;
    color: var(--muted);
}

dd {
    margin: 4px 0 0;
    word-break: break-word;
}

.settings-form,
.profile-list {
    display: grid;
    gap: 16px;
}

.price-filter-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(30, 27, 24, 0.08);
}

.slug-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(30, 27, 24, 0.14);
    background: var(--surface-strong);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox input {
    width: auto;
}

.checkbox span {
    margin: 0;
}

.profile-card {
    border: 1px solid rgba(30, 27, 24, 0.08);
    background: rgba(255, 250, 243, 0.9);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.profile-meta,
.profile-actions {
    align-items: center;
}

.profile-card a,
.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.button-link {
    border: none;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.success-banner,
.hint-box,
.error-box {
    border-radius: 18px;
    padding: 14px 16px;
}

.success-banner {
    background: rgba(22, 101, 52, 0.1);
    color: var(--accent-dark);
}

.hint-box {
    background: rgba(20, 83, 45, 0.08);
}

.error-box {
    background: rgba(124, 45, 18, 0.1);
    color: var(--danger);
}

.mono {
    font-family: Consolas, monospace;
}

.mapping-preview {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    margin-top: 10px;
}

.mapping-input-list {
    display: grid;
    gap: 12px;
}

.mapping-input-row {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(30, 27, 24, 0.08);
}

.mapping-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
    .hero-card,
    .grid {
        grid-template-columns: 1fr;
        display: grid;
    }
}
