@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121214;
    --bg-card: #18191c;
    --bg-input: #222327;
    --primary: #f26b21;
    --primary-rgb: 242, 107, 33;
    --primary-hover: #d95a1a;
    --accent: #ff8c42;
    --success: #10b981;
    --danger: #ef4444;
    --text-primary: #f5f6f5;
    --text-secondary: #a6b4ad;
    --border: rgba(242, 107, 33, 0.15);
    --border-focus: rgba(242, 107, 33, 0.5);
    --shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(7, 26, 17, 0.85);
    --glass-border: rgba(242, 107, 33, 0.1);
    --font-serif: 'Marcellus', 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode - Ivory & Gold refinement */
[data-theme="light"] {
    --bg-primary: #fdfbf7;
    --bg-secondary: #f6f3ea;
    --bg-card: #ffffff;
    --bg-input: #fbf9f4;
    --text-primary: #121212;
    --text-secondary: #5a6b61;
    --border: rgba(242, 107, 33, 0.2);
    --border-focus: rgba(242, 107, 33, 0.6);
    --shadow: 0 10px 30px -10px rgba(13, 33, 22, 0.1);
    --glass-bg: rgba(253, 251, 247, 0.85);
    --glass-border: rgba(242, 107, 33, 0.15);
}
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6 {
    color: #121212;
}
[data-theme="light"] .form-control { color: #121212; }
[data-theme="light"] .stat-card-value { color: #121212; }
[data-theme="light"] .search-input { color: #121212; }

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--primary-hover);
}

/* Layout Containers */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

/* Navigation Bar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #0a0a0c;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(242, 107, 33, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 107, 33, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: rgba(255, 107, 53, 0.1);
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    opacity: 0.9;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    aspect-ratio: 1;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: rgba(247, 183, 49, 0.15);
    color: var(--accent);
    border: 1px solid rgba(247, 183, 49, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Landing View */
.hero-section {
    padding: 5rem 1.5rem 4rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at 30% 20%, rgba(242, 107, 33, 0.08), transparent 40%), 
                radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.05), transparent 50%),
                linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
}

/* Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Stats Strip */
.stats-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.stat-item {
    flex: 1 1 200px;
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Section Title */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-top: 0.25rem;
    border-radius: 2px;
}

/* Restaurant Cards Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 3rem 1.5rem;
}

.restaurant-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow);
}

.restaurant-card-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #2a2d3d, #14151b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow);
}

.restaurant-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.restaurant-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.restaurant-card-name {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.restaurant-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.stars-rating {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    gap: 0.15rem;
}

.restaurant-card-cuisine {
    background: var(--bg-input);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: auto;
    width: fit-content;
}

/* Restaurant Details Header */
.restaurant-details-header {
    background: linear-gradient(180deg, rgba(7, 26, 17, 0.4), var(--bg-primary)), radial-gradient(circle at top, rgba(207,168,83,0.1), transparent 70%);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.restaurant-logo-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.restaurant-name-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.restaurant-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.restaurant-meta-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
}

.restaurant-meta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Tab Navigation */
.tabs-nav {
    display: flex;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: 14px;
    margin: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    gap: 0.25rem;
}

/* Hide scrollbar for tabs */
.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1 0 auto;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tab-content {
    padding: 0 1.5rem 5rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

/* Dishes Grid */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dish-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dish-img-container {
    height: 160px;
    position: relative;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-price-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(4, 16, 10, 0.85);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    border: 1px solid rgba(242, 107, 33, 0.3);
}

.dish-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dish-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.dish-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Cart Panel & Checkout */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-input);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 15px;
    text-align: center;
}

.cart-total-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cart-total-price {
    color: var(--primary);
}

/* Checkout Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-label span.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Radio Cards (Delivery Mode) */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.delivery-radio-card {
    position: relative;
}

.delivery-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
}

.delivery-radio-card input[type="radio"]:checked + .delivery-card-content {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
    color: var(--primary);
}

.delivery-icon {
    font-size: 1.25rem;
}

/* Floating Cart Bar */
.floating-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 90;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease;
}

.floating-cart-info {
    display: flex;
    flex-direction: column;
}

