:root {
    --bg: #f6efe5;
    --paper: #fffaf4;
    --ink: #2b1e16;
    --muted: #775d4a;
    --accent: #cb4a2f;
    --accent-dark: #952d1a;
    --green: #53743b;
    --line: #e7d6c3;
    --danger: #9d2f2f;
    --shadow: 0 18px 40px rgba(78, 39, 17, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(203, 74, 47, 0.18), transparent 34%),
        linear-gradient(180deg, #fff8ef, var(--bg));
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 250, 244, 0.9);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.hero,
.page-head,
.grid {
    display: grid;
    gap: 1.5rem;
}

.hero {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.hero h1,
.page-head h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
    margin: 0.35rem 0 0.75rem;
}

.hero-card,
.panel,
.metrics div {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card,
.panel {
    padding: 1.5rem;
}

.hero-card strong {
    display: block;
    font-size: 2.3rem;
    margin: 0.5rem 0;
}

.eyebrow,
.section-title span {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--accent-dark);
}

.grid {
    grid-template-columns: 1.5fr 1fr;
}

.section-title h2 {
    margin: 0.35rem 0 0.8rem;
    font-size: 1.45rem;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.3rem;
}

.choices input {
    accent-color: var(--accent);
}

.choice-card,
.choice-pill {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.85rem 1rem;
}

.choice-card {
    flex: 1 1 220px;
    align-items: flex-start;
    flex-direction: column;
}

.choice-pill {
    min-width: 140px;
}

.toppings-grid .choice-card {
    min-height: 122px;
}

.order-foot,
.customer-fields,
.summary-box,
.metrics,
.status-form {
    display: grid;
    gap: 1rem;
}

.order-foot,
.customer-fields {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.3rem;
}

label span {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d8c2aa;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: #fffdf9;
}

.btn-primary,
.btn-secondary,
.linkish {
    border: 0;
    cursor: pointer;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding: 0.9rem 1.3rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #e07b37);
    color: #fff;
}

.btn-secondary {
    background: #efe2d2;
    color: var(--ink);
}

.linkish {
    background: transparent;
    padding: 0;
}

.side-panel p,
.muted {
    color: var(--muted);
}

.wheel {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    margin: 1rem auto 1.25rem;
    position: relative;
    border: 10px solid #fff;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
    background: conic-gradient(var(--accent) 0 33.33%, #efb15d 33.33% 66.66%, var(--green) 66.66% 100%);
    transition: transform 1.8s cubic-bezier(.22,1,.36,1);
}

.wheel div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    font-weight: 700;
    color: white;
}

.wheel div:nth-child(1) {
    transform: rotate(-70deg) translate(18px, -90px);
}

.wheel div:nth-child(2) {
    transform: rotate(50deg) translate(40px, -10px);
}

.wheel div:nth-child(3) {
    transform: rotate(175deg) translate(-90px, 28px);
}

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
}

.alert.success { background: #ebf6e6; color: #305122; }
.alert.danger { background: #fdeaea; color: var(--danger); }
.alert.info { background: #fff2dd; color: #7f4c08; }

.cart-item,
.order-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child,
.order-card:last-child {
    border-bottom: 0;
}

.cart-item,
.order-card-head,
.summary-box div,
.metrics,
.radio-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.demo-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: #f6ecdf;
}

.user-chip,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: #f2e6d6;
}

.badge {
    background: #fef0d8;
}

.plain-list {
    padding-left: 1rem;
}

.danger-text {
    color: var(--danger);
}

@media (max-width: 900px) {
    .hero,
    .grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
