:root {
    --font-main: Calibri, 'Segoe UI', sans-serif;
    --bg-cream: #f3f4f6;
    --bg-sand: #eceef1;
    --bg-mint: #e8ebef;
    --ink: #161a1f;
    --ink-soft: #5e6772;
    --brand-deep: #1e2936;
    --brand-warm: #2d3744;
    --brand-danger: #b73932;
    --line: rgba(22, 26, 31, 0.1);
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 12px 30px rgba(16, 22, 30, 0.11);
    --shadow-soft: 0 6px 18px rgba(16, 22, 30, 0.08);
    --radius-xl: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --btn-primary-base: #c91333;
    --btn-primary-hover: #a90f2a;
    --btn-secondary-base: #1f1e25;
    --btn-secondary-hover: #34323c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main) !important;
}

body {
    color: var(--ink);
}

body * {
    font-family: var(--font-main) !important;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
    color: var(--ink-soft);
}

a {
    color: var(--brand-deep);
}

/* iOS/Safari varsayilan mavi buton stilini kapatir. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    color: inherit;
}

input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(30, 35, 32, 0.6);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active {
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-primary-base), var(--btn-primary-hover));
    color: #f6f8fb;
    box-shadow: var(--shadow-soft);
}

.btn-primary:visited {
    color: #f6f8fb;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--btn-secondary-base), var(--btn-secondary-hover));
    color: #eef3fa;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:visited {
    color: #eef3fa;
}

.btn-danger {
    background: #fff;
    color: var(--brand-danger);
    border: 1px solid rgba(198, 54, 43, 0.25);
}

.btn-danger:visited {
    color: var(--brand-danger);
}

.alert {
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(4, 120, 87, 0.13);
    border-color: rgba(4, 120, 87, 0.25);
}

.alert.warning {
    background: rgba(54, 72, 95, 0.11);
    border-color: rgba(54, 72, 95, 0.24);
}

.alert.error {
    background: rgba(198, 54, 43, 0.11);
    border-color: rgba(198, 54, 43, 0.24);
}

.stacked-form {
    display: grid;
    gap: 0.85rem;
}

.stacked-form.compact {
    gap: 0.55rem;
}

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--ink);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.75rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.92);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(201, 19, 51, 0.2);
    border-color: rgba(169, 15, 42, 0.4);
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.toggle-label input {
    width: auto;
}

.auth-shell {
    min-height: 100vh;
    padding: 2rem 1.2rem;
    background:
        radial-gradient(circle at 12% 6%, rgba(18, 24, 33, 0.09), transparent 35%),
        radial-gradient(circle at 88% 14%, rgba(44, 55, 71, 0.08), transparent 34%),
        linear-gradient(160deg, var(--bg-cream), #f8f9fb 55%, #f0f2f5);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.3rem;
    align-items: stretch;
}

.inline-link {
    font-weight: 600;
}

.install-shell {
    grid-template-columns: 1fr 1.15fr;
}

.brand-panel {
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(247, 249, 252, 0.72));
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-panel h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.feature-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.5rem;
}

.glass-note {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 26, 31, 0.1);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
}

.auth-card {
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.system-badge-logo {
    width: 86px;
    height: auto;
    object-fit: contain;
}

.system-badge-logo.sidebar {
    width: 56px;
    margin-bottom: 0.55rem;
}

.install-logo {
    width: 132px !important;
    max-width: 32vw;
    height: auto;
    align-self: flex-start;
    object-fit: contain;
}

.auth-card h2 {
    margin-bottom: 0.9rem;
}

.system-checks {
    margin-bottom: 1rem;
}

.system-checks h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.check-item {
    font-size: 0.82rem;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
}

.check-item.ok {
    background: rgba(4, 120, 87, 0.14);
    color: #0b5e49;
}

.check-item.fail {
    background: rgba(198, 54, 43, 0.12);
    color: #7c221b;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% -5%, rgba(18, 24, 33, 0.1), transparent 33%),
        radial-gradient(circle at 10% 98%, rgba(35, 44, 55, 0.08), transparent 31%),
        linear-gradient(165deg, #f4f6f8, #fafbfd 56%, #eef1f4);
}

.wp-login-body {
    min-height: 100vh;
    margin: 0;
    background: #f0f2f4;
    display: flex;
    flex-direction: column;
}

.wp-login-shell {
    width: 100%;
    max-width: 360px;
    margin: 6.4rem auto 2rem;
    padding: 0 1rem;
}

.wp-login-brand {
    text-align: center;
    margin-bottom: 1rem;
}

.wp-login-logo {
    width: 58px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.7rem;
}

.wp-login-brand h1 {
    font-size: 1.16rem;
    color: #1d2327;
    margin-bottom: 0.2rem;
}

.wp-login-brand p {
    font-size: 0.84rem;
    color: #50575e;
}

.wp-login-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    padding: 1.1rem 1rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wp-login-form {
    display: grid;
    gap: 0.8rem;
}

.wp-login-form label {
    font-size: 0.86rem;
    color: #3c434a;
}

.wp-login-form input {
    border-radius: 3px;
    border: 1px solid #8c8f94;
    background: #fff;
}

.wp-login-form input:focus {
    outline: 2px solid rgba(201, 19, 51, 0.2);
    border-color: var(--btn-primary-base);
}

.wp-login-btn {
    width: 100%;
    border-radius: 3px;
    padding: 0.62rem 0.9rem;
    background: var(--btn-primary-base);
    color: #fff;
    box-shadow: none;
}

.wp-login-btn:hover {
    background: var(--btn-primary-hover);
    transform: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    gap: 1.2rem;
    padding: 1.2rem;
}

.admin-sidebar {
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.sidebar-brand {
    margin-bottom: 1.2rem;
}

.sidebar-brand h2 {
    font-size: 1.22rem;
    margin-top: 0.4rem;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.4rem;
}

.admin-sidebar a {
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font-weight: 700;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.11), rgba(67, 84, 105, 0.09));
}

.admin-sidebar a.logout-link {
    color: var(--brand-danger);
}

.admin-main {
    padding: 0.3rem 0 1rem;
}

.admin-header {
    margin-bottom: 1rem;
}

.admin-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.admin-header-copy {
    min-width: 0;
}

.admin-header h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.admin-header-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.1rem 0;
}

.admin-header-logo {
    width: clamp(96px, 12vw, 138px);
    max-width: 138px;
    max-height: 34px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.metric-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.metric-card h3 {
    font-size: 1.05rem;
}

.metric-card p {
    margin-top: 0.5rem;
    font-size: 1.9rem;
    color: var(--ink);
    font-weight: 700;
}

.content-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.content-card h2,
.content-card h3 {
    margin-bottom: 0.6rem;
}

.qr-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 27, 0.44);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 120;
}

.qr-modal.is-open {
    display: flex;
}

.qr-modal-card {
    width: min(450px, 100%);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
    padding: 1rem;
}

.qr-modal-card h3 {
    margin-bottom: 0.5rem;
}

.qr-preview {
    min-height: 170px;
    margin: 0.8rem 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(140deg, #fafbfd, #f2f4f7);
    border: 1px solid rgba(30, 35, 32, 0.1);
    display: grid;
    place-items: center;
}

.qr-preview svg,
.qr-preview canvas,
.qr-preview img {
    max-width: 170px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.qr-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.grid-form .full {
    grid-column: 1 / -1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.admin-thumb {
    width: 100%;
    max-height: 170px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(30, 35, 32, 0.08);
}

.admin-logo-preview {
    margin-top: 0.8rem;
    width: min(140px, 100%);
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.muted {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.menu-body {
    min-height: 100vh;
    background: var(--bg-cream);
    overflow-x: hidden;
}

.menu-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 6%, rgba(17, 23, 32, 0.08), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(45, 56, 71, 0.08), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(17, 23, 32, 0.06), transparent 29%),
        linear-gradient(160deg, #f5f6f8, #fbfcfd 55%, #eef1f5);
}

.menu-theme-classic_warm .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(150, 97, 60, 0.22), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(192, 131, 83, 0.16), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(120, 77, 44, 0.12), transparent 29%),
        linear-gradient(160deg, #faf3ea, #fff9f2 55%, #f7ede2);
}

.menu-theme-ocean .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(37, 83, 126, 0.2), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(53, 124, 164, 0.16), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(31, 72, 108, 0.12), transparent 29%),
        linear-gradient(160deg, #eff6fb, #f8fcff 55%, #eaf3fa);
}

.menu-theme-stone .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(89, 87, 82, 0.18), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(117, 112, 103, 0.12), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(82, 78, 72, 0.12), transparent 29%),
        linear-gradient(160deg, #f5f4f2, #fbfaf8 55%, #efede9);
}

.menu-theme-mist .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(56, 70, 90, 0.14), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(84, 106, 132, 0.1), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(48, 62, 82, 0.09), transparent 29%),
        linear-gradient(160deg, #f1f4f8, #f9fbfd 55%, #e9eef4);
}

.menu-hero {
    padding: 2.4rem 1.2rem 1.3rem;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    animation: fadeUp 480ms ease both;
}

.restaurant-logo {
    width: 72px;
    height: 72px;
    border-radius: 0;
    object-fit: contain;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 1rem;
}

.menu-hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin-top: 0.35rem;
}

.hero-description {
    max-width: 600px;
    margin: 0.7rem auto 0;
}

.menu-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

body.menu-controls-open {
    overflow: hidden;
}

.menu-filter-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.56rem 0.9rem 0.56rem 0.78rem;
    border: 1px solid rgba(22, 26, 31, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1b2532;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 22px rgba(14, 20, 31, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.menu-filter-toggle::before {
    content: '⌕';
    width: 1.32rem;
    height: 1.32rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(201, 19, 51, 0.16), rgba(169, 15, 42, 0.09));
    color: #7e1228;
    font-size: 0.88rem;
    line-height: 1;
}

.menu-filter-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(14, 20, 31, 0.22);
}

.menu-filter-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 26px rgba(14, 20, 31, 0.24);
}

.menu-controls-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(12, 18, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.menu-controls-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.menu-controls {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: min(340px, 90vw);
    height: 100vh;
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(22, 26, 31, 0.1);
    box-shadow: 0 18px 34px rgba(16, 22, 30, 0.2);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    overflow-y: auto;
}

.menu-controls.is-open {
    transform: translateX(0);
}

.menu-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.menu-controls-head h2 {
    font-size: 1.03rem;
}

.menu-controls-close {
    padding: 0.46rem 0.72rem;
}

.menu-controls input[type="search"] {
    margin-bottom: 0.45rem;
}

.chip-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.chip {
    border: 1px solid rgba(30, 35, 32, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}

.chip.active {
    color: #1b2430;
    border-color: rgba(31, 41, 55, 0.28);
    background: linear-gradient(135deg, rgba(229, 233, 240, 0.95), rgba(243, 246, 251, 0.96));
}

.menu-section {
    margin-bottom: 1.35rem;
    animation: fadeUp 480ms ease both;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
    padding: 0.35rem 0.25rem;
}

.section-heading img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(30, 35, 32, 0.1);
    box-shadow: 0 8px 16px rgba(20, 28, 40, 0.12);
}

.section-heading h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
}

.section-heading p {
    max-width: 640px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 26, 31, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.8rem;
}

.product-card.has-image {
    grid-template-columns: 96px 1fr;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(19, 25, 35, 0.14);
}

.product-media {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(22, 26, 31, 0.1);
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 0.2rem 0.2rem 0.2rem 0;
}

.product-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.product-content p {
    min-height: 2.4em;
}

.product-content strong {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 1.03rem;
    color: #202b38;
}

.empty-state {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    text-align: center;
}

.system-footer {
    padding: 0.7rem 1rem 1.2rem;
}

.system-footer.standalone {
    padding-top: 0.2rem;
}

.menu-footer {
    padding-top: 0;
}

.system-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid rgba(30, 35, 32, 0.09);
    padding-top: 0.65rem;
    text-align: center;
}

.system-brand-soft {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(30, 35, 32, 0.45);
    font-weight: 700;
}

.system-contact-line {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: rgba(30, 35, 32, 0.62);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}

.system-contact-line a {
    color: var(--btn-primary-base);
    text-decoration: none;
    font-weight: 600;
}

.campaign-preview-wrap {
    margin-top: 0.9rem;
}

.campaign-preview {
    width: min(440px, 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 26, 31, 0.12);
    display: block;
}

.campaign-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 21, 30, 0.58);
}

.campaign-modal.is-open {
    display: flex;
}

.campaign-modal-card {
    width: min(520px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(22, 26, 31, 0.12);
    box-shadow: var(--shadow);
    padding: 0.8rem;
    text-align: center;
}

.campaign-modal-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.error-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 8% 6%, rgba(17, 23, 32, 0.09), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(45, 56, 71, 0.08), transparent 33%),
        linear-gradient(165deg, #f5f6f8, #fbfcfd);
}

.error-shell {
    max-width: 680px;
    width: 100%;
    margin: 0 auto 0.8rem;
    border-radius: var(--radius-xl);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    text-align: center;
}

.error-shell h1 {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.error-shell h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.error-shell p {
    margin-top: 0.65rem;
}

.error-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

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

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

    .admin-sidebar {
        position: sticky;
        top: 0.6rem;
        z-index: 20;
    }
}

@media (max-width: 900px) {
    .auth-shell,
    .install-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

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

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

    .admin-header-row {
        align-items: center;
    }

    .admin-header-logo {
        width: clamp(86px, 28vw, 124px);
        max-height: 30px;
    }

    .qr-modal-actions {
        flex-direction: column;
    }

    .qr-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-media {
        width: 82px;
        height: 82px;
    }

    .product-card {
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .product-card.has-image {
        grid-template-columns: 82px 1fr;
    }

    .admin-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header-brand {
        align-self: flex-end;
    }

    .menu-hero {
        padding-top: 1.7rem;
    }

    .menu-filter-toggle {
        top: 0.7rem;
        left: 0.7rem;
        padding: 0.52rem 0.78rem 0.52rem 0.7rem;
        font-size: 0.8rem;
    }

    .menu-controls {
        width: min(300px, 88vw);
        padding: 0.75rem;
    }
}
