/* ================================================================
   FIYONK — "Günlük Giriş" modalı (State A & B)
   402 × 874. Status bar 62px. Light + amber.
   ================================================================ */

:root {
  --slate-950: #020618;
  --slate-700: #314158;
  --slate-600: #45556c;
  --slate-500: #62748e;
  --slate-400: #90a1b9;
  --slate-300: #cad5e2;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-500: #ffb900;
  --amber-600: #fe9a00;
  --green-500: #00c950;
  --blue-500:  #2b7fff;
  --white: #ffffff;

  --stage-bg: #e7eaf0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--stage-bg);
  color: var(--slate-950);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  background: none; border: 0; color: inherit;
  font: inherit; cursor: pointer; padding: 0;
}
ul { list-style: none; margin: 0; padding: 0; }

/* ----------------------------------------------------------------
   Stage / phone frame
---------------------------------------------------------------- */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 32px;
  flex-wrap: wrap;
}
.phone {
  position: relative;
  width: 402px;
  height: 874px;
  overflow: hidden;
  background: var(--white);
  isolation: isolate;
}

/* ----------------------------------------------------------------
   Status bar
---------------------------------------------------------------- */
.status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62px;
  z-index: 60;
  padding: 18px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate-950);
  font-size: 17px;
  font-weight: 600;
  background: var(--white);
  pointer-events: none;
}
.status-bar__icons { display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------
   Background — Mesajlar mock
---------------------------------------------------------------- */
.bg-page {
  position: absolute;
  inset: 62px 0 0 0;
  background: var(--white);
  z-index: 1;
}
.bg-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bg-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--slate-950);
}
.bg-actions { display: flex; align-items: center; gap: 6px; }
.bg-coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-950);
}
.bg-bell {
  width: 40px; height: 40px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
}
.bg-tabs {
  margin: 16px 16px 0;
  height: 44px;
  display: flex;
  background: var(--slate-100);
  padding: 2px;
  border-radius: 999px;
}
.bg-tab {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-500);
}
.bg-tab--active { background: var(--amber-500); color: var(--slate-950); }
.bg-list { padding: 8px 16px 0; }
.bg-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}
.bg-avatar {
  width: 52px; height: 52px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.bg-avatar--a { background: linear-gradient(135deg, #fcd9b6, #f8a978); }
.bg-avatar--b { background: linear-gradient(135deg, #c7e1ff, #6aa8ff); }
.bg-avatar--c { background: linear-gradient(135deg, #d6d6d6, #9a9a9a); }
.bg-row__body { flex: 1; padding-top: 6px; }
.bg-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.bg-row__name { font-size: 15px; font-weight: 600; color: var(--slate-950); }
.bg-row__time { font-size: 12px; color: var(--slate-400); }
.bg-row__sub { font-size: 13px; color: var(--slate-500); }

/* ----------------------------------------------------------------
   Scrim
---------------------------------------------------------------- */
.scrim {
  position: absolute;
  inset: 62px 0 0 0;
  z-index: 2;
  background: rgba(2, 6, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------
   Modal
---------------------------------------------------------------- */
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 354px;
  z-index: 10;
  background: var(--white);
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 24, 0.28);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}
.modal__close:hover { background: var(--slate-200); }
.modal__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.3px;
}

/* ----------------------------------------------------------------
   Days grid
---------------------------------------------------------------- */
.days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.day {
  position: relative;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  text-align: center;
}
.day__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.1px;
}
.day__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.day__mult {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  letter-spacing: 0.2px;
}

/* Today (state A) */
.day--today {
  background: var(--amber-500);
  border-color: var(--amber-500);
  box-shadow: 0 6px 16px rgba(255, 185, 0, 0.35);
}
.day--today .day__label,
.day--today .day__mult {
  color: var(--slate-950);
}
.day--today .day__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--white);
  color: var(--amber-500);
}

/* Claimed (state B — day 1 alındıktan sonra) */
.day--claimed {
  opacity: 0.55;
}
.day--claimed .day__icon img { filter: grayscale(0.2); }
.day__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Gift cell — geniş 7. gün */
.day--gift {
  grid-column: span 2;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
}
.day--gift .day__label {
  order: 2;
  font-size: 12px;
}
.day--gift .day__icon {
  order: 1;
  width: 44px;
  height: 44px;
}

/* ----------------------------------------------------------------
   CTA
---------------------------------------------------------------- */
.modal__cta {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}
.modal__cta--primary {
  background: var(--amber-500);
  color: var(--slate-950);
}
.modal__cta--primary:hover { background: var(--amber-600); }

.modal__cta--secondary {
  background: var(--slate-100);
  color: var(--slate-700);
}
.modal__cta--secondary:hover { background: var(--slate-200); }
.modal__cta:active { transform: translateY(1px); }
