:root {
  /* Theme Colors - Masters Green, Israel Blue, White */
  --masters-green: #006B3C;
  --masters-green-light: #008B4F;
  --masters-green-dark: #004A2A;
  --masters-green-bg: rgba(0, 107, 60, 0.08);
  --masters-green-border: rgba(0, 107, 60, 0.2);
  
  --israel-blue: #0038B8;
  --israel-blue-light: #0052E6;
  --israel-blue-dark: #002A8A;
  --israel-blue-bg: rgba(0, 56, 184, 0.08);
  --israel-blue-border: rgba(0, 56, 184, 0.2);
  
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --surface: var(--white);
  --surface-alt: var(--gray-50);
  
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: var(--israel-blue);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default list styling (prevents “unstyled admin” look) */
ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
li { margin: 0.35rem 0; }

/* Make plain admin links look like the new system */
main a:not(.btn) {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.muted { color: var(--text-muted); }

a {
  color: var(--israel-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--israel-blue-dark);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--masters-green);
  text-decoration: none;
}

.site-nav .nav-brand:hover {
  color: var(--masters-green-dark);
  text-decoration: none;
}

.site-nav .nav-logo {
  max-height: 48px;
  max-width: 200px;
  border-radius: var(--radius-sm);
}

.site-nav .nav-links {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Admin detail layouts */
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.admin-inline-form label {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

/* Buttons */
.btn,
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(135deg, var(--masters-green) 0%, var(--masters-green-light) 100%);
  color: var(--white);
  border-color: var(--masters-green);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--masters-green-dark) 0%, var(--masters-green) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--israel-blue);
  border-color: var(--israel-blue);
}

.btn-secondary:hover {
  background: var(--israel-blue);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--masters-green);
  border-color: var(--masters-green);
}

.btn-outline:hover {
  background: var(--masters-green);
  color: var(--white);
  text-decoration: none;
}

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

.btn-danger:hover {
  background: #DC2626;
  text-decoration: none;
}

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

.btn-success:hover {
  background: #059669;
  text-decoration: none;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Mobile responsiveness improvements */
@media (max-width: 820px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .site-nav .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav .nav-logo {
    max-height: 40px;
    max-width: 160px;
  }

  .site-nav .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-inline-form {
    align-items: stretch;
  }

  .admin-inline-form label {
    min-width: 100%;
  }

  .admin-inline-form .btn {
    width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

  form label {
    display: block;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
  }
}

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

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* Forms */
form {
  margin: 0;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--israel-blue);
  box-shadow: 0 0 0 3px var(--israel-blue-bg);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Checkout card brands + inline validation */
.card-brand-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}
.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition);
  filter: grayscale(1);
  opacity: 0.75;
}
.card-brand.active {
  border-color: var(--masters-green);
  color: var(--masters-green);
  box-shadow: 0 8px 18px rgba(0, 107, 60, 0.15);
  filter: grayscale(0);
  opacity: 1;
}
.card-brand.visa { color: var(--israel-blue); }
.card-brand.amex { color: #0ea5e9; }
.card-brand.mc { color: #f97316; }

.field-hint { color: var(--text-muted); font-size: 0.875rem; margin-top: 6px; }
.field-error { color: #991B1B; font-size: 0.875rem; margin-top: 6px; display: none; }
.has-error input { border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.has-error .field-error { display: block; }

/* Radio and Checkbox */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--masters-green);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-item,
.checkbox-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.radio-item:hover,
.checkbox-item:hover {
  border-color: var(--israel-blue);
  background: var(--israel-blue-bg);
}

.radio-item input:checked + label,
.checkbox-item input:checked + label {
  color: var(--masters-green);
  font-weight: 600;
}

.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
  border-color: var(--masters-green);
  background: var(--masters-green-bg);
}

/* Quantity Selector - Sleek Design */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--masters-green);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.quantity-btn:hover {
  background: var(--masters-green-dark);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.quantity-display {
  min-width: 60px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--masters-green);
  padding: 0 0.5rem;
}

/* Meal Card - Enhanced */
.meal-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.meal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--masters-green) 0%, var(--israel-blue) 100%);
}