.floating-cart-qty {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.floating-cart-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

/* Group Order UI */
.group-setup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

.group-setup-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.group-active-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group-share-box {
    background: var(--bg-card);
    border: 1px dashed var(--primary);
    padding: 1rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.group-share-link {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-participants {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.participant-choice {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Review System */
.reviews-summary {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 20px;
    align-items: center;
    margin-bottom: 2rem;
}

.rating-big-box {
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.rating-big-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-comment {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.review-reply {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-left: 3.5px solid var(--primary);
    border-radius: 4px 10px 10px 4px;
    font-size: 0.8rem;
}

.review-reply-author {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stars-selector {
    display: flex;
    gap: 0.35rem;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.stars-selector span.active {
    color: var(--accent);
}

/* Modal / Feedback screens */
.confirmation-screen {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    animation: scaleIn 0.3s ease;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: pop 0.5s ease;
}

/* Partner Registration & Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sidebar-btn:hover, .sidebar-btn.active {
    background: var(--bg-card);
    color: var(--primary);
}

.dashboard-content {
    padding: 2rem;
    overflow-y: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.stat-card-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Orders Dashboard List */
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
    position: relative;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-item-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.list-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.list-item-details {
    font-size: 0.85rem;
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.list-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* QR Code Section */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 24px;
    max-width: 320px;
    margin: 2rem auto;
}

.qr-image {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Admin Dashboard Table */
.table-responsive {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Footer styling */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem 1rem;
        position: sticky;
        top: 60px;
        z-index: 80;
    }

    .sidebar-btn {
        width: auto;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    
    .dashboard-content {
        padding: 1.25rem;
    }

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

    .delivery-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tabs-nav {
        margin: 1rem 0.5rem;
    }
    
    .tab-content {
        padding: 0 0.5rem 5rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    .filter-bar { gap: 0.35rem; }
    .filter-btn { padding: 0.4rem 0.65rem; font-size: 0.7rem; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* Horizontal Carousel removed for Restaurants on Mobile */
    .restaurant-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 0.5rem 2rem 0.5rem;
        gap: 0.75rem;
    }
    .restaurant-card {
        scroll-snap-align: center;
    }
    .restaurant-card-header {
        height: 90px;
    }
    .restaurant-card-body {
        padding: 0.75rem;
    }
    .restaurant-card-name {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    .restaurant-card-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .restaurant-card-cuisine {
        font-size: 0.7rem;
        padding: 0.15rem 0.35rem;
    }
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-primary);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-spinner { position: relative; width: 80px; height: 80px; margin-bottom: 1.5rem; }
.spinner-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}
.spinner-logo {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.loading-text { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== TOAST REDESIGN ========== */
.toast-notification {
    position: fixed; top: 80px; right: 20px; z-index: 110;
    padding: 1rem 1.5rem; border-radius: 12px; font-weight: 600;
    box-shadow: var(--shadow); animation: fadeIn 0.3s ease;
    max-width: 340px;
}

/* ========== BACK BUTTON ========== */
.back-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; margin: 1rem 1.5rem 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-secondary);
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: var(--transition-smooth);
}
.back-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ========== CATEGORY FILTER BAR ========== */
.filter-bar {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.5rem; margin-bottom: 2rem; padding: 0 1.5rem;
}
.filter-btn {
    padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    font-weight: 600; font-size: 0.8rem; cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ========== SORT SELECTOR ========== */
.sort-bar {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 0.5rem; padding: 0 1.5rem; margin-bottom: 1rem;
}
.sort-bar label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
.sort-select {
    padding: 0.4rem 0.75rem; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 0.8rem; font-weight: 600;
    cursor: pointer;
}

/* ========== TABS SCROLL INDICATOR ========== */
.tabs-nav {
    position: relative;
    -ms-overflow-style: none; scrollbar-width: none;
}
.tabs-nav::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0;
    width: 40px; pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg-secondary));
    border-radius: 0 14px 14px 0;
}

/* ========== HOW IT WORKS SECTION ========== */
.how-it-works { padding: 3rem 1.5rem; text-align: center; }
.how-it-works-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; max-width: 800px; margin: 2rem auto 0;
}
.how-step {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
}
.how-step:hover { transform: translateY(-4px); border-color: rgba(255,107,53,0.3); }
.how-step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.how-step-num {
    display: inline-block; background: var(--primary); color: #fff;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 0.8rem; font-weight: 800;
    line-height: 28px; margin-bottom: 0.75rem;
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.85rem; color: var(--text-secondary); }

/* ========== PRESENTATION / ABOUT SECTION ========== */
.presentation-section {
    padding: 3rem 1.5rem; text-align: center;
    background: radial-gradient(circle at bottom, rgba(255,107,53,0.05), transparent 60%);
}
.presentation-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem; max-width: 700px; margin: 2rem auto;
}
.pres-stat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.25rem;
}
.pres-stat-val { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.pres-stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }

/* ========== ENHANCED FOOTER ========== */
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; text-align: left; margin-bottom: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-title {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-primary); margin-bottom: 0.25rem;
}
.footer-col a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-col a:hover { color: var(--primary); }
.footer-brand { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.footer-about-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center;
}
footer { padding: 2.5rem 1.5rem 1.5rem; }

/* ========== THEME TOGGLE ========== */
.theme-toggle-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; border-radius: 10px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: var(--transition-smooth);
}
.theme-toggle-btn:hover { border-color: var(--primary); }

/* ========== CART PULSE ANIMATION ========== */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.cart-pulse { animation: cartPulse 0.4s ease; }

/* ========== RESTAURANT COVER IMAGE ========== */
.restaurant-card-header { overflow: hidden; }
.restaurant-card-cover {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.restaurant-card:hover .restaurant-card-cover { transform: scale(1.05); }

/* ========== CLIENT ORDER HISTORY ========== */
.history-mini { padding: 1rem 1.5rem; }
.history-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 0.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem;
}
.history-item-meta { color: var(--text-secondary); font-size: 0.75rem; }

/* ========== PHONE CALL BUTTON (ADMIN) ========== */
.call-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.75rem; border-radius: 8px;
    background: var(--success); color: #fff;
    font-weight: 600; font-size: 0.8rem;
    text-decoration: none; transition: var(--transition-smooth);
}
.call-btn:hover { opacity: 0.85; color: #fff; }

/* ========== SLUG AVAILABILITY BADGE ========== */
.slug-status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem;
}
.slug-status.available { color: var(--success); }
.slug-status.taken { color: var(--danger); }

/* ========== HERO SPLIT LAYOUT & ANIMATIONS ========== */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem 0;
}

.hero-left-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animated-hero-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatIllustration 6s ease-in-out infinite;
}

.illustration-main-circle {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(255, 107, 53, 0.4) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 5;
    animation: pulseMainCircle 4s ease-in-out infinite;
}

.main-dish-emoji {
    font-size: 5.5rem;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
    animation: spinDish 25s linear infinite;
    display: inline-block;
}

.floating-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 107, 53, 0.2);
    z-index: 1;
}

