/* ============================================
   FOODCOURT PREMIUM SaaS DESIGN SYSTEM
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #0F766E;
    --primary-light: #14B8A6;
    --primary-lighter: #CCFBF1;
    --primary-dark: #0D5F59;
    --accent: #F59E0B;
    --accent-light: #FDE68A;
    --accent-dark: #D97706;

    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #F1F5F9;
    --bg-muted: #E2E8F0;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 40px rgba(15,118,110,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='1.5' stroke-opacity='0.03'%3E%3Cpath d='M40 0C40 22.09 22.09 40 0 40C22.09 40 40 57.91 40 80C40 57.91 57.91 40 80 40C57.91 40 40 22.09 40 0ZM0 0C22.09 0 40 17.91 40 40C17.91 40 0 57.91 0 80C0 57.91 -17.91 40 -40 40C-17.91 40 0 22.09 0 0ZM80 0C102.09 0 120 17.91 120 40C97.91 40 80 57.91 80 80C80 57.91 62.09 40 40 40C62.09 40 80 22.09 80 0Z'/%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='80' cy='80' r='5'/%3E%3Ccircle cx='80' cy='0' r='5'/%3E%3Ccircle cx='0' cy='80' r='5'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ============================================
   USER-FACING PAGES
   ============================================ */

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 40%, #14B8A6 100%);
    padding: 80px 0 100px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-pattern {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-opacity='0.08'%3E%3Cpath d='M40 0C40 22.09 22.09 40 0 40C22.09 40 40 57.91 40 80C40 57.91 57.91 40 80 40C57.91 40 40 22.09 40 0ZM0 0C22.09 0 40 17.91 40 40C17.91 40 0 57.91 0 80C0 57.91 -17.91 40 -40 40C-17.91 40 0 22.09 0 0ZM80 0C102.09 0 120 17.91 120 40C97.91 40 80 57.91 80 80C80 57.91 62.09 40 40 40C62.09 40 80 22.09 80 0Z'/%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='80' cy='80' r='5'/%3E%3Ccircle cx='80' cy='0' r='5'/%3E%3Ccircle cx='0' cy='80' r='5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeDown 0.8s ease;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 auto 36px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeUp 0.8s ease 0.3s both;
    transition: box-shadow var(--transition);
}

.hero-search:focus-within {
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 28px;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search button {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background var(--transition);
    white-space: nowrap;
}

.hero-search button:hover { background: var(--primary-dark); }

.hero-search button svg { width: 18px; height: 18px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    opacity: 0.7;
    font-weight: 500;
}

/* --- Section Headers --- */
.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px; height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Tenant Grid (User) --- */
.tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tenant-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
}

.tenant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.tenant-card-banner {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #99F6E4 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; Dihapus agar logo bulat bisa keluar ke bawah */
}

.tenant-card-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(15,118,110,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tenant-card-banner svg {
    width: 48px; height: 48px;
    color: var(--primary);
    opacity: 0.3;
    position: relative; z-index: 1;
}

.tenant-card-logo {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 3px solid var(--bg-card);
    position: absolute;
    bottom: -32px;
    left: 24px;
    z-index: 3;
    box-shadow: var(--shadow-md);
    background: white;
}

.tenant-card-body {
    padding: 44px 24px 24px;
}

.tenant-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.tenant-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tenant-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tenant-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.tenant-card-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.tenant-card-count strong {
    color: var(--primary);
    font-weight: 700;
}

.tenant-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-lighter);
}

.tenant-card-btn:hover {
    background: var(--primary);
    color: white;
}

.tenant-card-btn svg { width: 14px; height: 14px; transition: transform var(--transition); }
.tenant-card-btn:hover svg { transform: translateX(2px); }

/* --- Tenant Detail Page --- */
.tenant-detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.tenant-detail-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.tenant-detail-inner {
    position: relative; z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    color: white;
}

.tenant-detail-logo {
    width: 90px; height: 90px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-lg);
    background: white;
    flex-shrink: 0;
}

.tenant-detail-info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.tenant-detail-info p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 500px;
}

.tenant-detail-back {
    position: absolute;
    top: 24px; left: 24px; z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.tenant-detail-back:hover {
    background: rgba(255,255,255,0.25);
}

.tenant-detail-back svg { width: 16px; height: 16px; }

/* --- Menu Grid --- */
.menu-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15,118,110,0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu-card-image {
    height: 200px;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.06);
}

.menu-card-image-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-muted) 100%);
}

.menu-card-image-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }
.menu-card-image-placeholder span { font-size: 12px; font-weight: 500; }

.menu-card-category-tag {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.menu-card-unavailable {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: #FEE2E2;
    color: #DC2626;
}

.menu-card-body {
    padding: 20px;
}

.menu-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.menu-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-price-tag {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.menu-price-tag small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.menu-card-available-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state svg {
    width: 80px; height: 80px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

.site-footer a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   ADMIN PANEL
   ============================================ */

/* --- Admin Layout --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: white;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.admin-sidebar-brand {
    padding: 0 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-brand h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-sidebar-brand span {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-nav {
    padding: 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.3);
    padding: 12px 16px 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.admin-nav a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15,118,110,0.4);
}

.admin-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }

.admin-nav-external {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg);
}

/* --- Admin Topbar --- */
.admin-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-hamburger {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.admin-hamburger:hover { background: var(--bg-elevated); }
.admin-hamburger svg { width: 22px; height: 22px; color: var(--text-secondary); }

.admin-topbar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15,118,110,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(15,118,110,0.4);
    transform: translateY(-1px);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

/* --- Admin Content --- */
.admin-content {
    padding: 32px;
}

/* --- Stat Cards --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.stat-card:nth-child(1)::after { background: var(--primary); }
.stat-card:nth-child(2)::after { background: var(--accent); }
.stat-card:nth-child(3)::after { background: #8B5CF6; }
.stat-card:nth-child(4)::after { background: #EC4899; }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon svg { width: 22px; height: 22px; }

.stat-card:nth-child(1) .stat-card-icon { background: var(--primary-lighter); color: var(--primary); }
.stat-card:nth-child(2) .stat-card-icon { background: #FEF3C7; color: var(--accent-dark); }
.stat-card:nth-child(3) .stat-card-icon { background: #EDE9FE; color: #8B5CF6; }
.stat-card:nth-child(4) .stat-card-icon { background: #FCE7F3; color: #EC4899; }

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Admin Table --- */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-card-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: all var(--transition);
    min-width: 220px;
}

.admin-search:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

.admin-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.admin-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}

.admin-search input::placeholder { color: var(--text-muted); }

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-elevated);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-tenant-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-tenant-avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--primary-lighter);
    flex-shrink: 0;
}

