/* ============================================================
   MenuQR — Design System
   Warm hospitality aesthetic: deep forest, cream, brass gold
   ============================================================ */

:root {
    --c-primary: #1a4d3a;
    --c-primary-dark: #123528;
    --c-primary-light: #2d6e54;
    --c-accent: #c9a961;
    --c-accent-dark: #ad8c46;
    --c-cream: #faf6f0;
    --c-cream-dark: #f0ead9;
    --c-ink: #1c1c1c;
    --c-muted: #6b6b6b;
    --c-soft: #f5f1ea;
    --c-line: #e6dfd1;
    --c-success: #2d8659;
    --c-danger: #b34747;
    --c-warning: #c98a2b;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(28,28,28,.04), 0 2px 6px rgba(28,28,28,.04);
    --shadow: 0 4px 12px rgba(28,28,28,.06), 0 12px 28px rgba(28,28,28,.06);
    --shadow-lg: 0 24px 48px rgba(28,28,28,.10);

    --font-ar: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-en: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
    --font-display: 'Playfair Display', 'Cairo', serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { height: 100%; }

:root {
    --site-header-offset: 82px;
}

body {
    font-family: var(--font-ar);
    background: var(--c-cream);
    color: var(--c-ink);
    line-height: 1.65;
    overflow-x: hidden;
}
body.ltr { font-family: var(--font-en); }
body.header-sticky-enabled {
    padding-top: var(--site-header-offset);
}

a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-dark); }

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--c-ink); letter-spacing: -.01em; }

/* ============= NAVBAR ============= */
.site-navbar {
    background: rgba(250, 246, 240, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-line);
    padding: .75rem 0;
    z-index: 1080;
}
.site-navbar-fixed {
    position: fixed;
    top: 0;
    inset-inline: 0;
}
.site-navbar .navbar-brand { font-weight: 700; color: var(--c-primary); }
.site-logo { height: 36px; width: auto; }
.brand-mark {
    width: 38px; height: 38px;
    background: var(--c-primary);
    color: var(--c-cream);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 1.1rem;
}
.brand-text { font-size: 1.1rem; }
.site-navbar .nav-link {
    color: var(--c-ink) !important;
    font-weight: 500;
    padding: .55rem .9rem !important;
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease;
}
.site-navbar .nav-link:hover { background: var(--c-soft); color: var(--c-primary) !important; }
.site-navbar .dropdown-menu {
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: .5rem;
}
.site-navbar .dropdown-item { border-radius: var(--radius-sm); padding: .5rem .8rem; }
.site-navbar .dropdown-item:hover { background: var(--c-soft); color: var(--c-primary); }

/* ============= BUTTONS ============= */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: .55rem 1.15rem;
    transition: all .2s ease;
    letter-spacing: 0;
}
.btn-primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26,77,58,.25);
}
.btn-accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-ink);
}
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }
.btn-soft {
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    color: var(--c-ink);
}
.btn-soft:hover { background: var(--c-cream-dark); }
.btn-outline-primary { color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline-primary:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ============= HERO SLIDESHOW ============= */
.hero {
    position: relative;
    min-height: 580px;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
    color: var(--c-cream);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(201,169,97,.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(201,169,97,.08), transparent 40%);
    pointer-events: none;
}
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 580px; }
.hero .carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero .carousel-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(18,53,40,.85) 0%, rgba(18,53,40,.55) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; align-items: center;
}
.hero .carousel-indicators {
    z-index: 4;
}
.hero-eyebrow {
    display: inline-block;
    color: var(--c-accent);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 800;
}
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(250,246,240,.85);
    max-width: 580px;
    margin-bottom: 2rem;
}
.hero .carousel-indicators button {
    width: 32px; height: 3px;
    background: rgba(255,255,255,.4);
    border: 0; border-radius: 0;
}
.hero .carousel-indicators .active { background: var(--c-accent); }
.hero-carousel-nav {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250,246,240,.14);
    border: 1px solid rgba(250,246,240,.24);
    color: #fff;
    padding: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(18,53,40,.18);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    pointer-events: auto;
    cursor: pointer;
}
.hero-arrow-prev {
    left: 1.5rem;
}
.hero-arrow-next {
    right: 1.5rem;
}
.hero-arrow i {
    font-size: 1.4rem;
    line-height: 1;
}
.hero-arrow:hover,
.hero-arrow:focus {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-ink);
    transform: translateY(calc(-50% - 1px));
}

