*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2744; --navy-light: #263a5e; --navy-dark: #121d30;
  --gold: #c49a3c; --gold-light: #e8c66a; --gold-dark: #a07d2e;
  --cream: #faf8f3; --cream-dark: #f0ece3;
  --text-dark: #2c2c2c; --text-medium: #555; --text-light: #888;
  --white: #ffffff; --red: #c0392b; --green: #27ae60; --blue: #2980b9;
  --border: #e0dcd4;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 8px; --radius-lg: 12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}
html { font-size: 19px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text-dark); line-height: 1.6; min-height: 100vh; }

/* ─── Top Bar ──────────────────────────────────────────────────── */
.top-bar { background: var(--navy); }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 28px; display: flex; justify-content: space-between; align-items: center; }
.top-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.top-logo-img { height: 52px; width: auto; background: #fff; border-radius: 50%; padding: 4px; }
.top-logo-text h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); margin: 0; font-weight: 600; line-height: 1.2; }
.top-logo-text span { font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; }
.top-nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.top-nav-item { font-size: 1rem; color: rgba(255,255,255,0.55); padding: 9px 12px; border-radius: 6px; text-decoration: none; cursor: pointer; transition: all 0.2s; font-weight: 600; border: none; background: none; font-family: var(--font-body); white-space: nowrap; }
@media (max-width: 1300px) { .top-nav-item { font-size: 0.95rem; padding: 8px 10px; } }
.top-nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.top-nav-item.active { color: #fff; background: rgba(196,154,60,0.18); }
.top-donate-btn { background: var(--gold); color: var(--navy); border: none; padding: 8px 22px; border-radius: 6px; font-size: 0.95rem; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; margin-left: 6px; font-family: var(--font-body); }
.top-donate-btn:hover { background: var(--gold-light); }
.top-sponsor-btn { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); padding: 7px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; letter-spacing: 0.3px; margin-left: 4px; font-family: var(--font-body); }
.top-sponsor-btn:hover { background: rgba(196,154,60,0.12); }

/* ─── Ticker ───────────────────────────────────────────────────── */
.zmanim-ticker { background: var(--navy-dark); padding: 7px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: center; gap: 20px; font-size: 0.95rem; font-weight: 500; }
.ticker-inner span { color: rgba(196,154,60,0.6); }
.ticker-inner span b { color: var(--gold); font-weight: 600; }
.ticker-inner .ticker-hl { color: var(--gold); }

/* ─── Mobile menu ──────────────────────────────────────────────── */
.menu-toggle { display: none; position: fixed; top: 12px; right: 12px; z-index: 200; background: var(--navy); color: var(--gold); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-lg); align-items: center; justify-content: center; font-family: var(--font-body); }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 150; background: var(--navy); padding: 80px 24px 24px; flex-direction: column; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav-item { padding: 14px 16px; color: rgba(255,255,255,0.7); font-size: 1rem; font-weight: 500; border: none; background: none; text-align: left; cursor: pointer; border-radius: 8px; font-family: var(--font-body); }
.mobile-nav-item.active { color: var(--gold); background: rgba(196,154,60,0.1); }