.meal-card:hover {
  border-color: var(--masters-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.meal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.meal-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--masters-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.remove-meal-btn {
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.25rem;
}

.remove-meal-btn:hover {
  background: #DC2626;
  transform: scale(1.1);
}

.meal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Total Display */
.total-display {
  background: linear-gradient(135deg, var(--masters-green) 0%, var(--israel-blue) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.total-display-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.total-display-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Flash Messages */
.flash-message {
  position: relative;
  margin: 1rem 0;
  padding: 1rem 3rem 1rem 1rem;
  border-radius: var(--radius);
  border: 2px solid;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease-out;
}

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

.flash-message.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: #065F46;
}

.flash-message.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: #991B1B;
}

.flash-message.info {
  background: var(--israel-blue-bg);
  border-color: var(--israel-blue);
  color: var(--israel-blue-dark);
}

.flash-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: var(--transition);
}

.flash-close:hover {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-blue {
  background: var(--israel-blue-bg);
  color: var(--israel-blue-dark);
  border: 1px solid var(--israel-blue-border);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.1);
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

/* Back-compat: older templates use `.badge green|blue|yellow|red|gray` */
.badge.green { background: rgba(16, 185, 129, 0.1); color: #065F46; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge.blue { background: var(--israel-blue-bg); color: var(--israel-blue-dark); border: 1px solid var(--israel-blue-border); }
.badge.yellow { background: rgba(245, 158, 11, 0.1); color: #92400E; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge.red { background: rgba(239, 68, 68, 0.1); color: #991B1B; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge.gray { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-300); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

thead th {
  background: var(--gray-50);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--masters-green-bg);
}

/* Stats Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--masters-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stat-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: 800;
  color: var(--masters-green);
  margin: 0;
}

.revenue-tooltip {
  cursor: help;
  opacity: 0.6;
  font-size: 0.9em;
  font-weight: 400;
  vertical-align: middle;
}

.revenue-tooltip:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--masters-green) 0%, var(--israel-blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 2rem 0 4rem 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.95;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.9;
  color: var(--white);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-top: 2rem;
}

.btn-hero {
  font-size: 1.5rem;
  padding: 1.25rem 3rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-note {
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-top: 1rem;
  font-weight: 400;
}

.order-now-box {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--masters-green);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  text-align: center;
  margin: 2rem 0;
}

/* Section Styles */
section {
  margin: 4rem 0;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--masters-green);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--masters-green) 0%, var(--israel-blue) 100%);
  border-radius: var(--radius-full);
}

/* Meal Image Section (Top of Page - Full Width) */
.section-meal-image-top {
  background: var(--white);
  padding: 0;
  text-align: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

.meal-image-top {
  width: 70%;
  max-width: 70%;
  height: auto;
  border-radius: 0;
  margin: 0 auto;
  display: block;
  object-fit: cover;
}

/* Mobile optimization for meal image */
@media (max-width: 768px) {
  .section-meal-image-top {
    padding: 0;
  }

  .meal-image-top {
    width: 70%;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
  }
}

/* Page Heading Section (Not in a box) */
.page-heading-section {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: var(--white);
}

.page-main-heading {
  font-size: 3rem;
  color: var(--masters-green);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .page-main-heading {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.25rem;
  }
}

/* About Section */
.section-fundraiser-image {
  background: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.fundraiser-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  display: block;
  margin: 0 auto;
}

.section-about {
  background: var(--white);
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--masters-green-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--masters-green-border);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  background: var(--masters-green);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  color: var(--masters-green);
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.highlight-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Features Section */
.section-features {
  background: var(--gray-50);
  padding: 4rem 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--masters-green);
  font-weight: 700;
}

.feature-card p {
  margin-bottom: 0;
}

/* Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--masters-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.feature-card h3 {
  color: var(--masters-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  border-top: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--gray-50);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--masters-green);
  text-decoration: underline;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.footer-logo-caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .footer-logos {
    gap: 1.5rem;
  }
  .footer-logo-img {
    max-width: 120px;
    max-height: 60px;
  }
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.legal-page h1 {
  color: var(--masters-green);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  color: var(--masters-green);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-section h3 {
  color: var(--israel-blue);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section p {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-section ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-section li {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--israel-blue);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--israel-blue-dark);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Process Steps Section */
