/* ─── TTTea Menu Maker — Styles ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --surface-hover: #242424;
  --card: #1E1E1E;
  --accent: #E85D2A;
  --accent-hover: #FF6E3A;
  --accent-soft: rgba(232,93,42,0.12);
  --text: #F5F0EB;
  --text-muted: #8A8680;
  --text-dim: #5A5753;
  --border: #2A2826;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #EF4444;
  --font: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
input:focus, textarea:focus, select:focus { outline: none; }
a { color: var(--accent); text-decoration: none; }

/* ─── Animations ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }
@keyframes slideUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-in { animation: fadeIn 0.4s ease both; }
.scale-in { animation: scaleIn 0.3s ease both; }

/* ─── Layout ─── */
.page-center { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
.container { max-width:640px; margin:0 auto; padding:32px 20px; }
.container-sm { max-width:440px; margin:0 auto; padding:32px 20px; }

/* ─── Header ─── */
.header { padding:14px 24px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); background:rgba(13,13,13,0.95); backdrop-filter:blur(12px); position:sticky; top:0; z-index:100; }
.header-logo { display:flex; align-items:center; gap:10px; }
.header-logo-icon { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--accent),#FF8C42); color:#fff; font-weight:700; font-size:14px; }
.header-logo-text { font-family:var(--font-display); font-size:17px; font-weight:600; }
.header-actions { display:flex; align-items:center; gap:10px; }

