:root {
  --bg: #000000;
  --bg-2: #131117;
  --panel: #2d2637;
  --panel-soft: rgba(45, 38, 55, 0.88);
  --accent: #934a0d;
  --gold: #fae331;
  --gold-soft: #faed8a;
  --teal-btn: #8dbab3;
  --teal-btn-2: #58857e;
  --text: #ffffff;
  --muted: #b8b0c4;
  --mist: #e8e4ef;
  --line: rgba(255, 255, 255, 0.12);
  --danger: #f65050;
  --ok: #36e653;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-brand: "Cinzel", "Times New Roman", serif;
  --font-ui: "Nunito", "Segoe UI", sans-serif;
  --img: "../img";
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  padding: 0 0 calc(var(--nav-h) + var(--safe-b));
  background: var(--bg);
}

.bg-orb { display: none; }

.topbar, .screen, .bottom-nav, .overlay { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
  cursor: pointer;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
}
.coin-chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.coin-chip.free-chip {
  color: #9fd4a8;
  margin-right: 2px;
}
.coin-chip .free-ico {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(159, 212, 168, 0.5);
  background: radial-gradient(circle at 35% 30%, rgba(190, 236, 200, 0.35), rgba(159, 212, 168, 0.12));
  color: #b8e8c2;
  font-style: normal;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.coin-chip .free-ico svg {
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
}

.screen {
  padding: 0 0 12px;
  min-height: 60vh;
}
.screen.has-pad { padding-left: 14px; padding-right: 14px; padding-top: 12px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ----- Auth (orman + oval panel) ----- */
.auth-screen {
  min-height: 100dvh;
  margin: 0;
  padding: 24px 18px calc(24px + var(--safe-b));
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72)),
    url("../img/orman.jpg") center / cover no-repeat;
  animation: rise .45s ease both;
}
.topbar[hidden] { display: none !important; }
.auth-card {
  background: rgba(80, 80, 80, 0.5);
  border-radius: 22px;
  padding: 22px 18px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.auth-logo {
  display: block;
  width: min(200px, 58vw);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
}
.auth-footer {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

/* ----- Home photo tiles ----- */
.home-grid {
  display: grid;
  gap: 0;
  background: #000;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  background: #222;
  min-height: 150px;
  animation: rise .4s ease both;
}
.tile:active { opacity: .92; }
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.tile:hover .tile-img { transform: scale(1.06); }
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
  pointer-events: none;
}
.tile-title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  min-height: 52px;
  max-width: 92%;
  background: rgba(0, 0, 0, 0.49);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .03em;
  line-height: 1.15;
  text-transform: uppercase;
}
.tile-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-width: 96px;
  padding: 6px 12px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  border-radius: 999px 0 0 0;
  text-align: center;
}
.tile-tall { min-height: 200px; }
.tile-short { min-height: 110px; }
.tile-short .tile-title { font-size: .9rem; min-height: 0; padding: 8px 14px; }
.tile-full { min-height: 150px; }
.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.home-strip {
  padding: 4px 0px;
  background: #000;
  border-top: 1px solid var(--line);
}
.home-strip .panel { margin: 0; }

.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
  animation: rise .35s ease both;
}
.panel h2, .panel h3 {
  font-family: var(--font-brand);
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--gold-soft);
  letter-spacing: .02em;
}
.muted { color: var(--muted); font-size: .92rem; }
.row { display: flex; gap: 10px; align-items: center; }
.space { justify-content: space-between; }
.stack { display: grid; gap: 10px; }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .55);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color-scheme: dark;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  min-height: 46px;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  opacity: 0.85;
  cursor: pointer;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(250, 227, 49, .4);
  border-color: transparent;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--gold);
  color: #2a2408;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: linear-gradient(180deg, var(--teal-btn), var(--teal-btn-2));
  color: #10221f;
  border: 1px solid #5e7974;
}
.btn-ghost.btn-soft {
  background: rgba(255,255,255,.08);
  color: var(--mist);
  border: 1px solid var(--line);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
}
.list-item:hover { border-color: rgba(250, 227, 49, .35); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #1a1520; flex-shrink: 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: .75rem; background: rgba(250, 227, 49, .16); color: var(--gold);
}
.badge-ok { background: rgba(54, 230, 83, .18); color: #8dff9d; }
.badge-warn { background: rgba(147, 74, 13, .35); color: #ffc28a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .88rem;
  cursor: pointer;
}
.chip.active { background: rgba(250, 227, 49, .2); border-color: var(--gold); color: var(--gold); }

.chat {
  display: flex; flex-direction: column; gap: 8px;
  overflow: auto; padding: 8px 2px;
  min-height: 0;
}
.bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
  flex-shrink: 0;
}
.bubble.me { align-self: flex-end; background: rgba(250, 227, 49, .18); }
.bubble.them { align-self: flex-start; background: rgba(45, 38, 55, .95); border: 1px solid var(--line); }