.section-process {
  background: var(--white);
  padding: 4rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--masters-green) 0%, var(--israel-blue) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.process-step h3 {
  color: var(--masters-green);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.process-step p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Meal Details Section */
.section-meal-details {
  background: var(--gray-50);
  padding: 4rem 0;
}

.meal-details-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.meal-details-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.meal-image-section {
  text-align: center;
  margin-bottom: 2rem;
}

.meal-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

.meal-image-placeholder {
  padding: 3rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.meal-main {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.meal-main h3 {
  color: var(--masters-green);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.meal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--israel-blue);
  margin-bottom: 1rem;
}

.meal-main p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.meal-sides h4 {
  color: var(--masters-green);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.meal-sides ul {
  list-style: none;
  padding: 0;
}

.meal-sides li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.meal-sides li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--masters-green);
  font-weight: 700;
  font-size: 1.25rem;
}

.meal-cta {
  text-align: center;
  padding-top: 1rem;
}

.btn-large {
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}

/* FAQ Section */
.section-faq {
  background: var(--white);
  padding: 4rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--gray-50);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--masters-green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-item h3 {
  color: var(--masters-green);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0;
}

/* Contact Section */
.section-contact {
  background: var(--gray-50);
  padding: 4rem 0;
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--masters-green-bg);
  border: 2px solid var(--masters-green-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  text-align: left;
}

.contact-method:hover {
  background: var(--masters-green);
  border-color: var(--masters-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.contact-method:hover .contact-icon,
.contact-method:hover strong,
.contact-method:hover p {
  color: var(--white);
}

.contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  color: var(--masters-green);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.contact-method p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* CTA Section */
.section-cta {
  background: linear-gradient(135deg, var(--masters-green) 0%, var(--israel-blue) 100%);
  padding: 5rem 0;
  margin-top: 4rem;
  border-radius: var(--radius-lg);
}

.cta-card {
  text-align: center;
  color: var(--white);
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-card p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-card .btn-primary {
  background: var(--white);
  color: var(--masters-green);
  border-color: var(--white);
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}

.cta-card .btn-primary:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Checkout layout - stacks on mobile */
.checkout-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

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

.checkout-card-fields {
  display: grid;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: var(--radius);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-tagline {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1.0625rem;
  }
  
  .btn-hero {
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .site-nav .nav-inner {
    flex-wrap: wrap;
  }
  
  .site-nav .nav-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .meal-options {
    grid-template-columns: 1fr;
  }

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

  .checkout-card-fields {
    grid-template-columns: 1fr !important;
  }

  .delivery-address-grid {
    grid-template-columns: 1fr !important;
  }
  
  .table-wrap {
    font-size: 0.875rem;
  }
  
  .meal-details-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-card h2 {
    font-size: 2rem;
  }
  
  .cta-card p {
    font-size: 1.0625rem;
  }
  
  /* Admin Dashboard Mobile */
  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-card h3 {
    font-size: 0.875rem;
  }
  
  .stat-card p {
    font-size: 1.5rem;
  }
  
  /* Admin grid layouts stack on mobile */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Dashboard grid stacks on mobile */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Quick actions grid stacks on mobile */
  .quick-actions-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Admin cards on mobile */
  .card {
    padding: 1.25rem;
  }
  
  .card-header {
    padding: 0 0 1rem 0;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  /* Admin buttons stack on mobile */
  .card > div[style*="grid-template-columns"] a.btn,
  .card > div[style*="grid-template-columns"] button.btn {
    width: 100%;
    justify-content: center !important;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  /* Tables become scrollable on mobile */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  
  table {
    min-width: 600px;
    font-size: 0.875rem;
  }
  
  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Forms on mobile */
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  form label input,
  form label select,
  form label textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  form button[type="submit"],
  form .btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }
  
  /* Admin manage users page */
  h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }
  
  /* Filter forms on mobile */
  .card form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card form label {
    display: flex;
    flex-direction: column;
  }
  
  .card form button,
  .card form a.btn {
    width: 100%;
  }
  
  /* Better touch targets on mobile */
  .btn,
  button,
  a.button {
    min-height: 44px;
    padding: 0.875rem 1.25rem;
  }
  
  /* Improved spacing on mobile */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Better form spacing */
  form {
    margin-bottom: 1.5rem;
  }
  
  /* Hero improvements on mobile */
  .hero {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  /* Stats cards on mobile */
  .stat-card {
    text-align: center;
  }
  
  /* Feature cards stack better */
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  /* Process steps better spacing */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* FAQ items better spacing */
  .faq-item {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .total-display-amount {
    font-size: 2rem;
  }

  .meal-image-top {
    width: 100%;
    max-width: 100%;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Export Transactions Dropdown - desktop dropdown, mobile stacked buttons */
.export-transactions-wrap {
  display: block;
}

.export-transactions-dropdown {
  display: block;
  position: relative;
}

.export-transactions-mobile {
  display: none;
}

.export-transactions-btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 1rem;
}

.export-transactions-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  min-width: 280px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 0.25rem 0;
}

.export-transactions-menu.is-open {
  display: block;
}

.export-option {
  display: block;
  padding: 0.75rem 1rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.export-option:hover,
.export-option:focus {
  background: var(--gray-100);
}

@media (max-width: 768px) {
  .export-transactions-desktop {
    display: none;
  }

  .export-transactions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .export-transactions-mobile .btn {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0.75rem 1rem;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Print Styles */
@media print {
  .site-nav,
  footer,
  .btn,
  button {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
}
