:root{
  --bg:#0E241A;        /* רקע ירוק כהה */
  --panel:#143026;
  --pill:#173328;
  --gold:#C9A34E;      /* זהב רך */
  --gold-soft:#D4C38A; /* Welcome */
  --muted:#94A59F;     /* טקסט מושתק */
  --title-silver:#9CA5A2; /* כסף כהה */
  --emerald:#4E7D6C;   /* נגיעת אזמרגד עדינה למילוי הכותרת */
  --shadow:rgba(0,0,0,.28);
}

html,body{height:100%}
body{
  margin:0;background:var(--bg);color:#EDEFEA;
  font-family:ui-sans-serif,system-ui,"Helvetica Neue",Arial,sans-serif;
  display:flex;flex-direction:column;min-height:100vh;
}

/* Header & tabs */
header{
  position:sticky;top:0;z-index:5;
  background:linear-gradient(to bottom, rgba(20,48,38,.9), rgba(20,48,38,0));
  backdrop-filter:saturate(120%) blur(6px);
}
nav.tabs{
  display:flex;justify-content:center;align-items:center;gap:.85rem;
  padding:1rem 1rem .85rem;
}
nav.tabs a{
  text-decoration:none;color:#C7D0CB;background:var(--pill);
  padding:.6rem 1.05rem;border-radius:12px;border:1px solid rgba(255,255,255,.06);
  box-shadow:0 4px 10px var(--shadow);transition:transform .18s ease, box-shadow .18s ease;
  font-weight:650;outline:none;
}
nav.tabs a:hover{transform:translateY(-2px);box-shadow:0 8px 16px var(--shadow)}
nav.tabs a:focus-visible{box-shadow:0 0 0 3px rgba(201,163,78,.35),0 6px 12px var(--shadow)}
nav.tabs a.login{background:var(--gold);color:#0C1814;border:1px solid rgba(0,0,0,.18)}
nav.tabs a.login:hover{background:#E7E3D4}

/* Hero */
.hero{
  margin:clamp(1rem,4vw,2rem) auto 0;
  display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 1rem;
  gap:1.35rem;
}
.hero .logo{
  width:228px;height:auto;display:block;border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}

/* Title: זווית עדינה + מילוי כסף-אזמרגד + קו מתאר */
.title{
  font-size:clamp(2.6rem,7vw,4.6rem);line-height:1.08;margin:.1rem 0 0;
  font-weight:800;letter-spacing:.3px;transform:rotate(-0.2deg); /* הזווית */
  color:transparent;
  background:linear-gradient(180deg,
    var(--title-silver) 0%,
    #8E9894 45%,
    var(--emerald) 100%);              /* נגיעת ירקרק בפנים */
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-stroke:.4px rgba(10,24,19,.45);
  text-shadow:
    0 1px 0 rgba(255,255,255,.05),
    0 2px 0 rgba(0,0,0,.28),
    0 10px 16px rgba(0,0,0,.22);
}
/* נפילה אחורית אם אין תמיכת background-clip:text */
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .title{color:var(--title-silver)}
}

.welcome{
  margin-top:1.1rem;font-size:clamp(1rem,2.4vw,1.2rem);
  color:var(--gold-soft);font-weight:600;text-shadow:0 1px 0 rgba(0,0,0,.25);
}

/* Bubbles (שמאל-תחתון) */
.bubbles{position:fixed;left:1rem;bottom:1rem;display:flex;flex-direction:column;gap:.55rem;z-index:4}
.bubble{
  width:44px;height:28px;border-radius:8px;background:#BFC6C3; /* אפור "עכבר" פנימי */
  box-shadow:inset 0 1px 2px rgba(255,255,255,.35), inset 0 -1px 2px rgba(0,0,0,.2), 0 6px 12px rgba(0,0,0,.35);
  display:grid;place-items:center;border:1px solid rgba(0,0,0,.25)
}
.bubble svg{width:16px;height:16px;fill:#0A0F0E} /* אייקונים שחורים */

/* Coin */
.coin{
  width:76px;height:auto;position:fixed;right:1rem;bottom:1rem;pointer-events:none;user-select:none;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.45));
}

