/* מטבעות ואזור אישי - עצמאי, עובד גם בעמודי הקורס המועתקים */

[hidden] { display: none !important; }

.coin-chip {
  position: fixed;
  z-index: 60;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  border: 1px solid rgba(187, 161, 106, .55);
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px -9px #254b5f40, 0 22px 40px -22px #254b5f55;
  color: #294D59;
  font-family: "Heebo", "Assistant", Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  direction: rtl;
  transition: transform .3s cubic-bezier(.22, .6, .36, 1), box-shadow .3s;
}
.coin-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -9px #254b5f55, 0 28px 46px -22px #254b5f66; }
.coin-chip:focus-visible { outline: 3px solid #D9B24A; outline-offset: 3px; }
.coin-chip .coin-ico { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 3px 4px #7a5e2240); }
.coin-chip-num { font-family: "Montserrat", "Heebo", Arial, sans-serif; font-weight: 600; font-size: 1.1rem; }
.coin-chip-label { color: #587985; font-weight: 600; font-size: .88rem; }
.coin-chip.is-bump { animation: coin-bump .7s cubic-bezier(.22, .6, .36, 1); }
.coin-chip.is-bump .coin-ico { animation: coin-spin .8s cubic-bezier(.22, .6, .36, 1); }

.coin-toasts {
  position: fixed;
  z-index: 70;
  bottom: 84px;
  left: 50%;
  display: grid;
  gap: 10px;
  width: min(92vw, 380px);
  transform: translateX(-50%);
  pointer-events: none;
  direction: rtl;
}
.coin-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(187, 161, 106, .5);
  border-radius: 18px;
  background: #294D59;
  box-shadow: 0 18px 40px -18px #12303acc;
  color: #EAF2F3;
  font-family: "Assistant", "Heebo", Arial, sans-serif;
  pointer-events: auto;
  animation: toast-in .5s cubic-bezier(.22, .6, .36, 1) both;
}
.coin-toast.is-out { animation: toast-out .4s ease both; }
.coin-toast .coin-ico { width: 44px; height: 44px; flex: none; }
.coin-toast strong { display: block; font-family: "Heebo", Arial, sans-serif; font-weight: 800; font-size: 1.1rem; color: #F1D27A; }
.coin-toast span { display: block; font-size: .95rem; line-height: 1.4; }
.coin-toast a { color: #F1D27A; font-weight: 700; }
.coin-flip { animation: coin-spin 1s cubic-bezier(.22, .6, .36, 1); }

@keyframes coin-bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes coin-spin { from { transform: rotateY(0) scale(.6); } 60% { transform: rotateY(540deg) scale(1.08); } to { transform: rotateY(720deg) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

@media (max-width: 600px) {
  .coin-chip { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 44px; padding-inline-start: 12px; }
  .coin-chip .coin-ico { width: 28px; height: 28px; }
  .coin-toasts { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-chip, .coin-chip .coin-ico, .coin-toast, .coin-flip { animation: none !important; transition: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- עמוד האזור האישי ---------- */

.account-hero { padding: 48px 0 90px; min-height: calc(100vh - 76px); }
.account-wrap { display: grid; gap: 28px; max-width: 980px; }
.account-card {
  padding: 34px 30px;
  border: 1px solid rgba(145, 186, 196, .35);
  border-radius: 22px;
  background: #FFFDF8;
  box-shadow: 0 4px 9px -5px #254b5f14, 0 18px 42px -18px #254b5f30;
}
.account-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.account-card h2 { font-size: 1.5rem; }
.account-form { display: grid; gap: 12px; max-width: 420px; margin-top: 18px; }
.account-form label { font-weight: 700; color: #294D59; }
.account-form input {
  min-height: 52px;
  padding: 10px 16px;
  border: 1.5px solid rgba(145, 186, 196, .8);
  border-radius: 14px;
  background: #fff;
  color: #294D59;
  font: inherit;
  font-size: 1.05rem;
}
.account-form input:focus { outline: 3px solid #D9B24A55; border-color: #BBA16A; }
.account-form input[inputmode="numeric"] { font-family: "Montserrat", Arial, sans-serif; letter-spacing: .35em; text-align: center; direction: ltr; }
.account-form .btn { justify-self: start; }
.account-note { margin: 6px 0 0; font-size: .92rem; color: #587985; }
.account-error { margin: 4px 0 0; color: #9b3d3d; font-weight: 600; }
.account-link { padding: 0; border: 0; background: none; color: #294D59; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.coin-total { display: flex; align-items: center; gap: 18px; margin: 8px 0 22px; }
.coin-total .coin-ico { width: 84px; height: 84px; filter: drop-shadow(0 10px 14px #7a5e2245); animation: coin-float 5s ease-in-out infinite; }
.coin-total-num { display: block; font-family: "Montserrat", Arial, sans-serif; font-weight: 600; font-size: 3rem; line-height: 1; color: #294D59; }
.coin-total-label { color: #587985; font-weight: 600; }
@keyframes coin-float { 0%, 100% { transform: translateY(2px) rotateY(0); } 50% { transform: translateY(-6px) rotateY(25deg); } }

.coin-progress { height: 12px; overflow: hidden; border-radius: 999px; background: #EDF4F5; box-shadow: inset 0 1px 2px #254b5f20; }
.coin-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #F1D27A, #BBA16A); transition: width 1s cubic-bezier(.22, .6, .36, 1); }
.coin-progress-text { margin: 8px 0 0; font-size: .95rem; color: #587985; }

.coin-tasks { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.coin-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(145, 186, 196, .35);
  border-radius: 16px;
  background: #FCFAF5;
}
.coin-task-state {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #EDF4F5;
  color: #91BAC4;
  font-weight: 800;
}
.coin-task.is-done .coin-task-state { background: #294D59; color: #F1D27A; }
.coin-task-title { flex: 1; color: #294D59; font-weight: 600; }
.coin-task.is-done .coin-task-title { color: #587985; }
.coin-task-coins { display: inline-flex; align-items: center; gap: 6px; font-family: "Montserrat", Arial, sans-serif; font-weight: 600; color: #8D7953; }
.coin-task-coins .coin-ico { width: 22px; height: 22px; }
.coin-task a { color: inherit; }

.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (min-width: 900px) {
  .account-wrap.is-signed-in { grid-template-columns: .9fr 1.1fr; align-items: start; }
}

.account-tabs { display: inline-flex; margin: 6px 0 4px; padding: 4px; border: 1px solid rgba(145, 186, 196, .5); border-radius: 999px; background: #fff; }
.account-tabs button { min-height: 40px; padding: 4px 20px; border: 0; border-radius: 999px; background: transparent; color: #294D59; font: inherit; font-weight: 700; cursor: pointer; }
.account-tabs button[aria-selected="true"] { background: #294D59; color: #FCFAF5; }
.account-tabs button:focus-visible { outline: 3px solid #D9B24A; outline-offset: 2px; }

/* "איך קוראים לך?" */
.name-card {
  position: fixed;
  z-index: 75;
  bottom: 16px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 14px;
  border: 1px solid rgba(187, 161, 106, .55);
  border-radius: 20px;
  background: rgba(255, 253, 248, .98);
  box-shadow: 0 22px 48px -20px #12303a99;
  color: #294D59;
  font-family: "Assistant", "Heebo", Arial, sans-serif;
  direction: rtl;
  animation: toast-in .5s cubic-bezier(.22, .6, .36, 1) both;
}
.name-card.is-out { animation: toast-out .35s ease both; }
.name-card-title { margin: 0 0 10px; font-size: 1.05rem; }
.name-card-title strong { font-family: "Heebo", Arial, sans-serif; font-weight: 800; }
.name-card-form { display: flex; gap: 8px; }
.name-card-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid rgba(145, 186, 196, .8);
  border-radius: 12px;
  background: #fff;
  color: #294D59;
  font: inherit;
}
.name-card-form input:focus { outline: 3px solid #D9B24A55; border-color: #BBA16A; }
.name-card-form button, .name-card-skip { font: inherit; font-weight: 700; cursor: pointer; }
.name-card-form button { min-height: 44px; padding: 6px 16px; border: 0; border-radius: 999px; background: #294D59; color: #FCFAF5; }
.name-card-skip { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: #587985; text-decoration: underline; }
.name-card-note { margin: 10px 0 0; color: #587985; font-size: .82rem; line-height: 1.5; }
.name-card-note a { color: #294D59; }
.name-card-error { margin: 6px 0 0; color: #9b3d3d; font-size: .88rem; font-weight: 600; }
.name-card button:focus-visible, .name-card a:focus-visible { outline: 3px solid #D9B24A; outline-offset: 2px; }
@media (max-width: 600px) {
  .name-card { right: 12px; left: 12px; width: auto; bottom: 72px; }
}

.name-card-google { display: inline-block; margin-top: 8px; color: #294D59; font-weight: 700; font-size: .9rem; }

/* כפתור Google - לפי הנחיות המותג של Google: רקע לבן, מסגרת אפורה, הלוגו הצבעוני */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid #747775;
  border-radius: 999px;
  background: #fff;
  color: #1F1F1F;
  font-family: "Heebo", "Assistant", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s;
}
.google-btn:hover { background: #F8F9FA; box-shadow: 0 2px 6px -2px #3c40434d; }
.google-btn:focus-visible { outline: 3px solid #D9B24A; outline-offset: 3px; }
.google-btn svg { width: 20px; height: 20px; flex: none; }
.account-or { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 18px 0 4px; color: #587985; font-size: .92rem; }
.account-or::before, .account-or::after { content: ""; flex: 1; height: 1px; background: rgba(145, 186, 196, .5); }
