:root {
  --bg: #0D0D0D;
  --bg-card: #1A1A1A;
  --red: #C8102E;
  --gold: #F5A623;
  --text: #F0F0F0;
  --text-muted: #888;
  --border: rgba(200, 16, 46, 0.35);
  --font-heading: 'Playfair Display', 'Noto Serif JP', serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: #a50d25; color: #fff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: #0D0D0D;
}
.btn-gold:hover { background: #d4891e; transform: translateY(-2px); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(200, 16, 46, 0.2);
}

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--text);
  margin-bottom: 12px;
}
.section-title span { color: var(--red); }
.section-subtitle { color: var(--text-muted); font-size: 16px; margin-bottom: 48px; }

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 40px; width: auto; }
.logo span { color: var(--red); }

.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 4px;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, #1a0505 0%, #0d0d0d 60%, #000 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-kanji {
  font-family: var(--font-heading);
  font-size: clamp(48px, 12vw, 120px);
  color: rgba(200, 16, 46, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 20px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 10vw, 96px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}
.hero-title span { color: var(--red); }

.hero-subtitle {
  font-size: clamp(18px, 4vw, 28px);
  color: var(--gold);
  font-family: var(--font-heading);
  margin-bottom: 24px;
  font-style: italic;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== ABOUT ===== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-img img { width: 100%; height: 400px; object-fit: cover; }

/* ===== POPULAR DISHES ===== */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.dish-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(200, 16, 46, 0.25);
}
.dish-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.dish-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a, #2a0a0f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.dish-card-body { padding: 16px; }
.dish-card-name {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 6px;
}
.dish-card-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.dish-card-price { color: var(--gold); font-weight: 700; font-size: 18px; }

/* ===== INFO ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.info-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--gold);
}
.info-block p, .info-block a {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 2;
  display: block;
}
.info-block a:hover { color: var(--red); }

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
footer span { color: var(--red); }

/* ===== WAITER PANEL ===== */
.waiter-header {
  background: #111;
  border-bottom: 2px solid var(--red);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.waiter-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 24px 20px;
}

.order-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid transparent;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.order-card:hover { transform: translateY(-2px); }

.order-card.status-pending { border-color: #f59e0b; }
.order-card.status-confirmed { border-color: #3b82f6; }
.order-card.status-preparing { border-color: #f97316; }
.order-card.status-ready { border-color: #22c55e; }
.order-card.status-closed { border-color: #6b7280; opacity: 0.6; }

.order-number { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.order-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.badge-pending { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-confirmed { background: rgba(59,130,246,0.2); color: #3b82f6; }
.badge-preparing { background: rgba(249,115,22,0.2); color: #f97316; }
.badge-ready { background: rgba(34,197,94,0.2); color: #22c55e; }
.badge-closed { background: rgba(107,114,128,0.2); color: #6b7280; }

.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.status-buttons .btn { flex: 1; min-width: 120px; padding: 14px; font-size: 15px; }

/* ===== MENU PAGE ===== */
.menu-header {
  background: rgba(13,13,13,0.95);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 20px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 20px;
}

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.menu-item-card:hover { border-color: var(--red); transform: translateY(-2px); }

.menu-item-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.menu-item-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1a0a0a, #2a0a0f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.menu-item-body { padding: 14px; }
.menu-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.menu-item-desc { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; }
.menu-item-price { color: var(--gold); font-weight: 700; font-size: 16px; }
.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.add-btn:hover { background: #a50d25; transform: scale(1.1); }

/* ===== CART ===== */
.cart-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #111;
  border-top: 2px solid var(--red);
  z-index: 50;
  padding: 16px 20px;
  transform: translateY(calc(100% - 60px));
  transition: transform 0.4s ease;
}
.cart-panel.open { transform: translateY(0); }

.cart-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 12px;
}
.cart-toggle-text { font-weight: 700; font-size: 17px; }
.cart-count {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-left: 8px;
}

.cart-items { max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item-name { font-size: 14px; flex: 1; }
.cart-item-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--red); }
.cart-item-subtotal { color: var(--gold); font-weight: 600; font-size: 14px; min-width: 80px; text-align: right; }

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.cart-total { font-size: 18px; font-weight: 700; }
.cart-total small { font-size: 12px; color: var(--text-muted); font-weight: 400; display: block; }

.order-type-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.order-type-btn {
  flex: 1;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.order-type-btn.active { background: var(--red); color: #fff; }

/* ===== ORDER DETAIL ===== */
.order-detail-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.order-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.order-detail-number {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
}
.qr-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: inline-block;
  margin: 24px 0;
}
.qr-wrap img { width: 180px; height: 180px; }
.order-items-list { text-align: left; margin: 20px 0; }
.order-items-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.order-totals { text-align: left; margin-top: 16px; }
.order-totals-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-totals-row.total { font-size: 18px; font-weight: 700; color: var(--gold); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

.status-notify {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
}
.status-notify.confirmed { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-notify.pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-notify.ready { background: rgba(34,197,94,0.2); color: #22c55e; }

/* ===== LOGIN ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-card h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
.login-card p { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus { border-color: var(--red); }

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .dishes-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dishes-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .order-detail-card { padding: 24px 16px; }
}

@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
}
