* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e25c35;
    --primary-dark: #c44a2a;
    --secondary: #102a43;
    --secondary-soft: #1e4669;
    --accent: #0f9d90;
    --accent-soft: #d4f2ee;
    --success: #1f8a56;
    --danger: #c93e3e;
    --warning: #d58b21;
    --bg: #f5f1e8;
    --bg-soft: #fff9ef;
    --card: #fffdf8;
    --text: #182b36;
    --text-light: #566772;
    --border: #ddd8cb;
    --sidebar-width: 260px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 22px 46px -30px rgba(16, 42, 67, 0.35);
    --shadow-card: 0 18px 40px -30px rgba(16, 42, 67, 0.4);
    --focus-ring: 0 0 0 3px rgba(226, 92, 53, 0.24);
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(950px 520px at -8% -14%, rgba(226, 92, 53, 0.24), transparent 52%),
        radial-gradient(900px 430px at 108% -8%, rgba(15, 157, 144, 0.18), transparent 45%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 56%, #eee6d6 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(16, 42, 67, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 42, 67, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.35;
    z-index: -1;
}

body.sidebar-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: 0.01em;
}

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

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(188deg, #163550 0%, #10273c 54%, #0a1a29 100%);
    color: #f4f7fa;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 120;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 28px 0 44px -36px rgba(0, 0, 0, 0.6);
    transition: transform 0.32s ease;
}

.sidebar.hidden {
    display: none;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.sidebar-header {
    padding: 24px 20px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: #ffb173;
    line-height: 1.1;
}

.sidebar-header .subtitle {
    margin-top: 6px;
    display: inline-block;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(243, 247, 251, 0.68);
}

.nav-menu {
    list-style: none;
    padding: 14px 10px;
}

.nav-item {
    margin: 4px 0;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    border-radius: 10px;
    color: rgba(238, 244, 250, 0.85);
    user-select: none;
}

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

.nav-item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 177, 115, 0.5);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(226, 92, 53, 0.38), rgba(226, 92, 53, 0.14));
    border-left-color: #ffb173;
    color: #fff;
    font-weight: 600;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.nav-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.admin-only {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary), #274f75);
    box-shadow: var(--shadow-soft);
    z-index: 150;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.mobile-nav-toggle-icon,
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.mobile-nav-toggle-icon {
    position: relative;
}

.mobile-nav-toggle-icon::before {
    position: absolute;
    top: -6px;
}

.mobile-nav-toggle-icon::after {
    position: absolute;
    top: 6px;
}

.mobile-nav-toggle.active .mobile-nav-toggle-icon {
    background: transparent;
}

.mobile-nav-toggle.active .mobile-nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.active .mobile-nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    min-width: 98px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.92), rgba(39, 79, 117, 0.92));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 150;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle-text {
    white-space: nowrap;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 24, 36, 0.58);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 110;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    flex: 1;
    min-height: 100vh;
    padding: 30px clamp(14px, 2.6vw, 32px) 48px;
}

body.no-sidebar .content {
    margin-left: 0;
    width: 100%;
    padding-top: 26px;
}

.topbar-shell {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.topbar-title {
    font-size: 0.92rem;
    font-weight: 800;
}

.topbar-sub {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.topbar-field {
    display: grid;
    gap: 4px;
}

.topbar-field span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    font-weight: 700;
}

.topbar-field select {
    min-height: 34px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 5px 9px;
    min-width: 210px;
    background: #fff;
    color: var(--text);
}

.auth-screen {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.auth-card {
    width: min(460px, 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

.auth-card h1 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.auth-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.auth-alert {
    background: rgba(201, 62, 62, 0.13);
    border: 1px solid rgba(201, 62, 62, 0.25);
    color: #b13131;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    display: grid;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.auth-form input,
.auth-form select {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    color: var(--text);
}

.auth-form input:focus,
.auth-form select:focus,
.topbar-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.auth-help {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.modal.modal-sm {
    max-width: 440px;
}

.page-view {
    animation: pageReveal 0.32s ease;
}

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

.card {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(215, 208, 193, 0.9);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(5px);
}

.card-title {
    font-size: 1.06rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.93), rgba(253, 249, 241, 0.96));
    border: 1px solid rgba(215, 208, 193, 0.9);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary);
}

.summary-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -35px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 92, 53, 0.16), transparent 70%);
}