/* ============= SECTIONS ============= */
.section {
    padding: 5rem 0;
}
.section-soft { background: var(--c-soft); }
.section-eyebrow {
    color: var(--c-accent-dark);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
    font-weight: 700;
}
.section-subtitle {
    color: var(--c-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* ============= FEATURE CARDS ============= */
.feature-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-accent);
    box-shadow: var(--shadow);
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--c-soft);
    color: var(--c-primary);
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.feature-card h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p { color: var(--c-muted); margin: 0; }

/* ============= PRICING CARDS ============= */
.plan-card {
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    height: 100%;
    position: relative;
    transition: all .25s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.featured {
    border-color: var(--c-primary);
    background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%);
}
.plan-card.featured::before {
    content: attr(data-badge);
    position: absolute;
    top: -12px;
    left: 50%; transform: translateX(-50%);
    background: var(--c-accent);
    color: var(--c-ink);
    padding: .25rem .9rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.plan-name { font-size: 1.1rem; color: var(--c-muted); font-weight: 600; margin-bottom: .25rem; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--c-primary); margin: 0; line-height: 1; }
.plan-price .currency { font-size: 1.1rem; vertical-align: super; }
.plan-period { color: var(--c-muted); font-size: .9rem; }
.plan-tier {
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    border-radius: 16px;
    padding: .9rem 1rem;
    margin-bottom: .9rem;
}
.plan-tier-label {
    font-size: .86rem;
    color: var(--c-muted);
    margin-bottom: .35rem;
    font-weight: 600;
}
.plan-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.plan-price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-primary);
}
.plan-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.plan-features li { padding: .45rem 0; color: var(--c-ink); display: flex; align-items: center; gap: .5rem; }
.plan-features li i { color: var(--c-success); }

/* ============= FOOTER ============= */
.site-footer {
    background: var(--c-primary-dark);
    color: rgba(250,246,240,.85);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer h5.footer-heading {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.footer-about { color: rgba(250,246,240,.7); margin-bottom: 1.2rem; max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .3rem 0; }
.footer-links a { color: rgba(250,246,240,.75); }
.footer-links a:hover { color: var(--c-accent); }
.social-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.social-icon:hover { background: var(--c-accent); color: var(--c-ink); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 3rem; padding-top: 1.5rem;
    text-align: center;
    color: rgba(250,246,240,.6);
    font-size: .9rem;
}

/* ============= AUTH PAGES ============= */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center;
    padding: 3rem 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(201,169,97,.08), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(26,77,58,.06), transparent 40%),
        var(--c-cream);
}
.auth-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.auth-title { font-size: 1.7rem; margin-bottom: .4rem; }
.auth-subtitle { color: var(--c-muted); margin-bottom: 1.8rem; }

/* ============= FORMS ============= */
.form-control, .form-select {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: .65rem .9rem;
    background: #fff;
    transition: all .15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(26,77,58,.12);
}

