:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #687381;
    --line: #dce2e8;
    --accent: #157f72;
    --accent-dark: #0f5f56;
    --danger: #b42318;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease;
}

body.page-ready {
    opacity: 1;
    transform: none;
}

body.is-leaving {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

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

.link-button {
    background: transparent;
    border: 0;
    color: #9ee7dd;
    cursor: pointer;
    padding: 0;
    transition: color 180ms ease, opacity 180ms ease, text-decoration-color 180ms ease;
    width: auto;
}

.link-button:hover {
    background: transparent;
    color: #d5fff8;
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: rgba(213, 255, 248, 0.65);
    transform: none;
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    padding: 12px;
}

button,
.button,
.primary-action {
    background: var(--accent);
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

button:hover,
.button:hover,
.primary-action:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

button:active,
.button:active,
.primary-action:active {
    transform: translateY(0);
}

.secondary-button {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent);
}

.secondary-button:hover {
    background: #eef7f5;
}

.compact-button {
    font-size: 13px;
    min-height: 38px;
    padding: 8px 12px;
}

.danger {
    background: var(--danger);
    padding: 8px 10px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card,
.form-panel,
.table-panel,
.qr-callout {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.login-card {
    width: min(420px, 100%);
    padding: 32px;
}

.login-card h1,
.page-heading h1 {
    margin: 0 0 18px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 16px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.sidebar {
    background: #111827;
    color: #fff;
    padding: 28px 20px;
}

.profile {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
}

.sidebar-panel h2 {
    color: #f5f7fb;
    font-size: 16px;
    margin: 0;
}

.sidebar-panel p {
    color: #b6c2d2;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.sidebar-panel label {
    color: #d7dee8;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.sidebar-panel input {
    background: rgba(10, 17, 24, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    min-height: 42px;
    padding: 10px 12px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #2dd4bf;
    color: #073b35;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 800;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-link {
    color: #9ee7dd;
    font-size: 14px;
}

.icon-button {
    align-items: center;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    font-size: 24px;
    justify-content: center;
    min-width: 42px;
    padding: 0;
    width: auto;
}

.icon-button:hover {
    background: #eef7f5;
    color: var(--accent);
}

.nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.nav a {
    border-radius: 8px;
    padding: 12px;
    color: #d7dee8;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.content {
    padding: 32px;
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading p {
    color: var(--muted);
    margin: 0;
}

.split {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.center-action {
    min-height: 45vh;
    display: grid;
    place-items: center;
}

.primary-action {
    font-size: 22px;
    padding: 20px 34px;
}

.form-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.danger-panel {
    border-color: #f5c2c7;
}

.info-note,
.muted-note {
    color: var(--muted);
    line-height: 1.6;
}

.narrow {
    max-width: 520px;
}

.form-grid,
.management-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wide {
    grid-column: 1 / -1;
}

.table-panel {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

td span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.table-field {
    margin: 0;
    min-width: 140px;
    padding: 10px 12px;
}

.table-actions {
    min-width: 160px;
}

.table-actions .actions {
    justify-content: flex-end;
}

.table-actions-centered {
    text-align: center;
}

.table-actions-centered .actions {
    justify-content: center;
}

.action-cluster {
    align-items: center;
    justify-content: center;
}

.action-cluster > * {
    flex: 0 0 auto;
}

.action-cluster form {
    display: flex;
}

.action-cluster .compact-button {
    min-width: 104px;
}

.message-cell {
    min-width: 240px;
    max-width: 320px;
}

.message-preview {
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.message-modal-card {
    max-width: 680px;
}

.message-modal-meta {
    color: var(--muted);
    margin: 6px 0 0;
}

.message-modal-body {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    line-height: 1.7;
    margin-top: 18px;
    max-height: min(50vh, 420px);
    overflow: auto;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-modal-actions {
    justify-content: space-between;
    margin-top: 16px;
}

.description-cell {
    min-width: 220px;
}

.description-preview {
    color: var(--muted);
    display: -webkit-box;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}

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

.actions form {
    width: auto;
}

.actions a {
    color: var(--accent);
    font-weight: 700;
}

.actions a.button,
.actions a.secondary-button,
.actions a.compact-button {
    color: inherit;
}

.actions a.button {
    color: #fff;
}

.actions a.secondary-button {
    color: var(--accent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.active {
    background: #dff7ef;
    color: #0f5f56;
}

.status-badge.warning {
    background: #fff0d5;
    color: #9a6700;
}

.status-badge.expired {
    background: #fee4e2;
    color: var(--danger);
}

.qr-thumb,
.qr-callout img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.qr-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-bottom: 24px;
}

.qr-callout p {
    color: var(--muted);
    margin: 6px 0 0;
    word-break: break-all;
}

.qr-callout.compact {
    margin-top: 20px;
}

.meta-list {
    display: grid;
    gap: 14px;
}

.meta-list > div {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.meta-list strong {
    font-size: 14px;
}

.break-text {
    color: var(--muted);
    word-break: break-all;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 24px;
}

.subnav a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 700;
    padding: 10px 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.stat strong {
    display: block;
    font-size: 34px;
}

.stat span,
.price {
    color: var(--muted);
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 120px;
    gap: 8px;
}

.item-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.item-list li {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
}

.item-list form {
    width: auto;
}

.category-list li {
    align-items: stretch;
}

.item-main {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.item-copy {
    min-width: 0;
}

.item-copy strong,
.item-copy span {
    display: block;
}

.item-copy strong {
    color: var(--text);
    margin-bottom: 4px;
}

.category-thumb {
    background: #f4fbf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 0 0 56px;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.empty-thumb {
    align-items: center;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 20px;
    font-weight: 800;
    justify-content: center;
}

.item-actions {
    align-items: center;
    justify-content: flex-end;
}

.modal-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, 0.52);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 30;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    max-width: 520px;
    padding: 24px;
    width: 100%;
}

.product-modal-card {
    max-width: 720px;
}

.product-image-editor {
    display: grid;
    gap: 12px;
}

.product-image-editor strong {
    color: var(--muted);
    font-size: 14px;
}

.product-image-editor-content {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 140px minmax(0, 1fr);
}

.product-image-preview {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 110px;
    overflow: hidden;
}

.product-image-preview img {
    display: block;
    height: 110px;
    object-fit: cover;
    width: 100%;
}

.product-image-fields {
    display: grid;
    gap: 10px;
}

.category-image-editor-content {
    align-items: center;
}

.category-image-fields {
    align-content: center;
    justify-items: start;
}

.category-image-fields .muted-note {
    margin: 0;
    text-align: left;
}

.upload-field {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--text);
    margin: 0;
    padding: 14px;
}

.upload-field span {
    color: var(--text);
    display: block;
    font-weight: 700;
    margin: 0 0 10px;
}

.modal-header,
.modal-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
}

.modal-actions {
    margin-top: 8px;
}

.modal-actions button,
.actions button {
    width: auto;
}

.compact-danger-panel {
    margin-top: 12px;
}

.password-input {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.accordion-card,
.menu-accordion {
    border-top: 1px solid var(--line);
}

.accordion-toggle,
.menu-accordion-summary {
    align-items: center;
    background: #fff;
    border: 0;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 16px;
    text-align: left;
}

.accordion-toggle:hover,
.menu-accordion-summary:hover {
    background: #f8fbfa;
}

.accordion-title {
    font-size: 16px;
    font-weight: 700;
}

.accordion-indicator {
    align-items: center;
    background: #eef7f5;
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease;
    width: 34px;
}

.accordion-indicator svg {
    height: 16px;
    transition: transform 260ms ease;
    width: 16px;
}

.accordion-toggle[aria-expanded="true"] .accordion-indicator svg,
.menu-accordion-summary[aria-expanded="true"] .accordion-indicator svg {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 280ms ease, opacity 220ms ease;
}

.accordion-panel.is-open {
    opacity: 1;
}

.accordion-panel-inner {
    overflow: hidden;
}

.accordion-empty {
    color: var(--muted);
    padding: 16px;
}

.password-input input {
    margin: 0;
}

.password-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.password-toggle:hover,
.password-toggle.is-active {
    background: #eef7f5;
    color: var(--accent);
}

.password-toggle svg {
    height: 18px;
    width: 18px;
}

.flash-stack {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 20;
    display: grid;
    gap: 8px;
}

.flash {
    background: #fff;
    border-left: 4px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    border-radius: 8px;
}

.flash.error {
    border-left-color: var(--danger);
}

.public-menu {
    background: #f7f3ed;
    min-height: 100vh;
}

.menu-hero {
    min-height: 260px;
    position: relative;
    background: #18202a;
    color: #fff;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.menu-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.menu-title {
    position: relative;
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu-title img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.menu-title h1 {
    margin: 0;
    font-size: clamp(32px, 7vw, 64px);
}

.menu-content {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.menu-category {
    margin-bottom: 34px;
}

.menu-accordion {
    background: #fff;
    border: 1px solid #e8dfd3;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.menu-accordion-summary {
    background: #fff;
    padding: 16px 18px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-accordion-summary .category-title {
    margin-bottom: 0;
}

.category-title img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

.category-title h2 {
    margin: 0;
}

.product-list {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.subcategory-group {
    display: grid;
    gap: 12px;
}

.subcategory-heading {
    border-bottom: 1px solid #e8dfd3;
    color: var(--text);
    font-size: 16px;
    margin: 4px 0 0;
    padding-bottom: 8px;
}

.product {
    background: #fff;
    border: 1px solid #e8dfd3;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    padding: 14px;
}

.product img {
    width: 110px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.product h3 {
    margin: 0 0 8px;
}

.product h4 {
    font-size: 18px;
    margin: 0 0 8px;
}

.product .price {
    display: block;
    margin-bottom: 8px;
}

.product p,
.empty {
    color: var(--muted);
    margin: 0;
}

.panel-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.panel-heading h2,
.section-heading h2 {
    margin: 0;
}

.panel-heading p,
.section-heading p {
    color: var(--muted);
    margin: 6px 0 0;
}

.admin-inbox-grid {
    align-items: start;
    margin-top: 24px;
}

.site-shell {
    min-height: 100vh;
    background: #f3f6f9;
}

.dark-site {
    background: #05080d;
    color: #f3f6fb;
}

.site-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dark-header {
    background: rgba(5, 8, 13, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.site-brand {
    display: grid;
    gap: 4px;
}

.brand-with-logo {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand-with-logo img {
    border-radius: 12px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.site-brand strong {
    font-size: 20px;
}

.site-brand span {
    color: var(--muted);
}

.dark-site .site-brand strong,
.dark-site .site-nav a,
.dark-site .section-heading h2,
.dark-site .form-panel h2,
.dark-site .menu-square-body h3 {
    color: #f5f7fb;
}

.dark-site .site-brand span,
.dark-site .site-nav a,
.dark-site .section-heading p,
.dark-site .muted-note,
.dark-site .menu-square-body p {
    color: #b6c2d2;
}

.eyebrow,
.hero-text {
    color: #d7dee8;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-nav a {
    color: var(--muted);
    font-weight: 700;
    transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover {
    color: #f5f7fb;
}

.hero-band {
    background-color: #14212d;
    background-position: center;
    background-size: cover;
    color: #fff;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    min-height: 72vh;
    padding: 48px 28px;
}

.branded-hero {
    min-height: 66vh;
}

.hero-copy {
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.hero-band h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    margin: 0;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    margin: 20px 0 0;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-actions .secondary-button {
    background: rgba(255, 255, 255, 0.92);
}

.hero-quote-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #f5f7fb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-quote-button:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero-metrics {
    align-content: end;
    display: grid;
    gap: 14px;
}

.hero-metrics > div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 18px;
}

.hero-metrics strong {
    display: block;
    font-size: 28px;
}

.hero-metrics span {
    color: #d7dee8;
}

.site-section {
    padding: 32px 28px 0;
}

.dark-section {
    background: #05080d;
}

.section-heading {
    margin-bottom: 18px;
}

.menu-carousel {
    overflow: hidden;
}

.menu-gallery-track {
    display: grid;
    gap: 16px;
    grid-auto-columns: minmax(320px, 400px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.menu-gallery-track::-webkit-scrollbar {
    height: 8px;
}

.menu-gallery-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.menu-square-card {
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: block;
    height: 400px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    width: 400px;
}

.menu-square-media {
    align-items: center;
    background: linear-gradient(180deg, rgba(18, 26, 36, 0.96), rgba(9, 13, 19, 1));
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 28px;
}

.menu-square-media img,
.menu-card-placeholder {
    display: block;
    height: 100%;
    width: 100%;
}

.menu-square-media img {
    object-fit: contain;
}

.menu-card-placeholder {
    align-items: center;
    background: #dff7ef;
    color: var(--accent-dark);
    display: flex;
    font-size: 52px;
    justify-content: center;
    font-weight: 800;
}

.menu-square-body {
    background: linear-gradient(180deg, rgba(5, 8, 13, 0), rgba(5, 8, 13, 0.86) 32%, rgba(5, 8, 13, 0.96) 100%);
    bottom: 0;
    display: grid;
    gap: 12px;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
}

.menu-square-head {
    align-items: end;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.menu-square-head h3 {
    margin: 0;
}

.menu-square-head p {
    margin: 6px 0 0;
}

.menu-card-logo {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex: 0 0 48px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.carousel-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.carousel-button {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #f5f7fb;
    height: 42px;
    width: 42px;
}

.form-section {
    padding-bottom: 32px;
}

.info-columns {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-home-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.public-home-form .form-grid {
    flex: 1 1 auto;
}

.public-home-form button {
    margin-top: auto;
}

.dark-panel {
    background: #0f141c;
    border-color: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.dark-panel input,
.dark-panel select,
.dark-panel textarea {
    background: #0a1118;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f7fb;
}

.dark-panel label {
    color: #b6c2d2;
}

.color-input-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 68px minmax(0, 1fr);
}

.color-input-row input[type="color"] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    min-height: 48px;
    padding: 4px;
}

.color-input-row input[readonly] {
    background: #0a1118;
    color: #f5f7fb;
}

.brand-preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

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

.brand-preview-card strong {
    color: var(--muted);
    font-size: 13px;
}

.brand-preview-card img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.brand-preview-empty {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #edf3f1;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-weight: 700;
    justify-content: center;
}

.checkbox-field {
    margin-bottom: 22px;
}

.checkbox-row {
    align-items: center;
    display: inline-flex;
    gap: 12px;
}

input[type="checkbox"] {
    accent-color: var(--accent);
    border: 0;
    padding: 0;
    width: 18px;
    height: 18px;
}

.link-pairs {
    display: grid;
    gap: 16px;
}

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

.inline-link-preview {
    border-top: 1px solid var(--line);
    margin: 18px 0;
    padding-top: 18px;
}

.inline-link-preview strong {
    display: block;
    margin-bottom: 10px;
}

.welcome-links {
    align-items: center;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.welcome-links-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.welcome-links-preview a,
.welcome-links a {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--accent-dark);
    font-weight: 700;
    padding: 10px 14px;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.welcome-links a:hover,
.welcome-links-preview a:hover {
    background: #fff;
    transform: translateY(-1px);
}

.welcome-page {
    min-height: 100vh;
}

.welcome-hero {
    align-items: center;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 42%),
        var(--welcome-bg, #12202c);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.welcome-overlay {
    background: rgba(5, 8, 13, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(5, 8, 13, 0.22);
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 36px 28px;
    position: relative;
    z-index: 1;
}

.welcome-logo {
    background: #fff;
    border-radius: 12px;
    height: 108px;
    object-fit: cover;
    width: 108px;
}

.welcome-overlay h1 {
    color: #fff;
    font-size: clamp(34px, 7vw, 64px);
    margin: 0;
}

.welcome-menu-button {
    min-width: 220px;
}

.menu-topbar {
    background: #fff;
    border-bottom: 1px solid #e8dfd3;
    padding: 0 16px;
}

.menu-back-link {
    color: var(--accent);
    display: inline-flex;
    font-weight: 700;
    padding: 12px 0;
}

.product-copy {
    align-self: center;
    min-width: 0;
}

.site-footer {
    padding-bottom: 32px;
}

.footer-stack {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.footer-card {
    background: #0f141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.footer-card h2 {
    color: #f5f7fb;
    margin: 0;
}

.footer-card p {
    color: #b6c2d2;
    line-height: 1.7;
    margin: 0;
}

.map-card {
    max-width: 820px;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.map-card iframe {
    border: 0;
    display: block;
    margin: 0 auto;
    min-height: 260px;
    width: 100%;
}

.footer-address-card {
    justify-items: center;
    max-width: 820px;
    text-align: center;
    width: 100%;
}

.footer-address-card p {
    color: #a5b4c7;
    font-size: 13px;
    line-height: 1.6;
}

.footer-map-button {
    width: auto;
}

@media (max-width: 760px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .content {
        padding: 20px;
    }

    .split,
    .qr-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .management-grid,
    .detail-grid,
    .stats-grid,
    .inline-form,
    .hero-band,
    .info-columns,
    .link-row,
    .brand-preview-grid {
        grid-template-columns: 1fr;
    }

    .product-image-editor-content {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: start;
        flex-direction: column;
        padding: 18px 20px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        padding: 4px 0;
    }

    .hero-band,
    .site-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-content {
        width: min(100%, calc(100% - 24px));
        padding: 24px 0;
    }

    .menu-gallery-track {
        grid-auto-columns: min(400px, calc(100% - 40px));
    }

    .carousel-actions {
        align-self: flex-start;
    }

    .form-panel {
        padding: 20px 18px;
    }

    .hero-actions a,
    .dark-panel button,
    .dark-panel .button {
        width: 100%;
    }

    .color-input-row {
        grid-template-columns: 1fr;
    }

    .item-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .menu-square-body .button {
        width: 100%;
    }

    .product {
        align-items: flex-start;
        flex-direction: row;
        padding: 12px;
    }

    .product img {
        flex: 0 0 84px;
        height: 84px;
        width: 84px;
    }

    .menu-title {
        align-items: flex-start;
        flex-direction: row;
        padding: 24px 20px;
    }

    .menu-title h1 {
        font-size: 32px;
    }
}
