:root {
    --bg: #f4efe4;
    --bg-deep: #171512;
    --surface: #fffaf0;
    --surface-strong: #ffffff;
    --ink: #211c16;
    --muted: #746b5d;
    --line: #ded2bd;
    --primary: #0f6b5f;
    --primary-dark: #0a4d45;
    --gold: #c99a3d;
    --gold-soft: #f4dfad;
    --danger: #b42318;
    --danger-bg: #fee4df;
    --shadow: 0 18px 45px rgba(33, 28, 22, 0.16);
    --soft-shadow: 0 10px 28px rgba(33, 28, 22, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(201, 154, 61, 0.22), transparent 34rem),
        linear-gradient(135deg, #fff8ec 0%, var(--bg) 48%, #eadcc3 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

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

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

.page-center {
    display: grid;
    place-items: center;
    padding: 24px;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.narrow {
    width: min(780px, calc(100% - 32px));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    background: rgba(23, 21, 18, 0.94);
    border-bottom: 1px solid rgba(201, 154, 61, 0.28);
    color: #fff8ec;
    box-shadow: 0 8px 24px rgba(23, 21, 18, 0.22);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand::before {
    content: "";
    width: 11px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), #f5d87c);
}

.topbar nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.topbar nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 1px solid rgba(255, 248, 236, 0.1);
    border-radius: 999px;
    color: rgba(255, 248, 236, 0.78);
    font-weight: 800;
}

.topbar nav a:hover,
.topbar nav a.active {
    color: #171512;
    background: var(--gold-soft);
    border-color: var(--gold-soft);
}

.hero {
    padding: 32px 0 30px;
}

.public .hero {
    margin-bottom: 8px;
    padding: 34px 0 24px;
    border-bottom: 1px solid rgba(201, 154, 61, 0.28);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    font-size: 24px;
}

h3 {
    margin-bottom: 5px;
    font-size: 17px;
}

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

.panel {
    background: rgba(255, 250, 240, 0.94);
    border: 1px solid rgba(201, 154, 61, 0.28);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.panel-small {
    width: min(430px, 100%);
}

.panel-small h1 {
    font-size: 31px;
}

.form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #322a20;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fffdf8;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 61, 0.18);
}

textarea {
    resize: vertical;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--primary);
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 900;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 107, 95, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-secondary {
    background: #f8ecd2;
    color: var(--ink);
    border-color: #e8d3a7;
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.alert,
.notice {
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.alert {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice {
    background: #dff5df;
    color: #166534;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    position: relative;
    display: grid;
    gap: 9px;
    min-height: 176px;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #fffdf8, #f7ead1);
    border: 1px solid rgba(201, 154, 61, 0.32);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.category-tile {
    padding: 0;
}

.category-tile-main {
    display: grid;
    gap: 9px;
    padding: 24px 24px 8px;
}

.category-tile-muted {
    opacity: 0.72;
}

.category-tile-image {
    width: 100%;
    height: 118px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(201, 154, 61, 0.28);
}

.category-tile-main > strong {
    font-size: 24px;
    color: var(--primary-dark);
}

.category-tile-main > span:not(.tile-label) {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
}

.category-tile-main em {
    color: var(--danger);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.category-edit-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin: 0 24px 20px;
    color: var(--primary-dark);
    font-weight: 900;
}

.category-tile-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 24px 20px;
}

.category-tile-actions form {
    margin: 0;
}

.danger-panel {
    margin-top: 18px;
    border-color: rgba(180, 35, 24, 0.32);
}

.tile::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(201, 154, 61, 0.2);
}

.tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.tile strong {
    font-size: 46px;
    line-height: 1;
}

.tile small,
.tile-label {
    color: var(--muted);
}

.tile-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid rgba(201, 154, 61, 0.26);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid rgba(222, 210, 189, 0.86);
    text-align: left;
    vertical-align: middle;
}

th {
    background: #221d17;
    color: #fff8ec;
    font-size: 12px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(201, 154, 61, 0.08);
}

.actions {
    white-space: nowrap;
}

td.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

td.actions form {
    margin: 0;
}

.empty {
    text-align: center;
    color: var(--muted);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.public {
    background:
        radial-gradient(circle at 10% 0%, rgba(201, 154, 61, 0.22), transparent 28rem),
        linear-gradient(150deg, #171512 0%, #2f271d 46%, #f0e2c9 46%, #fff8ec 100%);
}

.public.has-theme-background {
    background:
        linear-gradient(180deg, rgba(23, 21, 18, 0.68), rgba(23, 21, 18, 0.34) 38%, rgba(255, 248, 236, 0.92) 72%),
        var(--public-bg-image) center top / cover fixed no-repeat;
}

.public .container {
    width: min(1040px, calc(100% - 32px));
}

.public h1 {
    color: #fff8ec;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.public .hero p {
    color: rgba(255, 248, 236, 0.78);
}

.language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.language-switcher a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(244, 223, 173, 0.5);
    border-radius: 999px;
    color: #fff8ec;
    font-weight: 900;
    background: rgba(23, 21, 18, 0.24);
}

.language-flag {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 248, 236, 0.14);
    box-shadow: inset 0 0 0 1px rgba(244, 223, 173, 0.32);
    font-size: 18px;
    line-height: 1;
}

.language-code {
    font-size: 12px;
    letter-spacing: 0;
}

.language-label {
    font-size: 13px;
}

.language-switcher a.active,
.language-switcher a:hover {
    background: var(--gold-soft);
    color: #211c16;
}

.language-switcher-inline {
    margin: 0 0 16px;
}

.delivery-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(244, 223, 173, 0.42);
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 107, 95, 0.25);
    font-weight: 900;
}

.delivery-button:hover {
    filter: brightness(1.06);
}

.public-brand {
    width: min(280px, 82vw);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf0, #f0d9a8);
    border: 1px solid rgba(244, 223, 173, 0.72);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.public-brand-small {
    width: min(220px, 72vw);
    height: 92px;
    margin-bottom: 14px;
}

.public-brand img {
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    object-fit: contain;
}

.public-brand span {
    color: #211c16;
    font-size: 42px;
    font-weight: 900;
}

.brand-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.brand-preview img,
.brand-preview span {
    width: 150px;
    height: 76px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.brand-preview img {
    object-fit: contain;
    background: #fffaf0;
    border: 1px solid rgba(201, 154, 61, 0.24);
}

.brand-preview span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #211c16;
    font-size: 30px;
    font-weight: 900;
}

.brand-preview strong {
    font-size: 22px;
}

.background-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.background-preview img {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    object-fit: cover;
}

.background-preview span {
    color: var(--muted);
    font-weight: 800;
}

.category-image-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.category-image-preview img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
}

.category-image-preview span {
    color: var(--muted);
    font-weight: 800;
}

.translation-panel {
    display: grid;
    gap: 14px;
    padding-top: 8px;
}

.translation-panel h2 {
    margin-bottom: 0;
}

.translation-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.translation-block h3 {
    margin-bottom: 0;
}

.theme-picker {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 14, 10, 0.96);
}