/* ============= ARTICLES ============= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.article-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-soft);
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.article-card:hover .article-card-image img {
    transform: scale(1.03);
}
.article-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-size: 2rem;
}
.article-date-badge {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(26, 77, 58, .95);
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: var(--shadow);
}
.article-date-badge strong {
    font-size: 1.15rem;
    font-weight: 800;
}
.article-date-badge small {
    font-size: .78rem;
    margin-top: .2rem;
    opacity: .88;
}
.article-date-badge-lg {
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    width: 66px;
    height: 66px;
}
.article-card-body {
    padding: 1.2rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}
.article-card-body h3 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.5;
}
.article-card-body p {
    margin: 0;
    color: var(--c-muted);
}
.articles-pagination-wrap {
    margin-top: 2rem;
}
.articles-pagination .page-link {
    color: var(--c-ink);
    border-color: var(--c-line);
    border-radius: 12px;
    margin: 0 .2rem;
    min-width: 44px;
    text-align: center;
    box-shadow: none;
}
.articles-pagination .page-item.active .page-link {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.articles-pagination .page-item.disabled .page-link {
    opacity: .55;
    pointer-events: none;
}
.article-single {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-single-cover {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}
.article-single-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-single-body {
    padding: 2rem;
}
.article-single-meta {
    color: var(--c-accent-dark);
    font-weight: 700;
    margin-bottom: .75rem;
}
.article-single-title {
    margin-bottom: 1.25rem;
}
.article-content {
    color: var(--c-ink);
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.4rem;
    margin-bottom: .7rem;
    font-weight: 800;
}
.article-content blockquote {
    margin: 1.1rem 0;
    padding: .95rem 1.1rem;
    border-inline-start: 4px solid var(--c-primary);
    background: var(--c-soft);
    border-radius: 14px;
}
.article-content img {
    max-width: min(100%, 600px);
    height: auto;
    border-radius: 18px;
}
.article-content .article-media-frame {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
}
.article-content .article-media-frame[data-align="left"] {
    margin-left: 0;
    margin-right: auto;
}
.article-content .article-media-frame[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
}
.article-content .article-media-frame[data-align="right"] {
    margin-left: auto;
    margin-right: 0;
}
.article-content .article-media-frame img {
    width: 100%;
    max-width: 100%;
    display: block;
}
.article-content iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 18px;
    margin: 1rem 0;
}
.article-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.75rem;
}
.article-keyword-chip {
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .9rem;
}
.article-side-panel {
    position: sticky;
    top: calc(var(--site-header-offset) + 1rem);
}
.article-side-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.article-side-item {
    display: flex;
    gap: .9rem;
    align-items: center;
}
.article-side-thumb {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 16px;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
}
.article-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-side-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.article-side-copy strong {
    color: var(--c-ink);
    line-height: 1.45;
}
.article-side-copy small {
    color: var(--c-muted);
}

.language-chooser-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 20, 20, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.language-chooser-card {
    width: min(100%, 520px);
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .18);
}
.language-chooser-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--c-soft);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}
.language-chooser-card h3 {
    margin-bottom: .75rem;
}
.language-chooser-card p {
    color: var(--c-muted);
    margin-bottom: 1.25rem;
}
.language-chooser-actions {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-side-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-single-body {
        padding: 1.25rem;
    }
    .article-date-badge,
    .article-date-badge-lg {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }
    .language-chooser-card {
        padding: 1.35rem;
    }
}
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-text { color: var(--c-muted); font-size: .85rem; }

/* ============= DASHBOARD ============= */
.dashboard {
    padding: 2rem 0;
}
.dashboard-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.dashboard-title { font-size: 1.6rem; margin: 0; font-weight: 700; }
.dashboard-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) {
    .dashboard-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .dashboard-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.stat-card .label { color: var(--c-muted); font-size: .85rem; margin-bottom: .5rem; }
.stat-card .value { font-size: 1.9rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.stat-card .icon {
    float: inline-end;
    width: 40px; height: 40px;
    background: var(--c-soft);
    color: var(--c-primary);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}

.panel {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--c-line);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 1rem;
}
.panel-header h3, .panel-header h4 { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 1.4rem; }

/* admin sidebar */
.admin-shell { display: grid; gap: 1.2rem; }
@media (min-width: 992px) {
    .admin-shell { grid-template-columns: 240px 1fr; }
}
.admin-sidebar {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.admin-sidebar .nav-link {
    color: var(--c-ink);
    border-radius: var(--radius-sm);
    padding: .55rem .85rem;
    margin-bottom: .15rem;
    font-weight: 500;
    display: flex; align-items: center; gap: .6rem;
    transition: all .15s ease;
}
.admin-sidebar .nav-link:hover { background: var(--c-soft); }
.admin-sidebar .nav-link.active { background: var(--c-primary); color: #fff; }
.admin-sidebar .nav-link i { font-size: 1rem; opacity: .85; }
.admin-sidebar .sidebar-heading {
    font-size: .72rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 1rem .85rem .35rem;
}
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
        top: auto;
        padding: .75rem;
        margin-bottom: .25rem;
    }
    .admin-sidebar .nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: .5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .25rem;
    }
    .admin-sidebar .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0;
    }
    .admin-sidebar .sidebar-heading {
        display: none;
    }
}

