/* ==================== GLOBAL STYLES ==================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #b6954d;
  --primary-hover: #a38545;
  --secondary-color: #231f1a;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #0ea5e9;
  --bg-color: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-dark: #0f172a;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  direction: rtl;
  text-align: right;
  background: #ffffff;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ==================== AUTHENTICATION PAGES ==================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 20px;
}

.auth-landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(225, 184, 96, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(121, 89, 4, 0.12), transparent 30%),
    #f9f9f9;
}

.auth-landing-layout {
  width: 100%;
  max-width: 1220px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 28px;
  padding: 28px;
}

.auth-showcase,
.auth-panel-wrap {
  min-width: 0;
}

.auth-login-simple {
  max-width: 620px;
  grid-template-columns: 1fr;
  justify-content: center;
}

.auth-showcase-card {
  min-height: 100%;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 242, 232, 0.94));
  border: 1px solid rgba(209, 197, 178, 0.4);
  box-shadow: 0 20px 50px rgba(121, 89, 4, 0.08);
}

.auth-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #fff8e8;
  color: var(--primary-color);
  border: 1px solid rgba(182, 149, 77, 0.2);
  font-size: 13px;
  font-weight: 700;
}

.auth-showcase-title {
  margin: 20px 0 16px;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  color: #1f1a13;
}

.auth-showcase-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.9;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-feature-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(209, 197, 178, 0.32);
}

.auth-feature-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1f1a13;
}

.auth-feature-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
}

.auth-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #795904, #e1b860);
  color: #fff;
  flex-shrink: 0;
}

.auth-showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-showcase-links a {
  color: var(--secondary-color);
  font-weight: 700;
}

.auth-panel-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(209, 197, 178, 0.42);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: none;
}

.auth-box {
  background: transparent;
  width: 100%;
  max-width: 450px;
  padding: 40px 20px;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}


@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header-modern {
  text-align: right;
  margin-bottom: 24px;
}

.auth-header-centered {
  text-align: center;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7f2e8;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.auth-header h1 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.auth-header-modern h2 {
  margin: 0 0 12px;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  font-size: 30px;
  line-height: 1.25;
  color: #1f1a13;
}

.auth-header p {
  color: var(--text-light);
  font-size: 14px;
}

.auth-header-modern p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e3ddcf;
  border-radius: 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.88);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(182, 149, 77, 0.12);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--primary-hover);
  transform: translateX(-5px);
}

.auth-inline-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -8px;
  margin-bottom: 20px;
}

.auth-text-link,
.auth-link a {
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.auth-submit-btn {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #795904, #e1b860);
  box-shadow: 0 16px 30px rgba(121, 89, 4, 0.18);
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #6a4f04, #d7ac4f);
}

.auth-link-modern {
  margin-top: 22px;
  text-align: center;
  color: var(--text-light);
}

.auth-link-modern p {
  margin: 0;
}

.auth-footer-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(209, 197, 178, 0.35);
  color: var(--text-light);
  text-align: center;
  font-size: 13px;
}

.auth-mini-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f7f2e8;
  border: 1px solid rgba(209, 197, 178, 0.4);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 600;
}

.auth-login-logo {
  display: block;
  margin: 0 auto 18px;
}

.logo-img-large {
  height: 60px;
  width: auto;
}

@media (max-width: 980px) {
  .auth-landing-layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .auth-showcase-card,
  .auth-panel-card {
    padding: 28px 22px;
  }

  .auth-box {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .auth-container {
    padding: 12px;
  }

  .auth-landing-layout {
    gap: 18px;
    padding: 8px;
  }

  .auth-showcase-card,
  .auth-panel-card {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .auth-showcase-title {
    font-size: 30px;
  }

  .auth-header-modern h2 {
    font-size: 24px;
  }
}

/* ==================== BUTTONS ==================== */

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.96);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: #f3f0e8;
  color: var(--text-dark);
  border: 1px solid #e5e0d3;
  margin-top: 15px;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

/* ==================== ALERTS ==================== */

.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert i {
  font-size: 18px;
}

/* ==================== GLOBAL SNACKBAR (TOAST) ==================== */
#alertContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999999;
  /* prevent covering bottom buttons (mobile safe area + spacing) */
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

#alertContainer .alert {
  pointer-events: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  min-width: 320px;
  max-width: 90vw;
  font-weight: 700;
  border-radius: 12px;
  animation: slideUpToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 24px;
}

@keyframes slideUpToast {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== LINK ==================== */

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* ==================== DASHBOARD CONTAINER ==================== */

.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: transparent;
}

/* ==================== SIDEBAR ==================== */

