@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #ff6b35; --primary-dark: #e55a2b; --secondary: #ffd166;
  --bg: #0a0a0a; --surface: #1a1a2e; --card: #16213e;
  --text: #ffffff; --muted: #a0a0b0; --success: #22c55e; --radius: 16px;
}
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* Landing */
.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; text-align: center; padding: 20px; }
.landing-bg { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,107,53,0.15) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(255,209,102,0.1) 0%, transparent 50%), var(--bg); z-index: 0; }
.food-float { position: fixed; font-size: 40px; z-index: 1; pointer-events: none; animation: floatUp var(--dur,8s) var(--delay,0s) infinite linear; opacity: 0; }
@keyframes floatUp { 0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(-100vh) rotate(360deg) scale(1.2); opacity: 0; } }
.hero { position: relative; z-index: 10; max-width: 600px; }
.hero-logo { font-size: 64px; margin-bottom: 8px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.hero-title { font-size: 48px; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; margin-bottom: 8px; }
.hero-subtitle { font-size: 18px; color: var(--muted); margin-bottom: 32px; font-weight: 300; }
.food-carousel { display: flex; gap: 16px; overflow: hidden; width: 100%; max-width: 500px; margin: 0 auto 40px; position: relative; z-index: 10; }
.food-carousel-track { display: flex; gap: 16px; animation: scroll 20s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.food-card { flex-shrink: 0; width: 90px; height: 100px; background: var(--surface); border: 1px solid rgba(255,107,53,0.2); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform 0.3s, border-color 0.3s; }
.food-card:hover { transform: scale(1.1); border-color: var(--primary); }
.food-card-icon { font-size: 32px; } .food-card-name { font-size: 10px; font-weight: 600; color: var(--muted); }
.btn-order { position: relative; z-index: 10; padding: 16px 48px; font-size: 20px; font-weight: 700; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 50px; cursor: pointer; transition: all 0.3s; box-shadow: 0 8px 30px rgba(255,107,53,0.3); animation: pulse-btn 2s infinite; }
.btn-order:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 40px rgba(255,107,53,0.5); }
@keyframes pulse-btn { 0%, 100% { box-shadow: 0 8px 30px rgba(255,107,53,0.3); } 50% { box-shadow: 0 8px 50px rgba(255,107,53,0.5); } }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 20px; }
.login-box { position: relative; z-index: 10; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid rgba(255,107,53,0.2); border-radius: 24px; padding: 40px 32px; text-align: center; backdrop-filter: blur(20px); }
.login-logo { font-size: 48px; margin-bottom: 12px; } .login-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; } .login-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.input-group { position: relative; margin-bottom: 20px; } .input-group label { display: block; text-align: left; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 14px 16px; font-size: 16px; font-family: 'Poppins', sans-serif; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; outline: none; transition: border-color 0.3s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--primary); }
.input-group input::placeholder, .input-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; } .otp-inputs input { width: 50px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; font-family: 'Poppins', sans-serif; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; outline: none; transition: border-color 0.3s; } .otp-inputs input:focus { border-color: var(--primary); border-width: 2px; }
.btn-primary { width: 100%; padding: 14px; font-size: 16px; font-weight: 600; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s; } .btn-primary:hover { transform: translateY(-2px); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.login-error { color: #ef4444; font-size: 13px; margin-bottom: 12px; display: none; } .login-error.show { display: block; }
.timer-text { font-size: 12px; color: var(--muted); margin-top: 12px; } .resend-link { color: var(--primary); cursor: pointer; font-weight: 600; } .resend-link:hover { text-decoration: underline; }
.step-indicator { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; } .step-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: all 0.3s; } .step-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Main Page */
.main-page { min-height: 100vh; padding: 20px; max-width: 600px; margin: 0 auto; }
.main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 16px 20px; background: var(--surface); border-radius: 16px; border: 1px solid rgba(255,107,53,0.15); }
.main-header-left h2 { font-size: 20px; font-weight: 700; } .main-header-left p { font-size: 12px; color: var(--muted); }
.profile-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(255,107,53,0.1); font-size: 20px; transition: all 0.3s; flex-shrink: 0; } .profile-btn:hover { transform: scale(1.1); border-color: var(--secondary); } .profile-btn img { width: 100%; height: 100%; object-fit: cover; }
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 12px 16px; margin-bottom: 24px; } .search-bar span { font-size: 20px; color: var(--muted); } .search-bar input { flex: 1; background: none; border: none; color: white; font-size: 14px; font-family: 'Poppins', sans-serif; outline: none; }
.category-chips { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; } .category-chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 18px; font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 50px; color: var(--muted); cursor: pointer; transition: all 0.2s; } .chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.menu-item { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; } .menu-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,53,0.15); }
.menu-item-img { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,209,102,0.05)); position: relative; overflow: hidden; } .menu-item-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.menu-item-body { padding: 12px; } .menu-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-item-comment { font-size: 10px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.menu-item-add { width: 100%; margin-top: 8px; padding: 8px; font-size: 12px; font-weight: 700; font-family: 'Poppins', sans-serif; background: rgba(255,107,53,0.1); color: var(--primary); border: 1px solid rgba(255,107,53,0.2); border-radius: 8px; cursor: pointer; transition: all 0.2s; } .menu-item-add:hover { background: var(--primary); color: white; }
.cart-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: none; align-items: center; justify-content: space-between; width: calc(100% - 40px); max-width: 560px; padding: 14px 20px; background: var(--primary); border-radius: 14px; color: white; font-weight: 700; cursor: pointer; z-index: 100; box-shadow: 0 8px 30px rgba(255,107,53,0.4); } .cart-bar.show { display: flex; }
.btn-logout { padding: 8px 16px; font-size: 12px; font-weight: 600; font-family: 'Poppins', sans-serif; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--muted); cursor: pointer; transition: all 0.2s; } .btn-logout:hover { border-color: #ef4444; color: #ef4444; }

/* Admin Page */
.admin-page { min-height: 100vh; padding: 20px; max-width: 700px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 16px 20px; background: var(--surface); border-radius: 16px; border: 1px solid rgba(255,107,53,0.15); }
.admin-header h2 { font-size: 20px; font-weight: 700; }
.admin-section { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.admin-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--secondary); }
.admin-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 12px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.04); }
.admin-item-icon { font-size: 28px; flex-shrink: 0; }
.admin-item-info { flex: 1; min-width: 0; } .admin-item-name { font-size: 14px; font-weight: 600; } .admin-item-detail { font-size: 11px; color: var(--muted); }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.15); border-radius: 12px; cursor: pointer; transition: 0.3s; } .toggle-slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; } .toggle-switch input:checked + .toggle-slider { background: var(--success); } .toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.admin-btn { padding: 6px 14px; font-size: 11px; font-weight: 600; font-family: 'Poppins', sans-serif; border-radius: 8px; cursor: pointer; transition: all 0.2s; border: none; }
.admin-btn-edit { background: rgba(255,209,102,0.15); color: var(--secondary); } .admin-btn-edit:hover { background: var(--secondary); color: var(--bg); }
.admin-btn-del { background: rgba(239,68,68,0.15); color: #ef4444; } .admin-btn-del:hover { background: #ef4444; color: white; }
.img-preview { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }

/* Profile Page */
.profile-page { min-height: 100vh; padding: 20px; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.profile-card { width: 100%; background: var(--surface); border: 1px solid rgba(255,107,53,0.2); border-radius: 24px; padding: 36px 28px; text-align: center; }
.dp-circle { width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--primary); margin: 0 auto 16px; overflow: hidden; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; background: rgba(255,107,53,0.08); transition: all 0.3s; } .dp-circle:hover { border-color: var(--secondary); transform: scale(1.05); }
.dp-circle img { width: 100%; height: 100%; object-fit: cover; }
.dp-circle .dp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; font-size: 12px; font-weight: 600; } .dp-circle:hover .dp-overlay { opacity: 1; }
.dp-editor { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; margin-bottom: 20px; text-align: center; }
.dp-canvas-wrap { width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); }
.dp-canvas-wrap canvas { display: block; }
.dp-slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; justify-content: center; } .dp-slider-row label { font-size: 12px; color: var(--muted); min-width: 50px; text-align: right; } .dp-slider-row input[type=range] { width: 140px; accent-color: var(--primary); }
.verified-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; margin-left: 6px; } .verified-badge.yes { background: rgba(34,197,94,0.15); color: var(--success); } .verified-badge.no { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Toast */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; font-size: 13px; animation: slideIn 0.3s ease; color: white; } .toast.success { border-color: var(--success); } .toast.error { border-color: #ef4444; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; } @keyframes fadeOut { to { opacity: 0; transform: translateY(-20px); } }

.hidden { display: none !important; }
@media (max-width: 480px) { .hero-title { font-size: 36px; } .menu-grid { grid-template-columns: 1fr; } .login-box { padding: 32px 20px; } .profile-card { padding: 28px 18px; } }
