/* =============================================
   BELLA VISTA — Soft UI / Pastel Design System
   ============================================= */
:root {
    --bg-page:       #F6E8E5;
    --bg-card:       #FFFFFF;
    --bg-input:      #FEF5F3;
    --bg-nav:        #FFFFFF;

    --color-primary:       #D4907E;
    --color-primary-dark:  #B5725E;
    --color-primary-light: #F2C5B8;
    --color-primary-pale:  #FAF0EE;

    --color-secondary: #A8C5A0;
    --color-accent:    #9BB5D0;
    --color-warning:   #E8C98A;
    --color-danger:    #E89490;
    --color-info:      #96BFD8;

    --text-dark:   #3D3D3D;
    --text-medium: #5A5A5A;
    --text-muted:  #9A9A9A;
    --text-light:  #C0C0C0;

    --border-color: #F0D5CF;
    --border-input: #E8C5BE;

    --shadow-sm:  0 2px 8px rgba(212,144,126,.10);
    --shadow-md:  0 4px 20px rgba(212,144,126,.14);
    --shadow-lg:  0 8px 32px rgba(212,144,126,.18);
    --shadow-hover: 0 10px 36px rgba(212,144,126,.22);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;

    --table-free:   #B8E0B3;
    --table-busy:   #F5B0A8;
    --table-booked: #F5E0A8;
    --table-free-border:   #7DC876;
    --table-busy-border:   #E07068;
    --table-booked-border: #E8C050;

    --transition: all .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

img { max-width: 100%; }

/* ============ NAVBAR ============ */
.navbar {
    background: var(--bg-nav);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.3px;
}
.brand-icon { font-size: 26px; }
.brand-name { background: linear-gradient(135deg, var(--color-primary), #B07060); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    background: var(--color-primary-pale);
    color: var(--color-primary);
}
.nav-icon { font-size: 15px; }

.cart-link { position: relative; }
.cart-badge {
    position: absolute;
    top: 2px; right: 4px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}

.nav-profile { margin-left: 4px; }
.profile-link { gap: 8px; }
.avatar-sm {
    width: 32px; height: 32px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}

.nav-logout {
    color: var(--color-danger) !important;
}
.nav-logout:hover { background: #FEE8E8 !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ MAIN CONTENT ============ */
.main-content { flex: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.container-sm {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}
.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(212,144,126,.35);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(212,144,126,.45);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-medium);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-success {
    background: linear-gradient(135deg, #7DC876, #5FAD58);
    color: #fff;
    box-shadow: 0 4px 15px rgba(125,200,118,.3);
}
.btn-success:hover:not(:disabled) { transform: translateY(-1px); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #C86060);
    color: #fff;
}
.btn-danger:hover:not(:disabled) { transform: translateY(-1px); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary-light);
}
.btn-outline:hover:not(:disabled) {
    background: var(--color-primary-pale);
    border-color: var(--color-primary);
}

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}
.btn-icon:hover { background: var(--color-primary-pale); color: var(--color-primary); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-medium);
}
.form-label span { color: var(--color-danger); margin-left: 2px; }

.form-control, .form-select {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    appearance: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212,144,126,.15);
}
.form-control::placeholder { color: var(--text-light); }

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

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

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-warning   { background: #FDF5DC; color: #9A7820; }
.badge-success   { background: #E4F5E2; color: #3D7A38; }
.badge-danger    { background: #FDE8E8; color: #9A3030; }
.badge-secondary { background: #EEE; color: #666; }
.badge-primary   { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.badge-info      { background: #DFF0F8; color: #2C6A88; }

/* ============ ALERTS ============ */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success { background: #E4F5E2; color: #3D7A38; border-left: 4px solid #7DC876; }
.alert-error   { background: #FDE8E8; color: #9A3030; border-left: 4px solid var(--color-danger); }
.alert-warning { background: #FDF5DC; color: #9A7820; border-left: 4px solid var(--color-warning); }
.alert-info    { background: #DFF0F8; color: #2C6A88; border-left: 4px solid var(--color-info); }

/* ============ PAGE HEADERS ============ */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-pale), var(--bg-page));
    padding: 40px 24px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.page-header p { color: var(--text-muted); font-size: 16px; }

/* ============ SECTION TITLES ============ */
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

/* ============ GRID LAYOUTS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, #FAF0EE 0%, #F6E8E5 50%, #EDD8D5 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(212,144,126,.08) 0%, transparent 70%);
}
.hero-badge {
    display: inline-block;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid var(--color-primary-light);
}
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 18px;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--color-primary), #A86050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p  { font-size: 13px; color: var(--text-muted); }

/* ============ RESTAURANT MAP ============ */
.restaurant-map-wrap {
    background: linear-gradient(135deg, #FDF5F3, #F8EDEB);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}
.map-title {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.map-entrance {
    text-align: center;
    margin-bottom: 16px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-xs);
    font-size: 12px;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.table-cell {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 700;
    position: relative;
    padding: 8px;
    min-height: 80px;
    user-select: none;
}
.table-cell .t-number { font-size: 18px; font-weight: 800; }
.table-cell .t-cap    { font-size: 11px; opacity: .8; }
.table-cell .t-emoji  { font-size: 11px; position: absolute; top: 5px; right: 7px; }

.table-free {
    background: var(--table-free);
    border-color: var(--table-free-border);
    color: #2A6A26;
}
.table-free:hover { transform: scale(1.06); box-shadow: var(--shadow-md); filter: brightness(1.04); }

.table-busy {
    background: var(--table-busy);
    border-color: var(--table-busy-border);
    color: #8A2A2A;
    cursor: not-allowed;
    opacity: .85;
}

.table-booked {
    background: var(--table-booked);
    border-color: var(--table-booked-border);
    color: #7A5810;
    cursor: not-allowed;
    opacity: .85;
}

.table-cell.selected {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

.map-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 600;
}
.legend-dot {
    width: 14px; height: 14px;
    border-radius: 4px;
}
.legend-dot.free   { background: var(--table-free); border: 1.5px solid var(--table-free-border); }
.legend-dot.busy   { background: var(--table-busy); border: 1.5px solid var(--table-busy-border); }
.legend-dot.booked { background: var(--table-booked); border: 1.5px solid var(--table-booked-border); }

/* ============ MENU CARDS ============ */
.menu-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 9px 18px;
    border-radius: 20px;
    border: none;
    background: var(--bg-card);
    color: var(--text-medium);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: 1.5px solid var(--border-color);
    display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover, .tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.dish-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.dish-img {
    height: 160px;
    background: linear-gradient(135deg, var(--color-primary-pale), #F0D8D4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.dish-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.dish-category-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dish-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}
.dish-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dish-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-light);
    background: var(--color-primary-pale);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.qty-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-dark);
}

/* ============ SEARCH BAR ============ */
.search-wrap {
    position: relative;
    margin-bottom: 24px;
}
.search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212,144,126,.12);
}
.search-input::placeholder { color: var(--text-light); }

/* ============ CART ============ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-emoji { font-size: 36px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-item-total { font-size: 15px; font-weight: 800; color: var(--color-primary-dark); min-width: 80px; text-align: right; }

.cart-summary {
    background: var(--color-primary-pale);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    border: 1px solid var(--color-primary-light);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 8px;
}
.cart-summary-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary-dark);
    padding-top: 12px;
    border-top: 1px solid var(--color-primary-light);
}

/* ============ ORDER STATUS STEPPER ============ */
.order-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 16px 0;
    flex-wrap: wrap;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    flex: 1;
    min-width: 60px;
}
.step-item::after {
    content: '';
    position: absolute;
    top: 16px; left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}
.step-item:last-child::after { display: none; }

.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 800;
    z-index: 1;
    position: relative;
    transition: var(--transition);
}
.step-item.done .step-dot   { background: var(--color-secondary); color: #2A6A26; }
.step-item.active .step-dot { background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(212,144,126,.35); }
.step-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-align: center; }
.step-item.active .step-label { color: var(--color-primary); font-weight: 700; }
.step-item.done .step-label  { color: var(--color-secondary); }

/* ============ ORDERS LIST ============ */
.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 16px;
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    flex-wrap: wrap;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border-color);
}
.order-num { font-weight: 800; color: var(--text-dark); font-size: 15px; }
.order-meta { color: var(--text-muted); font-size: 13px; }
.order-card-body {
    padding: 16px 20px;
    display: none;
}
.order-card-body.show { display: block; }

/* ============ REVIEWS ============ */
.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-author { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.review-date   { font-size: 12px; color: var(--text-muted); }
.review-text   { font-size: 14px; color: var(--text-medium); line-height: 1.6; margin-top: 8px; }

.star { font-size: 18px; color: var(--text-light); }
.star.filled { color: #F0C040; }
.star-select-wrap { display: flex; gap: 4px; cursor: pointer; }
.star-select-wrap .star { font-size: 28px; transition: var(--transition); }
.star-select-wrap .star:hover,
.star-select-wrap .star.active { color: #F0C040; transform: scale(1.1); }

/* ============ DASHBOARD ============ */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 14px;
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-icon.coral  { background: var(--color-primary-pale); }
.stat-icon.green  { background: #E4F5E2; }
.stat-icon.blue   { background: #DFF0F8; }
.stat-icon.yellow { background: #FDF5DC; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ============ ADMIN SIDEBAR ============ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 66px); }
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    position: sticky;
    top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
}
.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 12px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.admin-main { padding: 32px; background: var(--bg-page); }

/* ============ TABLE (HTML table) ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    background: var(--bg-page);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-primary-pale); }

/* ============ STATS BAR CHART ============ */
.bar-chart { padding: 16px 0; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar-label { font-size: 13px; color: var(--text-medium); font-weight: 600; width: 130px; flex-shrink: 0; text-align: right; }
.bar-track { flex: 1; background: var(--border-color); border-radius: 20px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary)); transition: width .6s ease; }
.bar-value { font-size: 13px; font-weight: 700; color: var(--color-primary-dark); min-width: 60px; }

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(61,61,61,.45);
    backdrop-filter: blur(3px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    transform: translateY(20px); transition: transform .22s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 20px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal-close:hover { color: var(--color-danger); }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; opacity: .6; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--text-medium); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-medium);
    font-weight: 700; font-size: 13px;
    cursor: pointer; transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 320px;
}
.toast {
    background: var(--text-dark);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    animation: slideInRight .3s ease;
}
.toast.success { background: #3D7A38; }
.toast.error   { background: #9A3030; }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ============ BOOKING STEPS ============ */
.booking-steps { display: flex; gap: 0; margin-bottom: 32px; }
.booking-step-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative;
}
.booking-step-item::after {
    content: ''; position: absolute; top: 18px; left: 50%;
    width: 100%; height: 2px; background: var(--border-color);
}
.booking-step-item:last-child::after { display: none; }
.step-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--border-color); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; z-index: 1; position: relative;
    transition: var(--transition);
}
.booking-step-item.done .step-num   { background: var(--color-secondary); color: #2A6A26; }
.booking-step-item.active .step-num { background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(212,144,126,.35); }
.step-text { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; }
.booking-step-item.active .step-text { color: var(--color-primary); }

/* ============ AVAILABILITY BANNER ============ */
.avail-banner {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px 0;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
    padding-bottom: 32px;
}
.footer-brand .brand-name { font-size: 20px; font-weight: 800; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.footer-bottom {
    text-align: center; padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px; color: var(--text-muted);
}

/* ============ UTILITIES ============ */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted) !important; }
.text-primary  { color: var(--color-primary) !important; }
.text-success  { color: #3D7A38 !important; }
.text-danger   { color: #9A3030 !important; }
.fw-bold       { font-weight: 700; }
.fw-black      { font-weight: 800; }
.fs-sm         { font-size: 13px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.d-flex  { display: flex; }
.gap-1   { gap: 8px; }
.gap-2   { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1  { flex: 1; }

.divider {
    height: 1px; background: var(--border-color);
    margin: 20px 0;
}

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px;
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
    font-size: 12px; font-weight: 700;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg-nav); border-bottom: 1px solid var(--border-color); padding: 16px; gap: 6px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; }
    .sidebar-link { border-left: none; border-radius: var(--radius-xs); }

    .footer-container { grid-template-columns: 1fr; gap: 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .tables-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .hero { padding: 50px 16px; }
    .container, .container-sm { padding: 20px 16px; }
    .tables-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .table-cell { min-height: 65px; }
    .table-cell .t-number { font-size: 15px; }
    .page-header { padding: 28px 16px; }
    .page-header h1 { font-size: 24px; }
    .dishes-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .admin-main { padding: 16px; }
}