/* Footer */
.site-footer{margin-top:auto;text-align:center;padding:2.2rem 1rem}
.site-footer p{margin:0;font-size:.95rem;color:var(--muted)}

/* נגישות: High-Contrast */
@media (prefers-contrast: more){
  nav.tabs a{border-color:rgba(255,255,255,.18)}
  .title{-webkit-text-stroke:.55px rgba(0,0,0,.6)}
  .bubble{background:#B3BBB8}
}

/* נגישות: Reduced Motion */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important}
  nav.tabs a:hover{transform:none;box-shadow:0 4px 10px var(--shadow)}
}

/* מובייל */
@media (max-width:480px){
  nav.tabs{gap:.6rem;padding:.8rem}
  nav.tabs a{padding:.5rem .8rem;border-radius:10px;font-weight:700}
  .hero .logo{width:200px}
  .coin{width:64px}
}
.login-card {
  max-width: 340px;
  margin: 30px auto;
  padding: 20px;
  background-color: rgba(22, 34, 29, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-family: system-ui, sans-serif;
  color: #e7e3d4;
  text-align: left;
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #3a4a42;
  border-radius: 8px;
  background-color: #0c1814;
  color: #e7e3d4;
}

.register-btn {
  width: 100%;
  padding: 12px;
  background-color: #c9a34c;
  border: none;
  border-radius: 8px;
  color: #0c1814;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.register-btn:hover {
  background-color: #e0bb62;
}

.privacy-note {
  margin-top: 12px;
  font-size: 0.85em;
  color: #bfbfbf;
  text-align: center;
  line-height: 1.4;
}

/* ===== Login/Register Card Styling ===== */
.login-card {
  max-width: 380px;
  margin: 70px auto 40px; /* ↑ רווח גדול אחרי Welcome, גם נושם וגם ממורכז */
  padding: 24px 22px;
  background: rgba(22, 34, 29, 0.95); /* רקע כהה-שקוף, תואם אתר */
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35); /* הצללה רכה, מודרנית */
  font-family: system-ui, -apple-system, sans-serif;
  color: #e7e3d4;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.login-card input {
  width: 100%;
  padding: 11px 10px;
  margin-bottom: 16px;
  border: 1px solid #3a4a42;
  border-radius: 8px;
  background: #0c1814;
  color: #e7e3d4;
  font-size: 0.95rem;
}
.login-card input:focus {
  border-color: #c9a34c; /* צבע זהב עדין בפוקוס */
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 163, 76, 0.4);
}

.register-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #c9a34c, #e0bb62);
  border: none;
  border-radius: 10px;
  color: #0c1814;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.register-btn:hover {
  background: linear-gradient(135deg, #e0bb62, #f1d48a);
  transform: translateY(-1px);
}

.privacy-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #bfbfbf;
  text-align: center;
  line-height: 1.4;
}