/* Tables */
.table-clean { width: 100%; border-collapse: collapse; }
.table-clean th, .table-clean td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--c-line);
    text-align: start;
}
.table-clean th { background: var(--c-soft); font-weight: 600; font-size: .9rem; }
.table-clean tbody tr:hover { background: var(--c-cream); }

.badge-status {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-status.active { background: rgba(45,134,89,.12); color: var(--c-success); }
.badge-status.suspended, .badge-status.failed { background: rgba(179,71,71,.12); color: var(--c-danger); }
.badge-status.pending { background: rgba(201,138,43,.15); color: var(--c-warning); }
.badge-status.completed { background: rgba(45,134,89,.12); color: var(--c-success); }

/* QR code box */
.qr-box {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}
.qr-box img { max-width: 100%; height: auto; max-height: 220px; }

/* ============= PUBLIC RESTAURANT MENU PAGE (customer-facing) ============= */
.menu-page {
    background: var(--c-cream);
    min-height: 100vh;
    padding: 0;
    font-family: var(--font-ar);
}
.menu-page .menu-cover {
    height: 240px;
    background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
    background-size: cover; background-position: center;
    position: relative;
}
.menu-page .menu-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(18,53,40,.8) 100%);
}
.menu-page .restaurant-head {
    text-align: center;
    margin-top: -60px;
    position: relative; z-index: 2;
    padding: 0 1rem 1.5rem;
}
.restaurant-logo {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    object-fit: cover;
    margin-bottom: 1rem;
}
.restaurant-name { font-family: var(--font-display); font-size: 2rem; margin-bottom: .25rem; }
.restaurant-meta { color: var(--c-muted); font-size: .95rem; }
.menu-tabs {
    position: sticky; top: 0;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    padding: .75rem 0;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.menu-tabs .tab {
    display: inline-block;
    padding: .5rem 1.1rem;
    margin: 0 .25rem;
    border-radius: 100px;
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-ink);
    font-weight: 600;
    font-size: .9rem;
    transition: all .15s ease;
}
.menu-tabs .tab:hover, .menu-tabs .tab.active {
    background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}
.menu-section { padding: 2rem 0 1rem; }
.menu-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-accent);
    display: inline-block;
    padding-bottom: .35rem;
    margin-bottom: 1.25rem;
}
.menu-item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: .9rem;
    transition: all .2s ease;
}
.menu-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.menu-item.unavailable { opacity: .55; }
.menu-item-img {
    width: 88px; height: 88px;
    border-radius: 10px; object-fit: cover;
    flex-shrink: 0;
    background: var(--c-soft);
}
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 .15rem; }
.menu-item-desc { color: var(--c-muted); font-size: .88rem; margin: 0 0 .4rem; }
.menu-item-meta { display: flex; gap: .8rem; font-size: .8rem; color: var(--c-muted); }
.menu-item-price {
    font-weight: 800;
    color: var(--c-accent-dark);
    font-size: 1.1rem;
    white-space: nowrap;
}
.menu-item-price del { color: var(--c-muted); font-weight: 400; font-size: .85rem; margin-inline-end: .35rem; }
.menu-page-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--c-muted);
    font-size: .85rem;
    border-top: 1px solid var(--c-line);
    margin-top: 2rem;
}