/* ─── Hero Banner ──────────────────────────────────────────────── */
.hero-banner { background: linear-gradient(135deg, #1a2744 0%, #263a5e 50%, #1a2744 100%); padding: 14px 28px; position: relative; overflow: hidden; }
.hero-banner::after { content: ''; position: absolute; top: -60px; right: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(196,154,60,0.08); }
.hero-banner::before { content: ''; position: absolute; bottom: -80px; right: 60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(196,154,60,0.05); }
.hero-tree-bg { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); height: 130%; opacity: 0.12; pointer-events: none; z-index: 0; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin: 0 0 2px; font-weight: 700; line-height: 1.2; }
.hero-text h1 em { font-style: normal; color: var(--gold); }
.hero-text p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; letter-spacing: 0.5px; }
.hero-cta { display: flex; gap: 8px; align-items: center; }
.hero-cta button { border: none; padding: 10px 24px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.hero-cta-primary { background: var(--gold); color: var(--navy); }
.hero-cta-primary:hover { background: var(--gold-light); }
.hero-cta-secondary { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border: 0.5px solid rgba(255,255,255,0.15) !important; }
.hero-cta-secondary:hover { background: rgba(255,255,255,0.12); }

/* ─── Seating Chart (admin) ───────────────────────────────────── */
.seating-chart { position: relative; }
.section-frame { border: 2px solid #1a2744; border-radius: 4px; background: transparent; z-index: 0; pointer-events: none; }
.section-frame.ladies { background: rgba(196, 154, 60, 0.06); }
.section-frame.social { background: rgba(39, 174, 96, 0.06); }
.section-frame.mens-left { background: rgba(39, 174, 96, 0.06); }
.section-frame.mens-center { background: rgba(196, 154, 60, 0.06); }
.section-frame.mens-right { background: rgba(39, 174, 96, 0.06); }
.section-label { font-size: 0.72rem; font-weight: 800; color: #1a2744; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; padding: 2px 6px; background: #1a2744; color: #c49a3c; border-radius: 3px 3px 0 0; z-index: 1; }
.seat-num-box, .seat-holder-box { border: 1px solid #8a6f2b; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 2px; line-height: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: outline 0.1s; z-index: 1; }
.seat-num-box { background: #eac269; color: #1a2744; font-weight: 800; font-size: 0.88rem; border-bottom: none; border-radius: 3px 3px 0 0; }
.seat-holder-box { background: #f7ebc7; color: #3a2f1a; font-weight: 600; font-size: 0.6rem; border-top: none; border-radius: 0 0 3px 3px; }
.seat-holder-box.empty { background: #fdf8ea; color: transparent; }
.seat-num-box.assigned { background: #c49a3c; color: #fff; }
.seat-holder-box.assigned { background: #e9cf92; color: #1a2744; font-weight: 700; }
.seat-num-box:hover, .seat-holder-box:hover { outline: 2px solid #1a2744; outline-offset: -1px; z-index: 3; }
.mehitzah-bar { background: #c49a3c; color: #1a2744; text-align: center; font-weight: 900; letter-spacing: 6px; padding: 4px; align-self: center; font-size: 0.85rem; border: 2px solid #8a6f2b; z-index: 2; }

/* ─── Hero Slideshow ──────────────────────────────────────────── */
.hero-slideshow { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #1a2744; overflow: hidden; border-radius: 14px; margin-top: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; }
.hero-slide-text.active { opacity: 1; }
.hero-slide-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #c49a3c; margin-bottom: 10px; }
.hero-slide-body { font-size: 1rem; line-height: 1.4; white-space: pre-wrap; max-width: 90%; }

/* ─── Page Content ─────────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 12px 28px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.page-header-date { font-size: 0.8rem; color: var(--text-light); }

/* ─── Cards ────────────────────────────────────────────────────── */
.card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 10px; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent); }
.card-header { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.card-plain { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 14px; }

/* ─── Three-column grid ────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 1fr 1fr 240px; gap: 10px; }

/* ─── Time rows ────────────────────────────────────────────────── */
.time-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 1.05rem; border-bottom: 0.5px solid rgba(0,0,0,0.04); }
.time-row:last-child { border: none; }
.time-label { color: var(--text-medium); font-weight: 500; }
.time-value { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.time-value.candle-lighting { color: var(--gold-dark); }

/* ─── Schedule Grid ────────────────────────────────────────────── */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.day-card { background: var(--white); border-radius: var(--radius-lg); border: 0.5px solid var(--border); overflow: hidden; transition: transform 0.2s; }
.day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.day-card-header { background: var(--navy); color: #fff; padding: 12px 16px; }
.day-card-header.shabbos { background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-bottom: 3px solid var(--gold); }
.day-card-header.yomtov { background: linear-gradient(135deg, #6b2f2f, #8b3a3a); border-bottom: 3px solid var(--gold); }
.day-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.day-date { font-size: 0.78rem; opacity: 0.8; margin-top: 2px; }
.day-hebrew { font-size: 0.82rem; color: var(--gold-light); margin-top: 2px; }
.day-card-body { padding: 14px 16px; }
.parsha-badge { display: inline-block; background: var(--gold); color: var(--navy); padding: 2px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 600; margin-top: 4px; }
.holiday-badge { display: inline-block; background: #c0392b; color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 600; margin-top: 4px; margin-right: 4px; }

/* ─── Zmanim Panel ─────────────────────────────────────────────── */
.zmanim-panel { background: rgba(196,154,60,0.03); border: 0.5px solid rgba(196,154,60,0.12); border-radius: var(--radius-lg); padding: 10px 12px; position: relative; overflow: hidden; }
.zmanim-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.zmanim-panel-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); font-weight: 600; text-align: center; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.panel-tree-icon { height: 28px; width: auto; }
.zman-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.9rem; }
.zman-name { color: #666; }
.zman-time { color: #222; font-weight: 600; }
.zmanim-expand-btn { display: block; width: 100%; margin-top: 6px; padding: 6px; background: var(--navy); color: var(--gold); border: none; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-align: center; font-family: var(--font-body); letter-spacing: 0.3px; }
.zmanim-expand-btn:hover { background: var(--navy-light); }

/* ─── Sponsor buttons ──────────────────────────────────────────── */
.sponsor-row { display: flex; gap: 6px; }
.sponsor-btn { flex: 1; padding: 6px 6px; border: 0.5px solid rgba(39,174,96,0.3); background: rgba(39,174,96,0.04); border-radius: 6px; text-align: center; cursor: pointer; transition: all 0.2s; }
.sponsor-btn:hover { border-color: var(--green); background: rgba(39,174,96,0.08); }
.sponsor-btn.taken { border-color: rgba(192,57,43,0.3); background: rgba(192,57,43,0.04); }
.sponsor-label { font-size: 0.9rem; color: var(--text-light); }
.sponsor-status { font-size: 0.95rem; font-weight: 600; color: var(--green); margin-top: 1px; }
.sponsor-status.taken { color: var(--red); }
.sponsor-card { background: var(--white); border-radius: var(--radius-lg); border: 2px solid var(--border); padding: 20px; text-align: center; }
.sponsor-card.available { border-color: var(--green); }
.sponsor-card.taken { border-color: var(--red); opacity: 0.7; }

/* ─── Quick Links ──────────────────────────────────────────────── */
.quick-links { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.quick-link { padding: 10px 8px; text-align: center; background: var(--cream-dark); border-radius: var(--radius); font-size: 1rem; color: var(--navy); font-weight: 600; cursor: pointer; transition: all 0.2s; border: 0.5px solid transparent; }
.quick-link:hover { border-color: var(--gold); background: rgba(196,154,60,0.06); }

/* ─── Calendar (Dark, high contrast, large text) ────────────────── */
.calendar-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; }
.calendar-nav button { background: var(--navy); color: var(--gold); border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); }
.calendar-nav button:hover { background: var(--navy-light); }
.calendar-month-label { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); min-width: 280px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--navy); }
.calendar-day-header { background: var(--navy); color: var(--gold); text-align: center; padding: 12px 4px; font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.calendar-day { background: var(--white); padding: 10px 8px; min-height: 110px; cursor: pointer; transition: background 0.2s; border: 1px solid var(--cream-dark); }
.calendar-day:hover { background: var(--cream); }
.calendar-day.today { background: rgba(196,154,60,0.12); border: 3px solid var(--gold); }
.calendar-day.shabbos { background: rgba(26,39,68,0.06); }
.calendar-day.empty { background: var(--cream-dark); cursor: default; }
.calendar-day-number { font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.calendar-day-hebrew { font-size: 0.8rem; color: var(--gold-dark); margin-top: 2px; font-weight: 600; }
.calendar-day-events { margin-top: 4px; }
.calendar-event { font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.calendar-event.holiday { background: rgba(192,57,43,0.15); color: var(--red); }
.calendar-event.candle { background: rgba(196,154,60,0.18); color: var(--gold-dark); }
.calendar-event.shiur { background: rgba(41,128,185,0.12); color: var(--blue); }

/* ─── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; text-align: left; }
.form-label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; font-size: 0.95rem; }
.form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body); transition: border-color 0.2s; background: var(--white); }
.form-input:focus { outline: none; border-color: var(--gold); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 24px; border: none; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* ─── Auth ─────────────────────────────────────────────────────── */
.auth-container { max-width: 420px; margin: 60px auto; background: var(--white); border-radius: var(--radius-lg); border: 0.5px solid var(--border); padding: 36px; text-align: center; }
.auth-logo { width: 100%; max-width: 280px; margin: 0 auto 16px; display: block; }
.auth-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 6px; }
.auth-subtitle { color: var(--text-light); margin-bottom: 24px; font-size: 0.95rem; }

/* ─── Page Header Tree ─────────────────────────────────────────── */
.page-header-tree { height: 40px; width: auto; }

/* ─── Admin Tabs ───────────────────────────────────────────────── */
.admin-tabs { display: flex; gap: 3px; border-bottom: 2px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 10px 16px; border: none; background: none; color: var(--text-medium); font-size: 0.9rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-family: var(--font-body); }
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ─── Rules grid ───────────────────────────────────────────────── */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rule-card { background: var(--cream); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.rule-card-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.rule-card input, .rule-card select { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body); }
.rule-card input:focus, .rule-card select:focus { outline: none; border-color: var(--gold); }
.rule-description { font-size: 0.8rem; color: var(--text-light); margin-top: 3px; }

/* ─── Tables ───────────────────────────────────────────────────── */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 0.9rem; }
td { padding: 10px 12px; border-bottom: 0.5px solid var(--border); }
tr:hover { background: var(--cream); }

/* ─── Shiurim ──────────────────────────────────────────────────── */
.shiur-card { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--cream); border-radius: var(--radius); margin-bottom: 8px; border: 0.5px solid var(--border); }
.shiur-day { background: var(--navy); color: var(--gold); padding: 5px 10px; border-radius: var(--radius); font-weight: 700; font-size: 0.85rem; min-width: 60px; text-align: center; }
.shiur-info { flex: 1; }
.shiur-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.shiur-details { font-size: 0.9rem; color: var(--text-medium); margin-top: 2px; }

/* ─── Loading & Messages ───────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--text-light); font-size: 1rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 500; font-size: 0.88rem; }
.message-success { background: rgba(39,174,96,0.08); color: var(--green); border: 0.5px solid rgba(39,174,96,0.25); }
.message-error { background: rgba(192,57,43,0.08); color: var(--red); border: 0.5px solid rgba(192,57,43,0.25); }

/* ─── Badge ────────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 0.6rem; background: var(--navy); color: var(--gold); padding: 3px 10px; border-radius: 12px; font-weight: 600; }

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 24px 12px; font-size: 0.8rem; color: var(--text-light); border-top: 1px solid var(--border); margin-top: 20px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 8px; opacity: 0.85; }
.footer-text { font-size: 0.85rem; color: var(--text-medium); }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .top-nav { display: none; }
  .menu-toggle { display: flex; }
  .home-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; gap: 16px; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-cta button { flex: 1 1 140px; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .calendar-day { min-height: 60px; padding: 4px; }
  .page-wrap { padding: 16px; }
  .rules-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .admin-tab { padding: 8px 10px; font-size: 0.82rem; }
  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-container table { min-width: 560px; }
  .form-input { font-size: 16px; }
  .btn { padding: 11px 18px; }
  .btn-sm { padding: 8px 12px; }
}
@media (max-width: 600px) {
  html { font-size: 17px; }
  body { line-height: 1.5; }
  .calendar-day-hebrew { display: none; }
  .ticker-inner { font-size: 0.65rem; gap: 10px; padding: 0 12px; flex-wrap: wrap; justify-content: center; }
  .top-bar-inner { padding: 8px 14px; }
  .top-logo-img { height: 44px; }
  .top-logo-text h2 { font-size: 1.15rem; }
  .top-logo-text span { font-size: 0.62rem; letter-spacing: 1.4px; }
  .hero-banner { padding: 12px 14px; }
  .hero-text h1 { font-size: 1.25rem; }
  .hero-text p { font-size: 0.78rem; }
  .home-grid { gap: 12px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-link { padding: 14px; font-size: 1rem; }
  .page-wrap { padding: 12px; }
  .page-header h1 { font-size: 1.2rem; }
  .page-header-date { font-size: 0.72rem; }
  .card { padding: 14px; margin-bottom: 12px; border-radius: 10px; }
  .card-header { font-size: 1rem; }
  .time-row { padding: 6px 0; font-size: 0.95rem; }
  .admin-tabs { gap: 2px; margin-bottom: 14px; }
  .admin-tab { padding: 7px 9px; font-size: 0.78rem; }
  .btn { padding: 12px 16px; font-size: 1rem; }
  .btn-sm { padding: 7px 11px; font-size: 0.85rem; }
  .form-input { padding: 11px 12px; }
  .hero-cta { width: 100%; }
  .hero-cta button { width: 100%; padding: 12px 20px; }
  .mobile-nav-item { padding: 16px 14px; font-size: 1.05rem; }
  .menu-toggle { width: 42px; height: 42px; top: 10px; right: 10px; }
}
@media (max-width: 400px) {
  html { font-size: 16px; }
  .top-logo { gap: 8px; }
  .top-logo-text span { display: none; }
}