/* ===== Login/Register Card – גרסה משופרת ===== */
.login-card {
  max-width: 380px;
  margin: 80px auto 50px; /* רווח נושם מה-Welcome */
  padding: 28px 24px;
  background: rgba(22, 34, 29, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  font-family: system-ui, -apple-system, sans-serif;
  color: #e7e3d4;
  text-align: center; /* מרכז הכל בתוך הכרטיס */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.55);
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.login-card input {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 18px;
  border: 1px solid #3a4a42;
  border-radius: 10px;
  background: #0c1814;
  color: #e7e3d4;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.login-card input:focus {
  border-color: #c9a34c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 163, 76, 0.35);
}

.register-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #c9a34c, #e0bb62);
  border: none;
  border-radius: 12px;
  color: #0c1814;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.register-btn:hover {
  background: linear-gradient(135deg, #e0bb62, #f1d48a);
  transform: translateY(-2px);
}

.privacy-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #bfbfbf;
  text-align: center;
  line-height: 1.4;
}
/* ===== Login/Register Card – גרסה קומפקטית ===== */
.login-card {
  max-width: 320px;
  margin: 90px auto 50px; /* רווח גדול אחרי Welcome */
  padding: 22px 20px;
  background: rgba(22, 34, 29, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  font-family: system-ui, -apple-system, sans-serif;
  color: #e7e3d4;
  text-align: center;
}
.login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}
.login-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #3a4a42;
  border-radius: 8px;
  background: #0c1814;
  color: #e7e3d4;
  font-size: 0.9rem;
}
.login-card input:focus {
  border-color: #c9a34c;
  outline: none;
  box-shadow: 0 0 0 2px rgba(201,163,76,0.3);
}
.register-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg,#c9a34c,#e0bb62);
  border: none;
  border-radius: 10px;
  color: #0c1814;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.register-btn:hover {
  background: linear-gradient(135deg,#e0bb62,#f1d48a);
  transform: translateY(-2px);
}
.privacy-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #bfbfbf;
  line-height: 1.4;
}
/* ===== Modern Login Card Styling (14 Sep 2025) ===== */
.login-wrapper { display:flex; justify-content:center; width:100%; }
.login-card-modern { width:100%; max-width:340px; margin:100px 16px 50px; padding:30px 24px; background:rgba(22,34,29,0.97); border-radius:16px; box-shadow:0 12px 32px rgba(0,0,0,0.5); font-family:system-ui,-apple-system,sans-serif; color:#e7e3d4; text-align:center; transition:transform 0.3s ease, box-shadow 0.3s ease; }
.login-card-modern:hover { transform:translateY(-5px); box-shadow:0 16px 48px rgba(0,0,0,0.6); }
.login-card-modern h2 { margin-bottom:18px; font-size:1.5rem; font-weight:700; color:#c9a34c; }
.login-card-modern label { display:block; margin-bottom:6px; font-weight:600; font-size:0.95rem; text-align:left; }
.login-card-modern input { width:100%; padding:12px; margin-bottom:18px; border:1px solid #3a4a42; border-radius:10px; background:#0c1814; color:#e7e3d4; font-size:0.95rem; transition:border-color 0.2s ease, box-shadow 0.2s ease; }
.login-card-modern input:focus { border-color:#c9a34c; outline:none; box-shadow:0 0 0 3px rgba(201,163,76,0.4); }
.btn-modern { width:100%; padding:14px; background:linear-gradient(135deg,#c9a34c,#e0bb62); border:none; border-radius:12px; color:#0c1814; font-weight:bold; font-size:1rem; cursor:pointer; transition:background 0.25s ease, transform 0.2s ease; }
.btn-modern:hover { background:linear-gradient(135deg,#e0bb62,#f1d48a); transform:translateY(-2px); }
.privacy-modern { margin-top:16px; font-size:0.85rem; color:#bfbfbf; text-align:center; line-height:1.4; }
/* ===== Modern Login Card (Updated 14 Sep 2025) ===== */
.login-wrapper { display:flex; justify-content:center; margin-top:80px; width:100%; }
.login-card-modern { max-width:360px; width:100%; padding:30px 25px; background:rgba(22,34,29,0.95); border-radius:18px; box-shadow:0 14px 40px rgba(0,0,0,0.55); font-family:system-ui,-apple-system,sans-serif; color:#e7e3d4; text-align:center; transition:transform 0.3s ease, box-shadow 0.3s ease; }
.login-card-modern:hover { transform:translateY(-4px); box-shadow:0 18px 48px rgba(0,0,0,0.65); }
.login-card-modern h2 { margin-bottom:20px; font-size:1.5rem; font-weight:700; color:#c9a34c; }
.login-card-modern label { display:block; margin-bottom:6px; font-weight:600; font-size:0.95rem; text-align:left; }
.login-card-modern input { width:100%; padding:12px; margin-bottom:18px; border:1px solid #3a4a42; border-radius:10px; background:#0c1814; color:#e7e3d4; font-size:0.95rem; }
.login-card-modern input:focus { border-color:#c9a34c; outline:none; box-shadow:0 0 0 3px rgba(201,163,76,0.4); }
.btn-modern { width:100%; padding:14px; background:linear-gradient(135deg,#c9a34c,#e0bb62); border:none; border-radius:12px; color:#0c1814; font-weight:bold; font-size:1rem; cursor:pointer; transition:background 0.25s ease, transform 0.2s ease; }
.btn-modern:hover { background:linear-gradient(135deg,#e0bb62,#f1d48a); transform:translateY(-2px); }
.privacy-modern { margin-top:16px; font-size:0.85rem; color:#bfbfbf; line-height:1.4; }
/* ===== Modern Login Card (Refined 14 Sep 2025) ===== */
.login-wrapper { display:flex; justify-content:center; align-items:center; margin-top:120px; position:relative; top:40px; width:100%; }
.login-card-modern { max-width:360px; width:100%; padding:30px 25px; background:rgba(22,34,29,0.95); border-radius:18px; box-shadow:0 14px 40px rgba(0,0,0,0.55); font-family:system-ui,-apple-system,sans-serif; color:#e7e3d4; text-align:center; transition:transform 0.3s ease, box-shadow 0.3s ease; }
.login-card-modern:hover { transform:translateY(-4px); box-shadow:0 18px 48px rgba(0,0,0,0.65); }
.login-card-modern h2 { margin-bottom:25px; font-size:1.6rem; font-weight:700; color:#c9a34c; text-shadow:0 2px 4px rgba(0,0,0,0.4); }
.login-card-modern label { display:block; margin-bottom:6px; font-weight:600; font-size:0.95rem; text-align:left; }
.login-card-modern input { width:100%; padding:12px; margin-bottom:18px; border:1px solid #3a4a42; border-radius:10px; background:#0c1814; color:#e7e3d4; font-size:0.95rem; transition:all 0.2s ease; }
.login-card-modern input:focus { border-color:#c9a34c; outline:none; box-shadow:0 0 6px rgba(201,163,76,0.5); }
.btn-modern { width:100%; padding:14px; background:linear-gradient(135deg,#d4af37,#f1d48a); border:none; border-radius:12px; color:#0c1814; font-weight:bold; font-size:1rem; cursor:pointer; transition:background 0.25s ease, transform 0.2s ease; box-shadow:0 4px 10px rgba(0,0,0,0.3); }
.btn-modern:hover { background:linear-gradient(135deg,#f1d48a,#ffeaa7); transform:translateY(-2px); }
.privacy-modern { margin-top:16px; font-size:0.85rem; color:#bfbfbf; line-height:1.4; }
/* ===== Signup Card (Pro, 14 Sep 2025) ===== */
.login-wrapper{display:flex;justify-content:center;align-items:flex-start;margin-top: 50px;width:100%;}
.login-card-modern{max-width:360px;width:100%;padding:30px 26px;background:rgba(22,34,29,.95);border-radius:18px;box-shadow:0 14px 40px rgba(0,0,0,.55);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:#e7e3d4;text-align:left;}
.login-card-modern label{display:block;margin-bottom:6px;font-weight:600;font-size:.95rem}
.login-card-modern input{width:100%;padding:12px;margin-bottom:18px;border:1px solid #3a4a42;border-radius:10px;background:#0c1814;color:#e7e3d4;font-size:.95rem;transition:all .2s ease}
.login-card-modern input:focus{border-color:#c9a34c;outline:none;box-shadow:0 0 6px rgba(201,163,76,.5)}
.btn-modern{width:100%;padding:14px;background:linear-gradient(135deg,#d4af37,#f1d48a);border:none;border-radius:12px;color:#0c1814;font-weight:700;font-size:1rem;cursor:pointer;transition:background .25s ease,transform .2s ease;box-shadow:0 4px 10px rgba(0,0,0,.3);margin-top:4px}
.btn-modern:hover{background:linear-gradient(135deg,#f1d48a,#ffeaa7);transform:translateY(-2px)}
.privacy-modern{margin-top:12px;font-size:.85rem;color:#bfbfbf;line-height:1.4;text-align:center}
.alt-line{margin-top:10px;text-align:center}
.alt-link{font-size:.9rem;color:#e0bb62;text-decoration:none}
.alt-link:hover{text-decoration:underline}
/* RTL/LTR auto */
html[lang="he"] .en{display:none} html[lang="en"] .he{display:none}
html[lang="he"] .login-card-modern label{text-align:right;direction:rtl}
html[lang="en"] .login-card-modern label{text-align:left;direction:ltr}

/* ===== Signup Card (Pro, 14 Sep 2025) ===== */
.login-wrapper{display:flex;justify-content:center;align-items:flex-start;margin-top: 50px;width:100%;}
.login-card-modern{max-width:360px;width:100%;padding:30px 26px;background:rgba(22,34,29,.95);border-radius:18px;box-shadow:0 14px 40px rgba(0,0,0,.55);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:#e7e3d4;text-align:left;}
.login-card-modern label{display:block;margin-bottom:6px;font-weight:600;font-size:.95rem}
.login-card-modern input{width:100%;padding:12px;margin-bottom:18px;border:1px solid #3a4a42;border-radius:10px;background:#0c1814;color:#e7e3d4;font-size:.95rem;transition:all .2s ease}
.login-card-modern input:focus{border-color:#c9a34c;outline:none;box-shadow:0 0 6px rgba(201,163,76,.5)}
.btn-modern{width:100%;padding:14px;background:linear-gradient(135deg,#d4af37,#f1d48a);border:none;border-radius:12px;color:#0c1814;font-weight:700;font-size:1rem;cursor:pointer;transition:background .25s ease,transform .2s ease;box-shadow:0 4px 10px rgba(0,0,0,.3);margin-top:4px}
.btn-modern:hover{background:linear-gradient(135deg,#f1d48a,#ffeaa7);transform:translateY(-2px)}
.privacy-modern{margin-top:12px;font-size:.85rem;color:#bfbfbf;line-height:1.4;text-align:center}
.alt-line{margin-top:10px;text-align:center}
.alt-link{font-size:.9rem;color:#e0bb62;text-decoration:none}
.alt-link:hover{text-decoration:underline}
/* RTL/LTR auto */
html[lang="he"] .en{display:none} html[lang="en"] .he{display:none}
html[lang="he"] .login-card-modern label{text-align:right;direction:rtl}
html[lang="en"] .login-card-modern label{text-align:left;direction:ltr}


/* ===== Signup fixes (Sep 14, 2025) ===== */
.login-card-modern form {
  display: flex;
  flex-direction: column;
  gap: 14px; /* ריווח בין השדות */
}
.login-card-modern input,
.login-card-modern button {
  width: 100%;
}

/* בועות צד ימין */
.contact-bubble {
  position: fixed;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #16221d;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.contact-bubble.phone { bottom: 70px; }
.contact-bubble.mail { bottom: 20px; }
.contact-bubble img { width: 22px; height: 22px; }


/* ===== Signup refinement (Sep 14, 2025) ===== */
.login-card-modern form {
  display: flex;
  flex-direction: column; /* שדות אחד מתחת לשני */
  gap: 16px;
  max-width: 320px;
  margin: 0 auto;
}
.login-card-modern label {
  font-weight: 600;
  margin-bottom: 4px;
}
.login-card-modern input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #0f1b16;
  color: #e7e3d4;
}
.login-card-modern button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9a34c, #8b6f2e);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.login-card-modern button:hover {
  background: linear-gradient(135deg, #dcb64f, #a07f35);
}

/* בועות צד ימין */
.contact-bubble {
  position: fixed;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #16221d;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.contact-bubble.phone { bottom: 70px; }
.contact-bubble.mail { bottom: 20px; }
.contact-bubble img { width: 22px; height: 22px; }


/* ===== Signup Card · clean RTL (Sep 14, 2025) ===== */
.login-wrapper{
  display:flex; justify-content:center; align-items:flex-start;
  width:100%; margin-top:60px; /* מרווח נעים מה-Welcome */
}
.login-card-modern{
  max-width:360px; width:100%;
  padding:30px 26px;
  background:rgba(22,34,29,.95);
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.55);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  color:#e7e3d4;
}
.login-card-modern form{ display:flex; flex-direction:column; gap:16px; }
.login-card-modern label{ font-weight:600; text-align:right; }
.login-card-modern input{
  width:100%; padding:12px;
  border:1px solid #3a4a42; border-radius:10px;
  background:#0c1814; color:#e7e3d4; direction:rtl;
  transition:box-shadow .2s ease, border-color .2s ease;
}
.login-card-modern input:focus{
  border-color:#c9a34c; box-shadow:0 0 6px rgba(201,163,76,.5); outline:none;
}
.btn-modern{
  width:100%; padding:14px;
  background:linear-gradient(135deg,#d4af37,#f1d48a);
  border:none; border-radius:12px;
  color:#0c1814; font-weight:700; font-size:1rem; cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,.3);
  transition:background .25s ease, transform .2s ease;
}
.btn-modern:hover{ background:linear-gradient(135deg,#f1d48a,#ffeaa7); transform:translateY(-2px); }
.privacy-modern{ margin-top:4px; font-size:.9rem; color:#cfcfcf; text-align:center; }
.alt-line{ text-align:center; margin-top:6px; }
.alt-link{ color:#e0bb62; text-decoration:none; }
.alt-link:hover{ text-decoration:underline; }


/* === Premium Signup Style · Ben Bagbag · Sep 14 === */
.login-card-modern{
  max-width:400px; width:100%;
  margin-top:40px; padding:32px 28px;
  background:rgba(15,23,20,.96);
  border-radius:20px;
  box-shadow:0 12px 32px rgba(0,0,0,.6), inset 0 0 30px rgba(201,163,76,.15);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:#f0eede;
}
.login-card-modern h2{
  margin-bottom:20px; text-align:center;
  font-size:1.4rem; font-weight:700;
  color:#d4af37; /* זהב */
}
.login-card-modern input{
  width:100%; padding:12px 14px;
  border:1px solid #444; border-radius:12px;
  background:#0c1814; color:#f0eede;
  margin-top:8px; transition:.2s;
}
.login-card-modern input:focus{
  border-color:#d4af37; box-shadow:0 0 8px rgba(212,175,55,.6); outline:none;
}
.btn-modern{
  margin-top:16px;
  background:linear-gradient(145deg,#d4af37,#f1d48a);
  color:#0c1814; font-weight:700;
  border:none; border-radius:14px;
  padding:14px; cursor:pointer;
  font-size:1.05rem;
  box-shadow:0 6px 16px rgba(0,0,0,.4);
  transition:.2s;
}
.btn-modern:hover{
  background:linear-gradient(145deg,#f1d48a,#ffeaa7);
  transform:translateY(-2px);
}
.privacy-modern{margin-top:10px;font-size:.9rem;text-align:center;color:#c9c9c9}
.alt-link{color:#e0bb62;text-decoration:none}
.alt-link:hover{text-decoration:underline}

/* === Page centering helper + notices (Sep 14, 2025) === */
.login-page-center{display:flex;justify-content:center;align-items:center;min-height:100vh;padding:24px;}
.notice{border-radius:12px;padding:10px 12px;margin:6px 0;font-weight:600;text-align:center}
.notice-success{background:rgba(52,199,89,.12);border:1px solid rgba(52,199,89,.4);color:#b6f7c2}
.notice-error{background:rgba(255,69,58,.12);border:1px solid rgba(255,69,58,.4);color:#ffd0d0}
.login-page-center {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:24px;
}

/* Centering for register page */
.login-page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Center the auth card robustly (works even with varying heights) */
html, body { height:100%; margin:0; }
.page-center {
  min-height: 100dvh;  /* 100vh במוביילים חדשים */
  display: grid;
  place-items: center;
  padding: 24px;
}
/* Beetle Detective chip (header, next to Search) */
.beetle-chip{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:9999px;margin-left:10px;vertical-align:middle;background:rgba(20,92,69,.15);box-shadow:inset 0 1px 4px rgba(0,0,0,.25),0 1px 2px rgba(0,0,0,.15)}
.beetle-chip img{width:28px;height:auto;opacity:.95;filter:drop-shadow(0 1px 0 rgba(0,0,0,.2));transition:transform .2s ease}
.beetle-chip:hover img{transform:scale(1.08)}
/* Beetle Detective header version */
.beetle-chip{
  position:absolute;
  top:14px;
  right:calc(50% + 190px); /* קרוב ל-Search, נוכל להזיז בהמשך */
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(20,92,69,0.18);
  box-shadow:inset 0 2px 6px rgba(0,0,0,0.25),0 1px 2px rgba(0,0,0,0.15);
}
.beetle-chip img{
  width:28px;
  height:auto;
  opacity:.96;
  transition:transform .25s ease;
}
.beetle-chip:hover img{transform:scale(1.08);}
/* Beetle Detective near Search tab */
.beetle-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:50%;
  margin-left:8px;
  background:rgba(20,92,69,0.2);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.25),0 1px 1px rgba(0,0,0,.1);
}
.beetle-chip img{
  width:26px;
  height:auto;
  opacity:.96;
  transition:transform .25s ease;
}
.beetle-chip:hover img{
  transform:scale(1.08);
}
/* --- Beetle Detective: top-left fixed --- */
.beetle-top{
  position:fixed;
  top:10px;
  left:10px;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(20,92,69,0.18);
  box-shadow:0 0 4px rgba(0,0,0,0.3);
  z-index:1000;
}
.beetle-top img{
  width:28px;
  height:auto;
  opacity:0.95;
  transition:transform 0.2s ease;
}
.beetle-top:hover img{transform:scale(1.08);}
@media(max-width:600px){
  .beetle-top{width:34px;height:34px;top:6px;left:6px;}
  .beetle-top img{width:22px;}
}
/* Beetle overlay safe style */
#beetle-overlay img {
  width: 20px;
  height: auto;
  opacity: 0.92;
  transition: transform 0.2s ease;
}
#beetle-overlay:hover img {
  transform: scale(1.1);
}
@media(max-width:600px){
}
/* Beetle overlay refined smaller */
#beetle-overlay img {
  width: 20px;
  height: auto;
  opacity: 0.92;
  transition: transform 0.2s ease;
}
#beetle-overlay:hover img {
  transform: scale(1.1);
}
@media(max-width: 600px) {
  #beetle-overlay img {
    width: 16px;
  }
}
/* === Beetle overlay (final, tiny, mobile-first) === */
#beetle-overlay{position:fixed;top:6px;left:6px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(20,92,69,.12);box-shadow:0 0 3px rgba(0,0,0,.25);z-index:99999}
#beetle-overlay img{width:16px;height:auto;opacity:.95;transition:transform .2s ease}
#beetle-overlay:hover img{transform:scale(1.08)}
@media(min-width:601px){
  #beetle-overlay{top:8px;left:8px;width:22px;height:22px}
  #beetle-overlay img{width:18px}
}
/* Force all uses of the beetle image to be a tiny logo at top-right */
img[src$="assets/logo/beetle_detective.png"]{
  position: fixed !important;
  top: 6px !important;
  right: 6px !important;
  width: 24px !important;   /* Desktop: קטן מאוד (≈1/5 מהמצב הנוכחי) */
  height: auto !important;
  z-index: 100000 !important;
  pointer-events: auto;
}
@media (max-width: 600px){
  img[src$="assets/logo/beetle_detective.png"]{
    width: 18px !important; /* iPhone – עוד יותר קטן */
    top: 6px !important;
    right: 6px !important;
  }
}
/* Hide any in-content usage of the detective image (hero etc.) */
img[src$="assets/logo/beetle_detective.png"]{ display:none !important; }

/* One tiny logo at top-right */
#beetle-logo{
  position:fixed;
  top:6px; right:6px;
  width:22px; height:22px;           /* קטן מאוד — ~1/5 מהמצב שראינו */
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:rgba(20,92,69,.12);
  box-shadow:0 0 3px rgba(0,0,0,.25);
  z-index:2147483647;                 /* גבוה מאוד כדי לא להיחתך */
  pointer-events:none;                /* לא תופס קליקים על הטאבים */
}
#beetle-logo img{
  width:18px; height:auto; opacity:.95;
}

/* מובייל (אייפונים) — עוד טיפונת קטן ובמרחק נכון מהקצה */
@media(max-width:600px){
  #beetle-logo{ top:6px; right:6px; width:20px; height:20px; }
  #beetle-logo img{ width:16px; }
}

/* אם משתמשים בקובץ המופרד לאייקון — ודא שהוא נראה */
img[src$="assets/logo/beetle_logo_small.png"]{ display:block !important; }