.table-tenant-name {
    font-weight: 700;
    margin-bottom: 2px;
}

.table-tenant-cat {
    font-size: 12px;
    color: var(--text-muted);
}

.table-menu-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-menu-thumb {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.table-menu-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.table-menu-tenant {
    font-size: 12px;
    color: var(--text-muted);
}

.table-price {
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.table-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.table-badge-active {
    background: #DCFCE7;
    color: #16A34A;
}

.table-badge-inactive {
    background: #FEE2E2;
    color: #DC2626;
}

.table-badge-available {
    background: #DCFCE7;
    color: #16A34A;
}

.table-badge-unavailable {
    background: #FEF3C7;
    color: #D97706;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-action-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-muted);
}

.table-action-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.table-action-btn.btn-view:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.table-action-btn.btn-edit:hover {
    background: #FEF3C7;
    color: var(--accent-dark);
}

.table-action-btn.btn-delete:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.table-action-btn svg { width: 16px; height: 16px; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

.modal-header {
    padding: 28px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-close svg { width: 20px; height: 20px; }

.modal-body {
    padding: 24px 32px 32px;
}

/* --- Form --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label .required {
    color: #DC2626;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
    background: var(--bg-card);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-image-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.form-image-upload:hover {
    border-color: var(--primary-light);
    background: var(--primary-lighter);
}

.form-image-upload.has-image {
    padding: 0;
    border-style: solid;
}

.form-image-upload img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.form-image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.form-image-upload-placeholder svg { width: 32px; height: 32px; opacity: 0.5; }
.form-image-upload-placeholder span { font-size: 13px; font-weight: 500; }
.form-image-upload-placeholder small { font-size: 12px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.view-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.view-detail-row:last-child {
    border-bottom: none;
}

.view-detail-label {
    width: 140px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-detail-value {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.view-menu-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    background: var(--bg-elevated);
}

.btn-cancel {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.btn-cancel:hover {
    background: var(--bg-muted);
}

.btn-submit {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(15,118,110,0.3);
    transition: all var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,118,110,0.4);
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.4s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast-success { border-color: #22C55E; }
.toast-success svg { color: #22C55E; }
.toast-error { border-color: #DC2626; }
.toast-error svg { color: #DC2626; }
.toast-info { border-color: var(--primary); }
.toast-info svg { color: var(--primary); }

.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

/* --- Confirm Dialog --- */
.confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

.confirm-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirm-icon svg { width: 28px; height: 28px; }

.confirm-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.confirm-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-danger {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #DC2626;
    transition: all var(--transition);
}

.btn-danger:hover {
    background: #B91C1C;
    transform: translateY(-1px);
}

/* --- Sidebar Overlay (Mobile) --- */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active { display: block; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-hamburger {
        display: flex;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; min-height: 420px; }
    .hero-stats { gap: 24px; }
    .hero-stat-number { font-size: 22px; }
    .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
    .hero-search button { justify-content: center; border-radius: 0; }
    .section { padding: 48px 0; }
    .tenant-grid { grid-template-columns: 1fr; gap: 16px; }
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .tenant-detail-inner { flex-direction: column; text-align: center; }
    .tenant-detail-info p { margin: 0 auto; }
    .admin-content { padding: 20px 16px; }
    .admin-topbar { padding: 0 16px; }
    .admin-card-header { padding: 20px; flex-direction: column; align-items: flex-start; }
    .admin-table th, .admin-table td { padding: 12px 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .modal { margin: 16px; border-radius: var(--radius-lg); }
    .modal-header { padding: 24px 24px 0; }
    .modal-body { padding: 20px 24px 28px; }
    .toast { min-width: 260px; }
    .menu-filter-bar { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-grid { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .admin-topbar h1 { font-size: 16px; }
    .table-actions { flex-direction: column; }
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #F0FDFA 0%, #F8FAFC 50%, #F1F5F9 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -20%; right: -15%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(15,118,110,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-light);
    animation: fadeUp 0.6s ease;
}

.login-brand {
    text-align: center;
    margin-bottom: 36px;
}

.login-brand-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.login-brand-icon svg { width: 32px; height: 32px; }

.login-brand h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeDown 0.3s ease;
}

.login-alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition);
}

.login-input {
    padding-left: 44px !important;
}

.login-input:focus ~ .login-input-icon,
.login-input-wrap:focus-within .login-input-icon {
    color: var(--primary);
}

.login-toggle-pw {
    position: absolute;
    right: 8px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
}

.login-toggle-pw:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.login-toggle-pw svg { width: 18px; height: 18px; }

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition);
}

.login-footer a:hover {
    color: var(--primary-dark);
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
    }
}

/* --- Admin Profile Mini --- */
.admin-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
}

.admin-profile-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-role {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}