.ring-1 {
    width: 240px;
    height: 240px;
    animation: spinClockwise 25s linear infinite;
}

.ring-2 {
    width: 280px;
    height: 280px;
    border-color: rgba(255, 255, 255, 0.08);
    animation: spinCounterClockwise 35s linear infinite;
}

.orbiting-item {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    z-index: 10;
    animation: floatOrbiting 4s ease-in-out infinite;
}

.orbit-1 {
    top: 15%;
    left: -10%;
    color: var(--accent);
    animation-delay: 0s;
}

.orbit-2 {
    bottom: 15%;
    left: -5%;
    color: var(--success);
    animation-delay: 1s;
}

.orbit-3 {
    top: 25%;
    right: -10%;
    color: var(--primary);
    border-color: rgba(255, 107, 53, 0.3);
    animation-delay: 2s;
}

.orbit-4 {
    bottom: 20%;
    right: -5%;
    color: #ffb800;
    animation-delay: 1.5s;
}

@keyframes floatIllustration {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulseMainCircle {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5); }
}

@keyframes spinDish {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes floatOrbiting {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-left-col {
        order: -1;
        height: 280px;
    }
    
    .hero-right-col {
        align-items: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 1.5rem auto;
    }
    
    .search-container, .stats-strip {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========== CLIENT BENEFITS GRID ========== */
.client-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 1.5rem auto 0 auto;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.benefit-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== ANIMATED CHART ========== */
.stats-dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    align-items: center;
}

.stats-dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-mini-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stats-dashboard-chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.svg-chart-container {
    width: 100%;
    overflow: hidden;
}

.animated-svg-chart {
    width: 100%;
    height: auto;
}

.chart-line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-area-path {
    opacity: 0;
    animation: fadeInArea 2s ease-out 2s forwards;
}

.chart-point {
    opacity: 0;
    animation: fadeInPoint 0.5s ease-out 3.2s forwards;
}

.chart-point-ring {
    opacity: 0;
    transform-origin: 440px 30px;
    animation: pulseRing 2s infinite 3.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
    to { opacity: 0.15; }
}

@keyframes fadeInPoint {
    to { opacity: 1; }
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

@media (max-width: 768px) {
    .stats-dashboard-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== PAGE TRANSITIONS ========== */
.page-transition {
    animation: pageFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ========== PROFESSIONAL DASHBOARD ENHANCEMENTS ========== */
.stats-grid .stat-card {
    transition: var(--transition-smooth);
}
.stats-grid .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.dashboard-list-item {
    transition: var(--transition-smooth);
}
.dashboard-list-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 107, 53, 0.3);
}
#manual-reservation-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 53, 0.2);
}
#dish-image-preview-container {
    animation: pageFadeIn 0.3s ease;
}

/* ========== SUPER-ADMIN PREMIUM STYLES ========== */
.admin-table tbody tr {
    transition: var(--transition-smooth);
}
.admin-table tbody tr:hover {
    background: rgba(242, 107, 33, 0.06);
}
.admin-table td {
    vertical-align: middle;
}
.admin-table td .btn {
    margin-right: 0.25rem;
}

/* ========== NAVBAR & HERO RE-DESIGN (Inspiration Reference) ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop-links {
    display: flex;
    gap: 1.5rem;
}

.nav-desktop-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-desktop-links a:hover {
    color: var(--primary);
}

/* Logo placement at center on desktop */
@media (min-width: 769px) {
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
    transition: var(--transition-smooth);
}

.mobile-drawer.active {
    left: 0;
}

.close-drawer-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    cursor: pointer;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-links a {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: var(--font-serif);
    transition: var(--transition-smooth);
}

.drawer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 16, 10, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    transition: var(--transition-smooth);
}