.theme-picker h2 {
    margin-bottom: 0;
}

.theme-option {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(214, 168, 75, 0.28);
    border-radius: 8px;
    background: rgba(255, 227, 163, 0.06);
    cursor: pointer;
}

.theme-option input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--gold);
}

.theme-option strong,
.theme-option small {
    display: block;
}

.theme-option small {
    margin-top: 3px;
    color: var(--muted);
}

.theme-option:has(input:checked) {
    border-color: rgba(255, 227, 163, 0.76);
    box-shadow: 0 0 0 3px rgba(214, 168, 75, 0.14);
}

.theme-swatch {
    width: 58px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 227, 163, 0.38);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.theme-option-premium_gold .theme-swatch {
    background: linear-gradient(135deg, #070605 0%, #17110a 58%, #d6a84b 58%, #ffe3a3 100%);
}

.theme-option-royal_black .theme-swatch {
    background: linear-gradient(135deg, #020202 0%, #111 60%, #f6d37a 60%, #c7952f 100%);
}

.theme-option-emerald_lounge .theme-swatch {
    background: linear-gradient(135deg, #041712 0%, #0a3c2d 60%, #d6a84b 60%, #ffe3a3 100%);
}

.theme-option-wine_velvet .theme-swatch {
    background: linear-gradient(135deg, #18060b 0%, #551225 60%, #d6a84b 60%, #ffe3a3 100%);
}

.theme-option-ivory_classic .theme-swatch {
    background: linear-gradient(135deg, #fff8ec 0%, #eadcc3 60%, #a77924 60%, #17110a 100%);
}

.import-help {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 28px;
}

.import-help pre {
    margin: 0;
    overflow-x: auto;
    padding: 14px;
    background: #211c16;
    border-radius: 8px;
    color: #fff8ec;
}

.public-menu-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.menu-type-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.menu-type-chooser a {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffaf0, #f0d9a8);
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 8px;
    color: #211c16;
    box-shadow: var(--shadow);
    font-size: 28px;
    font-weight: 900;
}

.menu-type-chooser a.active,
.menu-type-chooser a:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.admin-group {
    margin-bottom: 34px;
}

.admin-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-group h2 {
    margin-bottom: 0;
}

.public-menu-button {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fffaf0, #f0d9a8);
    color: #211c16;
    border: 1px solid rgba(201, 154, 61, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.public-menu-button-image {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 61, 0.45);
    border-radius: 8px;
    background: #fffdf8;
}

.public-menu-button-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-menu-button:hover {
    background: linear-gradient(135deg, #ffffff, #f6dfad);
    transform: translateY(-2px);
}

.public-menu-button-text {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.public-menu-button strong {
    font-size: 24px;
    line-height: 1.2;
}

.public-menu-button small {
    color: #6b5b42;
    font-size: 12px;
    font-weight: 800;
}

.public-menu-button-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #211c16;
    color: var(--gold-soft);
    font-size: 30px;
    line-height: 1;
}

.menu-section {
    background: rgba(255, 250, 240, 0.97);
    border: 1px solid rgba(201, 154, 61, 0.34);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.menu-button {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 1px solid rgba(244, 223, 173, 0.3);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 107, 95, 0.24);
}

.menu-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.menu-button-text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.menu-button strong {
    font-size: 18px;
    line-height: 1.2;
}

.menu-button small {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.menu-button-arrow {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
    line-height: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 16px;
    padding: 8px 13px;
    border: 1px solid rgba(244, 223, 173, 0.5);
    border-radius: 999px;
    color: #fff8ec;
    font-weight: 900;
}

.menu-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(222, 210, 189, 0.86);
}

.menu-row > div {
    min-width: 0;
    flex: 1 1 auto;
}

.menu-row:first-of-type {
    border-top: 0;
}

.menu-row p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

.menu-row strong {
    flex: 0 0 auto;
    min-width: 82px;
    color: var(--primary-dark);
    font-size: 18px;
    text-align: right;
}

@media (max-width: 980px) {
    .dashboard-grid,
    .public-menu-buttons,
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        background: linear-gradient(180deg, #fff8ec 0%, var(--bg) 100%);
    }

    .container,
    .public .container,
    .narrow {
        width: min(100% - 22px, 760px);
        padding: 22px 0 36px;
    }

    .topbar {
        position: static;
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .topbar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .topbar nav a {
        width: 100%;
    }

    .hero {
        padding: 24px 0 20px;
    }

    h1 {
        font-size: 30px;
    }

    .page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-grid,
    .public-menu-buttons,
    .menu-type-chooser,
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public {
        background:
            linear-gradient(180deg, #171512 0%, #33291d 260px, #fff8ec 260px, #f4efe4 100%);
    }

    .public.has-theme-background {
        background:
            linear-gradient(180deg, rgba(23, 21, 18, 0.72), rgba(23, 21, 18, 0.36) 250px, rgba(255, 248, 236, 0.95) 430px),
            var(--public-bg-image) center top / auto 430px no-repeat,
            #fff8ec;
    }

    .public-menu-button {
        min-height: 78px;
        padding: 15px 16px;
    }

    .public-menu-button-image {
        width: 62px;
        height: 62px;
    }

    .language-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .language-switcher a {
        width: 100%;
    }

    .language-label {
        display: none;
    }

    .delivery-button {
        width: 100%;
        border-radius: 8px;
    }

    .public-menu-button strong {
        font-size: 22px;
    }

    .admin-group-head {
        align-items: stretch;
        flex-direction: column;
    }

    .panel,
    .menu-section {
        padding: 18px;
    }

    .menu-row strong {
        min-width: 74px;
        font-size: 17px;
        text-align: right;
    }

    .actions,
    td.actions {
        white-space: normal;
    }
}

/* Public theme variants and motion */
.public {
    --theme-bg-a: #070605;
    --theme-bg-b: #15110c;
    --theme-bg-c: #24190d;
    --theme-card-a: rgba(42, 33, 20, 0.98);
    --theme-card-b: rgba(18, 14, 9, 0.98);
    --theme-accent: #d6a84b;
    --theme-accent-soft: #ffe3a3;
    --theme-text: #fff7e6;
    --theme-muted: #c8b894;
}

.public.theme-royal_black {
    --theme-bg-a: #020202;
    --theme-bg-b: #0b0b0b;
    --theme-bg-c: #17120a;
    --theme-card-a: rgba(22, 22, 22, 0.98);
    --theme-card-b: rgba(4, 4, 4, 0.98);
    --theme-accent: #f0c76a;
    --theme-accent-soft: #fff0bf;
    --theme-muted: #d2c29e;
}

.public.theme-emerald_lounge {
    --theme-bg-a: #03100d;
    --theme-bg-b: #08251d;
    --theme-bg-c: #0e3c2f;
    --theme-card-a: rgba(14, 60, 47, 0.96);
    --theme-card-b: rgba(3, 16, 13, 0.98);
    --theme-accent: #d6a84b;
    --theme-accent-soft: #ffe3a3;
    --theme-muted: #b7d8c9;
}

.public.theme-wine_velvet {
    --theme-bg-a: #13050a;
    --theme-bg-b: #2a0914;
    --theme-bg-c: #551225;
    --theme-card-a: rgba(85, 18, 37, 0.92);
    --theme-card-b: rgba(19, 5, 10, 0.98);
    --theme-accent: #e0b05a;
    --theme-accent-soft: #ffe2a1;
    --theme-muted: #e0b7c2;
}

.public.theme-ivory_classic {
    --theme-bg-a: #fff8ec;
    --theme-bg-b: #eadcc3;
    --theme-bg-c: #d8c294;
    --theme-card-a: rgba(255, 250, 240, 0.98);
    --theme-card-b: rgba(241, 225, 194, 0.98);
    --theme-accent: #a77924;
    --theme-accent-soft: #f2d990;
    --theme-text: #211c16;
    --theme-muted: #6f634f;
}

.public {
    color: var(--theme-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(214, 168, 75, 0.24), transparent 28rem),
        linear-gradient(150deg, var(--theme-bg-a) 0%, var(--theme-bg-b) 52%, var(--theme-bg-c) 100%);
}

.public h1,
.public .public-menu-button,
.public .menu-section,
.public .menu-type-chooser a,
.public .menu-button {
    color: var(--theme-text);
}

.public .public-menu-button,
.public .menu-section,
.public .menu-type-chooser a,
.public .menu-button {
    background: linear-gradient(145deg, var(--theme-card-a), var(--theme-card-b));
    border-color: rgba(214, 168, 75, 0.52);
}

.public .public-menu-button small,
.public .menu-row p,
.public .hero p {
    color: var(--theme-muted);
}

.public .public-menu-button-arrow,
.public .menu-type-chooser a.active,
.public .menu-type-chooser a:hover,
.public .delivery-button,
.public .language-switcher a.active,
.public .language-switcher a:hover {
    background: linear-gradient(135deg, var(--theme-accent-soft), var(--theme-accent));
    color: #130d05;
}

.public.theme-ivory_classic .language-switcher a,
.public.theme-ivory_classic .back-link {
    color: #211c16;
    background: rgba(255, 255, 255, 0.62);
}

.public.theme-ivory_classic .public-brand {
    background: linear-gradient(135deg, #fffaf0, #eadcc3);
}

.public.theme-ivory_classic .public-brand span {
    color: #211c16;
}

@keyframes menuFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandGlow {
    0%, 100% {
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    }
    50% {
        box-shadow: 0 18px 52px rgba(214, 168, 75, 0.32);
    }
}

.public .hero,
.public .menu-type-chooser,
.public .public-menu-buttons,
.public .menu-section {
    animation: menuFadeUp 520ms ease both;
}

.public .menu-type-chooser {
    animation-delay: 80ms;
}

.public .public-menu-buttons,
.public .menu-section {
    animation-delay: 140ms;
}

.public .public-brand {
    animation: brandGlow 4.8s ease-in-out infinite;
}

.public .public-menu-button,
.public .menu-row,
.public .menu-type-chooser a,
.public .language-switcher a {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.public .public-menu-button:hover,
.public .menu-type-chooser a:hover,
.public .language-switcher a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .public .hero,
    .public .menu-type-chooser,
    .public .public-menu-buttons,
    .public .menu-section,
    .public .public-brand {
        animation: none;
    }

    .public .public-menu-button,
    .public .menu-row,
    .public .menu-type-chooser a,
    .public .language-switcher a {
        transition: none;
    }
}

@media (max-width: 430px) {
    .topbar nav {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 27px;
    }

    .btn,
    .form-actions .btn {
        width: 100%;
    }
}

/* Premium gold theme */
:root {
    --bg: #0f0d0a;
    --bg-deep: #070605;
    --surface: #1a1610;
    --surface-strong: #241d13;
    --ink: #fff7e6;
    --muted: #c8b894;
    --line: #5a4728;
    --primary: #d6a84b;
    --primary-dark: #8b611c;
    --gold: #d6a84b;
    --gold-soft: #ffe3a3;
    --danger-bg: #3a1511;
    --shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
    --soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

body {
    background:
        radial-gradient(circle at 14% 0%, rgba(214, 168, 75, 0.24), transparent 31rem),
        radial-gradient(circle at 88% 8%, rgba(255, 227, 163, 0.1), transparent 28rem),
        linear-gradient(135deg, #070605 0%, #15110c 48%, #21180e 100%);
}

.topbar {
    background: rgba(7, 6, 5, 0.94);
    border-bottom-color: rgba(214, 168, 75, 0.36);
    color: #fff7e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.brand::before {
    background: linear-gradient(180deg, #ffe3a3, var(--gold));
}

.topbar nav a {
    border-color: rgba(255, 227, 163, 0.16);
    color: rgba(255, 247, 230, 0.82);
}

.topbar nav a:hover,
.topbar nav a.active,
.btn-primary,
.delivery-button,
.menu-type-chooser a.active,
.menu-type-chooser a:hover,
.public-menu-button-arrow {
    background: linear-gradient(135deg, #ffe9b9, var(--gold) 50%, #8b611c);
    color: #130d05;
    border-color: rgba(255, 227, 163, 0.74);
}

.panel,
.tile,
.menu-section {
    background: linear-gradient(145deg, rgba(36, 29, 19, 0.97), rgba(16, 13, 9, 0.97));
    border-color: rgba(214, 168, 75, 0.34);
}

label {
    color: #fff2d2;
}

input,
select,
textarea {
    background: #110e0a;
    color: #fff7e6;
    border-color: var(--line);
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(214, 168, 75, 0.18);
}

.btn-primary {
    box-shadow: 0 12px 26px rgba(214, 168, 75, 0.24);
}

.btn-secondary {
    background: rgba(255, 227, 163, 0.1);
    color: #ffe3a3;
    border-color: rgba(214, 168, 75, 0.38);
}

.notice {
    background: #17351f;
    color: #baf2c4;
}

.tile::after {
    background: rgba(214, 168, 75, 0.14);
}

.category-tile-main > strong,
.category-edit-link,
.menu-row strong {
    color: var(--gold-soft);
}

.category-tile-image,
.brand-preview img,
.public-menu-button-image {
    border-color: rgba(214, 168, 75, 0.38);
}

.table-wrap,
.brand-preview,
.background-preview,
.category-image-preview,
.translation-block {
    background: rgba(17, 14, 10, 0.96);
    border-color: rgba(214, 168, 75, 0.28);
}

th {
    background: #0c0906;
    color: #ffe3a3;
}

tbody tr:hover {
    background: rgba(214, 168, 75, 0.1);
}

.public {
    background:
        radial-gradient(circle at 10% 0%, rgba(214, 168, 75, 0.24), transparent 28rem),
        radial-gradient(circle at 92% 10%, rgba(255, 227, 163, 0.1), transparent 28rem),
        linear-gradient(150deg, #070605 0%, #15110c 52%, #24190d 100%);
}

.public.has-theme-background {
    background:
        linear-gradient(180deg, rgba(7, 6, 5, 0.78), rgba(7, 6, 5, 0.5) 44%, rgba(15, 13, 10, 0.94) 82%),
        var(--public-bg-image) center top / cover fixed no-repeat;
}

.public .hero {
    border-bottom-color: rgba(214, 168, 75, 0.34);
}

.public h1 {
    color: #fff7e6;
}

.public .hero p {
    color: rgba(255, 247, 230, 0.78);
}

.language-switcher a,
.back-link {
    background: rgba(7, 6, 5, 0.34);
    border-color: rgba(255, 227, 163, 0.44);
    color: #fff7e6;
}

.language-switcher a.active,
.language-switcher a:hover {
    background: linear-gradient(135deg, #ffe9b9, var(--gold));
    color: #130d05;
}

.language-switcher a.active .language-flag,
.language-switcher a:hover .language-flag {
    background: rgba(19, 13, 5, 0.1);
    box-shadow: inset 0 0 0 1px rgba(19, 13, 5, 0.18);
}

.public-brand {
    background: linear-gradient(135deg, #2b2215, #100d09);
    border-color: rgba(255, 227, 163, 0.58);
}

.public-brand span {
    color: #ffe3a3;
}

.brand-preview span {
    color: #130d05;
}

.menu-type-chooser a,
.public-menu-button,
.menu-button {
    background: linear-gradient(145deg, rgba(42, 33, 20, 0.98), rgba(18, 14, 9, 0.98));
    border-color: rgba(214, 168, 75, 0.46);
    color: #fff7e6;
}

.public-menu-button:hover,
.menu-button:hover {
    background: linear-gradient(145deg, #352817, #1a1208);
}

.public-menu-button small,
.menu-row p {
    color: var(--muted);
}

.menu-row {
    border-top-color: rgba(90, 71, 40, 0.86);
}

@media (max-width: 720px) {
    body {
        background: linear-gradient(180deg, #070605 0%, #17110a 100%);
    }

    .public {
        background: linear-gradient(180deg, #070605 0%, #17110a 260px, #100d09 100%);
    }

    .public.has-theme-background {
        background:
            linear-gradient(180deg, rgba(7, 6, 5, 0.82), rgba(7, 6, 5, 0.46) 250px, rgba(15, 13, 10, 0.96) 430px),
            var(--public-bg-image) center top / auto 430px no-repeat,
            #100d09;
    }
}