/* Tam yükseklik sohbet kabuğu (müşteri + falcı) */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b));
  max-height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b));
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}
.chat-shell > .chat-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0a0810;
}
.chat-shell > .chat-top h2 {
  margin: 0;
  font-size: 1rem;
}
.chat-shell > .chat-top .muted {
  font-size: .78rem;
}
.chat-shell > .chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  background: rgba(0,0,0,.35);
}
.chat-shell > .chat-compose {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #000;
  align-items: center;
}
.chat-shell > .chat-compose input {
  flex: 1;
  min-width: 0;
}
.chat-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(250,227,49,.15);
  color: var(--gold);
  border: 1px solid rgba(250,227,49,.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .95rem;
  white-space: nowrap;
}
.chat-shell.chat-fs {
  position: fixed;
  inset: 0;
  z-index: 80;
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: var(--safe-b);
}
body.chat-fs-on .bottom-nav,
body.chat-fs-on .topbar {
  display: none !important;
}
body.chat-fs-on .app {
  padding-bottom: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0 0 var(--safe-b);
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 20;
}
.bottom-nav button {
  background: transparent;
  border: 0;
  color: #9a93a8;
  font: inherit;
  font-size: .68rem;
  padding: 10px 2px 8px;
  display: grid;
  gap: 2px;
  justify-items: center;
  cursor: pointer;
  min-height: var(--nav-h);
}
.bottom-nav button.active {
  color: var(--gold);
  background: #222;
}
.bottom-nav .ico { font-size: 1.35rem; line-height: 1; }

.toast {
  position: fixed !important;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%);
  background: rgba(19, 17, 23, .96);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: min(420px, 92vw);
  z-index: 9999 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  animation: rise .25s ease both;
  pointer-events: none;
}

/* Üst bildirim baloncuğu (FCM / inbox / fal olayları) */
.notify-bubble {
  position: fixed !important;
  left: 50%;
  top: max(12px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  z-index: 10050 !important;
  background: linear-gradient(180deg, #241c2e 0%, #16121c 100%);
  border: 1px solid rgba(250, 227, 49, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.55);
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  animation: notify-drop .28s ease both;
}
.notify-bubble[hidden] {
  display: none !important;
}
.notify-bubble .nb-title {
  margin: 0 0 4px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.25;
}
.notify-bubble .nb-body {
  margin: 0;
  font-size: .86rem;
  color: var(--mist);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes notify-drop {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.guardian-banner {
  position: sticky;
  top: var(--topbar-h, 56px);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: .9rem;
  animation: rise .25s ease both;
}
.guardian-banner.is-wait {
  background: rgba(180, 130, 40, .15);
  border-color: rgba(212, 168, 75, .45);
  color: #f0d89a;
}
.guardian-banner.is-live {
  background: rgba(40, 120, 70, .18);
  border-color: rgba(80, 180, 110, .45);
  color: #b8f0c8;
}
.guardian-banner[hidden] { display: none !important; }

.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.62);
  display: grid; align-items: end;
  z-index: 30;
  pointer-events: auto;
}
.overlay.dialog-mode {
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay[hidden],
.toast[hidden],
.notify-bubble[hidden],
.bottom-nav[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.sheet {
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line);
  padding: 18px 16px calc(18px + var(--safe-b));
  max-height: 85vh;
  overflow: auto;
  animation: rise .3s ease both;
}
.sheet.dialog-mode {
  border-radius: 18px;
  border: 1px solid var(--line);
  max-height: min(88vh, 520px);
  width: min(420px, 92vw);
  padding: 20px 18px 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.dialog-title {
  margin: 0 0 8px;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--gold-soft);
}
.dialog-msg {
  margin: 0 0 14px;
  color: var(--mist);
  line-height: 1.5;
  white-space: pre-wrap;
}
.dialog-field { margin-bottom: 12px; }
.dialog-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.dialog-field input,
.dialog-field textarea {
  width: 100%;
  box-sizing: border-box;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dialog-actions .btn { flex: 1; min-height: 44px; }

.sheet.dialog-mode.gift-dialog-sheet {
  padding: 0;
  overflow: hidden;
  width: min(340px, 92vw);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 22px 20px;
  gap: 0;
}
.gift-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1a1208;
  background: var(--gold);
  border-radius: 999px;
  padding: 7px 14px;
}
.gift-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 227, 49, 0.14);
  border: 1px solid rgba(250, 227, 49, 0.35);
}
.gift-icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.gift-title {
  margin: 0 0 10px;
  width: 100%;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold-soft);
  text-align: center;
}
.gift-msg {
  margin: 0 0 16px;
  width: 100%;
  max-width: 28ch;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--mist);
  text-align: center;
  white-space: pre-wrap;
}
.gift-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  width: 100%;
}
.gift-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(250, 227, 49, 0.3);
  background: rgba(250, 227, 49, 0.1);
  color: var(--gold);
  font-size: .95rem;
  font-weight: 700;
  font-style: normal;
}
.gift-pill.free {
  border-color: rgba(141, 186, 179, 0.45);
  background: rgba(141, 186, 179, 0.12);
  color: #b8e0d8;
}
.gift-pill.xp {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.12);
  color: #d4c4ff;
}
.gift-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.gift-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}
.gift-actions .btn-gift-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  width: auto;
  max-width: 100%;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--teal-btn), var(--teal-btn-2));
  color: #0c1211;
  font: 700 15px/1 var(--font-ui);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(88, 133, 126, 0.35);
}
.gift-actions .btn-gift-ok:active {
  transform: scale(0.98);
}

