:root {
    --bg: #09111f;
    --bg-soft: #101c31;
    --panel: rgba(8, 15, 29, 0.78);
    --panel-strong: rgba(10, 18, 33, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f6f9ff;
    --text-muted: rgba(235, 241, 255, 0.72);
    --gold: #d9b15f;
    --gold-strong: #f0cc78;
    --accent: #5aa7ff;
    --accent-2: #8f6cff;
    --success: #4fd498;
    --warning: #ffb44d;
    --danger: #ff6f80;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(143, 108, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(90, 167, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #050a13 0%, #09111f 100%);
}

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

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

.rr-app {
    min-height: 100vh;
}

.rr-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(5, 10, 19, 0.68);
    border-bottom: 1px solid var(--line);
}

.rr-header__inner,
.rr-main,
.rr-footer,
.rr-admin-main,
.rr-admin-topbar {
    width: min(1220px, calc(100vw - 32px));
    margin: 0 auto;
}

.rr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.rr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.rr-brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.rr-brand__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rr-brand__name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.rr-brand__tag {
    font-size: 0.82rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rr-nav a,
.rr-sidebar__nav a {
    color: var(--text-muted);
    transition: color 0.18s ease;
}

.rr-nav a:hover,
.rr-sidebar__nav a:hover,
.rr-sidebar__nav a.is-active {
    color: var(--text);
}

.rr-main {
    padding: 32px 0 72px;
}

.rr-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.rr-card,
.rr-panel,
.rr-stat,
.rr-feature,
.rr-admin-card,
.rr-subscription-card,
.rr-form-card,
.rr-table-card,
.rr-empty,
.rr-hero__copy,
.rr-hero__media {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.rr-hero__copy,
.rr-hero__media,
.rr-card,
.rr-panel,
.rr-admin-card,
.rr-form-card,
.rr-table-card,
.rr-empty {
    padding: 28px;
}

.rr-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-strong);
    font-size: 0.82rem;
    font-weight: 600;
}

.rr-hero h1,
.rr-section-title,
.rr-admin-topbar__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.rr-admin-topbar__title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.rr-hero p,
.rr-section-subtitle,
.rr-admin-topbar__subtitle,
.rr-muted,
.rr-footer__text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.rr-hero__actions,
.rr-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.rr-button,
button,
input[type='submit'],
.button,
.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(90, 167, 255, 0.22);
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.rr-button:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.rr-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--line-strong);
}