.sidebar {
  width: 260px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  right: 0;
  top: 0;
  z-index: 100;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo h2 {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo-img {
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-img-large {
  height: auto;
  max-height: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Responsive Logo Scaling */
@media (max-width: 1024px) {
  .logo-img {
    max-height: 60px;
  }

  .logo-img-large {
    max-height: 140px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 50px;
  }

  .logo-img-large {
    max-height: 120px;
  }
}

.nav-menu {
  list-style: none;
}

.nav-menu li {
  margin-bottom: 10px;
}

.nav-link {
  display: block;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.nav-link i {
  margin-left: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.nav-divider {
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
  flex: 1;
  margin-right: 260px;
  padding: 30px;
  transition: all 0.3s ease;
}

.top-bar {
  background: #ffffff;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info span {
  color: var(--text-dark);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==================== PAGES ==================== */

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-header {
  background: #ffffff;
  padding: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-light);
}

/* ==================== STATS GRID & DASHBOARD ==================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(182, 149, 77, 0.2);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Specific icon tints for a softer look */
.stat-card:nth-child(1) .stat-icon {
  background: rgba(52, 152, 219, 0.1) !important;
  color: #3498db !important;
}

.stat-card:nth-child(2) .stat-icon {
  background: rgba(46, 204, 113, 0.1) !important;
  color: #2ecc71 !important;
}

.stat-card:nth-child(3) .stat-icon {
  background: rgba(241, 196, 15, 0.1) !important;
  color: #f1c40f !important;
}

.stat-card:nth-child(4) .stat-icon {
  background: rgba(230, 126, 34, 0.1) !important;
  color: #e67e22 !important;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-content h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

/* ==================== TABLES ==================== */

.table-container {
  background: #ffffff;
  border-radius: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: var(--light-bg);
}

.data-table th {
  padding: 15px;
  text-align: right;
  font-weight: 600;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
  background-color: #fafafa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==================== MODALS ==================== */

.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  /* Ensure modals fully obscure mobile bottom nav (z-index: 9999) */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  padding: 20px 20px 112px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 20px;
  max-width: 500px;
  width: min(100%, 500px);
  display: flex;
  flex-direction: column;
  max-height: min(680px, calc(100vh - 156px));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-left: 2px;
  padding-right: 4px;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.94));
  padding-top: 14px;
  padding-bottom: 4px;
  margin-top: 14px;
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.04);
}

.modal-actions .btn,
.modal .form-actions .btn {
  width: auto;
  min-width: 96px;
}

.modal .form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.modal form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@keyframes slideUpBottomSheet {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: flex-end;
    /* Snap to bottom */
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* Override any centering margins if present */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90svh;
    /* Small viewport height perfectly adapts to keyboard */
    animation: slideUpBottomSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Bottom sheet drag handle indicator */
  .modal-content::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;
    margin: -12px auto 20px;
    flex-shrink: 0;
  }
}

/* ==================== RESTAURANT GRID & CARDS ==================== */

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

.restaurant-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 10px 40px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.restaurant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(182, 149, 77, 0.1);
  border-color: var(--primary-color);
  z-index: 10;
}

.restaurant-card-header {
  padding: 20px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.restaurant-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--secondary-color);
}

.restaurant-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.restaurant-card-body p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.restaurant-actions {
  margin-top: auto;
}

.btn-block {
  width: 100%;
}

.mb-2 {
  margin-bottom: 8px;
}

.mt-2 {
  margin-top: 8px;
}

.flex-1 {
  flex: 1;
}

.badge {
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* ==================== ACTION DROPDOWNS ==================== */

.dropdown-actions {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 2000;
  margin-top: 5px;
  padding: 8px 0;
  border: 1px solid var(--border-color);
  animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu.dropup {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 5px;
  transform-origin: bottom center;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu button,
.dropdown-menu a {
  width: 100%;
  padding: 10px 16px;
  text-align: right;
  border: none;
  background: none;
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-menu button:hover,
.dropdown-menu a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.dropdown-menu i {
  margin-left: 10px;
  width: 16px;
  text-align: center;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.close {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
}

.close:hover {
  color: var(--secondary-color);
}

/* ==================== FORM SECTIONS ==================== */

.form-section {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.form-section h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ==================== CARDS ==================== */

.card {
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.card-description {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

/* ==================== LOADING STATE ==================== */

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.spinner {
  border: 4px solid var(--light-bg);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    right: 0;
    top: auto;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 10px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
  }

  .sidebar .logo {
    display: none;
    /* Hide logo in bottom nav to save space */
  }

  .nav-menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-menu li {
    margin: 0;
    flex: 1;
  }

  .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    /* Smaller font for mobile */
    padding: 5px 2px;
    color: var(--text-light);
    border-radius: 8px;
    min-width: 50px;
  }

  .nav-link i {
    margin-left: 0;
    margin-bottom: 4px;
    font-size: 20px;
  }

  .nav-link.active {
    background-color: transparent;
    color: var(--primary-color);
  }

  .nav-divider {
    display: none;
  }

  .main-content {
    margin-right: 0;
    padding: 20px 20px 140px 20px !important;
    /* space for bottom nav */
  }

  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-box {
    padding: 30px 20px;
  }

  .top-bar {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .modal-content {
    width: 95%;
  }
}

/* ==================== LANDING PAGE ==================== */

.landing-page {
  background: #ffffff;
}

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

.landing-nav {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.landing-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
}

.landing-nav .nav-auth {
  display: flex;
  align-items: center;
}

.landing-nav .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  border: none;
  padding: 0;
  margin: 0;
}

.landing-nav .nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.landing-nav .nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.landing-nav .nav-links a:hover {
  color: var(--primary-color);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

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

.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.text-gradient {
  background: linear-gradient(to right, #b6954d, #e6c073);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
  line-height: 1.2;
  box-shadow: none;
}

.hero-image {
  margin-top: 80px;
}

.glass-mockup {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
  color: var(--text-dark);
}

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

.mockup-item {
  height: 200px;
  background: rgba(182, 149, 77, 0.05);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(182, 149, 77, 0.1);
}

.mockup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 31, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mockup-item:hover .mockup-overlay {
  opacity: 1;
}

.features,
.pricing {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--secondary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  padding: 40px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured .price,
.pricing-card.featured h3 {
  color: var(--white);
}

.pricing-card.featured .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.featured .pricing-features li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.landing-footer {
  padding: 60px 0;
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 45px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .landing-nav .container {
    flex-direction: row;
    padding: 15px 20px;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
  }

  .landing-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    align-items: center;
  }

  .landing-nav .nav-links.active {
    display: flex;
  }

  .landing-nav .logo img {
    height: 45px;
  }

  .landing-nav .nav-auth .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .auth-box {
    padding: 20px;
  }

  .page-title {
    font-size: 20px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px;
  }

  .btn {
    padding: 10px 16px;
  }
}

/* ==================== UTILITY CLASSES ==================== */

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
  gap: 10px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==================== GUIDE STEPS ==================== */
.step-card {
  display: flex;
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  align-items: flex-start;
  gap: 20px;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(182, 149, 77, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.step-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--secondary-color);
}

.step-content p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .step-card {
    flex-direction: column;
    padding: 24px;
    align-items: center;
    text-align: center;
  }
}

/* ==================== SUBSCRIPTION & PLANS ENHANCEMENTS ==================== */

.subscription-info-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(182, 149, 77, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subscription-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), #e6c073);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.sub-status-badge {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sub-status-active {
  background: #ecfdf5;
  color: #059669;
}

.sub-status-expired {
  background: #fef2f2;
  color: #dc2626;
}

.sub-status-none {
  background: #f8fafc;
  color: #64748b;
}

.sub-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.sub-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-detail-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.sub-detail-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
}

.sub-detail-value.text-danger {
  color: #e74c3c;
}

.plan-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #fdfaf3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

/* ==================== CUSTOM FILE UPLOAD ==================== */
.custom-file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.custom-file-upload .upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  border: 2px dashed rgba(182, 149, 77, 0.4);
  border-radius: 12px;
  background-color: rgba(182, 149, 77, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.custom-file-upload .upload-btn-wrapper:hover {
  border-color: var(--primary-color);
  background-color: rgba(182, 149, 77, 0.08);
  /* Theme primary with low opacity */
}

.custom-file-upload .upload-btn-wrapper i {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: block;
}

.custom-file-upload .upload-btn-wrapper span {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 600;
}

.custom-file-upload input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.custom-file-upload .file-name {
  font-size: 12px;
  color: var(--text-light);
  margin-top: -5px;
  text-align: center;
  word-break: break-all;
  font-weight: 500;
}

.custom-file-upload .or-divider {
  text-align: center;
  position: relative;
  margin: 5px 0;
}

.custom-file-upload .or-divider::before,
.custom-file-upload .or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--border-color);
}

.custom-file-upload .or-divider::before {
  left: 0;
}

.custom-file-upload .or-divider::after {
  right: 0;
}

.custom-file-upload .or-divider span {
  font-size: 12px;
  color: var(--text-light);
  background: #fff;
  padding: 0 10px;
}

.plan-card:hover .plan-icon-wrapper {
  transform: scale(1.15) rotate(-5deg);
  background: var(--primary-color);
  color: white !important;
}

.plan-card.featured .plan-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color) !important;
}

.plan-card.featured:hover .plan-icon-wrapper {
  background: var(--primary-color);
  color: white !important;
}

.admin-card {
  border: 1px solid var(--secondary-color);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Plan Card Redesign */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.plan-card {
  background: white;
  border-radius: 24px;
  padding: 35px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(182, 149, 77, 0.12);
  border-color: var(--primary-color);
}

.plan-card.featured {
  background: var(--secondary-color);
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top right, rgba(182, 149, 77, 0.15), transparent);
  pointer-events: none;
}

.plan-card.featured .plan-name {
  color: white;
}

.plan-card.featured .plan-price {
  color: var(--primary-color);
}

.plan-card.featured .plan-desc {
  color: rgba(255, 255, 255, 0.65);
}

.plan-card.featured .feature-item {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(182, 149, 77, 0.4);
  z-index: 1;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
}

.plan-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.5;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.plan-card.featured .feature-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .subscription-info-card {
    padding: 20px;
  }

  .sub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .plan-card {
    padding: 30px;
  }
}

/* Premium Voucher Section */
.voucher-premium-section {
  margin-bottom: 40px;
}

.voucher-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid rgba(182, 149, 77, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.voucher-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.voucher-icon {
  width: 50px;
  height: 50px;
  background: #fdfaf3;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.voucher-content {
  flex-grow: 1;
}

.voucher-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.voucher-content p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.voucher-input-group {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.premium-input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.premium-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(182, 149, 77, 0.1);
}

@media (max-width: 768px) {
  .voucher-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .voucher-card::after {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 4px;
    width: 100%;
  }

  .voucher-icon {
    margin: 0 auto;
  }

  .voucher-input-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .voucher-content h4 {
    margin-top: 10px;
  }
}

/* ==================== RESTAURANT & MENU MANAGEMENT ENHANCEMENTS ==================== */

.manage-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 10px 40px rgba(0, 0, 0, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.manage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(182, 149, 77, 0.1);
  border-color: var(--primary-color);
  z-index: 10;
}

.manage-card-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.manage-card-icon {
  width: 48px;
  height: 48px;
  background: #fdfaf3;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.manage-card-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--secondary-color);
}

.manage-card-info p {
  font-size: 13px;
  color: var(--text-light);
}

.manage-card-actions {
  display: flex;
  gap: 8px;
}

/* Category & Product Item Redesign */
.item-list-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.item-list-card:hover {
  border-color: var(--primary-color);
  background: #fdfaf3;
}

.item-list-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-list-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f3f5;
}

.item-list-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 2px;
}

.item-list-details .badge-mini {
  font-size: 11px;
  background: #f1f3f5;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
}

.item-list-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
}