.markdown {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--mist);
}
.stat {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.25rem; color: var(--gold); }

.empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
}

.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow: auto; }
.tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}
.tabs button.active { color: var(--panel-soft); border-color: var(--gold); }

.page-title {
  font-family: var(--font-brand);
  color: var(--gold-soft);
  margin: 0 0 12px;
  font-size: 1.35rem;
}

/* ----- Fal gönderim (Android akışı) ----- */
.send-flow {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b));
  background: #000;
  padding-bottom: 12px;
}
.send-flow .send-body {
  flex: 1;
  overflow: auto;
  padding: 0 0 12px;
}
.send-flow .send-foot {
  position: sticky;
  bottom: 0;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: linear-gradient(180deg, transparent, #000 28%);
}
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  -webkit-overflow-scrolling: touch;
}
.photo-slot {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #333;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slot .add {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #bbb;
  font-size: 2rem;
  background: #2a2a2a;
}
.photo-slot .rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: .85rem;
}
.subject-list {
  display: grid;
  gap: 0;
  padding: 4px 0;
}
.subject-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.subject-list input { width: auto; accent-color: var(--gold); }
.card-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 10px 6px;
}
.card-slot {
  width: 64px;
  height: 96px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(255,255,255,.04) center / cover no-repeat;
  position: relative;
  cursor: pointer;
}
.card-slot.filled {
  border-style: solid;
  border-color: var(--gold);
  background-image: url("../img/tarot_card.png");
}
.card-slot img {
  display: none;
}
.card-slot .card-name {
  display: none;
}
.picked-card {
  width: 120px;
  text-align: center;
  font-size: 11px;
  color: #ddd;
}
.picked-card img {
  width: 88px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 4px;
  border: 1px solid rgba(250,227,49,.35);
}
.picked-card-title {
  display: block;
  font-weight: 700;
  color: #fae331;
  margin-bottom: 4px;
}
.picked-card-meaning {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  color: #bbb;
  text-align: left;
}
.card-meanings-panel {
  margin: 8px 12px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.card-meanings-panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gold, #fae331);
}
.card-meanings-panel .cm-item {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #ddd;
}
.card-meanings-panel .cm-item b {
  color: #fff;
}
.card-strip {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.card-slot .rm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.card-deck {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px 14px;
  -webkit-overflow-scrolling: touch;
  background: #000;
}
.deck-card {
  flex: 0 0 52px;
  width: 52px;
  height: 78px;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: url("../img/tarot_card.png") center / cover no-repeat;
  cursor: pointer;
  opacity: .95;
  transition: transform .12s ease, opacity .12s ease;
}
.deck-card:active { transform: scale(.94); }
.deck-card.used { opacity: .28; pointer-events: none; }
.send-profile {
  padding: 8px 14px 16px;
  display: grid;
  gap: 8px;
}
.send-profile input,
.send-profile select {
  background: #f2f2f2;
  color: #111;
  border: 0;
  border-radius: 6px;
  min-height: 46px;
}
.send-hint {
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: .88rem;
}
.teller-pick-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: inherit;
  cursor: pointer;
}
.teller-pick-item:hover { border-color: rgba(250,227,49,.4); }