/* expired */
.expired-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
    background: var(--c-cream);
}
.expired-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 480px;
    box-shadow: var(--shadow);
}

/* error pages */
.error-wrap {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 3rem;
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    font-family: var(--font-display);
}

/* utility */
.text-muted-2 { color: var(--c-muted); }
.cursor-pointer { cursor: pointer; }
.copy-input {
    background: var(--c-soft);
    border: 1px dashed var(--c-line);
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: .85rem;
    user-select: all;
}
.divider {
    height: 1px; background: var(--c-line);
    margin: 1.5rem 0;
}
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--c-muted);
}
.empty-state i { font-size: 3rem; opacity: .35; margin-bottom: 1rem; }

.item-create-box {
    border: 1px dashed var(--c-line);
    border-radius: var(--radius);
    background: #fff;
}
.item-create-box[open] {
    border-style: solid;
}
.item-create-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: .5rem;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
    color: var(--c-primary);
    font-weight: 700;
}
.item-create-toggle::-webkit-details-marker {
    display: none;
}
.item-create-toggle-open,
.item-create-toggle-close {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.item-create-box .item-create-toggle-close {
    display: none;
}
.item-create-box[open] .item-create-toggle-open {
    display: none;
}
.item-create-box[open] .item-create-toggle-close {
    display: inline-flex;
}
.item-create-form {
    border-top: 1px solid var(--c-line);
}

/* RTL/LTR small adjustments */
body.rtl .stat-card .icon { float: left; }
body.ltr .stat-card .icon { float: right; }

/* responsive */
@media (max-width: 768px) {
    :root {
        --site-header-offset: 74px;
    }
    .hero { min-height: 460px; }
    .hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 460px; }
    .hero-arrow {
        width: 44px;
        height: 44px;
    }
    .hero-arrow-prev {
        left: .75rem;
    }
    .hero-arrow-next {
        right: .75rem;
    }
    .section { padding: 3.5rem 0; }
    .auth-card { padding: 1.5rem; }
}
.home-ad-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.home-ad-slot {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 14px 32px rgba(25, 25, 25, 0.06);
    overflow: hidden;
}

.home-ad-slot > *:last-child {
    margin-bottom: 0;
}

.home-clients-section {
    overflow: hidden;
}

.home-clients-carousel {
    position: relative;
    padding: .75rem 3rem 2.75rem;
}

.home-clients-carousel .carousel-item {
    padding: .35rem 0;
}

.home-client-card {
    text-align: center;
}

.home-client-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto .65rem;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,244,239,.92));
    box-shadow: 0 14px 28px rgba(24, 24, 24, 0.08);
    border: 1px solid rgba(34,34,34,.06);
}

.home-client-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.home-client-name {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-color, #222);
    line-height: 1.4;
    word-break: break-word;
}

.home-clients-indicators {
    bottom: -.25rem;
    margin-bottom: 0;
}

.home-clients-indicators button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50%;
    border: 0 !important;
    background: rgba(0,0,0,.18) !important;
}

.home-clients-indicators .active {
    background: var(--c-primary) !important;
}

.home-clients-control {
    width: 42px;
    opacity: 1;
}

.home-clients-control .carousel-control-prev-icon,
.home-clients-control .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(26, 77, 58, .92);
    background-size: 52% 52%;
    box-shadow: 0 10px 18px rgba(26,77,58,.2);
}

@media (max-width: 767.98px) {
    .home-ad-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .home-ad-slot {
        border-radius: 18px;
        padding: .85rem;
    }

    .home-clients-carousel {
        padding-inline: 2rem;
        padding-bottom: 2.3rem;
    }

    .home-client-avatar {
        width: 72px;
        height: 72px;
        margin-bottom: .5rem;
    }

    .home-client-name {
        font-size: .82rem;
    }

    .home-clients-control {
        width: 32px;
    }

    .home-clients-control .carousel-control-prev-icon,
    .home-clients-control .carousel-control-next-icon {
        width: 1.7rem;
        height: 1.7rem;
    }
}
