/* assets/css/style.css */
/* Premium CSS Design System with Glassmorphism, Micro-Animations, and Responsive Layouts */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #ece9e6;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --bg-card: #f8f2e6;
    --border-color: #d8cfc5;
    --border-color-active: #b3a290;

    --text-primary: #493728;
    /*--text-secondary: #b3a290;*/
    --text-secondary: #575048;
    --text-muted: #d8cfc5;

    --color-primary: #493728;
    --color-primary-hover: #6a503a;
    --color-secondary: #a19384;
    --color-success: #56ad6a;
    --color-danger: #d02e2e;
    --color-warning: #ecbd5e;

    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: #d8cfc5;
    --glass-blur: blur(16px);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Instrument Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, rgba(73, 55, 40, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(73, 55, 40, 0.02) 0px, transparent 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    outline: none;
    font-family: inherit;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(73, 55, 40, 0.15);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   CAPSULE (BALL-SHAPED) HEADER
   ========================================================================== */
.header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    pointer-events: none;
}

.main-header {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.main-header:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 0 20px rgba(73, 55, 40, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
}

.logo span {
    color: var(--color-primary);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Header Navigation */
.desktop-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

#nav-menu {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(73, 55, 40, 0.05);
}

.nav-btn {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.nav-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 55, 40, 0.2);
}

.nav-btn-secondary {
    background: rgba(73, 55, 40, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-btn-secondary:hover {
    background: rgba(73, 55, 40, 0.1);
    border-color: var(--text-secondary);
}

.location-mobile {
    display: none;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Hamburger Open / Close Animation */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   APP PAGE SHELL & SPA CONTENT WRAPPER
   ========================================================================== */
#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.page-section {
    /* padding: 40px 20px; */
    padding: 10px 10px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn var(--transition-smooth) forwards;
}

/* ==========================================================================
   HOMEPAGE HERO & PUBLIC SECTIONS
   ========================================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-content h1 mark {
    background: transparent;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.search-container {
    background: var(--glass-bg);
    border: 1px solid #493728;
    padding: 6px;
    border-radius: var(--radius-full);
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.search-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(73, 55, 40, 0.1);
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#home-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(73, 55, 40, 0.12);
    z-index: 100;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.search-dropdown-loader {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-dropdown-loader i {
    margin-right: 8px;
}

.search-dropdown-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-dropdown-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    text-align: left;
}

.search-result-item:hover {
    background: rgba(73, 55, 40, 0.04);
}

.search-result-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.search-result-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    background: var(--color-primary-hover);
}

/* Feature stats */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--color-primary);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Featured cards mock graphics (hidden on centered hero) */
.hero-graphic {
    display: none;
}

/* Homepage Video Player Section */
.video-section {
    margin-bottom: 80px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
    background: var(--bg-surface-solid);
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(73,55,40,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.video-thumbnail.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 0;
}

.video-play-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #fff;
}

.video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

.glass-circle-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 189, 94, 0.15) 0%, rgba(73, 55, 40, 0.03) 70%);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 1;
}

.mock-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 340px;
    z-index: 2;
    transform: rotate(-3deg);
    transition: var(--transition-smooth);
}

.mock-card:hover {
    transform: rotate(0deg) scale(1.03);
    border-color: var(--border-color-active);
}

/* Why Choose Us Section */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-active);
    background: rgba(248, 242, 230, 0.8);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(73, 55, 40, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Featured Restaurants List */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 1025px) {
    .restaurants-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.restaurant-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-active);
    box-shadow: var(--shadow-md);
}

.restaurant-cover {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    position: relative;
}

.restaurant-badge-verified {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-success);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.restaurant-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-warning);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.restaurant-rating span.reviews-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.restaurant-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.restaurant-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    /*color: var(--text-muted);*/
    color: #49443f;
}

.restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Section Styling */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active {
    border-color: var(--border-color-active);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-icon {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* ==========================================================================
   AUTH PAGES (LOGIN & REGISTER)
   ========================================================================== */
.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 60px auto;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    min-width: 0;
    background: rgba(73, 55, 40, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    background: rgba(73, 55, 40, 0.05);
    box-shadow: 0 0 10px rgba(73, 55, 40, 0.06);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   DASHBOARD FRAMEWORKS (CUSTOMERS, OWNERS, ADMINS)
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin-bottom: 60px;
}

.dashboard-layout.full-width {
    max-width: 100% !important;
    padding-left: 4%;
    padding-right: 4%;
}

.btn-text-mobile {
    display: none;
}

.dashboard-mobile-toggle:hover {
    background: rgba(73, 55, 40, 0.08) !important;
    border-color: var(--border-color-active) !important;
}

.sidebar-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    position: sticky;
    top: 100px;
}

.dashboard-content .sidebar-card {
    position: relative !important;
    top: auto !important;
}

.sidebar-user {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    margin-top: 50px;
    text-align: center;
}

.sidebar-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 12px auto;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 1.1rem;
    word-break: break-all;
    margin-top: 10px;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(73, 55, 40, 0.08);
    color: var(--color-primary);
}

.dashboard-content {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    min-height: 500px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.dashboard-header h2 {
    font-size: 1.6rem;
}

/* System Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(73, 55, 40, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card.primary .stat-card-icon {
    background: rgba(73, 55, 40, 0.08);
    color: var(--color-primary);
}

.stat-card.success .stat-card-icon {
    background: rgba(86, 173, 106, 0.1);
    color: var(--color-success);
}

.stat-card.danger .stat-card-icon {
    background: rgba(208, 46, 46, 0.1);
    color: var(--color-danger);
}

.stat-card-info h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.stat-card-info p {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 4px;
}

/* ==========================================================================
   TABLES & REQUEST LISTS
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background: rgba(73, 55, 40, 0.01);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge.pending {
    background: rgba(236, 189, 94, 0.15);
    color: #a67c2e;
}

.badge.approved,
.badge.confirmed,
.badge.submitted {
    background: rgba(86, 173, 106, 0.15);
    color: #2d7a3e;
}

.badge.rejected,
.badge.cancelled {
    background: rgba(208, 46, 46, 0.15);
    color: #8b1a1a;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(73, 55, 40, 0.05);
}

.btn-icon.success:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border-color: var(--color-success);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

/* ==========================================================================
   PUBLIC MENU CARD STYLING (menu.php)
   ========================================================================== */
.menu-header-section {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.menu-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(73, 55, 40, 0.85) 15%, rgba(73, 55, 40, 0.3) 100%);
    z-index: 1;
}

.menu-header-details {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.menu-restaurant-info h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.restaurant-title-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.menu-restaurant-meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.menu-restaurant-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero section text colors (on dark overlay) */
.menu-header-details .nav-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-header-details .nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.menu-header-details .active-coupons-wrapper span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.menu-header-details .coupon-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.menu-header-details .coupon-badge i {
    color: #ffffff !important;
}

/* Restaurant Menu Slug Subnav */
.menu-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
}

.menu-tab-item {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.menu-tab-item:hover,
.menu-tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Menu Page Grid layout: Categories List + Foods List + Cart Sticky */
.menu-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 60px;
}

/* Category Filter Nav */
.menu-category-filter {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    position: sticky;
    top: 100px;
}

.menu-category-item {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 4px;
}

.menu-category-item:hover,
.menu-category-item.active {
    background: rgba(73, 55, 40, 0.08);
    color: var(--color-primary);
}

/* Food List Styles */
.menu-food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .menu-food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .menu-food-grid {
        grid-template-columns: 1fr;
    }
}

.food-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-active);
}

.food-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    cursor: pointer;
}

.food-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.food-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    cursor: pointer;
}

.food-name:hover {
    color: var(--color-primary);
}

.food-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.food-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.food-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.btn-add-cart {
    background: rgba(73, 55, 40, 0.08);
    color: var(--color-primary);
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-add-cart.ordered {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-add-cart.ordered:hover {
    background: rgba(73, 55, 40, 0.85);
    color: #ffffff;
}

/* Dynamic Checkout Sidebar */
.cart-sidebar {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md);
}

.main-header:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 0 20px rgba(73, 55, 40, 0.08);
}

.cart-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty-controls span {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: rgba(73, 55, 40, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.cart-qty-btn:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
}

.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
}