/* ─── Buttons ─── */
.btn { font-family:var(--font); font-weight:600; border:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:all 0.2s; border-radius:12px; letter-spacing:0.01em; }
.btn:disabled { opacity:0.5; cursor:not-allowed; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover:not(:disabled) { background:var(--accent-hover); }
.btn-ghost { background:transparent; color:var(--text-muted); border:1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background:var(--surface); }
.btn-soft { background:var(--accent-soft); color:var(--accent); border:none; }
.btn-sm { padding:7px 14px; font-size:13px; border-radius:8px; }
.btn-md { padding:11px 22px; font-size:14px; }
.btn-lg { padding:15px 30px; font-size:15px; }
.btn-full { width:100%; }
.btn-icon { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:6px; display:flex; align-items:center; font-size:13px; gap:5px; font-family:var(--font); }

/* ─── Form ─── */
.form-label { display:block; font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:0.08em; }
.form-input { width:100%; padding:13px 16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; color:var(--text); font-size:15px; font-family:var(--font); transition:border-color 0.2s; }
.form-input:focus { border-color:var(--accent); }
.form-input::placeholder { color:var(--text-dim); }
.form-hint { font-size:12px; color:var(--text-dim); margin-top:6px; }

/* ─── Phone Input ─── */
.phone-input-wrap { display:flex; align-items:center; background:var(--bg); border-radius:13px; border:1px solid var(--border); overflow:hidden; }
.phone-prefix { padding:13px 14px; color:var(--text-muted); font-size:14px; font-weight:500; border-right:1px solid var(--border); white-space:nowrap; }
.phone-input-wrap input { flex:1; background:transparent; border:none; color:var(--text); font-size:15px; font-family:var(--font); padding:13px 12px; }

/* ─── OTP Input ─── */
.otp-group { display:flex; gap:8px; justify-content:center; }
.otp-box { width:46px; height:54px; text-align:center; font-size:21px; font-weight:600; font-family:var(--font); background:var(--surface); border:2px solid var(--border); border-radius:10px; color:var(--text); transition:border-color 0.2s; }
.otp-box:focus { border-color:var(--accent); }

/* ─── Card ─── */
.card { background:var(--surface); border-radius:18px; padding:32px; border:1px solid var(--border); }
.card-sm { padding:20px; border-radius:14px; }

/* ─── Upload Area ─── */
.upload-area { border:2px dashed var(--border); border-radius:16px; padding:44px 24px; text-align:center; cursor:pointer; transition:all 0.2s; background:var(--surface); }
.upload-area:hover { border-color:var(--accent); background:var(--accent-soft); }
.upload-area .icon { color:var(--text-muted); margin-bottom:10px; }
.upload-preview { border-radius:14px; overflow:hidden; position:relative; border:1px solid var(--border); }
.upload-preview img { width:100%; display:block; max-height:280px; object-fit:cover; }
.upload-preview-badge { position:absolute; top:10px; left:10px; background:rgba(0,0,0,0.7); backdrop-filter:blur(8px); border-radius:7px; padding:5px 10px; font-size:11px; font-weight:600; color:var(--success); display:flex; align-items:center; gap:5px; }
.upload-preview-actions { position:absolute; bottom:10px; right:10px; }

/* ─── Progress ─── */
.progress-bar { width:100%; height:5px; background:var(--surface); border-radius:3px; overflow:hidden; }
.progress-fill { height:100%; border-radius:3px; transition:width 0.5s ease, background 0.3s; }

/* ─── Success Banner ─── */
.banner-success { background:rgba(52,211,153,0.08); border:1px solid rgba(52,211,153,0.2); border-radius:14px; padding:18px 20px; display:flex; align-items:center; gap:14px; }
.banner-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ─── Share Link ─── */
.share-link-box { display:flex; gap:8px; align-items:center; }
.share-link-url { flex:1; padding:11px 14px; background:var(--bg); border-radius:9px; border:1px solid var(--border); font-size:14px; font-weight:500; color:var(--accent); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ─── Category Tabs ─── */
.cat-tabs { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
.cat-tabs::-webkit-scrollbar { display:none; }
.cat-tab { padding:7px 14px; border-radius:8px; border:none; background:var(--surface); color:var(--text-muted); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--font); white-space:nowrap; transition:all 0.2s; }
.cat-tab.active { background:var(--accent); color:#fff; }

/* ─── Menu Search ─── */
.search-wrap { position:relative; }
.search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-dim); pointer-events:none; }
.search-input { width:100%; padding:12px 14px 12px 40px; background:var(--surface); border:1px solid var(--border); border-radius:11px; color:var(--text); font-size:14px; font-family:var(--font); }
.search-input:focus { border-color:var(--accent); }
.search-input::placeholder { color:var(--text-dim); }
.search-hint { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:11px; color:var(--text-dim); background:var(--bg); padding:3px 8px; border-radius:5px; }

/* ─── Menu Item ─── */
.menu-item { display:flex; justify-content:space-between; align-items:flex-start; padding:13px 15px; border-radius:11px; gap:10px; background:var(--surface); border:1px solid var(--border); transition:background 0.15s; }
.menu-item:hover { background:var(--surface-hover); }
.menu-item + .menu-item { margin-top:4px; }
.menu-item-info { flex:1; min-width:0; }
.menu-item-header { display:flex; align-items:center; gap:7px; margin-bottom:2px; flex-wrap:wrap; }
.menu-item-name { font-weight:600; font-size:14px; }
.menu-item-desc { font-size:12px; color:var(--text-dim); line-height:1.4; }
.menu-item-price { font-size:15px; font-weight:700; white-space:nowrap; flex-shrink:0; }
.menu-item-price-label { font-size:10px; color:var(--text-dim); font-weight:400; }

/* ─── Veg/Non-veg Indicator ─── */
.veg-badge { width:14px; height:14px; border-radius:3px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.veg-badge.veg { border:1.5px solid #22C55E; }
.veg-badge.non-veg { border:1.5px solid #EF4444; }
.veg-dot { width:7px; height:7px; border-radius:50%; }
.veg-badge.veg .veg-dot { background:#22C55E; }
.veg-badge.non-veg .veg-dot { background:#EF4444; }

/* ─── Popular Badge ─── */
.badge-popular { background:rgba(251,191,36,0.15); color:var(--warning); font-size:10px; font-weight:700; padding:2px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:0.04em; }

/* ─── Category Label ─── */
.cat-label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--accent); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.cat-count { background:var(--accent-soft); border-radius:5px; padding:2px 7px; font-size:10px; font-weight:600; }

/* ─── Empty State ─── */
.empty-state { text-align:center; padding:44px 20px; color:var(--text-dim); }
.empty-state p { font-size:14px; }

/* ─── Spinner ─── */
.spinner { width:18px; height:18px; border:2px solid rgba(255,255,255,0.3); border-top-color:#fff; border-radius:50%; animation:spin 0.6s linear infinite; display:inline-block; }

/* ─── Glow Background ─── */
.glow { position:fixed; pointer-events:none; border-radius:50%; }
.glow-top { top:-20%; right:-10%; width:500px; height:500px; background:radial-gradient(circle,var(--accent-soft) 0%,transparent 70%); }
.glow-bottom { bottom:-20%; left:-10%; width:400px; height:400px; background:radial-gradient(circle,rgba(232,93,42,0.06) 0%,transparent 70%); }

/* ─── Logo Section ─── */
.logo-section { text-align:center; margin-bottom:36px; }
.logo-icon { display:inline-flex; align-items:center; justify-content:center; width:60px; height:60px; border-radius:16px; background:linear-gradient(135deg,var(--accent),#FF8C42); margin-bottom:18px; box-shadow:0 8px 28px rgba(232,93,42,0.3); color:#fff; font-weight:700; font-size:20px; }
.logo-title { font-family:var(--font-display); font-size:30px; font-weight:600; margin-bottom:6px; letter-spacing:-0.02em; }
.logo-subtitle { color:var(--text-muted); font-size:14px; line-height:1.5; }

/* ─── Powered By ─── */
.powered-by { text-align:center; padding:24px 0; font-size:11px; color:var(--text-dim); }
.powered-by a { color:var(--text-muted); }

/* ─── Responsive ─── */
@media (max-width:480px) {
  .card { padding:24px 20px; }
  .container { padding:24px 16px; }
  .otp-box { width:40px; height:48px; font-size:18px; }
  .header { padding:12px 16px; }
  .logo-title { font-size:26px; }
}

/* ─── Menu Page (Public) — Light Theme ─── */
.menu-page { background:#FAFAF8; color:#1A1A1A; min-height:100vh; }
.menu-page .header { background:rgba(250,250,248,0.95); border-bottom:1px solid #E8E6E1; }
.menu-page .header-logo-text { color:#1A1A1A; }
.menu-page .search-input { background:#fff; border-color:#E8E6E1; color:#1A1A1A; }
.menu-page .search-input::placeholder { color:#B0ADA6; }
.menu-page .search-icon { color:#B0ADA6; }
.menu-page .cat-tab { background:#F0EEEA; color:#6B6860; }
.menu-page .cat-tab.active { background:var(--accent); color:#fff; }
.menu-page .menu-item { background:#fff; border-color:#F0EEEA; }
.menu-page .menu-item:hover { background:#F8F7F5; }
.menu-page .menu-item-name { color:#1A1A1A; }
.menu-page .menu-item-desc { color:#8A8680; }
.menu-page .menu-item-price { color:#1A1A1A; }
.menu-page .cat-label { color:var(--accent); }
.menu-page .empty-state { color:#8A8680; }
.menu-page .powered-by { color:#B0ADA6; }
.menu-page .search-hint { background:#F0EEEA; color:#8A8680; }