.cap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.cap-chip {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #c8c0d8;
  background: #2a2a2a;
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1.25;
}

.delivery-list {
  display: grid;
  gap: 8px;
}
.delivery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.delivery-item:hover {
  border-color: rgba(250, 227, 49, .45);
  background: rgba(250, 227, 49, .08);
}
.delivery-item.selected {
  border-color: rgba(250, 227, 49, .7);
  background: rgba(250, 227, 49, .14);
}
.delivery-item b { color: var(--gold-soft); }

.teller-filters .chips { margin-top: 4px; }
.teller-filters input {
  background: rgba(0,0,0,.55);
  color: var(--text);
}

/* ========== Falcı paneli ========== */
.teller-dash { gap: 14px; }
.teller-title {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 4px;
}
.teller-hero .stat-row,
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.stat-row.earn-summary-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .stat-row.earn-summary-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.earn-summary .stat .muted.tiny {
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

/* Falcı profil */
.teller-profile .tp-hero {
  display: flex;
  gap: 14px;
  align-items: center;
}
.tp-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 162, 39, 0.45);
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
}
.tp-hero-text h2 { margin: 0 0 8px; }
.tp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-warn { background: rgba(255, 160, 60, .16); color: #ffc078; }
.tp-bio {
  margin: 0;
  line-height: 1.45;
  color: var(--muted, #aaa);
}
.tp-actions { flex-wrap: wrap; gap: 8px; }
.tp-section h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.tp-price-table, .tp-schedule, .tp-reviews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-price-group { margin-bottom: 6px; }
.tp-price-type {
  margin: 4px 0 8px;
  font-size: .95rem;
  color: var(--gold, #c9a227);
  font-weight: 700;
}
.tp-price-row, .tp-sched-row, .tp-review {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.tp-price-delivery { color: var(--text, #fff); font-size: .92rem; }
.tp-review { flex-direction: column; }
.tp-review p { margin: 4px 0; }
.tp-price-gold {
  font-weight: 700;
  color: var(--gold, #c9a227);
  white-space: nowrap;
}
.tp-day { min-width: 96px; font-weight: 600; }
.tp-sched-row.is-today {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
}
.online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.online-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.online-toggle.on { border-color: rgba(54,230,83,.45); }
.online-toggle.on .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.online-toggle.off .dot { background: var(--danger); }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.quick-card b { font-size: 1.25rem; color: var(--gold); }
.quick-card span { color: var(--muted); font-size: .85rem; }

.fortune-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.fortune-card.st-wait { border-left: 3px solid var(--gold); }
.fortune-card.st-active { border-left: 3px solid #5b8def; }
.fortune-card.st-ok { border-left: 3px solid var(--ok); }
.fortune-card.st-bad { border-left: 3px solid var(--danger); opacity: .85; }
.fc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.badge.st-wait { background: rgba(250,227,49,.15); color: var(--gold); }
.badge.st-active { background: rgba(91,141,239,.2); color: #9bb8ff; }
.badge.st-ok { background: rgba(54,230,83,.15); color: var(--ok); }
.badge.st-bad { background: rgba(246,80,80,.15); color: var(--danger); }
.badge.st-unread { background: rgba(250,227,49,.22); color: var(--gold); font-weight: 800; }
.list-item.is-unread {
  border-color: rgba(250,227,49,.35);
  box-shadow: inset 3px 0 0 var(--gold);
}
.list-item.is-unread b { color: var(--gold-soft); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.chip.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.ws { padding-bottom: 24px; }
.ws-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.ws-meta b { color: var(--gold-soft); }
.media-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}
.media-strip img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.q-list { margin: 0; padding-left: 18px; color: var(--mist); }
.q-list li { margin-bottom: 6px; }
.ans-block { margin-bottom: 10px; }
.ans-block label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .85rem; }
.tiny { font-size: .78rem; }
.row.gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.space { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.center { text-align: center; justify-content: center; }

.chat-panel .chat {
  /* eski panel stili; chat-shell kullanıldığında geçersiz */
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  margin-bottom: 0;
}
.chat-compose {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}
.chat-compose input { flex: 1; }

.screen:has(> .chat-shell),
.screen:has(> .ws-chat) {
  overflow: hidden;
  height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b));
  max-height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b));
  padding: 0;
  margin: 0;
}
.ws-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  gap: 0;
  padding: 0;
  margin: 0;
}
.ws-chat > .ws-header {
  flex: 0 0 auto;
  padding: 8px 10px;
}
.ws-client-wrap {
  flex: 0 0 auto;
  margin: 0 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0810;
  max-height: 32vh;
  overflow: auto;
}
.ws-client-wrap > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--mist);
  list-style: none;
}
.ws-client-wrap > summary::-webkit-details-marker { display: none; }
.ws-client-wrap[open] > summary {
  border-bottom: 1px solid var(--line);
}
.ws-client-wrap .ws-client {
  border: 0;
  margin: 0;
  box-shadow: none;
  background: transparent;
}
.ws-chat > .chat-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  margin: 0 8px 8px;
}
.chat-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.chat-fs-on .ws-chat > .ws-header,
body.chat-fs-on .ws-chat > .ws-client-wrap {
  display: none !important;
}
body.chat-fs-on .ws-chat > .chat-shell {
  margin: 0;
  border-radius: 0;
  border: 0;
}

.ws-chat .chat-shell {
  height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b) - 8px);
  max-height: calc(100dvh - 56px - var(--nav-h) - var(--safe-b) - 8px);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.ws-chat.ws-chat-embed .client-collapsed { display: none; }