/* Utility for spacing */
.mb-0 {
  margin-bottom: 0 !important;
}

.m-0 {
  margin: 0 !important;
}

/* Page Header Buttons for Mobile */
@media (max-width: 768px) {
  .manage-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .manage-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Section contrast */
#restaurantsTableBody,
#menuCategoriesList,
#menuProductsList {
  background: #fbfbfb;
  padding: 10px;
  border-radius: 20px;
  min-height: 50px;
}

/* ==================== SECTION HEADER ENHANCEMENTS ==================== */

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon-box {
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(182, 149, 77, 0.2);
}

.header-text-group {
  display: flex;
  flex-direction: column;
}

.header-text-group h3,
.header-text-group h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--secondary-color);
}

.header-text-group .subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.btn-premium {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(182, 149, 77, 0.3);
  transition: all 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(182, 149, 77, 0.4);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .section-header-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-header-modern .btn-premium {
    width: 100%;
    justify-content: center;
  }
}

/* Padding Utilities */
.padding-20 {
  padding: 20px !important;
}

.padding-15 {
  padding: 15px !important;
}

.padding-10 {
  padding: 10px !important;
}

.padding-0 {
  padding: 0 !important;
}

/* Sticky Footer Fix for all landing pages */
body.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-footer {
  margin-top: auto;
  width: 100%;
}

/* Upload Success Styles */
.file-name.success-badge {
  background: #4CAF50;
  color: white !important;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 5px;
}

.upload-success {
  border: 2px solid #4CAF50 !important;
  background-color: rgba(76, 175, 80, 0.1) !important;
}

/* ==================== Template Selector UI ==================== */
.template-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 5px;
}

.template-card {
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 120px;
}

.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color, #b6954d);
}

.template-card.selected {
  border-color: #4CAF50;
  box-shadow: 0 0 0 1px #4CAF50;
}

.template-card.selected::after {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #4CAF50;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: #fff;
  border-radius: 50%;
  z-index: 10;
}

.template-card-img {
  height: 120px;
  background-color: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.template-card-img i {
  font-size: 40px;
  color: #d1d8e0;
}

.template-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-card-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.template-card-title {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 15px;
}

.template-card-desc {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 10px;
  flex: 1;
}

.template-card-actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.btn-preview-demo {
  background: transparent;
  color: #3498db;
  border: 1px solid #3498db;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-preview-demo:hover {
  background: #3498db;
  color: #fff;
}