:root {
    --heading-font: "Fredoka", "Trebuchet MS", sans-serif;
    --body-font: "Nunito", "Segoe UI", sans-serif;
    --brand-green: #58cc02;
    --brand-green-dark: #46a302;
    --brand-blue: #1cb0f6;
    --brand-yellow: #ffd900;
    --panel: #ffffff;
    --page: #f5fbef;
    --page-accent: #edf8ff;
    --text-strong: #4b4b4b;
    --text: #5e5e5e;
    --muted: #8c8c8c;
    --border: #e7e7e7;
    --danger: #ea5b5b;
    --success: #0aa56b;
    --warning: #ffb100;
    --shadow-soft: 0 10px 20px rgba(31, 76, 20, 0.08);
}

html,
body {
    font-family: var(--body-font);
    background:
        radial-gradient(circle at top left, rgba(88, 204, 2, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(28, 176, 246, 0.11), transparent 20%),
        linear-gradient(180deg, var(--page) 0%, #ffffff 100%);
    color: var(--text);
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-green-dark);
}

img {
    max-width: 100%;
    display: block;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.3rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: var(--panel);
    color: var(--text-strong);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.button--primary {
    border-color: #3fa000;
    background: linear-gradient(180deg, #67dd08 0%, var(--brand-green) 100%);
    color: #fff;
}

.button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
}

.button--ghost {
    background: var(--panel);
}

.button--small {
    min-height: 2.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.9rem;
    font-size: 0.9rem;
}

.button--wide {
    width: 100%;
}

.bulk-collection-progress {
    display: grid;
    gap: 0.85rem;
}

.bulk-collection-progress__bar {
    width: 100%;
    height: 1rem;
    accent-color: var(--brand-green);
}

.bulk-collection-progress__status,
.bulk-collection-progress__current {
    margin: 0;
}

.bulk-collection-progress__status {
    font-weight: 800;
    color: var(--text-strong);
}

.hero-pill,
.state-card__badge,
.section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eaf9dd;
    color: var(--brand-green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-hero,
.detail-hero,
.auth-shell,
.panel,
.state-card,
.metric-card {
    border: 2px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.dashboard-hero,
.detail-hero,
.panel,
.state-card,
.auth-card,
.auth-hero,
.metric-card {
    background: var(--panel);
    border-radius: 1.8rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.dashboard-hero--compact {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.dashboard-hero__copy p,
.detail-hero__copy p {
    max-width: 56ch;
    font-size: 1.03rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-art {
    min-height: 220px;
    position: relative;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, rgba(88, 204, 2, 0.08), rgba(28, 176, 246, 0.08));
    overflow: hidden;
}

.hero-art__bubble {
    position: absolute;
    border-radius: 50%;
}

.hero-art__bubble--large {
    inset: 1rem auto auto 1rem;
    width: 140px;
    height: 140px;
    background: rgba(88, 204, 2, 0.22);
}

.hero-art__bubble--medium {
    inset: 4rem 2rem auto auto;
    width: 95px;
    height: 95px;
    background: rgba(28, 176, 246, 0.18);
}

.hero-art__bubble--small {
    inset: auto auto 1.5rem 3rem;
    width: 54px;
    height: 54px;
    background: rgba(255, 217, 0, 0.45);
}

.hero-art__card {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.hero-art__card strong {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--text-strong);
}

.hero-art__eyebrow,
.metric-card__label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.batch-summary-grid {
    margin-top: 1rem;
}

.metric-card {
    padding: 1.25rem;
}

.metric-card strong {
    display: block;
    margin: 0.3rem 0;
    font-family: var(--heading-font);
    font-size: 2rem;
}

.metric-card small {
    color: var(--muted);
}

.panel {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.panel--warning {
    border-color: rgba(234, 91, 91, 0.4);
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-module-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, rgba(234, 249, 221, 0.72) 100%);
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(31, 76, 20, 0.12);
}

.admin-module-card h3,
.admin-module-card p {
    margin: 0;
}

.admin-module-card p {
    flex: 1;
    color: var(--muted);
    line-height: 1.6;
}

.admin-module-card .button {
    align-self: flex-start;
}

.admin-module-card__dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: var(--brand-green);
    box-shadow: 0 0 0 0.45rem rgba(88, 204, 2, 0.12);
}

.admin-module-card__dot--blue {
    background: var(--brand-blue);
    box-shadow: 0 0 0 0.45rem rgba(28, 176, 246, 0.12);
}

.admin-module-card__dot--yellow {
    background: var(--brand-yellow);
    box-shadow: 0 0 0 0.45rem rgba(255, 217, 0, 0.18);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header h1,
.section-header h2 {
    margin: 0.35rem 0 0;
}

.section-header__meta {
    color: var(--muted);
    font-weight: 700;
}

.email-analysis-grid {
    display: grid;
    gap: 1rem;
}

.email-analysis-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-analysis-card__badges {
    align-items: flex-end;
}

.email-analysis-card__section {
    display: grid;
    gap: 0.45rem;
}

.email-analysis-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.email-analysis-list li + li {
    margin-top: 0.3rem;
}

.email-analysis-card__preview {
    margin: 0;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: #fbfdf8;
    color: var(--text-strong);
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

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

.table-shell--desktop {
    display: block;
}

.mobile-card-grid {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 1rem 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table thead th {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.restaurant-cell,
.stacked-copy {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.stacked-copy {
    align-items: start;
    flex-direction: column;
    gap: 0.2rem;
}

.stacked-copy--tight {
    gap: 0.12rem;
}

.restaurant-cell strong,
.stacked-copy strong {
    color: var(--text-strong);
}

.restaurant-cell small,
.stacked-copy small {
    display: block;
    color: var(--muted);
}

.restaurant-cell__avatar {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 1rem;
    background: #eef7e9;
    color: var(--brand-green-dark);
    font-family: var(--heading-font);
    font-weight: 700;
}

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

.rating-cell {
    font-weight: 900;
    color: var(--text-strong);
}

.trend-cell {
    min-width: 140px;
}

.trend-badge {
    display: inline-flex;
    min-width: 5.5rem;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.88rem;
}

.trend-badge--up {
    background: rgba(10, 165, 107, 0.12);
    color: var(--success);
}

.trend-badge--down {
    background: rgba(234, 91, 91, 0.12);
    color: var(--danger);
}

.trend-badge--neutral {
    background: #f5f5f5;
    color: var(--muted);
}

.trend-line {
    width: 100%;
    height: 72px;
}

.trend-line polyline {
    fill: none;
    stroke: var(--brand-green);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trend-line circle {
    fill: var(--brand-green-dark);
}

.trend-line--compact {
    height: 46px;
}

.trend-line--empty {
    display: grid;
    place-items: center;
    height: 72px;
    color: var(--muted);
    font-size: 0.9rem;
}

.state-card {
    padding: 2rem;
    text-align: left;
}

.state-card--narrow {
    max-width: 560px;
    margin: 2rem auto;
}

.state-card h1,
.state-card p {
    margin-top: 0.8rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-hero__media,
.detail-hero__placeholder {
    height: 220px;
    border-radius: 1.5rem;
}

.detail-hero__media {
    display: grid;
    place-items: center;
    padding: 0.85rem;
    overflow: hidden;
    background: #eef7e9;
}

.detail-hero__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1.1rem;
}

.detail-hero__placeholder {
    display: grid;
    place-items: center;
    font-family: var(--heading-font);
    font-size: 4rem;
    color: var(--brand-green-dark);
}

.detail-hero__url {
    display: inline-block;
    word-break: break-all;
    color: var(--muted);
    text-decoration: none;
}

.detail-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
}

.detail-hero__metrics div {
    min-width: 150px;
}

.detail-hero__metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-hero__metrics strong {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--heading-font);
    font-size: 1.7rem;
}

.mobile-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 1.4rem;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.mobile-card--restaurant {
    gap: 1rem;
}

.mobile-card__header {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.mobile-card__header--split {
    justify-content: space-between;
}

.mobile-card__label {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.mobile-stat {
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    background: #fbfdf8;
}

.mobile-stat span {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.mobile-stat strong {
    color: var(--text-strong);
}

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

.mobile-card__trend {
    display: grid;
    gap: 0.55rem;
}

.mobile-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #67dd08 0%, var(--brand-green) 100%);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 4px 0 rgba(63, 160, 0, 0.18);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    max-width: 1140px;
    margin: 3rem auto;
}

.auth-hero,
.auth-card {
    padding: 2rem;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(88, 204, 2, 0.18), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6fff1 100%);
}

.auth-hero__cluster {
    position: relative;
    min-height: 220px;
    margin-top: 2rem;
}

.auth-bubble {
    position: absolute;
    border-radius: 50%;
}

.auth-bubble--green {
    width: 180px;
    height: 180px;
    inset: 0 auto auto 2rem;
    background: rgba(88, 204, 2, 0.18);
}

.auth-bubble--blue {
    width: 110px;
    height: 110px;
    inset: 2rem 1.5rem auto auto;
    background: rgba(28, 176, 246, 0.18);
}

.auth-bubble--yellow {
    width: 72px;
    height: 72px;
    inset: auto 6rem 1rem auto;
    background: rgba(255, 217, 0, 0.35);
}

.auth-bubble--card {
    inset: auto auto 0 0;
    width: 220px;
    height: auto;
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    border-radius: 1.5rem;
    background: var(--panel);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.auth-bubble--card strong {
    font-family: var(--heading-font);
    font-size: 2rem;
}

.auth-card {
    display: grid;
    align-content: center;
    gap: 0.9rem;
}

.auth-card__form {
    display: grid;
    gap: 1rem;
}

.auth-card__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-strong);
}

.field-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: #fff;
    color: var(--text-strong);
}

.field-input:focus {
    border-color: rgba(88, 204, 2, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(88, 204, 2, 0.15);
    outline: none;
}

.field-input--compact {
    width: auto;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.75rem;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-strong);
    font-weight: 700;
}

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

.field-group--span-2 {
    grid-column: span 2;
}

.field-group--full {
    grid-column: 1 / -1;
}

.field-help {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.field-help--strong {
    color: var(--text-strong);
    font-weight: 700;
}

.toolbar,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

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

.feedback-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(34, 47, 62, 0.42);
    backdrop-filter: blur(2px);
}

.feedback-dialog {
    width: min(100%, 32rem);
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    background: var(--panel);
    box-shadow: 0 24px 50px rgba(31, 76, 20, 0.18);
}

.feedback-dialog--success {
    border-color: rgba(10, 165, 107, 0.35);
}

.feedback-dialog--error {
    border-color: rgba(234, 91, 91, 0.35);
}

.feedback-dialog__eyebrow {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feedback-dialog--success .feedback-dialog__eyebrow {
    color: var(--success);
}

.feedback-dialog--error .feedback-dialog__eyebrow {
    color: var(--danger);
}

.feedback-dialog__message {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
    line-height: 1.5;
}

.feedback-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.feedback-dialog--wide {
    width: min(100%, 58rem);
}

.feedback-dialog--neutral {
    border-color: var(--border);
}

.feedback-dialog__body {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.feedback-dialog__progress {
    display: grid;
    gap: 0.5rem;
}

.feedback-dialog__progress-track {
    width: 100%;
    height: 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(70, 163, 2, 0.22);
    background: #eaf9dd;
    overflow: hidden;
}

.feedback-dialog__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-dark));
    transition: width 0.4s ease;
}

.feedback-dialog__progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feedback-dialog__progress-meta strong {
    color: var(--brand-green-dark);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.status-pill--success {
    background: rgba(10, 165, 107, 0.12);
    color: var(--success);
}

.status-pill--muted,
.status-pill--neutral {
    background: #f1f1f1;
    color: var(--muted);
}

.status-pill--warning {
    background: rgba(255, 177, 0, 0.18);
    color: #9d6900;
}

.status-pill--info {
    background: rgba(0, 135, 214, 0.12);
    color: #006fb0;
}

.manage-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.manage-links__item {
    display: inline-flex;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 2px solid var(--border);
    border-radius: 1rem;
    background: var(--panel);
    color: var(--text-strong);
    font-weight: 800;
    text-decoration: none;
}

.manage-links__item.active {
    background: #f6fff1;
    border-color: rgba(88, 204, 2, 0.35);
}

.validation-summary {
    margin-bottom: 1rem;
    color: var(--danger);
}

.field-input--file {
    padding: 0.75rem;
}

.admin-image-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.admin-image-preview {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
}

.admin-image-preview img {
    width: 7rem;
    height: 7rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid var(--border);
    background: #f7f7f7;
}

.button--danger {
    border-color: rgba(234, 91, 91, 0.3);
    color: var(--danger);
    background: #fff7f7;
}

.darker-border-checkbox.form-check-input {
    border-color: #bbb;
}

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

.app-shell__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem 1rem;
}

.app-topbar__eyebrow,
.app-topbar__title {
    margin: 0;
}

.app-topbar__eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.app-topbar__title {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--text-strong);
}

.topbar-actions,
.auth-language-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.auth-language-row {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding: 0 0.5rem;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.language-switcher__label {
    padding: 0 0.35rem 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.language-switcher__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    min-height: 2.3rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.language-switcher__option:hover {
    background: rgba(88, 204, 2, 0.08);
    color: var(--text-strong);
    transform: translateY(-1px);
}

.language-switcher__option--active {
    background: linear-gradient(180deg, #67dd08 0%, var(--brand-green) 100%);
    color: #fff;
    box-shadow: 0 4px 0 rgba(63, 160, 0, 0.18);
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.topbar-user strong,
.topbar-user span {
    display: block;
    line-height: 1.1;
}

.topbar-user span {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.topbar-user__avatar {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--brand-green), var(--brand-green-dark));
    color: white;
    font-family: var(--heading-font);
    font-weight: 700;
}

.app-content {
    padding: 0 2rem 2rem;
}

.nav-shell {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, #f7fff0 0%, #ffffff 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.brand__mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 35% 35%, #8df53c 0 25%, transparent 26%),
        radial-gradient(circle at 65% 65%, #46a302 0 32%, transparent 33%),
        linear-gradient(180deg, #58cc02 0%, #46a302 100%);
    box-shadow: 0 6px 0 rgba(70, 163, 2, 0.18);
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__text strong {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--text-strong);
}

.brand__text small {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.navbar-toggler {
    display: none;
}

.navbar-toggler-checkbox {
    display: none;
}

.nav-scrollable {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 2px solid transparent;
    border-radius: 1.25rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s ease;
}

.nav-item__dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(88, 204, 2, 0.12);
}

.nav-item.active {
    color: var(--text-strong);
    background: var(--panel);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.nav-item:hover {
    color: var(--text-strong);
    background: rgba(88, 204, 2, 0.08);
}

.nav-footer {
    margin-top: auto;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 1.25rem;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.92rem;
    box-shadow: var(--shadow-soft);
}

.nav-footer p {
    margin: 0;
}

.logout-form {
    margin-top: 0.5rem;
}

.public-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(88, 204, 2, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(28, 176, 246, 0.1), transparent 20%),
        linear-gradient(180deg, #f7fff1 0%, #ffffff 100%);
}

.public-topbar {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.public-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.public-content {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2.5rem;
}

.public-page {
    display: grid;
    gap: 1.5rem;
}

.public-page--restoring {
    opacity: 0;
    visibility: hidden;
}

.public-page--ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.08s ease;
}

html.public-restore-pending .public-page {
    opacity: 0;
    visibility: hidden;
}

.public-hero {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.8rem;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.public-hero__copy h1 {
    margin: 0.45rem 0 0.7rem;
}

.public-hero__copy p {
    max-width: 64ch;
    margin: 0;
    font-size: 1.02rem;
}

.public-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.public-stat-card {
    display: grid;
    gap: 0.4rem;
    min-height: 6.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #eef2ea;
    border-radius: 1.25rem;
    background: #fbfdf9;
}

.public-stat-card span {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.public-stat-card strong {
    font-family: var(--heading-font);
    font-size: 1.7rem;
    color: var(--text-strong);
}

.public-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.8rem;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.public-search {
    width: min(460px, 100%);
}

.public-toolbar__meta {
    color: var(--muted);
    font-weight: 800;
}

.public-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.public-more {
    display: flex;
    justify-content: center;
}

.public-restaurant-card {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1.2rem;
    border: 2px solid var(--border);
    border-radius: 1.6rem;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.public-restaurant-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.9rem;
}

.public-restaurant-card__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.public-restaurant-stat {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: #fbfdf8;
    border: 1px solid #eef2ea;
}

.public-restaurant-stat span {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.public-restaurant-stat strong {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--text-strong);
}

.public-restaurant-stat--trend {
    align-content: start;
}

.public-restaurant-stat--trend .trend-badge {
    width: fit-content;
    min-width: 0;
}

.public-restaurant-card__trend {
    display: grid;
    gap: 0.45rem;
}

.public-restaurant-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
}

.public-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
}

.evolution-page {
    gap: 1.25rem;
}

.evolution-hero {
    background:
        radial-gradient(circle at top right, rgba(28, 176, 246, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7fff1 100%);
}

.evolution-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.evolution-table-panel {
    padding: 1.25rem;
}

.evolution-table .rating-cell {
    font-size: 1.15rem;
}

.evolution-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-weight: 900;
}

.evolution-delta--positive {
    color: #007f4e;
    background: #defbea;
}

.evolution-delta--negative {
    color: #b42318;
    background: #ffe4df;
}

.evolution-delta--neutral {
    color: var(--muted);
    background: #f2f5ef;
}

.evolution-chart-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 8% 10%, rgba(88, 204, 2, 0.12), transparent 24%),
        #fbfff7;
}

.evolution-chart-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
}

.evolution-chart-panel__header h3 {
    margin: 0.35rem 0 0.35rem;
}

.evolution-chart-panel__header p {
    margin: 0;
    color: var(--muted);
}

.evolution-chart-panel__summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.evolution-chart-panel__summary span:not(.evolution-delta) {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: #ffffff;
    font-weight: 800;
}

.evolution-chart-panel__summary strong {
    color: var(--text-strong);
}

.evolution-chart-shell {
    min-height: 12rem;
    padding: 1rem;
    border: 1px solid rgba(88, 204, 2, 0.18);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fff1 100%);
}

.evolution-chart-shell .trend-line {
    height: 11rem;
}

.evolution-history-strip {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
}

.evolution-history-point {
    min-width: 5rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #ffffff;
    scroll-snap-align: start;
}

.evolution-history-point span,
.evolution-history-point small {
    color: var(--muted);
    font-weight: 800;
}

.evolution-history-point strong {
    font-family: var(--heading-font);
    color: var(--text-strong);
}

.evolution-mobile-card {
    background:
        radial-gradient(circle at top right, rgba(88, 204, 2, 0.12), transparent 24%),
        #ffffff;
}

.evolution-mobile-card__button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.panel-empty-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.data-table__row--clickable {
    cursor: pointer;
    user-select: none;
}

.data-table__row--clickable:hover {
    background: rgba(88, 204, 2, 0.04);
}

.data-table__row--expanded {
    background: #f5fded;
}

.data-table__row--detail > td {
    padding: 0;
    border-bottom: 2px solid rgba(88, 204, 2, 0.18);
}

.item-detail {
    padding: 1.25rem;
    background: #f7fef1;
    display: grid;
    gap: 1.25rem;
}

.item-detail__contacts {
    display: grid;
    gap: 0.3rem;
}

.item-detail__contacts p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.expand-icon {
    color: var(--muted);
    font-size: 0.8rem;
    width: 1rem;
    text-align: center;
}

.accordion-cards {
    display: none;
}

.mobile-card__header--clickable {
    cursor: pointer;
    user-select: none;
}

@media (max-width: 767.98px) {
    .accordion-cards {
        display: grid;
        gap: 1rem;
    }
}

#blazor-error-ui {
    background: #fff4d8;
    color: #7d5400;
    border-top: 2px solid #f4c542;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    padding: 0.9rem 1.2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

@media (max-width: 1199.98px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .public-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dashboard-hero,
    .detail-hero,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .detail-hero__media,
    .detail-hero__placeholder {
        height: 240px;
    }

    .public-detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .dashboard-hero,
    .panel,
    .state-card,
    .detail-hero,
    .auth-hero,
    .auth-card {
        padding: 1.25rem;
    }

    .metric-grid,
    .form-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .batch-recipient-grid {
        grid-template-columns: 1fr;
    }

    .admin-module-card {
        min-height: 0;
    }

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

    .hero-actions,
    .mobile-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .mobile-card__footer .button,
    .table-actions .button {
        width: 100%;
    }

    .topbar-actions,
    .auth-language-row {
        justify-content: flex-start;
    }

    .restaurant-cell,
    .stacked-copy,
    .table-actions {
        align-items: start;
    }

    .table-shell--desktop {
        display: none;
    }

    .mobile-card-grid {
        display: grid;
        gap: 1rem;
    }

    .detail-hero__metrics {
        gap: 0.8rem;
    }

    .detail-hero__metrics div {
        min-width: 0;
        flex: 1 1 calc(50% - 0.8rem);
    }

    .language-switcher {
        width: 100%;
        justify-content: space-between;
    }

    .public-content,
    .public-topbar {
        width: min(100%, calc(100% - 1rem));
    }

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

    .public-topbar__actions,
    .public-toolbar,
    .public-restaurant-card__header,
    .public-restaurant-card__footer,
    .evolution-toolbar-actions,
    .evolution-chart-panel__header,
    .evolution-chart-panel__summary {
        align-items: stretch;
        flex-direction: column;
    }

    .public-toolbar {
        padding: 1rem 1.1rem;
    }

    .public-search {
        width: 100%;
    }

    .public-stat-strip,
    .public-restaurant-card__stats {
        grid-template-columns: 1fr;
    }

    .public-restaurant-grid {
        grid-template-columns: 1fr;
    }

    .evolution-table-panel {
        padding: 1rem;
    }

    .evolution-chart-panel {
        padding: 1rem;
        border-radius: 1rem;
    }

    .evolution-chart-panel__header {
        grid-template-columns: 1fr;
    }

    .evolution-chart-shell .trend-line {
        height: 8.5rem;
    }

    .evolution-delta {
        width: fit-content;
    }
}

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

    .app-topbar {
        padding: 1rem 1rem 0.5rem;
    }

    .app-content {
        padding: 0 1rem 1.5rem;
    }

    .nav-shell {
        position: static;
        height: auto;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .navbar-toggler {
        display: inline-flex;
        width: 3rem;
        height: 3rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.25rem;
        border: 2px solid var(--border);
        border-radius: 1rem;
        background: var(--panel);
        cursor: pointer;
        box-shadow: var(--shadow-soft);
    }

    .navbar-toggler span {
        width: 1.1rem;
        height: 0.14rem;
        border-radius: 999px;
        background: var(--text-strong);
    }

    .nav-scrollable {
        display: none;
        margin-top: 1rem;
    }

    .navbar-toggler-checkbox:checked ~ .nav-scrollable {
        display: flex;
    }
}

@media (max-width: 479.98px) {
    .app-topbar {
        align-items: start;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
    }

    .language-switcher__label {
        display: none;
    }

    .language-switcher__option {
        min-width: 0;
        flex: 1 1 0;
    }

    .mobile-stat-grid {
        grid-template-columns: 1fr;
    }

    .metric-card strong {
        font-size: 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .language-switcher__option,
    .public-page--ready {
        transition: none;
    }
}
