/* The Noor / Kızılbük — tasarım sistemi (thenoorhotels.com çizgisi) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Noor marka — terracotta + sıcak nötrler */
  --brand: #a66355;
  --brand-600: #8b5246;
  --brand-700: #6e4038;
  --brand-050: #f9f3f1;
  --brand-100: #ede4df;
  --lav: #f5ebe6;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #78716c;
  --gold: #c4a574;
  /* Oyun şıkları — canlı ama sıcak tonlar */
  --pink: #d4736a;
  --teal: #5a9e96;
  --yellow: #d4b85c;
  --green: #6ba87a;
  --orange: #c97a52;
  --sky: #6a9eb8;
  --cream: #faf7f4;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-pill: 20px;
  --shadow: 0 20px 48px -22px rgba(28, 25, 23, 0.14);
  --shadow-sm: 0 8px 22px -14px rgba(28, 25, 23, 0.12);
  --sidebar-grad: linear-gradient(180deg, #2c2421 0%, #1c1917 55%, #14110f 100%);
  --brand-gradient: linear-gradient(135deg, var(--brand), #c4806e);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(1100px 560px at 50% -12%, var(--lav) 0%, var(--cream) 48%, #fff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo-text { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; }
a { color: var(--brand-600); text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.85rem; }

/* Genel sarmalayıcı (katılımcı ekranları vb.) */
.wrap { max-width: 960px; margin: 0 auto; padding: 20px; }
.center { max-width: 460px; margin: 0 auto; }

/* Giriş sayfaları — ortalı + dekoratif arka plan */
body.auth-page {
  background: radial-gradient(900px 480px at 50% -8%, var(--lav) 0%, var(--cream) 42%, #fff 100%);
}
body.auth-page .wrap {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
body.auth-page .wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("brand/auth-bg.svg") center / 720px repeat;
  opacity: 0.07;
  pointer-events: none;
}
.auth-panel {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.auth-brand { margin-bottom: 20px; }
.auth-logo { height: 52px; width: auto; margin: 0 auto 12px; display: block; }
.auth-eyebrow {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
  line-height: 1.2;
}
.auth-title { margin: 0 0 8px; font-size: 2rem; }
.auth-lead { margin: 0; font-size: .92rem; }
.auth-card { text-align: left; }
.auth-foot { margin-top: 16px; }

/* Logolar — köşe yuvarlama yok */
.brand-logo,
.logo-prev img,
.pv-logo img,
.event .thumb img,
.brandline img,
#brandLogo { border-radius: 0 !important; }
.event .thumb img { object-fit: contain; padding: 6px; }

/* ---------- Host uygulama kabuğu (sol menü + içerik) ---------- */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-grad); color: #fff; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.2rem; padding: 10px 8px 20px; letter-spacing: .02em; }
.sidebar .logo .mark { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(166,99,85,.35); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); font-size: .85rem; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 7px;
  color: #d6d3d1; font-weight: 600; transition: background .2s, transform .2s;
}
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: rgba(166,99,85,.45); color: #fff; }
.nav-item .ic { width: 20px; text-align: center; }
.sidebar .spacer { flex: 1; }
.side-promo { margin-top: 14px; background: rgba(166,99,85,.2); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 16px; text-align: center; font-weight: 600; font-size: .88rem; }
.side-quote { color: #a8a29e; font-size: .78rem; text-align: center; margin-top: 14px; line-height: 1.5; font-style: italic; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--brand-100);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.topbar .pagetitle { font-weight: 800; font-size: 1.05rem; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-050); color: var(--brand-600); font-weight: 800; font-size: .75rem; padding: 6px 12px; border-radius: var(--radius-pill); }
.userchip { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-gradient, linear-gradient(135deg,var(--brand),var(--pink))); display: grid; place-items: center; color: #fff; font-weight: 900; }
.content { padding: 26px 32px; max-width: 100%; width: 100%; margin: 0 auto; }

/* ---------- Kartlar ---------- */
.card {
  background: #fff; border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
}
.card-sm { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Tipografi yardımcıları */
h1.page { margin: 0 0 4px; font-size: 1.7rem; }
.section-lead { color: var(--ink-muted); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-size: .95rem; font-family: inherit;
  padding: 12px 20px; border-radius: var(--radius-pill); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 14px 30px -14px rgba(110,64,56,.55); }
.btn-pink { background: linear-gradient(135deg, var(--brand), #c4806e); color: #fff; box-shadow: 0 14px 30px -14px rgba(110,64,56,.5); }
.btn-green { background: linear-gradient(135deg, var(--green), #74e8a6); color: #06331d; }
.btn-ghost { background: #fff; border: 2px solid var(--brand-100); color: var(--brand-600); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-info { background: #2aa9c4; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--brand-100); border-radius: 9px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166,99,85,.15); }

/* ---------- Rozetler / pill ---------- */
.badge { display: inline-block; background: var(--brand-050); color: var(--brand-600); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; padding: 5px 10px; border-radius: var(--radius-pill); }
.pill { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--brand-050); color: var(--brand-600); font-weight: 700; font-size: .8rem; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 800; font-size: .78rem; }
.status.live { background: rgba(61,220,132,.16); color: #167a45; }
.status.wait { background: rgba(255,210,63,.2); color: #8a6d00; }
.status.done { background: var(--brand-050); color: var(--brand-600); }

/* ---------- Etkinliklerim üst bar (kompakt portal düzeni) ---------- */
.events-page { margin-top: -4px; }
.events-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.btn-create-event {
  padding: 9px 16px; font-size: .86rem; border-radius: 8px;
  box-shadow: 0 6px 18px -10px rgba(110,64,56,.55);
}
.btn-create-event:hover { transform: translateY(-1px); }
.btn-create-event .plus-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 2px;
  background: rgba(255,255,255,.22); border-radius: 50%;
  font-size: .95rem; font-weight: 800; line-height: 1;
}
.view-toggle { display: flex; gap: 4px; flex-shrink: 0; }
.view-btn {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid #dce0e6; background: #fff; border-radius: 6px;
  cursor: pointer; font-size: .95rem; color: #6b7280; line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.view-btn:hover:not(:disabled) { border-color: #b8bec8; color: #374151; }
.view-btn.active { background: #2d3142; border-color: #2d3142; color: #fff; }
.view-btn:disabled { opacity: .45; cursor: not-allowed; }

.events-filters {
  display: flex; align-items: stretch; gap: 8px;
  padding: 8px 10px; background: #fff;
  border: 1px solid #e8eaee; border-radius: 8px;
  flex-wrap: nowrap;
}
.events-filters .search-field {
  flex: 1 1 180px; min-width: 0; position: relative;
}
.events-filters .search-field .ic {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: .82rem; opacity: .45; pointer-events: none;
}
.events-filters .search-field input {
  width: 100%; height: 36px; padding: 0 10px 0 32px;
  font-size: .84rem; border: 1px solid #dce0e6; border-radius: 6px;
  background: #fff; color: var(--ink);
}
.events-filters select {
  height: 36px; padding: 0 28px 0 10px;
  font-size: .84rem; font-weight: 500; font-family: inherit;
  border: 1px solid #dce0e6; border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); cursor: pointer; appearance: none;
  -webkit-appearance: none;
}
.events-filters .filter-select { flex: 0 1 140px; min-width: 120px; max-width: 160px; }
.events-filters .sort-select { flex: 0 1 220px; min-width: 180px; max-width: 280px; }
.events-filters input:focus,
.events-filters select:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(166,99,85,.1);
}
@media (max-width: 720px) {
  .events-filters { flex-wrap: wrap; }
  .events-filters .search-field { flex: 1 1 100%; }
  .events-filters .filter-select,
  .events-filters .sort-select { flex: 1 1 calc(50% - 4px); min-width: 0; max-width: none; }
}

/* ---------- Etkinlik kartı (portal düzeni) ---------- */
.events-page .event-list { display: grid; gap: 8px; margin-top: 10px; }
.event {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 108px; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e6e8ec; border-radius: var(--radius-md); padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04); transition: box-shadow .2s;
}
.event:hover { box-shadow: 0 4px 14px rgba(28, 25, 23, 0.07); }
.event .thumb { width: 88px; height: 62px; border-radius: var(--radius-sm); background: transparent; display: grid; place-items: center; overflow: hidden; padding: 0; }
.event .thumb.thumb-type { border: none; box-shadow: none; }
.event .thumb .event-type-img { width: 88px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.event .meta { min-width: 0; }
.event .meta .t {
  font-weight: 700; font-size: 1rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event .meta .s { color: var(--ink-muted); font-size: .8rem; margin-top: 3px; }
.event .acts { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Portal tarzı aksiyon butonları (kurumsal renk dışı) */
.btn-portal-edit {
  background: #f4f5f7; border: 1px solid #d8dce3; color: #4b5563; font-weight: 600;
  box-shadow: none;
}
.btn-portal-edit:hover { background: #eceef2; border-color: #c5cad3; color: #374151; }
.btn-portal-manage {
  background: #3d3d4e; border: none; color: #fff; font-weight: 700; box-shadow: none;
}
.btn-portal-manage:hover { background: #2f2f3c; color: #fff; }
.btn-portal-manage.is-disabled {
  background: #e8eaee; color: #9ca3af; cursor: not-allowed; pointer-events: none;
}

/* Sağdaki büyük CANLI bandı */
.event-live-wrap { width: 108px; flex-shrink: 0; }
.event-live,
.event-live.launch {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 68px; padding: 8px 10px; margin: 0;
  border-radius: var(--radius-sm); background: #5c7cfa; color: #fff;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.event-live:hover { background: #4a65e8; color: #fff; }
.event-live .live-badge,
.live-launch-btn .live-badge {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; line-height: 1.1;
}
.event-live .live-sub,
.live-launch-btn .live-sub {
  font-size: .68rem; font-weight: 600; opacity: .92; margin-top: 4px; line-height: 1.2; text-align: center;
}
.event-live.launch { background: transparent; padding: 0; }
.live-launch-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 68px; padding: 8px 10px; margin: 0;
  border-radius: var(--radius-sm); background: #5c7cfa; color: #fff;
  border: none; cursor: pointer; font-family: inherit; transition: background .15s;
}
.live-launch-btn:hover:not(:disabled) { background: #4a65e8; }
.live-launch-btn:disabled { background: #c5cad3; cursor: not-allowed; }

@media (max-width: 900px) {
  .event { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .event .acts { grid-column: 1 / -1; flex-wrap: wrap; }
  .event-live-wrap { grid-column: 1 / -1; width: 100%; }
  .event-live, .live-launch-btn { min-height: 52px; flex-direction: row; gap: 10px; justify-content: center; }
  .event-live .live-sub, .live-launch-btn .live-sub { margin-top: 0; }
}
@media (max-width: 720px) { .event .acts, .event-live-wrap { grid-column: 1 / -1; } }

/* Toolbar (arama/filtre) */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search input { padding-left: 40px; }
.toolbar .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; }
.toolbar-select {
  min-width: 168px; padding: 11px 14px; border: 2px solid var(--brand-100);
  border-radius: var(--radius-md); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}

/* Üstten inen silme paneli */
.top-sheet-backdrop {
  position: fixed; inset: 0; z-index: 180; background: rgba(28,25,23,.28);
  opacity: 1; transition: opacity .3s ease;
}
.top-sheet-backdrop.hidden { opacity: 0; pointer-events: none; }
body.sheet-open { overflow: hidden; }
.top-sheet {
  position: fixed; top: 0; left: 0; right: 0; z-index: 190;
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.top-sheet.open { transform: translateY(0); pointer-events: auto; }
.top-sheet-bar {
  height: 4px; background: linear-gradient(90deg, #b3261e, var(--brand));
}
.top-sheet-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--brand-100);
  box-shadow: 0 12px 40px -16px rgba(28,25,23,.25);
  max-width: 1100px; margin: 0 auto;
}
.top-sheet-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-danger-solid { background: linear-gradient(135deg, #b3261e, #d4736a) !important; color: #fff !important; }
@media (max-width: 640px) {
  .top-sheet-inner { flex-direction: column; align-items: stretch; }
  .top-sheet-actions { justify-content: flex-end; }
}

/* ---------- Oda kodu / katılımcı ---------- */
.code { font-weight: 900; letter-spacing: .3em; font-size: 2.4rem; color: var(--brand-600); text-align: center; }
.code-input { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-weight: 800; font-size: 1.5rem; }

/* Şık butonları (katılımcı) */
.options { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 560px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius); border: 2px solid transparent;
  color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-align: left;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.option:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.option:disabled { cursor: default; }
.option .k { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.25); border-radius: var(--radius-sm); font-weight: 900; }
.option.o0 { background: var(--pink); }
.option.o1 { background: var(--teal); }
.option.o2 { background: var(--orange); }
.option.o3 { background: #5b6fb0; } /* sabit 4. renk — tema değişince değişmez */
.option.correct { outline: 4px solid var(--green); }
.option.wrong { filter: grayscale(.6) opacity(.55); }
.option.picked { outline: 4px solid #fff; box-shadow: 0 0 0 4px rgba(166,99,85,.4); }

/* Liderlik */
.board { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.board li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--brand-100); border-radius: 9px; padding: 12px 16px; }
.board .rank { font-weight: 900; color: var(--brand-600); width: 28px; }
.board .nm { font-weight: 700; flex: 1; }
.board .pts { font-weight: 800; }
.board li.me { border-color: var(--brand); background: var(--brand-050); }

/* Süre çubuğu */
.timerbar { height: 10px; background: var(--brand-100); border-radius: var(--radius-pill); overflow: hidden; margin-top: 8px; }
.timerbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--pink)); transition: width .3s linear; }

/* Yardımcılar */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 18px; } .mt2 { margin-top: 28px; }
.grow { flex: 1; }
.notice { padding: 12px 16px; border-radius: var(--radius-md); background: #fff3f3; color: #b3261e; border: 1px solid #ffd6d1; }
.notice.ok { background: #effaf1; color: #137a3a; border-color: #bde9c9; }
.hidden { display: none !important; }
.qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--brand-100); }

/* Sekmeler (ayarlar vb.) */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--brand-100); flex-wrap: wrap; }
.tab { padding: 10px 16px; font-weight: 700; color: var(--ink-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; }
.tab.active { color: var(--brand-600); border-color: var(--brand); }

/* Editör sol dikey sekme rayı (İçerik / Ayarlar / Tema) */
.editor-shell { display: grid; grid-template-columns: 132px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.editor-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.rail-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 8px; border: 2px solid var(--brand-100); border-radius: var(--radius-lg); background: #fff;
  color: var(--ink-soft); font-weight: 700; font-size: .9rem; transition: transform .2s, border-color .2s, background .2s;
}
.rail-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.rail-card.active { border-color: var(--brand); background: var(--brand-050); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.rail-card .ill { width: 68px; height: 58px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-050), #fff); border: 1px solid var(--brand-100); border-radius: 9px; font-size: 1.9rem; }
.editor-body { min-width: 0; }
@media (max-width: 760px) {
  .editor-shell { grid-template-columns: 1fr; }
  .editor-rail { flex-direction: row; position: static; }
  .rail-card { flex: 1; flex-direction: row; justify-content: center; padding: 10px; }
  .rail-card .ill { width: 34px; height: 34px; font-size: 1.1rem; }
}

/* --- Ayarlar bileşenleri (toggle / segment / stepper / alt sekmeler) --- */
/* Alt sekmeler (Akış / Bilgiler / Kayıt / Oynanış / Avatar / Ödüller) */
.subtabs { display: flex; gap: 4px; border-bottom: 2px solid var(--brand-100); overflow-x: auto; }
.subtab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 20px; font-weight: 700; color: var(--ink-muted);
  border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; background: none; font-family: inherit; font-size: .88rem; }
.subtab .ic { font-size: 1.15rem; }
.subtab.active { color: var(--brand-600); border-bottom-color: var(--brand); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--brand-100); border-radius: var(--radius-pill); transition: .2s; cursor: pointer; }
.switch .track::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::before { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .45; cursor: not-allowed; }

/* Ayar satırı */
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--brand-100); }
.setrow:last-child { border-bottom: 0; }
.setrow .lbl { font-weight: 600; color: var(--ink-soft); }
.setrow .lock { color: var(--ink-muted); font-size: .9rem; }
.setinfo { color: var(--ink-muted); text-align: center; padding: 8px 0 16px; }
.setinfo .b { color: var(--brand-600); font-weight: 700; }

/* Segmented (Canlı / 7-24) */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--brand-100); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 6px; }
.seg .segbtn { padding: 13px; text-align: center; font-weight: 700; cursor: pointer; background: #fff; color: var(--ink-soft); border: 0; font-family: inherit; }
.seg .segbtn.active { background: var(--brand); color: #fff; }
.seg .segbtn:disabled { color: var(--ink-muted); cursor: not-allowed; background: var(--cream); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--brand-100); border-radius: var(--radius-md); overflow: hidden; }
.stepper button { border: 0; background: var(--brand-050); color: var(--brand-600); width: 40px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 68px; text-align: center; border: 0; border-left: 1px solid var(--brand-100); border-right: 1px solid var(--brand-100); border-radius: 0; padding: 10px 0; }

/* Avatar paketleri + emoji seçici */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.avpack { border: 2px solid var(--brand-100); border-radius: var(--radius-lg); padding: 20px; text-align: center; position: relative; }
.avpack.sel { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.avpack .tag { position: absolute; top: 0; left: 0; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; padding: 4px 12px; border-radius: 18px 0 12px 0; }
.avpack .face { font-size: 3rem; }
.avemoji { display: grid; grid-template-columns: repeat(auto-fill,minmax(46px,1fr)); gap: 8px; }
.avemoji .opt { font-size: 1.6rem; border: 2px solid var(--brand-100); background:#fff; border-radius: var(--radius-md); padding: 8px 0; cursor: pointer; }
.avemoji .opt.sel { border-color: var(--brand); background: var(--brand-050); }

/* Modal (Yeni Etkinlik Oluştur) */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,25,23,.55); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 820px; overflow: hidden; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--ink); color: #fff; font-weight: 800; }
.modal-head .x { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .modal-body { grid-template-columns: 1fr; } }
.tpl-choice { background: var(--brand-gradient); color: #fff; border-radius: var(--radius-lg); padding: 34px 20px; text-align: center; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: transform .2s; border: 0; font-family: inherit; }
.tpl-choice:hover { transform: translateY(-3px); }
.tpl-choice .big { font-size: 1.25rem; font-weight: 800; }
.tpl-choice .ill { font-size: 3.4rem; }

/* Şablon kartları (templates.php) */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; margin-top: 18px; }
.tpl { border: 1px solid var(--brand-100); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tpl .top { padding: 26px; text-align: center; color: #fff; }
.tpl .top .em { font-size: 2.6rem; }
.tpl .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl .body h3 { margin: 0; }

/* Etkinlik türü kartları (types.php) */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 16px; margin-top: 18px; }
.type-card { position: relative; border: 0; border-radius: var(--radius-lg); padding: 26px 16px; text-align: center; cursor: pointer; color: #fff;
  background: var(--brand-gradient); display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .2s; font-family: inherit; width: 100%; }
.type-card:hover { transform: translateY(-3px); }
.type-card .em { font-size: 2.8rem; }
.type-card .nm { font-weight: 800; font-size: 1.05rem; }
.type-card.locked { background: linear-gradient(135deg, #78716c, #57534e); cursor: not-allowed; opacity: .85; }
.type-card .rib { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.35); color: #fff; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 0 18px 0 12px; }
.type-card .ny { position: absolute; top: 0; left: 0; background: var(--yellow); color: #6b4b00; font-size: .68rem; font-weight: 900; padding: 4px 10px; border-radius: 18px 0 12px 0; }

/* ---------- Tema editörü (portal düzeni) ---------- */
.editor-head { margin-bottom: 4px; }
.theme-editor {
  display: grid; grid-template-columns: minmax(0, 1fr) min(400px, 42%); gap: 20px;
  margin-top: 14px; align-items: start;
}
.theme-editor-main { min-width: 0; }
.theme-subtabs { margin-bottom: 0; }
.theme-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
.theme-grid-visual {
  grid-template-columns: 1fr;
  max-width: 360px;
  gap: 10px;
}
.theme-grid-visual .theme-card { padding: 16px 18px; }
.theme-grid-1 { grid-template-columns: 1fr; max-width: 520px; }
.theme-card {
  border: 1px solid #e6e8ec; border-radius: var(--radius-md); padding: 18px 20px;
  background: #fff; box-shadow: 0 1px 2px rgba(28,25,23,.04);
}
.theme-card.span-2 { grid-column: 1 / -1; }
.theme-card-wide { margin-top: 14px; padding: 8px 20px; }
.theme-card h3 { margin: 0 0 12px; font-size: .95rem; font-weight: 700; text-align: center; color: var(--ink-soft); }
.theme-card h3 .info { color: var(--brand); font-weight: 600; }
.theme-card.is-locked { background: #fafbfc; }
.theme-preset-row, .theme-color-row { display: flex; align-items: center; gap: 12px; }
.theme-card .thumb-sw { width: 72px; height: 48px; border-radius: var(--radius-sm); flex: 0 0 auto; border: 1px solid #e6e8ec; }
.theme-select, .theme-input {
  height: 40px; padding: 0 12px; font-size: .88rem; font-family: inherit; font-weight: 500;
  border: 1px solid #dce0e6; border-radius: 6px; background: #fff; color: var(--ink);
  width: 100%;
}
.theme-select:focus, .theme-input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(166,99,85,.1); }
.theme-card .logo-prev { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 4px 0 12px; }
.theme-card .logo-prev img { max-height: 44px; max-width: 100%; }
.theme-hint { margin: 10px 0 0; text-align: center; line-height: 1.4; }
.theme-check { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.theme-check input { width: auto; margin: 0; }
.btn-upload-locked {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 10px 14px; border: 1px dashed #c5cad3; border-radius: 6px;
  background: #f4f6f8; color: #6b7280; font-weight: 600; font-size: .86rem; cursor: not-allowed;
}
.theme-color-row input[type=color] {
  width: 52px; height: 40px; padding: 2px; border: 1px solid #dce0e6; border-radius: 6px; flex: 0 0 auto;
}
.theme-save-row { margin-top: 16px; }
.theme-save-row .btn { min-width: 200px; }

.theme-preview { position: sticky; top: 84px; }
.theme-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pv-toggle { display: flex; gap: 6px; }
.pv-toggle button {
  width: 34px; height: 34px; border: 1px solid #dce0e6; background: #fff;
  border-radius: 6px; cursor: pointer; font-size: .95rem;
}
.pv-toggle button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Telefon çerçevesi + portal tarzı önizleme */
.phone-frame {
  width: 100%; max-width: 360px; margin: 0 auto;
  padding: 10px; border-radius: 28px;
  background: linear-gradient(145deg, #2a2725, #1c1917);
  box-shadow: 0 24px 48px -16px rgba(28,25,23,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: max-width .25s ease;
}
.phone-frame.desktop { max-width: 100%; padding: 12px; border-radius: 16px; }

.phone-screen:has(.pv-screen[data-screen="1"].active) .pv-appbar { display: none; }

.phone-screen {
  position: relative; display: flex; flex-direction: column;
  min-height: 580px; border-radius: 20px; overflow: hidden;
  color: var(--ink, #2b211d); font-size: 11px; line-height: 1.25;
  /* GERÇEK oyuncu sayfası açık zeminlidir (lavanta→krem→beyaz). Özel arka plan seçilirse JS bunu değiştirir. */
  background: radial-gradient(120% 78% at 50% -8%, var(--lav, #e9e4f6) 0%, var(--cream, #faf7f4) 46%, #ffffff 100%);
}
.phone-frame.desktop .phone-screen { min-height: 380px; border-radius: 12px; }

/* Üst bar (gerçek play.php: logo + puan) — açık zemin */
.pv-appbar { display: flex; align-items: center; gap: 6px; padding: 9px 10px; z-index: 2; }
.pv-appbar-logo { height: 18px; max-width: 90px; object-fit: contain; }
.pv-pill { background: var(--brand-050, #f4ece8); color: var(--brand-600, #8a4d3f); border-radius: 20px; padding: 4px 10px; font-size: 9px; font-weight: 800; }
.pv-appbar .pv-pill:nth-child(2) { margin-left: auto; }
.pv-score { background: var(--pv, var(--brand)); color: #fff; }

.pv-screens { flex: 1; position: relative; min-height: 0; padding: 6px 12px 4px; }
.pv-screen {
  display: none; flex-direction: column; align-items: center;
  height: 100%; text-align: center; gap: 6px; animation: pvFade .2s ease;
}
.pv-screen.active { display: flex; }
@keyframes pvFade { from { opacity: .5; } to { opacity: 1; } }

/* 1: Katılım (index.php) — açık zemin, koyu metin */
.pv-join { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; }
.pv-badge { background: var(--brand-050, #f4ece8); color: var(--brand-600, #8a4d3f); font-weight: 800; font-size: 9px; padding: 3px 12px; border-radius: 20px; }
.pv-join-title { font-size: 18px; font-weight: 800; color: var(--ink, #2b211d); }
.pv-join-sub { font-size: 9px; color: var(--ink-muted, #8a7f79); }
.pv-field { width: 100%; max-width: 200px; padding: 9px 12px; background: #fff; color: #9ca3af; border: 1px solid var(--brand-100, #eaddd6); border-radius: 10px; font-size: 10px; text-align: left; margin-top: 4px; }
.pv-btn { width: 100%; max-width: 200px; padding: 10px; background: var(--pv, var(--brand)); color: #fff; border-radius: 10px; font-weight: 800; font-size: 11px; box-shadow: 0 6px 16px -8px var(--pv, var(--brand)); }

/* 2: Lobi */
.pv-hourglass { font-size: 34px; margin-top: 16px; }
.pv-lobby-title { font-size: 16px; font-weight: 800; color: var(--ink, #2b211d); }
.pv-lobby-sub { font-size: 10px; color: var(--ink-muted, #8a7f79); }

/* 3: Soru */
.pv-qrow { display: flex; justify-content: space-between; width: 100%; }
.pv-timer { width: 100%; height: 7px; background: var(--brand-100, #ecd9d1); border-radius: 20px; overflow: hidden; }
.pv-timer > span { display: block; width: 66%; height: 100%; background: linear-gradient(90deg, var(--pv, var(--brand)), #e59aa0); }
.pv-qtext { font-size: 14px; font-weight: 800; margin: 2px 0 4px; color: var(--ink, #2b211d); }
.pv-opts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.pv-opt { display: flex; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 9px; color: #fff; font-weight: 700; font-size: 10px; text-align: left; box-shadow: 0 3px 8px -4px rgba(0,0,0,.35); }
.pv-opt .k { width: 18px; height: 18px; display: grid; place-items: center; background: rgba(255,255,255,.28); border-radius: 5px; font-weight: 900; font-size: 9px; }
.pv-opt.o0 { background: #d4736a; }
.pv-opt.o1 { background: #5a9e96; }
.pv-opt.o2 { background: #c97a52; }
.pv-opt.o3 { background: #5b6fb0; }
.pv-react { margin-top: auto; background: #fff; border: 1px solid var(--brand-100, #eaddd6); border-radius: 20px; padding: 5px 12px; font-size: 13px; letter-spacing: 1px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); }

/* 4: Liderlik */
.pv-lb-title { font-size: 14px; font-weight: 800; color: var(--ink, #2b211d); }
.pv-lb-me { font-size: 9px; color: var(--ink-muted, #8a7f79); margin-bottom: 2px; }
.pv-lb-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px; align-items: center; width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--brand-100, #eaddd6); border-radius: 8px; padding: 7px 10px; font-size: 10px; font-weight: 700; }
.pv-lb-row .r { font-weight: 900; color: var(--brand-600, #8a4d3f); }
.pv-lb-row.me { outline: 2px solid var(--pv, var(--brand)); }

/* Ekran seçici (dock) */
.pv-dock { flex: 0 0 auto; padding: 6px 10px 8px; text-align: center; }
.pv-dock-tabs { display: inline-flex; gap: 6px; padding: 6px 10px; background: var(--brand-050, #f4ece8); border-radius: 10px; }
.pv-tab {
  width: 26px; height: 26px; border: 2px solid var(--brand-100, #eaddd6); border-radius: 6px;
  background: #fff; color: var(--brand-600, #8a4d3f);
  font-weight: 800; font-size: 11px; font-family: inherit; cursor: pointer; padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.pv-tab.on { background: var(--pv, var(--brand)); color: #fff; border-color: var(--pv, var(--brand)); }

/* Masaüstü önizleme — yatay düzen */
.phone-frame.desktop .pv-opts2 { gap: 8px; }
.phone-frame.desktop .pv-screen[data-screen="3"],
.phone-frame.desktop .pv-screen[data-screen="4"] { max-width: 560px; margin: 0 auto; }

@media (max-width: 1100px) {
  .theme-editor { grid-template-columns: 1fr; }
  .theme-preview { position: static; }
  .phone-frame { max-width: 360px; }
}
@media (max-width: 640px) {
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card.span-2 { grid-column: auto; }
  .phone-frame { max-width: 100%; }
}

/* Noor WebView — gömülü katılımcı ekranı */
body.embed { background: var(--cream); }
body.embed .wrap { max-width: 480px; margin: 0 auto; padding: 12px 14px 24px; }
body.embed .center { margin-top: 2vh !important; }
body.embed .badge { display: none; }

/* Host — etkinlik yönet hub */
.manage-hero { position: relative; overflow: hidden; }
.manage-status { display: inline-block; font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.manage-stat { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.linkbox { background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius-md); padding: 10px 12px; word-break: break-all; font-size: .85rem; }
.linkbox a { color: var(--brand-600); font-weight: 600; }

/* Dosya yükleme */
.filepick { display: inline-block; cursor: pointer; }
.filepick input[type="file"] { display: none; }
.filepick.compact .btn { padding: 4px 10px; font-size: .78rem; }
.media-block .media-prev { margin: 8px 0; }
.media-block .media-prev img { max-height: 120px; border-radius: var(--radius-md); border: 1px solid var(--brand-100); }
.media-audio { width: 100%; max-width: 280px; margin: 8px 0; }
.thumb-sm { max-height: 48px; border-radius: var(--radius-sm); vertical-align: middle; margin-right: 8px; }
.oimg-box { margin: 6px 0 10px 36px; padding: 8px; background: var(--brand-050); border-radius: 7px; }
.sidebar .logo .logo-img { height: 60px; width: auto; filter: brightness(0) invert(1); opacity: .97; border-radius: 0; }

/* Etkinlik satır menüsü */
.event-menu { position: relative; }
.event-menu .menu-btn { min-width: 36px; padding: 8px 10px; }
.menu-drop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 190px; background: #fff; border: 1px solid var(--brand-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 6px;
}
.menu-drop a, .menu-drop button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 10px 12px; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  color: var(--ink); cursor: pointer; text-decoration: none;
}
.menu-drop a:hover, .menu-drop button:hover { background: var(--brand-050); }
.menu-drop button.danger { color: #b3261e; }
.menu-drop form { margin: 0; }

/* Canlı emoji tepki barı (katılımcı) */
.reactbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 8px 12px; z-index: 50;
  background: var(--card, #fff); border: 1px solid var(--line, #eee);
  border-radius: 999px; box-shadow: 0 8px 26px rgba(0,0,0,.14);
  max-width: 94vw; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.reactbar button {
  border: 0; background: none; cursor: pointer; padding: 4px;
  font-size: 1.7rem; line-height: 1; border-radius: 50%;
  transition: transform .15s ease; flex: 0 0 auto;
}
.reactbar button:hover { transform: scale(1.15); }
.reactbar button.pop { animation: reactPop .3s ease; }
@keyframes reactPop { 0%{transform:scale(1);} 45%{transform:scale(1.5);} 100%{transform:scale(1);} }

/* Kelime bulutu girişi (katılımcı) */
.wcbox { margin-top: 16px; }
.wcchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.wcchip {
  background: var(--brand-050, #f3f0ff); color: var(--brand-600, #5a3);
  border: 1px solid var(--brand-100, #e5e0ff); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: .95rem;
}
.wcform { display: flex; gap: 10px; }
.wcform input[type="text"] {
  flex: 1; padding: 14px 16px; font-size: 1.05rem;
  border: 1px solid var(--line, #e5e5e5); border-radius: 14px;
}
.wcform input:disabled { opacity: .55; }
.wcform button:disabled { opacity: .55; }

/* Kelime oyunu — anagram harfleri (katılımcı) */
.wordscramble { font-size: 2rem; font-weight: 900; letter-spacing: .34em; text-align: center; color: var(--brand); margin-bottom: 14px; text-transform: uppercase; }
#wordInput { text-align: center; text-transform: uppercase; letter-spacing: .05em; }

/* Çekiliş kazanan bandı (katılımcı lobisi) */
.draw-win { background: linear-gradient(135deg, #ff7a45, #ffd23f); color: #3a1d00; font-weight: 800; padding: 16px; border-radius: 14px; font-size: 1.15rem; }
.draw-win.me { background: linear-gradient(135deg, var(--green, #37b56a), #74e8a6); color: #06331d; }

/* ===== Etkinliği Yönet (portal yapısı) ===== */
.manage-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.manage-topbar .grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.dropdown { position: relative; }
.dropdown > .btn { display: inline-flex; align-items: center; gap: 8px; }
.dropdown .caret { font-size: .7rem; opacity: .9; }
.dropdown .drop {
  position: absolute; z-index: 45; top: calc(100% + 6px); min-width: 250px; max-width: 90vw;
  background: #fff; border: 1px solid var(--line, #eee); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.18); padding: 8px; display: none;
}
.dropdown.open .drop { display: block; }
.dropdown .drop.to-right { right: 0; }
.drop a.item, .drop button.item {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.drop a.item:hover, .drop button.item:hover { background: var(--brand-050); }
.drop .lbl { font-size: .72rem; color: var(--ink-muted, #999); margin: 8px 10px 2px; display: block; text-transform: uppercase; letter-spacing: .04em; }
.drop .lk { display: block; padding: 6px 12px; font-size: .78rem; color: var(--brand-600); word-break: break-all; }
.drop .divider { height: 1px; background: var(--line, #eee); margin: 6px 4px; }

.manage-card { border: 1px solid var(--line, #eee); border-radius: 18px; overflow: hidden; background: #fff; }
.status-hero { padding: 30px 20px; text-align: center; color: #fff; }
.status-hero.wait { background: linear-gradient(135deg, #f4b73f, #e79a1e); }
.status-hero.live { background: linear-gradient(135deg, #37b56a, #1f9d54); }
.status-hero.done { background: linear-gradient(135deg, #8f8f8f, #616161); }
.status-hero .ico { font-size: 1.7rem; }
.status-hero .st { font-size: 1.5rem; font-weight: 800; margin: 2px 0 14px; }
.status-hero .btn-edit { background: rgba(0,0,0,.32); color: #fff; border: 0; }
.status-hero .hint { display: inline-block; margin-top: 16px; background: rgba(0,0,0,.16); padding: 10px 16px; border-radius: 10px; font-size: .92rem; max-width: 640px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line, #eee); }
.stat-cell { padding: 20px 12px; text-align: center; border-right: 1px solid var(--line, #eee); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .k { color: var(--ink-muted, #999); font-size: .86rem; display: flex; gap: 6px; justify-content: center; align-items: center; }
.stat-cell .v { font-weight: 800; font-size: 1.15rem; margin-top: 10px; min-height: 1.2em; }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat-cell:nth-child(2) { border-right: 0; } }

.manage-actions { display: flex; gap: 12px; justify-content: center; padding: 16px; background: var(--cream, #faf7f4); border-top: 1px solid var(--line, #eee); flex-wrap: wrap; }
.collapse { display: none; padding: 4px 20px 20px; }
.collapse.open { display: block; }
.plist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plist li { background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }

.manage-flow { text-align: center; margin-top: 24px; }
.manage-flow h3 { display: inline-block; border-bottom: 2px solid var(--line, #eee); padding-bottom: 10px; margin: 0 0 10px; }
