/* ================================================================
   FIYONK — "Müsait Temsilciler" bottom sheet
   402 × 874 saf UI. Status bar 62px boşluk.
   ================================================================ */

:root {
  --slate-950: #020618;
  --slate-600: #45556c;
  --slate-500: #62748e;
  --slate-400: #90a1b9;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-500: #ffb900;
  --amber-600: #fe9a00;
  --green-500: #00c950;
  --green-soft: rgba(0, 201, 80, 0.14);
  --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;
}
.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: 50;
  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__time { letter-spacing: -0.3px; }
.status-bar__icons { display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------
   Background — Mesajlar ekranı (statik)
---------------------------------------------------------------- */
.bg-page {
  position: absolute;
  inset: 62px 0 0 0;
  background: var(--white);
  z-index: 1;
}

/* Header: fiyonk + coin + bell */
.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-coin__icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.bg-bell {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.bg-bell__dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid var(--white);
}

/* Tabs */
.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);
}

/* List */
.bg-list { padding: 8px 16px 0; }
.bg-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}
.bg-row:last-child { border-bottom: 0; }
.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-avatar--d { background: linear-gradient(135deg, #d4d4d8, #a1a1aa); }
.bg-row__body { flex: 1; min-width: 0; 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);
}
.bg-row__sub--typing {
  color: var(--blue-500);
  font-style: italic;
}

/* ----------------------------------------------------------------
   Scrim — arkayı karartıp blur'la (status bar dokunulmaz)
---------------------------------------------------------------- */
.scrim {
  position: absolute;
  inset: 62px 0 0 0;
  z-index: 2;
  background: rgba(2, 6, 24, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ----------------------------------------------------------------
   Bottom sheet
---------------------------------------------------------------- */
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: var(--white);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 10px 18px 28px;
  box-shadow: 0 -24px 60px rgba(2, 6, 24, 0.18);
}
.sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--slate-200);
  margin: 0 auto 18px;
}
.sheet__head {
  margin: 0 6px 18px;
  text-align: center;
}
.sheet__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-950);
  letter-spacing: -0.3px;
}
.sheet__sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  line-height: 1.45;
}

/* ----------------------------------------------------------------
   Cards
---------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.card {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 20px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card__avatar {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: var(--slate-200);
}
.card__online {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green-500);
  border: 2.5px solid var(--white);
}
.card__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-950);
  letter-spacing: -0.1px;
}
.card__pill {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft);
  color: #0a8a3a;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.1px;
}
.card__cta {
  width: 100%;
  background: var(--amber-500);
  color: var(--slate-950);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 0;
  border-radius: 999px;
  letter-spacing: -0.1px;
  transition: background-color 0.15s ease;
}
.card__cta:hover { background: var(--amber-600); }
.card__cta:active { transform: translateY(1px); }