.ws-chat .chat-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #0a0810;
  flex-wrap: wrap;
}
.voice-row { margin-bottom: 8px; }
.bubble audio { display: block; max-width: 100%; margin-top: 6px; }

.call-stage { padding: 12px; }
.call-videos {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  background: #0a0810;
  overflow: hidden;
  margin-bottom: 12px;
}
.call-remote, .call-local {
  width: 100%;
  min-height: 220px;
}
.call-local {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 100px;
  min-height: 130px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a1522;
}
.call-controls { margin-top: 8px; }

.earn-list { display: grid; gap: 8px; }
.earn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
}
.earn-amt { color: var(--gold); font-weight: 700; white-space: nowrap; }

.sched-grid { display: grid; gap: 10px; }
.sched-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 8px;
  align-items: center;
}
.sched-row .sw-row {
  padding: 0;
  border: 0;
}
.sched-day { font-size: .9rem; color: var(--mist); }
.notif-item.unread { border-color: rgba(250,227,49,.35); background: rgba(250,227,49,.06); }

.wait-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: #111;
  background: var(--gold);
}
.ws-meta .wait-pill { margin-top: 6px; }

.teller-settings .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--mist);
}
.section-title {
  margin: 4px 8px;
  font-family: var(--font-brand);
  color: var(--gold-soft);
}
.sw {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.sw-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 32px;
  padding: 0 14px 0 28px;
  border-radius: 999px;
  background: #7a2e38;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .2s ease, padding .2s ease;
}
.sw-ui::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.sw-ui::after {
  content: attr(data-off);
}
.sw input:checked + .sw-ui {
  background: #2f8f4e;
  padding: 0 28px 0 14px;
}
.sw input:checked + .sw-ui::before {
  transform: translateX(58px);
}
.sw input:checked + .sw-ui::after {
  content: attr(data-on);
}
.sw input:focus-visible + .sw-ui {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.sw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: .92rem;
}
.sw-row:last-child { border-bottom: 0; }
.ft-enable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ft-prices { display: grid; gap: 10px; margin-top: 10px; }
.ft-prices.is-disabled,
.price-row.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.price-row label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-inputs input:nth-child(3) {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .app { max-width: 480px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.55); }
}

/* Attention badges / teller alert strip */
.alert-strip { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.alert-pill, .alert-chip { border:0; border-radius:999px; padding:8px 12px; font-weight:700; cursor:pointer; }
.alert-pill.danger, .alert-chip.danger { background:#f65050; color:#fff; }
.alert-pill.warn, .alert-chip.warn { background:#fae331; color:#111; }
.alert-pill.info, .alert-chip.info { background:#8dbab3; color:#111; }

.is-hidden { display: none !important; }
.earn-item.is-tip .earn-amt { color: #c9a227; }
.tip-box {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.08);
}
.tip-box h3 {
  margin: 0 0 6px;
  color: var(--gold, #c9a227);
}
.tip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.tip-manual {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tip-manual input {
  flex: 1;
  min-width: 0;
}