.drawer-backdrop.active {
    display: block;
}

/* ========== HERO SPLIT LAYOUT ========== */
.hero-split-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-food-plate-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: relative;
    padding: 8px;
    background: radial-gradient(circle, rgba(242, 107, 33, 0.25) 0%, transparent 70%);
}

.hero-food-plate {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    animation: rotateSlowly 30s linear infinite;
}

@keyframes rotateSlowly {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glow-effect {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(242, 107, 33, 0.3);
    pointer-events: none;
}

/* ========== REFERENCE PAGE SECTIONS LAYOUTS ========== */
/* A Row of 3 Cards (Middle Card is an Image) */
.reference-row-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.ref-card-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.ref-card-text:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.ref-card-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    background: rgba(242, 107, 33, 0.05);
}

.ref-card-text h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.ref-card-text p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ref-card-image-box {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    position: relative;
    border: 1px solid var(--border);
}

.ref-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.ref-card-image-box:hover img {
    transform: scale(1.06);
}

/* Side by Side layout: Image left, content right */
.side-by-side-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 4.5rem auto;
    padding: 0 1.5rem;
    align-items: center;
}

.side-img-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
    box-shadow: var(--shadow);
}

.side-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-content {
    text-align: left;
}

.side-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.side-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Section Signature: List Left, Big Dish Picture Right */
.signature-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    align-items: center;
}

.sig-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.sig-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.sig-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.sig-item-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
}

.sig-item-body h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.sig-item-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sig-img-container {
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sig-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Media Queries adjustments */
@media (max-width: 768px) {
    .nav-desktop-links {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .logo-container {
        position: static;
        transform: none;
    }
    
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-left-col {
        align-items: center;
        
    }
    
    .hero-food-plate-container {
        width: 250px;
        height: 250px;
    }

    .hero-right-col {
        margin-top: 6rem !important;
        margin-bottom: 2rem;
    }
    
    .reference-row-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .side-by-side-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .side-img-box {
        order: -1;
        height: 240px;
    }
    
    .signature-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem auto;
    }
    
    .sig-img-container {
        height: 180px;
    }
    .sig-item {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        border-radius: 10px;
    }
    .sig-item-num {
        font-size: 1.2rem;
    }
    .sig-item-body h4 {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    .sig-item-body p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    /* Onboarding steps displayed as a 2x2 grid on mobile */
    .timeline-steps {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        overflow-x: visible !important;
    }
    .timeline-card {
        flex: none !important;
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        text-align: center !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .timeline-badge {
        position: static !important;
        margin: 0 auto 0.5rem auto !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .timeline-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .timeline-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }
    .timeline-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .study-split-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .study-left-col {
        padding: 1.25rem !important;
        border-radius: 20px !important;
        order: 1 !important;
    }
    .study-right-col {
        order: 2 !important;
    }
    .study-carousel-wrapper, .solution-carousel-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        padding: 0 !important;
        margin-top: 1rem !important;
    }
    .study-carousel-wrapper::-webkit-scrollbar, .solution-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    .square-stat-card, .solution-feature-card {
        padding: 0.85rem 0.25rem !important;
        border-radius: 12px !important;
        aspect-ratio: 1 / 1 !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }
    .square-stat-card .stat-number {
        font-size: 1.3rem !important;
        margin-bottom: 0.25rem !important;
    }
    .square-stat-card .stat-label {
        font-size: 0.62rem !important;
    }
    .solution-icon {
        font-size: 1.4rem !important;
        margin-bottom: 0.35rem !important;
    }
    .solution-feature-card h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0.15rem;
    }
    .solution-feature-card p {
        display: none !important; /* Hide long text on small screens inside square cards */
    }
    .study-metric-text h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.15rem;
    }
    .study-metric-text p {
        font-size: 0.75rem !important;
    }
}