.summary-card.green {
    border-left-color: var(--success);
}

.summary-card.orange {
    border-left-color: var(--warning);
}

.summary-card.blue {
    border-left-color: #2d7bc1;
}

.summary-card.red {
    border-left-color: var(--danger);
}

.summary-card .label {
    font-size: 0.74rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.summary-card .value {
    font-size: clamp(1.35rem, 2.2vw, 1.82rem);
    font-weight: 800;
    margin-top: 6px;
    color: var(--text);
    line-height: 1.15;
}

.summary-card .sub {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 5px;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.trend-card {
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(215, 208, 193, 0.9);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.trend-card.blue {
    border-top: 3px solid #2d7bc1;
}

.trend-card.orange {
    border-top: 3px solid #da8c28;
}

.trend-card.green {
    border-top: 3px solid #20a45f;
}

.trend-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.trend-card-head h3 {
    font-size: 0.9rem;
    color: var(--secondary);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

.trend-card-change {
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(16, 42, 67, 0.08);
    color: var(--text-light);
    white-space: nowrap;
}

.trend-card-change.up {
    background: rgba(31, 138, 86, 0.16);
    color: #1f8a56;
}

.trend-card-change.down {
    background: rgba(201, 62, 62, 0.16);
    color: #c93e3e;
}

.trend-card-value {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 10px;
}

.trend-card-empty {
    color: var(--text-light);
    font-size: 0.82rem;
}

.mini-chart-bars {
    height: 96px;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
    align-items: end;
}

.mini-chart-bar-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.mini-chart-bar {
    width: 100%;
    border-radius: 6px 6px 3px 3px;
    display: inline-block;
    min-height: 10px;
    transition: transform 0.2s ease;
}

.mini-chart-bar-wrap:hover .mini-chart-bar {
    transform: translateY(-2px);
}

.mini-chart-bar.up {
    background: linear-gradient(180deg, #47ad72 0%, #1f8a56 100%);
}

.mini-chart-bar.down {
    background: linear-gradient(180deg, #ee8a72 0%, #cb4d44 100%);
}

.mini-chart-x {
    font-size: 0.68rem;
    color: var(--text-light);
    white-space: nowrap;
}

.mix-chart {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.mix-row {
    display: grid;
    grid-template-columns: 60px 1fr 42px;
    gap: 8px;
    align-items: center;
}

.mix-label {
    font-size: 0.76rem;
    color: var(--text-light);
    font-weight: 700;
}

.mix-track {
    height: 9px;
    border-radius: 999px;
    background: rgba(16, 42, 67, 0.12);
    overflow: hidden;
}

.mix-track > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2d7bc1, #4a9eda);
}

.mix-value {
    font-size: 0.74rem;
    color: var(--text-light);
    text-align: right;
    font-weight: 700;
}

.table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 8px;
}

.table-tool-field {
    min-width: 170px;
    display: grid;
    gap: 4px;
}

.table-tool-field span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
}

.table-search-input,
.table-filter-select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
}

.table-search-input:focus,
.table-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.table-tools-meta {
    margin-left: auto;
    font-size: 0.77rem;
    color: var(--text-light);
    font-weight: 700;
}

.table-result-count.no-results {
    color: var(--danger);
}

.table-wrapper {
    overflow: auto;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.table-wrapper.auto-wrapper {
    margin-top: 0;
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

thead th {
    background: linear-gradient(180deg, #204a6d 0%, #17364f 100%);
    color: #f4f8fb;
    padding: 11px 12px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

thead th:first-child {
    border-top-left-radius: 12px;
}

thead th:last-child {
    border-top-right-radius: 12px;
}

tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: #fffdf7;
}

tbody tr:nth-child(even) {
    background: rgba(247, 244, 238, 0.86);
}

tbody tr:nth-child(even):hover {
    background: #fffdf7;
}

tbody tr:last-child td {
    border-bottom: none;
}

table.sticky-first-col th:first-child,
table.sticky-first-col td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}

table.sticky-first-col thead th:first-child {
    z-index: 3;
    background: linear-gradient(180deg, #204a6d 0%, #17364f 100%);
}

table.sticky-first-col tbody tr td:first-child {
    background: #fffdf7;
}

table.sticky-first-col tbody tr:nth-child(even) td:first-child {
    background: rgba(247, 244, 238, 0.95);
}

table.sticky-first-col tbody tr.total-row td:first-child {
    background: rgba(224, 234, 243, 0.95) !important;
}

td.number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

td.bold {
    font-weight: 700;
}

td.green {
    color: var(--success);
}

td.red {
    color: var(--danger);
}

td.orange {
    color: var(--warning);
}

td input,
td select {
    width: 100%;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: right;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

td input:hover,
td select:hover {
    border-color: #c9c4b8;
}

td input:focus,
td select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: var(--radius-xl);
    padding: 24px clamp(18px, 2.8vw, 30px);
    background: linear-gradient(124deg, rgba(16, 42, 67, 0.97), rgba(28, 63, 92, 0.95));
    border: 1px solid rgba(16, 42, 67, 0.45);
    box-shadow: var(--shadow-soft);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: auto -30px -48px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 157, 144, 0.33), transparent 72%);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.38rem, 2.5vw, 1.95rem);
    color: #f8fbff;
}

.page-header p {
    position: relative;
    z-index: 1;
    color: rgba(236, 245, 252, 0.86);
    font-size: 0.92rem;
    margin-top: 7px;
    max-width: 72ch;
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
}

.tab-btn {
    padding: 9px 14px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(16, 42, 67, 0.06);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #f08a3a 100%);
    box-shadow: 0 14px 20px -18px rgba(226, 92, 53, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-upload) {
    background: rgba(16, 42, 67, 0.08);
    border-color: var(--border);
    color: var(--text);
}

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

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #f08a3a 100%);
    color: white;
    box-shadow: 0 16px 22px -18px rgba(226, 92, 53, 0.85);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #df7e33 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #2aa266);
    color: white;
    box-shadow: 0 14px 20px -16px rgba(31, 138, 86, 0.8);
}

.btn-success:hover {
    background: linear-gradient(135deg, #187046, #248e5a);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #e46944);
    color: white;
}

tr.total-row td {
    font-weight: 800;
    background: rgba(224, 234, 243, 0.58) !important;
    border-top: 2px solid var(--secondary-soft);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 18px;
}

.recipe-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.recipe-card h3 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(226, 92, 53, 0.46);
}

.recipe-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(16, 42, 67, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
}

.info-box {
    background: linear-gradient(135deg, #ebf5ff 0%, #f8fcff 100%);
    border: 1px solid #bfdaf2;
    border-left: 4px solid #2d7bc1;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: #1c3d59;
}

.stat-bar {
    height: 8px;
    background: rgba(16, 42, 67, 0.12);
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.45s ease;
}

.stat-bar-fill.green {
    background: linear-gradient(90deg, #20a45f, #3ac176);
}

.stat-bar-fill.red {
    background: linear-gradient(90deg, #d14a4a, #e76b56);
}

.stat-bar-fill.orange {
    background: linear-gradient(90deg, #da8c28, #ebb24e);
}

.stat-bar-fill.blue {
    background: linear-gradient(90deg, #2d7bc1, #4b9dd8);
}

.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success), #2ea468);
    color: white;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 1000;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 38, 0.62);
    backdrop-filter: blur(3px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fffdf8;
    border-radius: 18px;
    width: min(92vw, 920px);
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(219, 211, 195, 0.92);
    box-shadow: 0 38px 62px -28px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.22s ease-out;
}

@keyframes modalIn {
    from {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(240, 246, 252, 0.86), rgba(255, 255, 255, 0.7));
}

.modal-header h2 {
    font-size: 1.15rem;
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.55rem;
    cursor: pointer;
    color: var(--text-light);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(16, 42, 67, 0.08);
    color: var(--text);
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    max-height: calc(90vh - 68px);
}

.upload-zone {
    border: 2px dashed #c8d8e4;
    border-radius: 14px;
    padding: 44px 22px;
    text-align: center;
    cursor: pointer;
    background: rgba(248, 251, 255, 0.7);
    transition: all 0.22s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(226, 92, 53, 0.08);
}

.upload-zone .upload-icon {
    font-size: 2.85rem;
    margin-bottom: 12px;
}

.upload-zone h3 {
    color: var(--secondary);
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.parsing-status {
    text-align: center;
    padding: 56px 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #dbe3ea;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#matchTable th:first-child,
#matchTable td:first-child {
    width: 30px;
    text-align: center;
}

#matchTable .match-select {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.match-row.no-match {
    background: #fff5dd !important;
}

.match-row.no-match td {
    color: #b7720f;
}

.match-row.new-item {
    background: #e8f7ef !important;
}

.match-row.new-item td {
    color: #226f44;
}

.match-row .match-dropdown {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    background: white;
}

.price-up {
    color: var(--danger) !important;
    font-weight: 700;
}

.price-down {
    color: var(--success) !important;
    font-weight: 700;
}

.price-same {
    color: var(--text-light) !important;
}

.btn-upload {
    background: linear-gradient(135deg, #2076b8, #3397cf);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #1a6299, #2e89bc);
}

.fatura-log {
    font-size: 0.8rem;
    color: var(--text-light);
}

.fatura-log-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.fatura-log-item:last-child {
    border: none;
}

.match-status-bar {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(246, 249, 252, 0.9);
    color: var(--secondary);
    font-size: 0.84rem;
    font-weight: 700;
}

body.theme-dark {
    --primary: #ff9e63;
    --primary-dark: #e4824e;
    --secondary: #dce9f5;
    --secondary-soft: #8caecc;
    --accent: #3dd1c2;
    --accent-soft: #1d4b47;
    --success: #50c488;
    --danger: #ff7f7f;
    --warning: #f2b455;
    --bg: #0d1723;
    --bg-soft: #132030;
    --card: #182637;
    --text: #e9f1f9;
    --text-light: #a8bbcf;
    --border: #2b3f53;
    --shadow-soft: 0 22px 46px -30px rgba(0, 0, 0, 0.65);
    --shadow-card: 0 18px 40px -30px rgba(0, 0, 0, 0.75);
    --focus-ring: 0 0 0 3px rgba(255, 158, 99, 0.3);
}

body.theme-dark::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    opacity: 0.16;
}

body.theme-dark .theme-toggle {
    background: linear-gradient(135deg, #192d42, #25415f);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .mobile-nav-toggle {
    background: linear-gradient(135deg, #192d42, #25415f);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.theme-dark .card,
body.theme-dark .trend-card {
    background: rgba(24, 38, 55, 0.88);
    border-color: rgba(56, 78, 98, 0.9);
}

body.theme-dark .topbar-shell,
body.theme-dark .auth-card {
    background: rgba(24, 38, 55, 0.9);
    border-color: rgba(56, 78, 98, 0.9);
}

body.theme-dark .auth-alert {
    background: rgba(255, 127, 127, 0.15);
    border-color: rgba(255, 127, 127, 0.25);
    color: #ffb3b3;
}

body.theme-dark .summary-card {
    background: linear-gradient(165deg, rgba(28, 45, 64, 0.95), rgba(20, 33, 47, 0.95));
    border-color: rgba(56, 78, 98, 0.95);
}

body.theme-dark .summary-card::after {
    background: radial-gradient(circle, rgba(255, 158, 99, 0.2), transparent 70%);
}

body.theme-dark .table-wrapper {
    background: rgba(20, 33, 47, 0.78);
}

body.theme-dark tbody tr:hover {
    background: rgba(255, 255, 255, 0.045);
}

body.theme-dark tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.028);
}

body.theme-dark tbody tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.06);
}

body.theme-dark table.sticky-first-col tbody tr td:first-child {
    background: rgba(20, 33, 47, 0.95);
}

body.theme-dark table.sticky-first-col tbody tr:nth-child(even) td:first-child {
    background: rgba(28, 43, 61, 0.95);
}

body.theme-dark table.sticky-first-col tbody tr.total-row td:first-child {
    background: rgba(43, 62, 81, 0.95) !important;
}

body.theme-dark tr.total-row td {
    background: rgba(43, 62, 81, 0.86) !important;
}

body.theme-dark .table-search-input,
body.theme-dark .table-filter-select,
body.theme-dark .auth-form input,
body.theme-dark .auth-form select,
body.theme-dark .topbar-field select,
body.theme-dark td input,
body.theme-dark td select {
    background: rgba(17, 28, 41, 0.95);
    color: var(--text);
    border-color: #3a5168;
}

body.theme-dark .info-box {
    background: linear-gradient(135deg, rgba(34, 59, 84, 0.72) 0%, rgba(26, 44, 63, 0.92) 100%);
    border-color: rgba(76, 121, 162, 0.65);
    color: #d9e8f6;
}

body.theme-dark .modal {
    background: #1b2a3a;
    border-color: #37516a;
}

body.theme-dark .modal-header {
    background: linear-gradient(180deg, rgba(20, 36, 53, 0.95), rgba(25, 42, 60, 0.92));
}

body.theme-dark .upload-zone {
    background: rgba(20, 33, 47, 0.8);
    border-color: #405971;
}

body.theme-dark .upload-zone:hover,
body.theme-dark .upload-zone.dragover {
    background: rgba(255, 158, 99, 0.16);
}

body.theme-dark .mix-track {
    background: rgba(255, 255, 255, 0.15);
}

body.theme-dark .tab-bar {
    background: rgba(20, 33, 47, 0.8);
    border-color: rgba(56, 78, 98, 0.7);
}

body.theme-dark .tab-btn {
    color: var(--text);
}

body.theme-dark .tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .tab-btn.active {
    color: #fff;
}

/* ==================== KULLANIM REHBERİ ==================== */
.rehber-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.rehber-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
.rehber-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.rehber-nav-card.blue { border-left: 4px solid var(--primary); }
.rehber-nav-card.green { border-left: 4px solid var(--success); }
.rehber-nav-card.orange { border-left: 4px solid #d58b21; }
.rehber-nav-card.red { border-left: 4px solid var(--danger); }
.rehber-nav-icon { font-size: 1.5rem; }

.rehber-section {
    margin-bottom: 20px;
}
.rehber-desc {
    color: var(--text-light);
    margin: 8px 0 16px;
    line-height: 1.65;
    font-size: 0.95rem;
}
.rehber-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rehber-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    line-height: 1.6;
    font-size: 0.92rem;
}
.rehber-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.rehber-tips-card {
    border-left: 4px solid var(--primary);
}
.rehber-tip {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    line-height: 1.55;
}
.rehber-tip:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
    .rehber-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .rehber-nav-card {
        padding: 12px 6px;
        font-size: 0.8rem;
    }
    .rehber-nav-icon { font-size: 1.3rem; }
    .rehber-step {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 980px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-104%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 82px;
    }

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

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

    .flex-between {
        flex-wrap: wrap;
        gap: 10px;
    }

    .topbar-actions {
        width: 100%;
    }

    .topbar-field {
        flex: 1;
    }

    .topbar-field select {
        min-width: 100%;
    }

    .theme-toggle {
        min-width: auto;
        width: 48px;
        padding: 0;
    }

    .theme-toggle-text {
        display: none;
    }
}

@media (max-width: 700px) {
    .content {
        padding: 78px 12px 28px;
    }

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

    .page-header {
        padding: 18px 16px;
        margin-bottom: 16px;
    }

    .topbar-shell {
        padding: 10px;
    }

    .topbar-actions {
        width: 100%;
    }

    .auth-card {
        padding: 16px;
    }

    .card,
    .recipe-card {
        padding: 14px;
        border-radius: 13px;
    }

    .card-title {
        font-size: 0.95rem;
    }

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

    .table-tools {
        gap: 8px;
    }

    .table-tool-field {
        min-width: 100%;
    }

    .table-tools-meta {
        margin-left: 0;
    }

    table {
        min-width: 560px;
        font-size: 0.8rem;
    }

    .modal {
        width: 96vw;
        border-radius: 14px;
    }

    .modal-body {
        padding: 16px;
    }

    .upload-zone {
        padding: 30px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    body,
    body::before {
        background: white !important;
    }

    .sidebar,
    .mobile-nav-toggle,
    .theme-toggle,
    .sidebar-backdrop {
        display: none !important;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    .card,
    .summary-card,
    .recipe-card,
    .page-header {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ==================== LOGIN EKRANI ==================== */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #102a43 0%, #1e4669 50%, #e25c35 100%);
    min-height: 100vh;
}

.login-screen.hidden {
    display: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.login-logo p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-top: 4px;
    margin-bottom: 32px;
}

.login-field {
    text-align: left;
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #34495e;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #2c3e50;
    background: #fafafa;
}

.login-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    background: #fff;
}

.login-error {
    background: #fde8e8;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    border: 1px solid #f5c6cb;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-top: 8px;
}

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

.login-footer {
    margin-top: 24px;
    color: #95a5a6;
    font-size: 0.78rem;
}

.login-footer small::before {
    content: "🔒 ";
}

@media (max-width: 480px) {
    .login-container {
        margin: 16px;
        padding: 36px 28px;
    }
    .login-logo h1 {
        font-size: 2rem;
    }
}

/* Dark mode login */
body.theme-dark .login-container {
    background: rgba(24, 38, 55, 0.97);
}

body.theme-dark .login-field input {
    background: rgba(17, 28, 41, 0.95);
    color: var(--text);
    border-color: #3a5168;
}

body.theme-dark .login-field label {
    color: var(--text-light);
}

body.theme-dark .login-error {
    background: rgba(255, 127, 127, 0.15);
    color: #ff9999;
    border-color: rgba(255, 127, 127, 0.25);
}

.login-back-btn {
    margin-top: 16px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    color: #7f8c8d;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.login-back-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    font-family: 'Manrope', sans-serif;
    color: #333;
    background: #fff;
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 64px;
}
.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.landing-logo-icon {
    font-size: 1.8rem;
}
.landing-logo h1,
.landing-footer-logo strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: #E87E24;
    line-height: 1.1;
}
.landing-logo small,
.landing-footer-logo small {
    font-size: 0.7rem;
    color: #999;
    display: block;
}
.landing-nav {
    display: flex;
    gap: 28px;
}
.landing-nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}
.landing-nav a:hover {
    color: #E87E24;
}
.landing-login-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.landing-login-btn:hover {
    border-color: #E87E24;
    color: #E87E24;
}

/* Hero */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: #E87E24;
    transition: background 0.8s ease;
    z-index: 0;
}
.landing-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}
.landing-hero-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.landing-hero-content h2 span {
    display: block;
    font-style: italic;
}
.landing-hero-content p {
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
}
.landing-hero-cta {
    display: inline-block;
    background: #fff;
    color: #E87E24;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.landing-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.landing-hero-flavors {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}
.flavor-item {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.flavor-item:hover {
    background: rgba(255,255,255,0.3);
}
.flavor-item.active {
    background: #fff;
    color: #333;
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Sections */
.landing-section {
    padding: 80px 24px;
}
.landing-section-dark {
    background: #fafafa;
}
.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #E87E24;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 800;
    text-transform: uppercase;
}

/* About */
.landing-about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.landing-about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 800;
}
.landing-about-text h3 span {
    color: #E87E24;
}
.landing-about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.landing-about-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.about-visual-card {
    background: linear-gradient(135deg, #fff3e6, #fff9f0);
    border: 1px solid #f0e0cc;
    border-radius: 16px;
    padding: 24px 12px;
    text-align: center;
}
.about-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #E87E24;
}
.about-stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    font-weight: 600;
}

/* Menu Grid */
.landing-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.menu-card {
    border-radius: 20px;
    padding: 36px 28px;
    color: #fff;
    transition: transform 0.3s;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.menu-card:hover {
    transform: translateY(-4px);
}
.menu-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.menu-card p {
    font-size: 0.88rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Franchise */
.landing-franchise {
    text-align: center;
    padding: 60px 0;
}
.landing-franchise h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 28px;
    font-weight: 800;
}
.landing-franchise h3 span {
    color: #E87E24;
    font-size: 2.4rem;
}
.landing-franchise-btn {
    display: inline-block;
    background: linear-gradient(135deg, #E87E24, #F5A623);
    color: #fff;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 25px rgba(232,126,36,0.35);
}
.landing-franchise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232,126,36,0.45);
}

/* Footer */
.landing-footer {
    background: #E87E24;
    padding-top: 0;
    position: relative;
}
.landing-footer-wave {
    height: 60px;
    background: #fff;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.landing-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.landing-footer-logo strong {
    color: #fff;
}
.landing-footer-logo small {
    color: rgba(255,255,255,0.7);
}
.landing-footer-links {
    display: flex;
    gap: 24px;
}
.landing-footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.landing-footer-links a:hover {
    color: #fff;
}
.landing-footer-social a {
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
}
.landing-footer-bottom {
    text-align: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* Landing Responsive */
@media (max-width: 768px) {
    .landing-nav {
        display: none;
    }
    .landing-about {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .landing-menu-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero-content h2 {
        font-size: 2.5rem;
    }
    .landing-footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .landing-footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .landing-franchise h3 span {
        font-size: 1.6rem;
    }
}
