/* RESET RINGAN */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: #1f2937;
  min-height: 100vh;
  transition: background 0.5s ease;
}

/* CSS VARIABLES FOR THEMING */
:root {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --accent-color: #3b82f6;
  --danger-color: #ef4444;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* THEME PRESETS */
body.theme-default {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.theme-ocean {
  --primary-color: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #22d3ee;
  --bg-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --header-bg: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

body.theme-sunset {
  --primary-color: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --bg-gradient: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  --header-bg: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

body.theme-forest {
  --primary-color: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #4ade80;
  --bg-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --header-bg: linear-gradient(135deg, #059669 0%, #047857 100%);
}

body.theme-lavender {
  --primary-color: #a855f7;
  --primary-dark: #9333ea;
  --primary-light: #c084fc;
  --bg-gradient: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  --header-bg: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
}

body.theme-rose {
  --primary-color: #ec4899;
  --primary-dark: #db2777;
  --primary-light: #f472b6;
  --bg-gradient: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  --header-bg: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER - COMPACT & THEMED */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none !important;
}

.store-name {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn,
.btn-small {
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn {
  padding: 12px 20px;
  font-size: 15px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
}

.btn-small:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn.full {
  width: 100%;
}

.btn.accent {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.btn.accent:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn.accent:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn.danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* STATUS BAR - IMPROVED COMPACT LAYOUT */
.status-bar-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* JAM & STATUS - COMPACT */
.hours-text, .open-status, .live-clock {
  text-align: center;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  font-size: 11px;
  color: #ffffff;
}

.hours-text {
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.live-clock { 
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-width: 120px;
}

.open-status.open { 
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.open-status.closed { 
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* PRAYER TIME NOTIFICATION - ENHANCED */
.prayer-notification {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  animation: prayerPulse 2s ease-in-out infinite;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.prayer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes prayerPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.9;
    transform: scale(1.02);
  }
}

/* OJOL BAR */
.ojol-bar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ojol-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.ojol-label {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.ojol-pill {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ojol-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ojol-grab {
  background: linear-gradient(135deg, #00b14f, #009640);
  color: #fff;
}

.ojol-gofood {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
}

.ojol-tiktok {
  background: linear-gradient(135deg, #000000, #1f2937);
  color: #f9fafb;
}

/* BANNER */
.hero-banner {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* INFO ROW (3 KARTU) */
.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px 0 12px;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #111827;
  font-weight: 700;
}

.about-card .about-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* NOTE TEXT */
.note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.note.small {
  font-size: 11px;
}

/* MAIN LAYOUT - MOBILE FIRST */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 12px 0 80px;
}

.menu-section h2,
.cart-section h2 {
  margin-top: 0;
  color: #111827;
  font-weight: 700;
  font-size: 18px;
}

/* TOOLBAR (SEARCH + FILTER) */
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  width: 100%;
  transition: all 0.2s ease;
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea {
  resize: vertical;
}

/* MENU GRID - GRABFOOD STYLE (SMALL CARDS) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
}

.menu-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.menu-card-image-wrap { 
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.menu-badge-habis {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.menu-image {
  border-radius: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.menu-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-image span {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  z-index: 1;
}

.menu-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-info h3 {
  margin: 0;
  font-size: 13px;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-info p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.menu-category {
  font-size: 9px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
}

.price {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
}

.price-row .btn-small {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 6px 12px;
  font-size: 11px;
}

.price-row .btn-small:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.price-row .btn-small:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* FLOATING CART BUTTON - GRABFOOD STYLE */
.floating-cart-btn {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 14px 24px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-width: 200px;
  justify-content: center;
}

.floating-cart-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.floating-cart-btn.hidden {
  display: none;
}

.cart-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* CART MODAL - FULLSCREEN ON MOBILE */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 50;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cart-modal.active {
  transform: translateY(0);
}

.cart-modal-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 51;
}

.cart-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.close-cart-btn:hover {
  background: #f3f4f6;
}

.cart-modal-content {
  padding: 16px;
  padding-bottom: 100px;
}

/* CART */
.cart-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cart-text strong {
  display: block;
  color: #111827;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 16px;
}

.cart-qty button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.cart-summary {
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
  font-size: 14px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.cart-summary .row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #e5e7eb;
}

.delivery-mode {
  display: flex;
  gap: 12px;
  font-size: 13px;
  margin: 12px 0;
  flex-wrap: wrap;
}

/* PAYMENT */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.qris-box {
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  padding: 12px;
  margin-bottom: 12px;
}

.qris-image {
  margin-top: 8px;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* SLIDER / TESTIMONI / AKTIVITAS */
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.slider-row::-webkit-scrollbar {
  width: 4px;
}

.slider-row::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.slider-row::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.slider-card {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.slider-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.slider-card img {
  border-radius: 8px;
  max-height: 120px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-row::-webkit-scrollbar {
  width: 4px;
}

.activity-row::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.activity-row::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 10px;
}

.activity-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  transition: all 0.2s ease;
  font-size: 12px;
}

.activity-chip:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

/* TESTIMONI SECTION - IMPROVED GRABFOOD/GOFOOD STYLE */
.testimoni-section {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.testimoni-section h3 {
  margin-top: 0;
  color: #111827;
  font-weight: 700;
  font-size: 16px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: none;
  overflow-y: visible;
}

.testi-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.testi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.testi-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.testi-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testi-info strong {
  font-size: 13px;
  color: #111827;
}

.testi-info .note {
  font-size: 10px;
  color: #9ca3af;
}

.testi-message {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* FOOTER */
.footer {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 24px;
}

/* AUTH PAGE - MODERN DESIGN */
.auth-body {
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.auth-box .note {
  text-align: center;
  margin-bottom: 24px;
}

.auth-box label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  margin-top: 12px;
}

.auth-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-size: 15px;
  transition: all 0.2s ease;
}

.auth-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-box .btn {
  margin-top: 16px;
}

.auth-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-box a:hover {
  text-decoration: underline;
}

/* AI WIDGET */
#frontAIWidget {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#frontAIToggle {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 24px;
  background: white;
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

#frontAIBox {
  width: min(320px, 85vw);
  max-height: 400px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#frontAIMessages {
  padding: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.ai-input-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
}

#frontAIInput {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

#frontAISendBtn {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 20px;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
}

.ai-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
  font-size: 13px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message.user {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  margin-left: auto;
  text-align: right;
}

.ai-message.assistant {
  background: white;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-message.system {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  text-align: center;
  margin: 0 auto;
  font-size: 12px;
}

/* OWNER PANEL STYLES */
.owner-body {
  background: var(--bg-gradient);
  min-height: 100vh;
}

.owner-main {
  max-width: 1200px;
  margin: 16px auto 32px;
  padding: 0 16px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card h2 {
  margin-top: 0;
  color: #111827;
  font-weight: 700;
  font-size: 18px;
}

.owner-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  font-weight: 700;
  color: #374151;
}

.table-scroll {
  max-height: 400px;
  overflow: auto;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 12px;
}

.table-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.mini-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.banner-preview {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-preview,
.qris-preview {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.owner-title {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  color: #111827;
}

/* THEME SELECTOR */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.theme-option {
  padding: 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.theme-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.theme-option.active {
  border-color: #111827;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-option.default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.theme-option.ocean {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
}

.theme-option.sunset {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: white;
}

.theme-option.forest {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
}

.theme-option.lavender {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
}

.theme-option.rose {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
}

/* AI CHAT STYLES */
.ai-chat-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e5e7eb;
}

.ai-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.ai-chat-messages {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-radius: 12px;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 10px;
}

.ai-input-container {
  display: flex;
  gap: 8px;
}

.ai-input-container input {
  flex: 1;
}

.ai-input-container button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.ai-input-container button:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.ai-input-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-suggestion-chip {
  padding: 6px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-suggestion-chip:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border-color: #8b5cf6;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

/* ANALYTICS DASHBOARD */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 11px;
  font-weight: 600;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

/* DELETE BUTTON */
.btn-delete {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

/* IMAGE CAROUSEL FOR MULTIPLE PHOTOS */
.image-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.carousel-item-delete:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* CALENDAR STYLES */
.calendar-container {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-nav button:hover {
  background: #f3f4f6;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-day:hover {
  background: #f3f4f6;
}

.calendar-day.today {
  background: var(--primary-color);
  color: white;
  font-weight: 700;
}

.calendar-day.has-orders {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  font-weight: 600;
}

.calendar-day.other-month {
  color: #d1d5db;
}

.calendar-day-indicator {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* HEADER COLOR PICKER */
.header-color-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.header-color-picker label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.header-color-picker input[type="color"] {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
}

.header-color-preview {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* AI IMAGE GENERATOR */
.ai-image-generator {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.ai-image-generator h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.ai-image-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-image-input-row input {
  flex: 1;
}

.ai-image-preview {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* PURCHASE HISTORY */
.purchase-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.purchase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.purchase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.purchase-date {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.purchase-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-status.completed {
  background: #d1fae5;
  color: #065f46;
}

.purchase-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.purchase-items {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 8px;
}

.purchase-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.purchase-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  font-style: italic;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .menu-card-image-wrap {
    height: 140px;
  }
  
  .floating-cart-btn {
    bottom: 20px;
  }
  
  #frontAIWidget {
    bottom: 20px;
  }
  
  .testi-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  
  .main-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
    padding: 16px 0 32px;
  }
  
  .cart-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  .floating-cart-btn {
    display: none;
  }
  
  .cart-modal {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .header-inner {
    padding: 6px 0;
  }
  
  .store-name {
    font-size: 14px;
  }
  
  .subtitle {
    font-size: 10px;
  }
  
  .menu-info h3 {
    font-size: 12px;
  }
  
  .price {
    font-size: 13px;
  }
  
  .hero-banner {
    height: 120px;
  }
  
  .status-bar-compact {
    gap: 6px;
  }
  
  .hours-text, .open-status, .live-clock {
    font-size: 10px;
    padding: 3px 8px;
  }
}