/* ========== COMPTABILITÉ SIDEBAR TAB BUTTON ========== */
.sidebar-btn[onclick*="accounting"] {
    position: relative;
}
.sidebar-btn[onclick*="accounting"]::after {
    content: "NOUVEAU";
    position: absolute;
    top: -4px;
    right: 4px;
    background: linear-gradient(135deg, #ff6b35, #f26b21);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ========== COMPTABILITÉ SPACE STYLING ========== */
.accounting-dashboard {
    animation: fadeIn 0.5s ease-out;
}
.accounting-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.accounting-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
}
.accounting-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.accounting-card-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.accounting-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-serif);
    color: #fff;
}
.accounting-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.accounting-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.accounting-search {
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-sans);
    min-width: 250px;
    font-size: 0.9rem;
}
.accounting-search:focus {
    border-color: var(--primary);
    outline: none;
}
.table-responsive-accounting {
    max-height: 400px;
    overflow-y: auto;
}

/* ========== PREMIUM ANIMATED HOW-IT-WORKS SECTION ========== */
.how-it-works-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.hw-tab-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hw-tab-btn:hover {
    border-color: var(--primary);
    color: #fff;
}
.hw-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #0a0a0c;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(242, 107, 33, 0.3);
}
.hw-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out forwards;
}
.hw-tab-content.active {
    display: block;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 2.2rem 1.8rem;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition-smooth);
}
.timeline-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(242, 107, 33, 0.08);
}
.timeline-card:hover::before {
    opacity: 1;
}
.timeline-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(207,168,83,0.1);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}
.timeline-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
.timeline-card:hover .timeline-icon {
    transform: scale(1.15) rotate(5deg);
}
.timeline-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}
.timeline-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== FIELD STUDY & SOLUTION SECTION ========== */
.field-study-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.field-study-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(207,168,83,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.study-title-tag {
    background: rgba(242, 107, 33, 0.1);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}
.study-subtitle {
    max-width: 600px;
    margin: 0.5rem auto 3rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.study-split-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    align-items: stretch;
}
.study-left-col, .study-right-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.study-carousel-wrapper, .solution-carousel-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.square-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0.75rem !important;
    aspect-ratio: 1 / 1;
    background: var(--bg-input) !important;
    border: 1px solid rgba(255,255,255,0.03) !important;
    border-radius: 20px;
    margin-bottom: 0 !important;
    transition: var(--transition-smooth) !important;
}
.square-stat-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary) !important;
    background: rgba(242, 107, 33, 0.05) !important;
    box-shadow: 0 8px 24px rgba(242, 107, 33, 0.08);
}
.square-stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}
.square-stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}
.study-metric-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-serif);
    min-width: 80px;
}
.study-metric-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}
.study-metric-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.solution-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    transition: var(--transition-smooth);
}
.solution-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.solution-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}
.solution-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    color: #fff;
}
.solution-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================= */
/* Responsive Dashboard Adjustments          */
/* ========================================= */
@media (max-width: 768px) {
    /* Make the dashboard layout a single column */
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    /* Transform the sidebar into a horizontal scrollable menu */
    .sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for a cleaner look */
        scrollbar-width: none; 
    }
    .sidebar::-webkit-scrollbar {
        display: none;
    }

    /* Adjust sidebar buttons for horizontal scroll */
    .sidebar-btn {
        flex: 0 0 auto;
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    /* Reduce padding on main dashboard content */
    .dashboard-content {
        padding: 1rem;
    }

    /* Make accounting stats grid single column */
    .accounting-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Ensure tables can be scrolled horizontally */
    .table-responsive, .table-responsive-accounting {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px; /* Force table to have min width so it scrolls instead of shrinking text */
    }

    .admin-table th, .admin-table td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Stack settings toggles or large flex headers */
    .dashboard-header-actions,
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header input {
        width: 100%;
    }
}






.map-label {
    background: white;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-weight: bold;
    padding: 2px 5px;
    color: var(--text-primary);
}

#catalog-section { padding-top: 2rem; margin-top: 2rem; position: relative; z-index: 10; }
@media (max-width: 768px) { .hero-right-col > div { width: 180px !important; height: 180px !important; } .hero-right-col { margin-bottom: 2rem; } }
