@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary: #0a5c36;
  --primary-light: #14804c;
  --primary-dark: #053b21;
  --accent: #d4af37;
  --accent-light: #f3e5ab;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(10, 92, 54, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0a5c36;
  color: white;
  padding: 0.4rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-height: 125px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: var(--transition);
}

.brand:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.brand-logo-img {
  height: 115px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: invert(1) brightness(1.35) contrast(2.2);
  mix-blend-mode: screen;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a, nav button.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

nav a:hover, nav button.nav-link:hover, nav button.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.btn-qr-nav {
  background: linear-gradient(135deg, var(--accent), #b89728) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.btn-qr-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

/* App Views Container */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  position: relative;
  height: 82vh;
  min-height: 550px;
  background: linear-gradient(rgba(10, 25, 18, 0.45), rgba(5, 59, 33, 0.85)), url('assets/bg-app.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 5%;
}

.hero-content {
  max-width: 850px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero h1 em {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border: none;
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 92, 54, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 92, 54, 0.5);
  background: linear-gradient(135deg, #18995a, var(--primary-light));
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #c29d2b);
  color: var(--primary-dark);
  border: none;
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: white;
  color: var(--primary-dark);
}

/* Quick Stats Bar */
.stats-bar {
  background: var(--bg-card);
  padding: 2rem 5%;
  margin: -50px 5% 3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Property Inventory Grid */
.inventory-section {
  padding: 4rem 5%;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 92, 54, 0.25);
}

.btn-add-accom {
  background: linear-gradient(135deg, var(--accent), #c29d2b) !important;
  color: var(--primary-dark) !important;
  border-color: var(--accent) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}

.btn-add-accom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.6) !important;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 260px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  transition: transform 0.6s ease;
}

.property-card:hover .card-img img {
  transform: scale(1.08);
}

.badge-type {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(10, 92, 54, 0.9);
  backdrop-filter: blur(6px);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-stock {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.badge-stock.empty {
  background: var(--danger);
  color: white;
}

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-edit-sm:hover {
  background: var(--accent) !important;
  border-color: #d4af37 !important;
  transform: scale(1.08);
}

/* Bundling Promo Banner */
.bundling-section {
  padding: 3rem 5%;
  background: linear-gradient(135deg, var(--primary-dark), #0d4228);
  color: white;
  margin: 4rem 0;
}

.bundling-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.bundling-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.bundling-ribbon {
  position: absolute;
  top: 25px;
  right: -35px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.bundling-card h3 {
  font-size: 1.8rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.bundling-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bundling-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.bundling-price {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.strike-price {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Culinary Showcase Section */
.culinary-section {
  padding: 5rem 5%;
  background: white;
}

.culinary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.culinary-showcase-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.culinary-showcase-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.live-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 1; }
}

.food-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.food-item:hover {
  border-color: var(--primary);
  background: #f0fdf4;
}

.food-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.food-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.food-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Modals & Wizards */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.btn-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close:hover {
  background: rgba(255,255,255,0.4);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Booking Steps Wizard */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.step-ind {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-ind.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 5px rgba(10, 92, 54, 0.15);
}

.step-ind.completed .step-num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-ind span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-ind.active span {
  color: var(--primary);
  font-weight: 700;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(10, 92, 54, 0.1);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

/* Interactive Kavling Map Selector */
.kavling-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #ecfdf5;
  border: 2px dashed #059669;
  border-radius: var(--radius-md);
}

.kavling-slot {
  aspect-ratio: 1;
  background: white;
  border: 2px solid #10b981;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: #047857;
  transition: var(--transition);
  user-select: none;
}

.kavling-slot:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-md);
}

.kavling-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(10, 92, 54, 0.4);
}

.kavling-slot.booked {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #64748b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.kavling-slot span {
  font-size: 0.65rem;
  font-weight: 500;
}

/* Food Addon Selection in Booking */
.addon-food-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.addon-card.selected {
  border-color: var(--primary);
  background: #f0fdf4;
}

.addon-qty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: white;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-qty:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Summary Box */
.booking-summary-box {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.summary-row.total {
  border-top: 2px solid #cbd5e1;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.deposit-info {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 1.2rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.modal-footer {
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

/* Admin Dashboard PMS View */
.admin-header {
  background: var(--primary-dark);
  color: white;
  padding: 2.5rem 5%;
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.admin-header p {
  color: var(--accent-light);
}

.admin-grid-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 0 5%;
  margin-bottom: 3rem;
}

.metric-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
}

.metric-card.gold { border-left-color: var(--accent); }
.metric-card.blue { border-left-color: #3b82f6; }
.metric-card.red { border-left-color: var(--danger); }

.metric-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.admin-table-container {
  padding: 0 5% 4rem;
}

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
}

.admin-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #f1f5f9;
  padding: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-active { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-refunded { background: #e0e7ff; color: #3730a3; }

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-refund {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #f59e0b;
}

.btn-refund:hover { background: #f59e0b; color: white; }

/* Kitchen Display System (KDS) View */
.kds-container {
  padding: 2rem 5% 5rem;
  background: #0f172a;
  min-height: 90vh;
  color: white;
}

.kds-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.kds-top h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.ticket-card {
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 2px solid #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ticket-card.urgent {
  border-color: var(--danger);
  animation: ticketPulse 2s infinite;
}

@keyframes ticketPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticket-header {
  background: #334155;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.ticket-header.urgent-bg { background: var(--danger); }

.ticket-body {
  padding: 1.5rem;
  flex: 1;
}

.ticket-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
}

.ticket-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.qty-pill {
  background: #38bdf8;
  color: #0f172a;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
}

.ticket-footer {
  padding: 1rem 1.2rem;
  background: #0f172a;
  display: flex;
  gap: 1rem;
}

.btn-ticket {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cook { background: #f59e0b; color: white; }
.btn-cook:hover { background: #d97706; }
.btn-done { background: var(--success); color: white; }
.btn-done:hover { background: #059669; }

/* QR Simulator Modal */
.qr-sim-box {
  text-align: center;
  padding: 1rem;
}

.qr-frame {
  width: 240px;
  height: 240px;
  margin: 1.5rem auto;
  padding: 15px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer */
footer {
  background: var(--text-main);
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-fin-period {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-fin-period:hover { color: var(--text-main); background: rgba(255,255,255,0.6); }
.btn-fin-period.active { background: white; color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.fin-income { color: #047857; background: #d1fae5; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; }
.fin-expense { color: #b91c1c; background: #fee2e2; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; }

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 75px !important; /* Space for sticky bottom nav */
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
  }
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.25s ease;
    flex: 1;
    padding: 4px 0;
  }
  .mob-nav-item.active, .mob-nav-item:active {
    color: var(--primary);
  }
  .mob-icon {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }
  .mob-nav-main {
    transform: translateY(-16px);
  }
  .mob-icon-main {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(10, 92, 54, 0.4);
    border: 3px solid white;
    margin-bottom: 2px;
  }
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 1rem !important;
  }
  .card-img {
    height: 130px !important;
  }
  .card-body {
    padding: 0.8rem !important;
  }
  .card-body h3 {
    font-size: 0.95rem !important;
  }
  .price {
    font-size: 0.95rem !important;
  }
}

#printable-report-container {
  display: none;
}

@media print {
  @page {
    margin: 10mm 12mm;
  }
  body.printing-mode > *:not(#printable-report-container) {
    display: none !important;
  }
  body.printing-mode {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  body.printing-mode #printable-report-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    color: #1e293b;
    z-index: 9999999;
  }
  #printable-report-container td:nth-child(6),
  #printable-report-container th:nth-child(6) {
    display: none !important;
  }
  #printable-report-container table {
    page-break-inside: auto;
    border-collapse: collapse;
  }
  #printable-report-container tr,
  #printable-report-container td,
  #printable-report-container th {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  #printable-report-container .print-footer-block,
  #printable-report-container .print-signature-block {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* ADMIN VISIBILITY CONTROLS */
body:not(.admin-logged-in) .admin-only-btn {
  display: none !important;
}

/* AUTO SCROLLING GALLERY CAROUSEL (GALERI BERJALAN) */
@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.gallery-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  cursor: grab;
}
.gallery-marquee-container:active {
  cursor: grabbing;
}
.gallery-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.gallery-marquee-track:hover {
  animation-play-state: paused;
}
.gallery-card-item {
  width: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.gallery-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(10, 92, 54, 0.15);
}