.coupon-section {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.coupon-input {
    flex: 1;
    background: rgba(73, 55, 40, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.coupon-btn {
    background: rgba(73, 55, 40, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.coupon-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Timer Countdown Cancel Styling */
.timer-container {
    background: rgba(208, 46, 46, 0.05);
    border: 1px dashed rgba(208, 46, 46, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.timer-text {
    font-weight: 600;
    color: var(--color-danger);
    font-size: 0.9rem;
}

/* ==========================================================================
   BLOGS, GALLERY, ABOUT, REVIEWS PUBLIC SUBPAGES
   ========================================================================== */
/* Blogs */
/* Blogs */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background-color: var(--bg-surface-solid);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

.blog-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-image {
    transform: scale(1.03);
}

.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(73, 55, 40, 0.9) 0%, rgba(73, 55, 40, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: background var(--transition-fast);
}

.blog-card:hover .blog-overlay {
    background: linear-gradient(to top, rgba(73, 55, 40, 0.95) 0%, rgba(73, 55, 40, 0.4) 60%, rgba(73, 55, 40, 0.05) 100%);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.blog-title {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-active);
}

.gallery-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.gallery-card:hover .gallery-photo {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(73, 55, 40, 0.8) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Spinner Loader Styling & Dashboard Animations */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    width: 100%;
}

.loading-spinner-container i {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Dashboard Fade In & Interactive Transitions */
#dashboard-content-panel>* {
    animation: dashboardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dashboardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-table tbody tr {
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.custom-table tbody tr:hover {
    background-color: rgba(73, 55, 40, 0.03) !important;
}

.nav-btn,
.btn-icon,
.btn-add-cart,
.sidebar-item {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:active,
.btn-icon:active,
.btn-add-cart:active {
    transform: scale(0.96);
}

/* Reviews Layout */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    align-items: center;
}

.rating-big-box {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}

.rating-number {
    font-size: 3.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-warning);
    font-weight: 800;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    font-size: 1rem;
}

.review-stars {
    color: var(--color-warning);
}

.review-food-tag {
    background: rgba(73, 55, 40, 0.06);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 10px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(73, 55, 40, 0.6);
    backdrop-filter: blur(4px);
    z-index: 300000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(73, 55, 40, 0.08);
    color: var(--text-primary);
}

.food-details-modal-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

/* ==========================================================================
   PRINTABLE RECEIPT STYLING
   ========================================================================== */
.invoice-print-area {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    .invoice-print-area,
    .invoice-print-area * {
        visibility: visible;
    }

    .invoice-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
        background: #fff !important;
        color: #000 !important;
        padding: 30px;
    }

    .invoice-receipt-card {
        border: none !important;
        box-shadow: none !important;
        color: #000 !important;
        background: #fff !important;
    }

    .invoice-receipt-card th {
        border-bottom: 2px solid #000 !important;
        color: #000 !important;
    }

    .invoice-receipt-card td {
        border-bottom: 1px solid #ddd !important;
        color: #000 !important;
    }

    .invoice-receipt-card .price-row {
        color: #000 !important;
    }
}

.invoice-receipt-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    color: var(--text-primary);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.invoice-header {
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.invoice-restaurant-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.invoice-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-items-table th,
.invoice-items-table td {
    padding: 10px 0;
    font-size: 0.9rem;
}

.invoice-items-table th {
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-secondary);
}

.invoice-items-table td.text-right,
.invoice-items-table th.text-right {
    text-align: right;
}

.invoice-summary-box {
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
}

.invoice-summary-row.grand-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}

.invoice-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 30px;
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGNS
   ========================================================================== */
@media (max-width: 1024px) {
    .menu-layout {
        grid-template-columns: 200px 1fr;
    }

    .cart-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1500;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        display: none;
        /* In Tablet/Mobile we can toggle cart modal overlay */
    }
}

@media (max-width: 1024px) {
    .desktop-nav-menu {
        display: none !important;
    }

    /* Mobile layouts */
    .hero-section {
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .search-container {
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-graphic {
        display: none;
        /* Hide graphic to save space */
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-mobile-toggle {
        display: inline-flex !important;
    }

    #dashboard-sidebar-card {
        position: fixed !important;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        background: var(--bg-surface-solid) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        transition: left var(--transition-smooth);
        border-right: 1px solid var(--border-color);
        border-radius: 0 !important;
        overflow-y: auto;
        padding: 70px 20px 20px 20px;
    }

    #dashboard-sidebar-card.open {
        left: 0 !important;
    }

    .menu-layout {
        grid-template-columns: 1fr;
    }

    .menu-category-filter {
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        white-space: nowrap;
        padding: 10px;
    }

    .menu-category-item {
        margin-bottom: 0;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rating-big-box {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
    }

    /* Hamburger activation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        background: rgba(73, 55, 40, 0.5);
        backdrop-filter: blur(8px);
        z-index: 2010;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 !important;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu-content {
        background: var(--bg-surface-solid);
        width: 100%;
        margin: 0;
        left: 0;
        right: 0;
        border-radius: 0 0 24px 24px;
        padding: 20px 24px 28px 24px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 8px 32px rgba(73, 55, 40, 0.15);
        transform: translateY(-100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        gap: 0;
        box-sizing: border-box;
    }

    .nav-menu.open .nav-menu-content {
        transform: translateY(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 2.2rem;
        cursor: pointer;
        padding: 4px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .mobile-menu-links .nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
        border-bottom: 1px solid rgba(73, 55, 40, 0.06);
        width: 100%;
        text-align: left;
        color: var(--text-secondary);
        display: block;
        transition: color 0.2s ease;
        background: none !important;
        border-radius: 0 !important;
    }

    .mobile-menu-links .nav-link:hover,
    .mobile-menu-links .nav-link.active {
        color: var(--text-primary);
    }

    #mobile-auth-links-mount {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    #mobile-auth-links-mount .nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
        border-bottom: 1px solid rgba(73, 55, 40, 0.06);
        width: 100%;
        text-align: left;
        color: var(--text-secondary);
        display: block;
    }

    #mobile-auth-links-mount .auth-btn-container {
        margin-top: 24px;
        width: 100%;
    }

    #mobile-auth-links-mount .auth-btn-container .nav-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        border-radius: var(--radius-full);
        text-align: center;
        display: block;
        box-sizing: border-box;
    }

    #auth-nav-links {
        display: none !important;
    }

    .menu-header-section {
        height: auto;
        min-height: 250px;
    }

    .menu-header-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .restaurant-title-heading {
        font-size: 1.8rem;
    }

    .menu-restaurant-meta {
        flex-direction: column;
        gap: 10px;
    }

    .location-mobile {
        display: inline-block !important;
    }

    .location-desktop {
        display: none !important;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(73, 55, 40, 0.3);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(73, 55, 40, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(73, 55, 40, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Cart Trigger & Badge Styles */
.cart-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    transition: var(--transition-fast);
    padding: 6px;
}

.cart-trigger:hover {
    transform: scale(1.08);
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-main);
}

/* Bottom Corner Upload Progress Card */
.upload-progress-card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(73, 55, 40, 0.12);
    padding: 16px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.upload-progress-card.show {
    transform: translateY(0);
    opacity: 1;
}

.progress-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.progress-popup-header i {
    color: var(--color-primary);
    margin-right: 6px;
}

.progress-pct {
    color: var(--color-primary);
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(73, 55, 40, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.1s ease-out;
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.profile-trigger:hover {
    background: rgba(73, 55, 40, 0.05);
}

.profile-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 1100;
    display: none;
    transform-origin: top right;
    animation: dropdown-fade-in 0.2s ease;
}

.profile-dropdown-menu.open {
    display: block;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dropdown-header {
    padding: 10px 16px;
}

.dropdown-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(73, 55, 40, 0.05);
    color: var(--color-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.dropdown-item.logout-item:hover {
    color: var(--color-danger);
}



/* Minimizable Sidebar Styles */
.dashboard-layout.collapsed {
    grid-template-columns: 80px minmax(0, 1fr) !important;
}

.dashboard-layout.collapsed #dashboard-sidebar-card {
    padding: 24px 8px;
}

.dashboard-layout.collapsed .sidebar-user-name,
.dashboard-layout.collapsed .sidebar-user-role,
.dashboard-layout.collapsed .sidebar-user-meta {
    display: none;
}

.dashboard-layout.collapsed .sidebar-user-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.dashboard-layout.collapsed .sidebar-user {
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.dashboard-layout.collapsed .sidebar-item {
    justify-content: center;
    padding: 12px 8px;
    font-size: 0;
}

.dashboard-layout.collapsed .sidebar-item i {
    font-size: 1.25rem;
    margin-right: 0;
}

.sidebar-collapse-toggle:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}

/* Hide collapse button on small screen layouts */
@media (max-width: 992px) {
    .sidebar-collapse-toggle {
        display: none !important;
    }
}

/* Restaurant Logo Text Responsive Styling */
.restaurant-logo-text {
    font-weight: 800;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: inline-block;
    vertical-align: middle;
}

/* User profile text trigger (hidden by default on big screens) */
.profile-trigger-name {
    display: none;
}

/* Owner Dashboard Status and Invoice Badges Uniform Sizing */
.owner-status-badge,
.owner-invoice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 20px !important;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    text-align: center;
    padding: 0 8px;
    line-height: 1;
}

.owner-status-badge.confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.owner-status-badge.pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border-color: #f1c40f;
}

.owner-status-badge.cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.owner-invoice-btn {
    background: rgba(73, 55, 40, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.owner-invoice-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Premium Native Time Input Icon Styling */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Dashboard Sidebar Overlay */
.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(73, 55, 40, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

@keyframes fadeInMobile {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Display Helpers */
.desktop-only-view {
    display: block !important;
}

.mobile-only-view {
    display: none !important;
}

/* Hide scrollbars for the items slider */
.items-slider::-webkit-scrollbar {
    display: none;
}

.items-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dashboard Grids */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-grid-unequal {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

/* Responsive Overrides for Mobile & Tablet viewports (<= 1024px) */
@media (max-width: 1024px) {

    .desktop-only-view {
        display: none !important;
    }

    .mobile-only-view {
        display: flex !important;
    }

    .dashboard-grid-2col,
    .dashboard-grid-unequal {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .dashboard-content .sidebar-card {
        position: relative !important;
        top: auto !important;
        padding: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    /* Disable translate transform on page-section to allow fixed positioning relative to viewport */
    .page-section {
        animation: fadeInMobile var(--transition-smooth) forwards !important;
        transform: none !important;
    }

    /* Dashboard Sidebar Overlay active state */
    .dashboard-sidebar-overlay.open {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Bigger Dashboard Menu Toggle Button and increased gap */
    .dashboard-mobile-toggle {
        display: flex !important;
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box !important;
        font-size: 1.15rem !important;
        gap: 16px !important;
        padding: 12px 20px !important;
    }

    .dashboard-mobile-toggle i {
        font-size: 1.25rem !important;
    }

    .restaurant-logo-text {
        font-size: 0.95rem;
        max-width: 110px;
    }

    .dashboard-content {
        padding: 16px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-order-card,
    .mobile-invoice-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .mobile-items-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }

    .items-slider {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-width: 0 !important;
    }

    .stats-row {
        grid-template-columns: 1fr !important;
    }

    /* Small Screen Text and Input Spacing Reductions */
    .dashboard-header h2 {
        font-size: 1.25rem !important;
    }

    .dashboard-header .nav-btn-secondary {
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }

    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }

    .form-group {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-control {
        font-size: 0.88rem !important;
        padding: 10px 12px !important;
    }

    input[type="time"],
    input[type="datetime-local"] {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    input[type="time"]::-webkit-date-and-time-value,
    input[type="datetime-local"]::-webkit-date-and-time-value {
        min-height: 1.5em !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #profile-cover-preview {
        max-width: 100% !important;
        height: auto !important;
        max-height: 120px !important;
        object-fit: cover !important;
    }

    #profile-cover-video-preview {
        max-width: 100% !important;
        height: auto !important;
        max-height: 120px !important;
        object-fit: cover !important;
    }

    .btn-text-desktop {
        display: none !important;
    }

    .btn-text-mobile {
        display: inline !important;
    }

    .custom-table th,
    .custom-table td {
        padding: 10px 8px !important;
        font-size: 0.82rem !important;
    }

    /* =====================================================
       BOTTOM-SHEET MODAL (Mobile & Tablet Only)
       Like Foodpanda — slides up from the bottom smoothly.
       Uses !important to override inline styles on elements.
       ===================================================== */

    /* Overlay: anchor content to the very bottom of the viewport */
    #global-modal.modal-overlay,
    #cart-drawer-modal.modal-overlay,
    #auth-modal.modal-overlay,
    #blog-drawer-modal.modal-overlay,
    #support-chat-modal.modal-overlay,
    #admin-support-chat-modal.modal-overlay {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 300000 !important;
    }

    /* Modal content: full-width bottom sheet flush to the bottom edge */
    #global-modal.modal-overlay>.modal-content,
    #cart-drawer-modal.modal-overlay>.modal-content,
    #auth-modal.modal-overlay>.modal-content,
    #blog-drawer-modal.modal-overlay>.modal-content,
    #support-chat-modal.modal-overlay>.modal-content,
    #admin-support-chat-modal.modal-overlay>.modal-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px 20px 50px 20px !important;
        transform: translateY(100%);
        transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    }

    /* When open: slide up into view — slow and smooth */
    #global-modal.modal-overlay.open>.modal-content,
    #cart-drawer-modal.modal-overlay.open>.modal-content,
    #auth-modal.modal-overlay.open>.modal-content,
    #blog-drawer-modal.modal-overlay.open>.modal-content,
    #support-chat-modal.modal-overlay.open>.modal-content,
    #admin-support-chat-modal.modal-overlay.open>.modal-content {
        transform: translateY(0) !important;
    }

    /* Also slow down the overlay fade-in to match */
    #global-modal.modal-overlay,
    #cart-drawer-modal.modal-overlay,
    #auth-modal.modal-overlay,
    #blog-drawer-modal.modal-overlay,
    #support-chat-modal.modal-overlay,
    #admin-support-chat-modal.modal-overlay {
        transition: opacity 0.4s ease;
    }

    /* Drag handle indicator at the top of the bottom sheet */
    #global-modal.modal-overlay>.modal-content::before,
    #cart-drawer-modal.modal-overlay>.modal-content::before,
    #auth-modal.modal-overlay>.modal-content::before,
    #blog-drawer-modal.modal-overlay>.modal-content::before,
    #support-chat-modal.modal-overlay>.modal-content::before,
    #admin-support-chat-modal.modal-overlay>.modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(73, 55, 40, 0.2);
        border-radius: 4px;
        margin: 0 auto 14px auto;
        flex-shrink: 0;
    }

    /* Move close button to accommodate the drag handle */
    #global-modal.modal-overlay>.modal-content>.modal-close,
    #cart-drawer-modal.modal-overlay>.modal-content>.modal-close,
    #auth-modal.modal-overlay>.modal-content>.modal-close,
    #blog-drawer-modal.modal-overlay>.modal-content>.modal-close,
    #support-chat-modal.modal-overlay>.modal-content>.modal-close,
    #admin-support-chat-modal.modal-overlay>.modal-content>.modal-close {
        top: 12px;
        right: 14px;
    }

    /* Food detail image: slightly shorter on mobile bottom sheet */
    #global-modal .food-details-modal-image {
        height: 200px;
        border-radius: 12px;
    }

    /* Mobile/Tablet Auth Container Bottom-Sheet Animation */
    .auth-container {
        position: fixed !important;
        left: 0 !important;
        bottom: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        padding: 20px 20px 50px 20px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4) !important;
        background: var(--bg-surface-solid) !important;
        z-index: 300000 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        transform: translateY(100%);
        animation: authSlideUp 0.55s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    /* Drag handle indicator at the top of the auth sheet */
    .auth-container::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(73, 55, 40, 0.2);
        border-radius: 4px;
        margin: 0 auto 20px auto;
        flex-shrink: 0;
    }
}

/* Global Keyframe for Auth Slide Up Animation */
@keyframes authSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Hide gray scrollbar highlights for horizontal overflow containers */
.menu-tab-nav::-webkit-scrollbar,
.menu-category-filter::-webkit-scrollbar {
    display: none !important;
}

.menu-tab-nav,
.menu-category-filter {
    -ms-overflow-style: none !important;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

/* Responsive About Text styles */
.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

@media (max-width: 1024px) {
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .about-info-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Premium File Selector Input Styling */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: var(--color-primary, #493728) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 14px !important;
    margin-right: 15px !important;
    border-radius: var(--radius-sm, 6px) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: var(--transition-fast, 0.15s) !important;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--color-primary-hover, #6a503a) !important;
    filter: brightness(1.05) !important;
}

/* Remove default blue outline focus on all inputs globally */
.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--color-primary, #ffffff) !important;
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important; */
}

/* YouTube-like Skeleton Shimmer */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(73, 55, 40, 0.04) 25%, rgba(73, 55, 40, 0.1) 50%, rgba(73, 55, 40, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
}

/* Professional Lazy Loading Image Styles */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img.lazy-load.loaded {
    opacity: 1;
}

.lazy-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(73, 55, 40, 0.04) 25%, rgba(73, 55, 40, 0.1) 50%, rgba(73, 55, 40, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
}

/* =====================================================
   ADMIN DASHBOARD RESPONSIVENESS (Mobile & Tablet)
   ===================================================== */
@media (max-width: 1024px) {
    #admin-support-layout {
        flex-direction: column !important;
    }

    #admin-support-conversations-list {
        width: 100% !important;
        max-height: 200px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    #admin-support-chat-window-pane {
        width: 100% !important;
        height: 380px !important;
    }

    .stats-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    .stat-card-icon {
        font-size: 1.6rem !important;
    }

    .stat-card-info p {
        font-size: 1.3rem !important;
    }

    .custom-table th,
    .custom-table td {
        font-size: 0.8rem !important;
        padding: 8px 6px !important;
    }

    /* Mobile Sidebar User Avatar & Info Styles */
    .sidebar-user {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 12px !important;
        margin-top: 20px !important;
        padding-bottom: 15px !important;
    }

    .sidebar-user-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .sidebar-user-meta {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .sidebar-user-name {
        font-size: 1.05rem !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
    }

    .sidebar-user-role {
        font-size: 0.7rem !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }
}

.social-round-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
    color: var(--text-primary, #ffffff) !important;
    font-size: 1.1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.social-round-icon:hover {
    transform: translateY(-3px) scale(1.1) !important;
    background: var(--color-primary, #493728) !important;
    border-color: var(--color-primary, #493728) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(73, 55, 40, 0.3) !important;
}

/* iOS Switch CSS */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(73, 55, 40, 0.1);
    transition: .4s;
    border-radius: 28px;
    border: 1.5px solid rgba(73, 55, 40, 0.15);
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2.5px;
    background-color: var(--bg-surface-solid);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(73, 55, 40, 0.15);
}

.ios-switch input:checked+.ios-slider {
    background-color: #34c759 !important;
    /* iOS green */
    border-color: #34c759 !important;
}

.ios-switch input:checked+.ios-slider:before {
    transform: translateX(22px);
}

/* Typing indicator for support chat */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px 10px 12px;
    margin-bottom: 4px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
}

/* Select dropdown background for dashboard */
select.form-control,
.form-control select {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control option,
.form-control select option {
    background: #ffffff;
    color: var(--text-primary);
}

/* AI Chatbot Widget Styles */
@keyframes chatbotSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chatbotSheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

#ai-chatbot-fab {
    background-color: #493728 !important;
    box-shadow: 0 4px 20px rgba(73, 55, 40, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ai-chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(73, 55, 40, 0.2);
}

#ai-chatbot-fab:active {
    transform: scale(0.95);
}

#ai-chatbot-panel,
#ai-chatbot-mobile-sheet {
    will-change: transform, opacity;
    background-color: #E8E6E2 !important;
    z-index: 200000 !important;
}

#ai-chatbot-overlay {
    z-index: 199999 !important;
}

#ai-chatbot-messages::-webkit-scrollbar,
#ai-chatbot-mobile-messages::-webkit-scrollbar {
    width: 4px;
}

#ai-chatbot-messages::-webkit-scrollbar-thumb,
#ai-chatbot-mobile-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Responsive: on small screens ensure the panel doesn't overflow */
@media (max-width: 480px) {
    #ai-chatbot-panel {
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        height: 60vh !important;
        bottom: 80px !important;
    }

    #ai-chatbot-fab {
        bottom: 16px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.1rem !important;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    margin-top: 80px;
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--color-primary);
    font-size: 1.4rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(73, 55, 40, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-contact li i {
    width: 16px;
    color: var(--color-primary);
    font-size: 0.85rem;
}

.footer-hours li {
    display: flex;
    gap: 6px;
    color: var(--text-secondary);
}

.footer-hours li span {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.footer-hours li span::after {
    content: "|";
    margin-left: 6px;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-inner {
        padding: 40px 20px 30px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}