.rr-button--gold {
    background: linear-gradient(135deg, #c99949 0%, #f1cf88 100%);
    color: #2e230e;
    box-shadow: 0 16px 28px rgba(217, 177, 95, 0.2);
}

.rr-grid {
    display: grid;
    gap: 20px;
}

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

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

.rr-stat {
    padding: 20px;
}

.rr-stat__label {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.rr-stat__value {
    margin-top: 10px;
    font-size: 2rem;
    font-weight: 800;
}

.rr-feature {
    padding: 22px;
}

.rr-feature__title,
.rr-card__title,
.rr-subscription-card__value,
.rr-footer__brand,
.rr-footer__title {
    font-size: 1.08rem;
    font-weight: 700;
}

.rr-feature__text,
.rr-card__meta,
.rr-subscription-card__meta,
.rr-footer__hint {
    color: var(--text-muted);
    line-height: 1.7;
}

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

.rr-restaurant-card {
    overflow: hidden;
}

.rr-restaurant-card__image {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.rr-badge,
.rr-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.rr-pill--success {
    color: var(--success);
}

.rr-pill--warning {
    color: var(--warning);
}

.rr-pill--danger {
    color: var(--danger);
}

.rr-section {
    margin-top: 28px;
}

.rr-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rr-form {
    display: grid;
    gap: 14px;
}

label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(90, 167, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(90, 167, 255, 0.12);
}

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

.rr-flash {
    width: min(1220px, calc(100vw - 32px));
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.rr-flash--success {
    border-color: rgba(79, 212, 152, 0.28);
    background: rgba(79, 212, 152, 0.08);
}

.rr-flash--warning {
    border-color: rgba(255, 180, 77, 0.3);
    background: rgba(255, 180, 77, 0.08);
}

.rr-flash--error {
    border-color: rgba(255, 111, 128, 0.3);
    background: rgba(255, 111, 128, 0.08);
}

.rr-footer {
    padding: 0 0 40px;
}

.rr-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.rr-footer__grid a,
.rr-footer__hint {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
}

.rr-footer__legal {
    padding: 16px 4px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rr-counter {
    position: fixed;
    right: 14px;
    bottom: 14px;
    opacity: 0.95;
}

.rr-admin-body {
    background: linear-gradient(180deg, #060b13 0%, #0a1324 100%);
}

.rr-admin-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.rr-sidebar {
    padding: 24px;
    border-right: 1px solid var(--line);
    background: rgba(5, 10, 19, 0.86);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.rr-brand--sidebar {
    margin-bottom: 24px;
}

.rr-sidebar__nav {
    display: grid;
    gap: 6px;
}

.rr-sidebar__nav a {
    padding: 12px 14px;
    border-radius: 14px;
}

.rr-sidebar__nav a.is-active,
.rr-sidebar__nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.rr-admin-main {
    padding: 24px 0 42px;
}

.rr-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.rr-admin-content {
    width: min(1220px, calc(100vw - 370px));
    margin: 0 auto;
}

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

.rr-admin-card {
    padding: 24px;
}

.rr-subscription-card {
    margin-top: 22px;
    padding: 20px;
}

.rr-subscription-card__label {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

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

.rr-table th,
.rr-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.rr-table th {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.rr-table-card {
    overflow: auto;
}

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

#map {
    width: 100%;
    min-height: 520px;
    border-radius: 22px;
    overflow: hidden;
}

.rr-menu-group {
    display: grid;
    gap: 14px;
}

.rr-menu-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rr-legal {
    display: grid;
    gap: 18px;
}

.rr-legal h2,
.rr-card h2,
.rr-card h3 {
    margin: 0 0 10px;
}

.rr-legal p,
.rr-legal li {
    color: var(--text-muted);
    line-height: 1.8;
}

.rr-hero__media {
    background:
        linear-gradient(145deg, rgba(90, 167, 255, 0.18), rgba(143, 108, 255, 0.12)),
        url('/assets/brand/hero-bg.png') center/cover no-repeat;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.rr-hero__media::after {
    content: '';
    position: absolute;
    inset: auto 24px 24px 24px;
    height: 120px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(5, 10, 19, 0.76), rgba(16, 28, 49, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rr-hero__media-copy {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 40px;
    z-index: 2;
}

.rr-hero__media-copy h3 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.rr-inline-note {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.rr-auth-card {
    width: min(560px, 100%);
    margin: 42px auto 0;
}

@media (max-width: 1100px) {
    .rr-hero,
    .rr-split,
    .rr-grid--3,
    .rr-grid--4,
    .rr-restaurant-grid,
    .rr-menu-grid,
    .rr-admin-grid,
    .rr-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .rr-admin-shell {
        grid-template-columns: 1fr;
    }

    .rr-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .rr-admin-content {
        width: min(1220px, calc(100vw - 32px));
    }
}

@media (max-width: 760px) {
    .rr-header__inner,
    .rr-nav,
    .rr-hero,
    .rr-split,
    .rr-grid--3,
    .rr-grid--4,
    .rr-restaurant-grid,
    .rr-menu-grid,
    .rr-admin-grid,
    .rr-footer__grid,
    .rr-form__row,
    .rr-admin-topbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .rr-nav {
        gap: 10px;
    }

    .rr-main {
        padding-top: 20px;
    }

    .rr-card,
    .rr-panel,
    .rr-admin-card,
    .rr-form-card,
    .rr-table-card,
    .rr-empty,
    .rr-hero__copy,
    .rr-hero__media {
        padding: 22px;
    }

    .rr-admin-content {
        width: min(1220px, calc(100vw - 24px));
    }

    .rr-brand__tag {
        white-space: normal;
    }
}
