/* ═══════════════════════════════════════════════
   CypSways Randomizer — Design System v2
   Matches miniapp.css aesthetic
   ═══════════════════════════════════════════════ */

:root {
  --primary:       hsl(245, 80%, 65%);
  --primary-glow:  hsla(245, 80%, 65%, 0.4);
  --secondary:     hsl(270, 75%, 60%);
  --accent:        hsl(160, 80%, 45%);
  --danger:        hsl(0, 80%, 60%);
  --bg-deep:       #141414;
  --glass-bg:      rgba(24, 24, 27, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --glass-border-t:rgba(255, 255, 255, 0.14);
  --font-main:     'Inter', -apple-system, sans-serif;
  --font-heading:  'Outfit', sans-serif;
}

/* ── Reset & Base ─────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
input, textarea { -webkit-user-select: text; user-select: text; }

body.cw-app {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(22,137,255,.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(125,43,156,.18), transparent 30%);
  min-height: 100vh;
  font-family: var(--font-main);
  color: #fafafa;
  overflow-x: hidden;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  position: relative;
  -webkit-text-size-adjust: 100%;
}
body.cw-app.wizard-mode {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
body.cw-app.wizard-mode #bottom-nav { display: none; }

body.cw-app::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(22,137,255,.10) 0, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(184,69,224,.07) 0, transparent 50%);
  pointer-events: none; z-index: 1;
}

/* ── Glass Card ───────────────────────────────── */
.cw-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-t);
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
  position: relative; z-index: 2;
}

/* ── Loading Overlay ─────────────────────────── */
.cw-loader-overlay {
  position: fixed; inset: 0;
  background: var(--bg-deep);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.cw-loader-overlay.hidden { opacity:0; visibility:hidden; pointer-events:none; }

.cw-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, #1689ff, #0e6fd8, transparent);
  animation: spin 1s linear infinite; position: relative;
}
.cw-spinner::before {
  content:''; position:absolute; inset:4px; border-radius:50%; background:#141414;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ── Screen & Tabs ────────────────────────────── */
.cw-screen {
  position: relative; z-index: 2;
  width: 100%; max-width: 520px;
  margin: 0 auto;
  padding: max(20px, calc(env(safe-area-inset-top) + 12px)) 16px 0;
  display: none;
}
.cw-screen.active { display: block; }

/* ── Bottom Nav ───────────────────────────────── */
.cw-bottom-nav {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 12px; right: 12px;
  border-radius: 22px;
  background: rgba(16,16,20,.97);
  border: 1px solid rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 6px 8px;
  display: flex; justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  will-change: transform;
}

.cw-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 48px; border-radius: 16px;
  padding: 6px 4px;
  cursor: pointer; border: none;
  background: transparent; color: #71717a;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  font-size: 10px; font-weight: 600;
  letter-spacing: .2px;
}
.cw-nav-item i {
  font-size: 1.2rem; margin-bottom: 2px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .3s ease;
}
.cw-nav-item.active {
  background: rgba(255,255,255,.1); color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
}
.cw-nav-item.active i { transform: scale(1.1); color: #5aaeff; }
.cw-nav-item:not(.active):active { transform: scale(.9); }

/* ── Section Title ────────────────────────────── */
.cw-section-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 8px 4px;
}

/* ── Stat Cards ───────────────────────────────── */
.cw-stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-bottom: 16px;
}
.cw-stat-card {
  background: rgba(22,137,255,.08);
  border: 1px solid rgba(22,137,255,.18);
  border-radius: 16px; padding: 14px 8px; text-align: center;
}
.cw-stat-card strong {
  display: block; font-family: var(--font-heading);
  font-size: 26px; font-weight: 800; color: #fff;
}
.cw-stat-card span { font-size: 11px; color: rgba(255,255,255,.4); }
.cw-stat-card strong.green { color: #34d399; }

/* ── Action Row ───────────────────────────────── */
.cw-action-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 56px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-t);
  border-radius: 16px; margin-bottom: 8px;
  cursor: pointer; width: 100%; text-align: left;
  color: #fff; font-family: var(--font-main);
  transition: background .2s ease, transform .15s ease;
}
.cw-action-row:active { transform: scale(.98); background: rgba(22,137,255,.12); }
.cw-action-row-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.cw-action-row-icon.blue { background: linear-gradient(135deg,#1689ff,#0e6fd8); }
.cw-action-row-icon.green { background: linear-gradient(135deg,#10b981,#059669); }
.cw-action-row-body { flex:1; min-width:0; }
.cw-action-row-title { font-size: 15px; font-weight: 600; }
.cw-action-row-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.cw-chevron { color: rgba(255,255,255,.25); font-size: 12px; }

/* ── Feature Pills ────────────────────────────── */
.cw-feature-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; margin-bottom: 8px;
  font-size: 14px; color: rgba(255,255,255,.7);
}
.cw-feature-pill i { color: #5aaeff; width: 18px; text-align: center; }

/* ── Giveaway Card ────────────────────────────── */
.cw-giveaway-card {
  background: rgba(22,20,32,.95);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 16px;
  margin-bottom: 10px; cursor: pointer;
  contain: layout style;
  transition: transform .2s ease, border-color .2s ease;
}
.cw-giveaway-card:active { transform: scale(.98); border-color: rgba(22,137,255,.3); }
.cw-giveaway-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin: 0 0 4px; }

/* ── Btn Primary ─────────────────────────────── */
.cw-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 14px 20px;
  border: none; border-radius: 16px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: var(--font-main);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cw-btn:active { transform: scale(.97); }
.cw-btn-primary {
  background: linear-gradient(135deg,#1689ff,#0e6fd8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,137,255,.35);
}
.cw-btn-primary:active { box-shadow: 0 4px 12px rgba(22,137,255,.2); }
.cw-btn-secondary { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); }
.cw-btn-green {
  background: linear-gradient(135deg,#10b981,#059669);
  color: #fff; box-shadow: 0 8px 24px rgba(16,185,129,.3);
}

/* ── Input / Textarea ─────────────────────────── */
.cw-input, .cw-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 12px 16px;
  color: #fff; font-size: 16px; font-family: var(--font-main);
  outline: none; transition: border-color .2s ease;
}
.cw-input:focus, .cw-textarea:focus { border-color: rgba(22,137,255,.5); }
.cw-textarea { min-height: 120px; resize: vertical; }

/* ── Segmented ────────────────────────────────── */
.cw-segmented {
  display: flex;
  background: rgba(255,255,255,.05);
  border-radius: 12px; padding: 3px; gap: 2px;
}
.cw-segment {
  flex:1; padding: 9px 12px; border: none; border-radius: 9px;
  background: transparent; color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s ease;
}
.cw-segment.active { background: rgba(22,137,255,.4); color: #fff; }

/* ── Progress Bar ─────────────────────────────── */
.cw-progress {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; margin-bottom: 20px; overflow: hidden;
}
.cw-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg,#1689ff,#0e6fd8);
  transition: width .3s ease;
}

/* ── Wizard Step ─────────────────────────────── */
.cw-wizard-step { display: none; }
.cw-wizard-step.active { display: block; }
.cw-wizard-nav { display: flex; gap: 10px; margin-top: 20px; }
.cw-wizard-nav .cw-btn { flex:1; }

/* ── Modal ───────────────────────────────────── */
.cw-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 500; display: none; align-items: flex-end;
}
.cw-modal-overlay.active { display: flex; }
.cw-modal-sheet {
  width: 100%; max-width: 520px; margin: 0 auto;
  background: rgba(18,18,24,.98);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 90vh; overflow-y: auto;
}
.cw-modal-handle {
  width: 36px; height: 4px; background: rgba(255,255,255,.15);
  border-radius: 2px; margin: 0 auto 16px;
}
.cw-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border: none;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Filter Pills ─────────────────────────────── */
.cw-filter-bar {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cw-filter-bar::-webkit-scrollbar { display: none; }
.cw-filter-pill {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s ease;
}
.cw-filter-pill.active {
  background: rgba(22,137,255,.35); border-color: rgba(22,137,255,.5);
  color: #fff;
}

/* ── Toggle Switch ────────────────────────────── */
.cw-toggle { position:relative; display:inline-block; width:51px; height:28px; }
.cw-toggle input { opacity:0; width:0; height:0; }
.cw-toggle-track {
  position:absolute; inset:0; border-radius:14px;
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15);
  transition: all .3s ease; cursor:pointer;
}
.cw-toggle input:checked + .cw-toggle-track {
  background: linear-gradient(135deg,#10b981,#059669);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 0 18px rgba(16,185,129,.3);
}
.cw-toggle-thumb {
  position:absolute; top:3px; left:3px;
  width:20px; height:20px; border-radius:50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cw-toggle input:checked + .cw-toggle-track .cw-toggle-thumb { transform: translateX(23px); }

/* ── Duration Grid ────────────────────────────── */
.cw-duration-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
}
.cw-duration-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px; border-radius: 16px;
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  cursor:pointer; transition: all .2s ease;
  font-family: var(--font-main);
}
.cw-duration-card:active, .cw-duration-card.selected {
  border-color: rgba(22,137,255,.5); background: rgba(22,137,255,.12);
}
.cw-duration-emoji { font-size: 24px; }
.cw-duration-label { font-size: 14px; font-weight: 700; color: #fff; }
.cw-duration-sub { font-size: 12px; color: rgba(255,255,255,.4); }

/* ── Stepper ─────────────────────────────────── */
.cw-stepper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08); border-radius:16px;
  margin-bottom:12px;
}
.cw-stepper-controls { display:flex; align-items:center; gap:16px; }
.cw-stepper-btn {
  width:36px; height:36px; border-radius:50%; border:none;
  background: rgba(22,137,255,.2); color:#5aaeff;
  font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.cw-stepper-btn:active { background: rgba(22,137,255,.4); }
.cw-stepper-val { font-family:var(--font-heading); font-size:22px; font-weight:800; color:#fff; }

/* ── Info Banner ─────────────────────────────── */
.cw-info-banner {
  margin-bottom:14px; padding:12px 14px; border-radius:14px;
  background: rgba(22,137,255,.12); border:1px solid rgba(22,137,255,.25);
  font-size:13px; color: #8fc6ff; line-height:1.5;
}

/* ── Status Badge ─────────────────────────────── */
.cw-status { display:inline-block; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:700; }
.cw-status-active { background:rgba(16,185,129,.2); color:#34d399; }
.cw-status-draft { background:rgba(255,255,255,.08); color:#a1a1aa; }
.cw-status-completed { background:rgba(22,137,255,.2); color:#5aaeff; }
.cw-status-scheduled { background:rgba(245,158,11,.2); color:#fbbf24; }

/* ── Preview Bubble ───────────────────────────── */
.cw-preview-wrap {
  background: rgba(10,10,15,.6); border:1px solid rgba(255,255,255,.06);
  border-radius:20px; padding:16px; margin-top:12px;
}
.cw-preview-channel { font-size:12px; color:#5aaeff; margin-bottom:8px; font-weight:600; }
.cw-preview-bubble {
  background: rgba(22,137,255,.15); border:1px solid rgba(22,137,255,.2);
  border-radius:16px; padding:12px;
}
.cw-preview-text { font-size:14px; color:rgba(255,255,255,.8); margin-bottom:10px; min-height:20px; }
.cw-preview-btn {
  background: linear-gradient(135deg,#1689ff,#0e6fd8);
  color:#fff; padding:10px; border-radius:10px;
  text-align:center; font-size:13px; font-weight:700;
}

/* ── Fade In ──────────────────────────────────── */
.cw-fade { animation: cwFade .4s cubic-bezier(.4,0,.2,1) both; }
@keyframes cwFade { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }

/* ── Channel Tag ──────────────────────────────── */
.cw-channel-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.cw-channel-tag {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:20px; border:none;
  background: rgba(255,255,255,.07); color:#fff;
  font-size:14px; cursor:pointer; font-family:var(--font-main);
}
.cw-channel-tag.selected { background:rgba(22,137,255,.35); border:1px solid rgba(22,137,255,.5); }

/* ── Telegram import card (step 3) ─────────────── */
.tg-import-card {
  padding: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(22,137,255,.12), rgba(22,137,255,.07));
  border: 1px solid rgba(22,137,255,.22);
  border-radius: 14px;
}
.tg-import-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.tg-import-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.tg-import-card__text { flex: 1; min-width: 0; }
.tg-import-card__title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 0 0 4px; line-height: 1.25;
}
.tg-import-card__desc {
  font-size: 13px; color: rgba(255,255,255,.5);
  margin: 0; line-height: 1.45;
}
.tg-import-card__btn {
  width: 100%; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font-main);
  box-shadow: 0 4px 14px rgba(22,137,255,.35);
}
.tg-import-card__btn:active { transform: scale(.98); }

/* ── Caption editor (mobile-first) ─────────────── */
.caption-toolbar {
  display: flex; align-items: center; gap: 2px;
  margin-bottom: 8px; padding: 5px 6px;
  background: rgba(255,255,255,.04);
  border-radius: 10px; border: 1px solid rgba(255,255,255,.06);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.caption-toolbar::-webkit-scrollbar { display: none; }
.caption-toolbar button { flex-shrink: 0; }

.caption-textarea {
  width: 100%; min-height: 168px;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px; color: #fff;
  font-size: 16px; line-height: 1.55;
  outline: none; resize: vertical;
  font-family: var(--font-main);
  box-sizing: border-box;
  transition: border-color .3s;
}
.caption-textarea:focus { border-color: rgba(22,137,255,.45); }

#caption-preview-panel {
  min-height: 120px;
  padding: 14px 16px;
  background: #182533;
  border: 1.5px solid rgba(96,165,250,.15);
  border-radius: 12px;
}
#caption-preview-content {
  color: #e8edf2 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  word-break: break-word;
  white-space: pre-wrap;
}
#caption-preview-content blockquote {
  border-left: 3px solid #60a5fa;
  margin: 8px 0; padding: 4px 0 4px 12px;
  color: rgba(255,255,255,.75);
}

/* ── Time presets & datetime inputs ────────────── */
.time-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-preset-btn {
  min-height: 44px; padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font-main);
  transition: all .2s ease;
}
.time-preset-btn:active,
.time-preset-btn.active {
  background: rgba(22,137,255,.28);
  border-color: rgba(22,137,255,.5);
  color: #fff;
}

.datetime-input {
  width: 100%; height: 52px;
  padding: 0 16px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(22,137,255,.3);
  border-radius: 12px; color: #fff;
  font-size: 16px; outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
  color-scheme: dark;
}
.datetime-input--publish {
  height: 48px;
  border-color: rgba(16,185,129,.3);
  background: rgba(255,255,255,.05);
}

/* ── Wizard mobile tweaks ──────────────────────── */
@media (max-width: 380px) {
  .glass-card { padding: 18px !important; }
  .time-preset-row { grid-template-columns: repeat(2, 1fr); }
  #primary-check-btn span { display: none; }
  #primary-check-btn { padding: 0 16px !important; }
}

@media (max-width: 340px) {
  .tg-import-card__title { font-size: 14px; }
  .tg-import-card__desc { font-size: 12px; }
}

/* Prevent iOS zoom on focus */
#tab-create input[type="text"],
#tab-create input[type="datetime-local"],
#tab-create textarea,
.prize-input {
  font-size: 16px !important;
}

/* ═══════════════════════════════════════════════
   APP SHELL v3 — mobile-first navigation & home
   ═══════════════════════════════════════════════ */

.glass-card {
  background: rgba(28,28,28,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* ── Home hero ───────────────────────────────── */
.home-hero {
  position: relative;
  padding: 26px 22px 22px;
  margin-bottom: 14px;
  text-align: center;
  overflow: hidden;
}
.home-hero__glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(22,137,255,.25) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(22,137,255,.15); border: 1px solid rgba(22,137,255,.25);
  color: #8fc6ff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.home-hero__title {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 800; color: #fff;
  margin: 0 0 10px; line-height: 1.15;
  position: relative;
}
.home-hero__title .gradient-text {
  background: linear-gradient(135deg, #5aaeff, #a9d3ff, #6cb6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero__sub {
  font-size: 14px; color: rgba(255,255,255,.5);
  margin: 0 0 18px; line-height: 1.45;
}
.home-cta {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 16px;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  color: #fff; font-size: 16px; font-weight: 800;
  font-family: var(--font-main);
  box-shadow: 0 10px 28px rgba(22,137,255,.4);
  cursor: pointer;
}
.home-cta:active { transform: scale(.98); }

.home-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.home-stats--3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-stat {
  padding: 14px 10px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .15s, background .15s;
}
.home-stat--green { background: rgba(16,185,129,.06); border-color: rgba(16,185,129,.15); }
.home-stat--purple { background: rgba(22,137,255,.08); border-color: rgba(22,137,255,.18); }
.home-stat__icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0 auto 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 12px; color: rgba(255,255,255,.5);
}
.home-stat--green .home-stat__icon { background: rgba(16,185,129,.15); color: #34d399; }
.home-stat--purple .home-stat__icon { background: rgba(22,137,255,.15); color: #8fc6ff; }
.home-stat strong {
  display: block; font-family: var(--font-heading);
  font-size: 24px; font-weight: 800; color: #fff;
}
.home-stats--3 .home-stat strong { font-size: 22px; }
.home-stat strong.green { color: #34d399; }
.home-stat strong.purple { color: #8fc6ff; }
.home-stat--tap {
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: inherit;
}
.home-stat--tap:active { transform: scale(0.97); }
.home-quick-label {
  margin: 0 0 8px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.nav-badge.hidden { display: none; }
.nav-item { position: relative; }
.list-pull-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  padding: 8px 0 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.list-pull-hint.visible { opacity: 1; }
.qa-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.qa-action:active { transform: scale(0.99); background: rgba(22,137,255,.12); }
.qa-action i { width: 20px; text-align: center; color: #5aaeff; }
.qa-action.danger i { color: #f87171; }
.qa-action.success i { color: #34d399; }
.qa-action.amber i { color: #fbbf24; }
.qa-sheet-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.qa-sheet-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin: 0 0 16px;
  line-height: 1.4;
}
.home-stat span { font-size: 11px; color: rgba(255,255,255,.45); }

.home-quick { display: flex; flex-direction: column; gap: 8px; }
.home-quick-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; min-height: 56px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fff; font-family: var(--font-main);
  text-align: left; cursor: pointer;
}
.home-quick-item:active { background: rgba(22,137,255,.1); transform: scale(.99); }
.home-quick-item i.icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.home-quick-item i.icon.purple { background: rgba(22,137,255,.2); color: #a9d3ff; }
.home-quick-item i.icon.green { background: rgba(16,185,129,.2); color: #34d399; }
.home-quick-item i.icon.blue { background: rgba(59,130,246,.2); color: #60a5fa; }
.home-quick-item--featured {
  background: linear-gradient(135deg, rgba(22,137,255,.1), rgba(22,137,255,.06));
  border-color: rgba(22,137,255,.22);
}
.home-quick-item .text { flex: 1; min-width: 0; }
.home-quick-item .text b { display: block; font-size: 15px; font-weight: 600; }
.home-quick-item .text small { display: block; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.home-quick-item .chev { color: rgba(255,255,255,.25); font-size: 12px; }

/* ── List screen ─────────────────────────────── */
.list-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px; padding: 0 2px; gap: 12px;
}
.list-header h1 {
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 2px;
}
.list-header__sub {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}
.list-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: #fff;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(0.94); background: rgba(22,137,255,.15); }
.icon-btn--accent {
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border: none; box-shadow: 0 4px 14px rgba(22,137,255,.35);
}

.filter-pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.5);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s ease;
}
.filter-pill.active {
  background: rgba(22,137,255,.28);
  border-color: rgba(22,137,255,.45);
  color: #fff;
}

.gca-card {
  position: relative;
  background: rgba(18,16,28,.92);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 16px 16px 14px 20px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.gca-card--anim {
  animation: gcaSlideIn .35s cubic-bezier(.4,0,.2,1) both;
}
@keyframes gcaSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.gca-card:active { transform: scale(0.99); border-color: rgba(22,137,255,.25); }
.gca-card__channel {
  flex-shrink: 0;
}
.gca-card__channel-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(22,137,255,.3), rgba(22,137,255,.2));
  border: 1px solid rgba(22,137,255,.25);
  font-size: 13px; font-weight: 800; color: #a9d3ff;
  font-family: var(--font-heading);
}
.gca-meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: rgba(255,255,255,.55);
  font-weight: 600;
}
.gca-meta-chip i { font-size: 10px; opacity: .7; }
.gca-card__accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 20px 0 0 20px;
}
.gca-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.gca-card__badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid transparent; white-space: nowrap;
}
.gca-card__menu {
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.5);
  font-size: 14px; cursor: pointer;
}
.gca-card__title {
  font-size: 15px; font-weight: 600; color: #fff;
  margin: 0 0 10px; line-height: 1.4;
}
.gca-card__meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.gca-card__meta i { margin-right: 4px; }
.gca-card__actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.gca-quick-btn {
  flex: 1; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.gca-quick-btn--primary {
  border: none;
  background: linear-gradient(135deg,#1689ff,#0e6fd8);
  color: #fff; font-weight: 700;
}
.gca-quick-btn--success {
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff; font-weight: 700;
}
.gca-quick-btn:not(.gca-quick-btn--primary):not(.gca-quick-btn--success) {
  flex: 0 0 44px;
}

/* ── Bottom navigation ───────────────────────── */
.app-nav {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 12px; right: 12px;
  height: 68px;
  background: rgba(12,12,16,.94);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  z-index: 999;
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.app-nav .nav-item {
  height: auto; min-height: 52px;
  border-radius: 16px; border: none;
  background: transparent; color: rgba(255,255,255,.42);
  font-size: 10px; font-weight: 600;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
  font-family: var(--font-main);
  transition: background .2s, color .2s;
}
.app-nav .nav-item i { font-size: 17px; }
.app-nav .nav-item.active {
  background: rgba(22,137,255,.16); color: #fff;
}
.app-nav .nav-item.active i { color: #8fc6ff; }
.nav-create {
  border: none;
  border-radius: 18px;
  margin: 0;
  background: linear-gradient(145deg, #1689ff 0%, #0e6fd8 55%, #3d9bff 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(22,137,255,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s, box-shadow .15s;
}
.nav-create i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.nav-create:active {
  transform: scale(0.96);
  box-shadow: 0 4px 14px rgba(22,137,255,.35);
}
.nav-create.active {
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 6px 20px rgba(22,137,255,.5);
}
.icon-btn--create {
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border: none;
  box-shadow: 0 4px 14px rgba(22,137,255,.35);
}

/* ── Wizard shell ────────────────────────────── */
.wizard-shell { min-height: 100vh; display: flex; flex-direction: column; }
.wizard-top {
  position: sticky; top: 0; z-index: 60;
  padding: max(12px, env(safe-area-inset-top)) 16px 14px;
  background: rgba(9,9,11,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wizard-progress-track {
  height: 3px; background: rgba(255,255,255,.06);
  border-radius: 2px; overflow: hidden; margin-bottom: 14px;
}
.wizard-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #1689ff, #0e6fd8);
  transition: width .35s ease;
}
.wizard-dots {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.wizard-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.1);
  transition: background .3s ease;
}
.wizard-dot.done { background: rgba(22,137,255,.5); }
.wizard-dot.active { background: linear-gradient(90deg, #1689ff, #0e6fd8); }
.wizard-title {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 0 4px;
}
.wizard-sub {
  font-size: 13px; color: rgba(255,255,255,.45); margin: 0;
}
.wizard-body {
  flex: 1;
  padding: 12px 16px calc(100px + env(safe-area-inset-bottom));
}
.wizard-dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(9,9,11,.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: none; gap: 10px; z-index: 1000;
}
.wizard-dock.visible { display: flex; }
.wizard-btn {
  min-height: 52px; border-radius: 16px; border: none;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: var(--font-main);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wizard-btn--back {
  width: 100px; flex-shrink: 0;
  background: rgba(255,255,255,.08); color: #fff;
}
.wizard-btn--next {
  flex: 1;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22,137,255,.35);
}
.wizard-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ── Wizard cards (compact) ──────────────────── */
.wiz-card { padding: 18px; margin-bottom: 12px; }
.wiz-section-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 10px;
}
.wiz-section-label--accent { color: #5aaeff; }

.channel-add-box {
  padding: 18px; text-align: center;
  background: rgba(255,255,255,.03);
  border: 2px dashed rgba(22,137,255,.28);
  border-radius: 14px; cursor: pointer;
}
.channel-add-box i { color: #5aaeff; font-size: 22px; margin-bottom: 6px; }
.channel-add-box p { color: rgba(255,255,255,.5); font-size: 14px; margin: 0; }

.channel-selected {
  background: linear-gradient(135deg, rgba(22,137,255,.14), rgba(22,137,255,.08));
  border: 1px solid rgba(22,137,255,.28);
  border-radius: 14px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.channel-input-row { display: flex; gap: 8px; margin-top: 10px; }
.channel-input-row input {
  flex: 1; height: 48px; padding: 0 14px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(22,137,255,.22);
  border-radius: 12px; color: #fff;
  font-size: 16px; outline: none;
}
.channel-check-btn {
  height: 48px; padding: 0 18px;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border: none; border-radius: 12px; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}

.wiz-collapse {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.wiz-collapse summary {
  list-style: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0; min-height: 44px;
}
.wiz-collapse summary::-webkit-details-marker { display: none; }
.wiz-collapse[open] summary { color: #5aaeff; margin-bottom: 12px; }
.wiz-collapse-body { padding-top: 4px; }

.winners-stepper-compact {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px; background: rgba(255,255,255,.03);
  border-radius: 14px; border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 16px;
}
.winners-stepper-compact button {
  width: 44px; height: 44px; border: none; border-radius: 12px;
  background: rgba(22,137,255,.2); color: #5aaeff; font-size: 18px; cursor: pointer;
}
.winners-stepper-compact #winners-count {
  font-family: var(--font-heading); font-size: 40px; font-weight: 800; color: #fff;
}

.summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.btn-launch {
  width: 100%; min-height: 54px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(34,197,94,.35);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-draft {
  width: 100%; min-height: 48px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: rgba(255,255,255,.55);
  font-size: 15px; font-weight: 600; cursor: pointer;
}

.prize-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.prize-row .num {
  width: 34px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,137,255,.15); border-radius: 10px;
  color: #5aaeff; font-weight: 700;
}
.prize-input {
  flex: 1; height: 46px; padding: 0 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff; outline: none;
}

@keyframes gca-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

#giveaways-list-container > div {
  transition: transform .1s ease;
}
#giveaways-list-container > div:active { transform: scale(.98); }

#summary-content {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* ═══════════════════════════════════════════════
   CREATE WIZARD v4 — full redesign (web palette)
   ═══════════════════════════════════════════════ */

.hidden { display: none !important; }

.cw-screen--wizard {
  max-width: none;
  padding: 0;
}

/* ── Section headers (from miniapp) ───────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.section-header--compact { margin-bottom: 18px; }
.section-header-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(22,137,255,.2);
  background: linear-gradient(135deg, rgba(22,137,255,.2), rgba(22,137,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.section-header-icon i { color: #5aaeff; font-size: 1.125rem; }
.section-header-icon--purple {
  background: linear-gradient(135deg, rgba(22,137,255,.22), rgba(22,137,255,.12));
  border-color: rgba(90,174,255,.28);
  box-shadow: 0 8px 24px rgba(22,137,255,.18);
}
.section-header-icon--purple i { color: #8fc6ff; }
.section-header-icon--green {
  background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(5,150,105,.1));
  border-color: rgba(52,211,153,.25);
  box-shadow: 0 8px 24px rgba(16,185,129,.15);
}
.section-header-icon--green i { color: #34d399; }
.section-header-icon--violet {
  background: linear-gradient(135deg, rgba(108,182,255,.22), rgba(124,58,237,.12));
  border-color: rgba(108,182,255,.28);
  box-shadow: 0 8px 24px rgba(124,58,237,.15);
}
.section-header-icon--violet i { color: #a9d3ff; }
.section-header-icon--amber {
  background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(217,119,6,.1));
  border-color: rgba(251,191,36,.28);
  box-shadow: 0 8px 24px rgba(245,158,11,.12);
}
.section-header-icon--amber i { color: #fbbf24; }
.section-header-copy { flex: 1; min-width: 0; }
.section-header-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 4px;
}
.section-header-sub {
  font-size: 11px; font-weight: 500; color: #71717a;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0;
}

/* ── Wizard topbar ───────────────────────────── */
.wizard-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.wizard-back-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(90,174,255,.18);
  background: rgba(22,137,255,.08);
  color: #8fc6ff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.wizard-back-btn:active {
  transform: scale(.95);
  background: rgba(22,137,255,.14);
}
.wizard-step-badge {
  justify-self: center;
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(22,137,255,.16), rgba(22,137,255,.1));
  border: 1px solid rgba(90,174,255,.32);
  color: #cfe6ff;
  font-size: 11px; font-weight: 800;
  letter-spacing: .04em;
  font-family: var(--font-heading);
  box-shadow: 0 4px 20px rgba(22,137,255,.12);
}
.wizard-topbar-spacer { width: 44px; }

/* ── Wizard cards & fields ───────────────────── */
.wiz-card {
  padding: 20px;
  margin-bottom: 14px;
  background: rgba(24,24,27,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wiz-field-group { margin-bottom: 18px; }
.wiz-field-group:last-child { margin-bottom: 0; }
.wiz-field-label {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.wiz-field-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.wiz-field-label__text {
  display: block;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .08em;
}
.wiz-field-label__text--accent { color: #5aaeff; }
.wiz-field-label__star { color: #fbbf24; font-size: 12px; }
.wiz-field-label__hint {
  font-weight: 500; text-transform: none;
  letter-spacing: 0; color: rgba(255,255,255,.28);
  margin-left: 4px;
}
.wiz-count-badge {
  font-size: 11px; font-weight: 700; color: #8fc6ff;
  background: rgba(22,137,255,.14);
  border: 1px solid rgba(22,137,255,.25);
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
}
.wiz-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 20px 0;
}
.wiz-error {
  font-size: 13px; color: #f87171;
  margin: 8px 0 0;
  display: flex; align-items: center; gap: 6px;
}
.wiz-error i { font-size: 12px; }

.wiz-input {
  flex: 1; min-width: 0;
  height: 50px; padding: 0 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; color: #fff;
  font-size: 16px; outline: none;
  font-family: var(--font-main);
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}
.wiz-input:focus {
  border-color: rgba(22,137,255,.45);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15), 0 0 0 3px rgba(22,137,255,.1);
}
.wiz-input.is-error,
.prize-input.is-error,
.caption-textarea.is-error { border-color: rgba(239,68,68,.65) !important; }
.caption-textarea.is-valid { border-color: rgba(52,211,153,.55) !important; }
.wiz-input--secondary {
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.channel-input-row { display: flex; gap: 8px; margin-top: 10px; }
.channel-input-row--compact { margin-top: 0; }
.channel-check-btn {
  height: 50px; padding: 0 20px; flex-shrink: 0;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border: none; border-radius: 14px; color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(22,137,255,.35);
  font-family: var(--font-main);
  transition: transform .2s ease;
}
.channel-check-btn:active { transform: scale(.97); }
.channel-check-btn:disabled { opacity: .6; cursor: wait; }

.wiz-btn-add {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid rgba(22,137,255,.3);
  background: rgba(22,137,255,.18); color: #8fc6ff;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wiz-btn-add--amber {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.3);
  color: #fbbf24;
}
.wiz-btn-add:active { transform: scale(.95); }

.channel-add-box {
  padding: 22px 16px; text-align: center;
  background: rgba(22,137,255,.06);
  border: 2px dashed rgba(22,137,255,.28);
  border-radius: 16px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.channel-add-box:active {
  background: rgba(22,137,255,.12);
  border-color: rgba(90,174,255,.45);
}
.channel-add-box i {
  display: block; color: #5aaeff;
  font-size: 22px; margin-bottom: 8px;
}
.channel-add-box p {
  color: rgba(255,255,255,.7); font-size: 15px;
  font-weight: 600; margin: 0 0 4px;
}
.channel-add-box small {
  color: rgba(255,255,255,.35); font-size: 12px;
}

.channel-selected {
  background: linear-gradient(135deg, rgba(22,137,255,.14), rgba(22,137,255,.08));
  border: 1px solid rgba(22,137,255,.28);
  border-radius: 16px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.channel-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 18px;
  font-family: var(--font-heading);
}
.channel-selected__body { flex: 1; min-width: 0; }
.channel-selected__name {
  font-size: 15px; font-weight: 700; color: #fff;
  word-break: break-word;
}
.channel-selected__status {
  font-size: 12px; color: #5aaeff; margin-top: 2px;
}
.channel-selected__status i { margin-right: 4px; color: #34d399; }
.channel-remove-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  border: none; border-radius: 12px;
  background: rgba(239,68,68,.12); color: #f87171;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.channel-remove-btn:active { background: rgba(239,68,68,.22); }

.channel-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
.channel-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #fff;
}
.channel-chip.selected {
  background: rgba(22,137,255,.18);
  border-color: rgba(22,137,255,.35);
}
.channel-chip i.fa-telegram { color: #60a5fa; font-size: 12px; }
.channel-chip .chip-auto {
  font-size: 10px; color: #34d399; margin-left: 2px;
}

.recent-channels { margin-top: 10px; }
.recent-channels__label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 8px;
}
.recent-chip {
  padding: 6px 12px;
  background: rgba(22,137,255,.1);
  border: 1px solid rgba(22,137,255,.22);
  border-radius: 999px; color: #8fc6ff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
}
.recent-chip:active { background: rgba(22,137,255,.2); }

/* ── Settings cards ──────────────────────────── */
.wiz-setting-card {
  padding: 16px;
  margin-bottom: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
}
.wiz-setting-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.wiz-setting-row__text { flex: 1; min-width: 0; }
.wiz-setting-row__title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 0 0 3px;
}
.wiz-setting-row__sub {
  font-size: 13px; color: rgba(255,255,255,.45); margin: 0;
}
.wiz-info-banner {
  margin: 14px 0 0; padding: 12px 14px;
  border-radius: 12px; font-size: 13px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px;
}
.wiz-info-banner--green {
  color: #6ee7b7;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.18);
}
.wiz-info-banner i { margin-top: 2px; flex-shrink: 0; }

.boost-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(184,69,224,.08), rgba(190,24,93,.04));
  border: 1px solid rgba(184,69,224,.15);
  border-radius: 14px;
}
.boost-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, #ec4899, #be185d);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  box-shadow: 0 6px 16px rgba(184,69,224,.25);
}
.boost-card__text { flex: 1; min-width: 0; }
.boost-card__title {
  font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 2px;
}
.boost-card__sub {
  font-size: 12px; color: rgba(255,255,255,.4); margin: 0;
}

.cw-toggle--pink input:checked + .cw-toggle-track {
  background: linear-gradient(135deg, #ec4899, #be185d);
  border-color: rgba(184,69,224,.4);
  box-shadow: 0 0 18px rgba(184,69,224,.3);
}

/* ── Caption editor ──────────────────────────── */
.wiz-or-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 14px;
}
.wiz-or-divider::before,
.wiz-or-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.07);
}
.wiz-or-divider span {
  font-size: 11px; color: rgba(255,255,255,.28); font-weight: 500;
}

.wiz-toolbar-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  background: transparent; border: none; border-radius: 8px;
  color: #e2e8f0; font-size: 14px; cursor: pointer;
  flex-shrink: 0; font-family: var(--font-main);
  transition: background .15s ease;
}
.wiz-toolbar-btn:active { background: rgba(255,255,255,.1); }
.wiz-toolbar-btn--code { color: #6cb6ff; font-family: monospace; font-size: 11px; font-weight: 700; }
.wiz-toolbar-btn--quote { color: #5aaeff; }
.wiz-toolbar-btn--link { color: #34d399; }
.wiz-toolbar-btn--danger { color: #f87171; font-size: 12px; }
.caption-toolbar__sep {
  width: 1px; height: 20px; background: rgba(255,255,255,.1);
  margin: 0 4px; flex-shrink: 0;
}
.caption-toolbar__spacer { flex: 1; }

.caption-tabs {
  display: flex; gap: 4px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.04);
  border-radius: 12px; padding: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.caption-tab {
  flex: 1; height: 36px;
  border: none; border-radius: 9px;
  background: transparent; color: rgba(255,255,255,.45);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s ease;
}
.caption-tab i { font-size: 11px; }
.caption-tab.active {
  background: linear-gradient(135deg, rgba(22,137,255,.35), rgba(22,137,255,.25));
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,137,255,.2);
}

.caption-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.caption-meta #caption-counter {
  font-size: 12px; color: rgba(255,255,255,.35);
}
.caption-meta__hint {
  font-size: 11px; color: rgba(255,255,255,.2);
}
.caption-preview-empty {
  color: rgba(255,255,255,.28);
  font-style: italic; font-size: 13px;
}

/* ── Media upload ────────────────────────────── */
.media-drop-zone {
  position: relative;
  padding: 28px 20px; text-align: center;
  background: rgba(255,255,255,.03);
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: 16px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.media-drop-zone.is-dragover {
  border-color: #5aaeff;
  background: rgba(22,137,255,.1);
}
.media-drop-zone__idle i,
.media-drop-zone__loading i,
.media-drop-zone__success i {
  display: block; font-size: 32px; margin-bottom: 10px;
}
.media-drop-zone__idle i { color: #5aaeff; }
.media-drop-zone__loading i { color: #5aaeff; }
.media-drop-zone__success i { color: #34d399; }
.media-drop-zone__title {
  color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 6px;
}
.media-drop-zone__sub,
.media-drop-zone__loading p,
.media-drop-zone__success p {
  color: rgba(255,255,255,.4); font-size: 13px; margin: 0;
}
.media-drop-zone__success p { color: #34d399; }
.media-drop-zone.is-loading .media-drop-zone__idle { display: none; }
.media-drop-zone.is-loading .media-drop-zone__loading { display: block; }
.media-drop-zone.is-success .media-drop-zone__idle { display: none; }
.media-drop-zone.is-success .media-drop-zone__success { display: block; }

.media-upload-progress {
  width: 100%;
  max-width: 200px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.media-upload-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1689ff, #3d9bff);
  transition: width 0.15s ease;
}

.media-preview {
  margin-top: 12px; position: relative;
}
.media-preview img {
  width: 100%; max-height: 220px;
  object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.media-preview__remove {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.65); border: none;
  border-radius: 50%; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}

/* ── Step 4 enhancements ─────────────────────── */
.winners-stepper-compact__val { text-align: center; }
.winners-stepper-compact__val p {
  font-size: 12px; color: rgba(255,255,255,.45); margin: 4px 0 0;
}
.time-preset-row { margin-bottom: 12px; }
.datetime-input.is-valid { border-color: rgba(52,211,153,.5); }
.datetime-input.is-error { border-color: rgba(239,68,68,.7); }

/* ── Summary (step 5) ────────────────────────── */
.summary-panel { display: flex; flex-direction: column; gap: 4px; }
.summary-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 14px; margin-bottom: 6px;
}
.summary-banner--ok {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
}
.summary-banner--warn {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.28);
}
.summary-banner__icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.summary-banner--ok .summary-banner__icon { color: #34d399; }
.summary-banner--warn .summary-banner__icon { color: #fbbf24; }
.summary-banner__title {
  font-size: 13px; font-weight: 700; margin: 0 0 2px;
}
.summary-banner--ok .summary-banner__title { color: #34d399; }
.summary-banner--warn .summary-banner__title { color: #fbbf24; }
.summary-banner__sub {
  font-size: 12px; color: rgba(255,255,255,.5); margin: 0;
}
.summary-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.summary-row__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.summary-row__icon i { color: #fff; font-size: 13px; }
.summary-row__body { flex: 1; min-width: 0; }
.summary-row__label {
  font-size: 10px; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 4px;
}
.summary-row__value {
  font-size: 14px; color: #fff; margin: 0;
  word-break: break-word; line-height: 1.4;
}
.summary-caption {
  padding: 12px 0;
}
.summary-caption__text {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13px; color: rgba(255,255,255,.85);
  line-height: 1.55; white-space: pre-wrap;
  max-height: 140px; overflow-y: auto;
}

/* ── Wizard dock (miniapp ob-dock style) ─────── */
.wizard-dock {
  padding: 0 14px calc(12px + env(safe-area-inset-bottom));
  background: transparent;
  border-top: none;
  backdrop-filter: none;
}
.wizard-dock-shell {
  max-width: 520px; margin: 0 auto;
  display: flex; gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(11,11,15,.94);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}
.wizard-dock.visible { display: flex; }
.wizard-top {
  background: rgba(9,9,11,.92);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wizard-body {
  padding: 14px 16px calc(110px + env(safe-area-inset-bottom));
}
.wizard-dot.done {
  background: linear-gradient(90deg, rgba(22,137,255,.6), rgba(22,137,255,.5));
  box-shadow: 0 0 8px rgba(22,137,255,.25);
}
.wizard-dot.active {
  box-shadow: 0 0 10px rgba(22,137,255,.4);
}

.btn-launch {
  font-family: var(--font-main);
  transition: transform .2s ease;
}
.btn-launch:active { transform: scale(.98); }
.btn-draft {
  font-family: var(--font-main);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-draft:active { background: rgba(255,255,255,.05); }

.prize-input {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .2s ease;
}
.prize-input:focus { border-color: rgba(22,137,255,.4); outline: none; }

@media (max-width: 380px) {
  .wiz-card { padding: 16px; }
  .section-header-title { font-size: 18px; }
  #primary-check-btn span { display: none; }
  #primary-check-btn { padding: 0 16px; }
  .home-stats--3 .home-stat strong { font-size: 20px; }
  .home-stats--3 .home-stat span { font-size: 10px; }
}

/* ═══════════════════════════════════════════════
   UI POLISH v10 — empty states, profile, skeleton
   ═══════════════════════════════════════════════ */

.cw-screen.active.cw-fade {
  animation: cwScreenIn .32s cubic-bezier(.4,0,.2,1) both;
}
@keyframes cwScreenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Empty & error states */
.empty-state {
  text-align: center;
  padding: 48px 24px 56px;
}
.empty-state__icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 22px;
  background: rgba(22,137,255,.1);
  border: 1px solid rgba(22,137,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(90,174,255,.6);
}
.empty-state--error .empty-state__icon {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.2);
  color: #f87171;
}
.empty-state__title {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 800; color: #fff;
  margin: 0 0 6px;
}
.empty-state__sub {
  font-size: 14px; color: rgba(255,255,255,.42);
  margin: 0 0 20px; line-height: 1.45;
}
.empty-state__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #1689ff, #0e6fd8);
  color: #fff; font-size: 15px; font-weight: 700;
  font-family: var(--font-main); cursor: pointer;
  box-shadow: 0 8px 24px rgba(22,137,255,.35);
}
.empty-state__btn:active { transform: scale(0.97); }
.empty-state__btn--ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none; color: rgba(255,255,255,.8);
}

/* Skeleton loading */
.skel-card {
  position: relative;
  background: rgba(18,16,28,.9);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 16px 16px 16px 20px;
  margin-bottom: 12px;
  overflow: hidden;
}
.skel-card__accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 20px 0 0 20px;
}
.skel-line {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease infinite;
}
.skel-line--badge { width: 80px; height: 22px; border-radius: 20px; margin-bottom: 14px; }
.skel-line--title { width: 100%; margin-bottom: 8px; }
.skel-line--sub { width: 65%; margin-bottom: 14px; }
.skel-line-row { display: flex; gap: 10px; }
.skel-line--xs { width: 48px; height: 11px; }
.skel-line--sm { width: 72px; height: 11px; }
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Profile tab */
.profile-hero {
  padding: 28px 20px 24px;
  margin-bottom: 14px;
  text-align: center;
}
.profile-avatar-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 16px;
}
.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #232323, #232323);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 34px; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
}
.profile-avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1689ff, #0e6fd8, #3d9bff);
  z-index: 0;
}
.profile-name {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 0 4px;
}
.profile-username {
  font-size: 14px; color: #5aaeff;
  margin: 0 0 6px; font-weight: 600;
}
.profile-id {
  font-size: 12px; color: rgba(255,255,255,.35);
  margin: 0; font-family: ui-monospace, monospace;
}
.profile-section {
  padding: 18px 18px 8px;
  margin-bottom: 14px;
}
.profile-section__label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 16px;
}
.profile-field { margin-bottom: 18px; }
.profile-field__label {
  display: block;
  font-size: 13px; color: rgba(255,255,255,.5);
  margin-bottom: 10px; font-weight: 600;
}
.lang-switch {
  display: flex;
  background: rgba(255,255,255,.05);
  border-radius: 12px; padding: 4px; gap: 4px;
  border: 1px solid rgba(255,255,255,.06);
}
.lang-btn {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,.45);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font-main);
  transition: all .2s;
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(22,137,255,.4), rgba(22,137,255,.3));
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,137,255,.2);
}
.profile-action {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 4px; margin-bottom: 4px;
  border: none; border-bottom: 1px solid rgba(255,255,255,.06);
  background: transparent; color: #fff;
  font-size: 15px; font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer; text-align: left;
}
.profile-action:last-child { border-bottom: none; margin-bottom: 0; }
.profile-action i:first-child {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(22,137,255,.12);
  color: #5aaeff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.profile-action span { flex: 1; }
.profile-action i:last-child {
  color: rgba(255,255,255,.2); font-size: 12px;
}
.profile-action:active { background: rgba(22,137,255,.06); }
.profile-footer {
  text-align: center;
  font-size: 11px; color: rgba(255,255,255,.2);
  margin: 8px 0 0; letter-spacing: .04em;
}

/* Modal polish */
.cw-modal-sheet {
  animation: modalSlideUp .3s cubic-bezier(.4,0,.2,1) both;
}
@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.cw-modal-overlay.active .cw-modal-sheet { transform: none; }

/* Manage page */
.manage-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,16,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: max(14px, env(safe-area-inset-top, 14px)) 16px 14px;
  display: flex; align-items: center; gap: 12px;
}
.manage-back {
  background: rgba(22,137,255,.12);
  border: 1px solid rgba(22,137,255,.22); color: #8fc6ff;
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: transform .15s;
}
.manage-back:active { transform: scale(.94); }
.manage-topbar-text { flex: 1; min-width: 0; }
.manage-topbar-text h1 {
  margin: 0; font-family: var(--font-heading);
  font-size: 17px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.manage-topbar-text p {
  margin: 2px 0 0; font-size: 11px;
  color: rgba(255,255,255,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.manage-loading { display: none; align-items: center; justify-content: center; padding: 64px; }
.manage-loading.active { display: flex; }
.manage-content {
  padding: 16px; max-width: 520px; margin: 0 auto;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  position: relative; z-index: 2;
}
.manage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.manage-stat {
  background: rgba(22,137,255,.08); border: 1px solid rgba(22,137,255,.16);
  border-radius: 18px; padding: 18px 12px; text-align: center;
}
.manage-stat span {
  display: block; font-size: 10px; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; font-weight: 700;
}
.manage-stat strong {
  font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: #fff;
}
.manage-tabs {
  display: flex; background: rgba(255,255,255,.04);
  border-radius: 16px; padding: 4px; gap: 4px; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.06);
}
.manage-tab {
  flex: 1; border: none; background: transparent;
  color: rgba(255,255,255,.45); padding: 11px 8px;
  font-size: 13px; font-weight: 700; border-radius: 12px;
  cursor: pointer; transition: all .2s; font-family: var(--font-main);
}
.manage-tab.active {
  background: linear-gradient(135deg, rgba(22,137,255,.45), rgba(22,137,255,.35));
  color: #fff; box-shadow: 0 4px 14px rgba(22,137,255,.2);
}
.manage-panel { display: none; }
.manage-panel.active { display: block; }
.user-row {
  background: rgba(24,24,27,.65);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .15s, background .15s;
}
.user-row:active { transform: scale(0.99); background: rgba(22,137,255,.08); }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
  font-family: var(--font-heading); flex-shrink: 0;
}
.user-avatar.winner {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 0 16px rgba(245,158,11,.25);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-weight: 600; font-size: 15px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-meta { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.user-badges { display: flex; gap: 4px; flex-shrink: 0; }
.badge-mini {
  padding: 4px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.badge-boost { background: rgba(22,137,255,.2); color: #5aaeff; }
.badge-winner { background: rgba(245,158,11,.2); color: #fbbf24; }
.manage-empty {
  text-align: center; color: rgba(255,255,255,.4);
  padding: 48px 20px; font-size: 14px; font-weight: 500;
}
.manage-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.manage-actions .btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 14px 20px;
  border: none; border-radius: 16px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: var(--font-main);
  background: linear-gradient(135deg, #1689ff, #0e6fd8); color: #fff;
  box-shadow: 0 8px 24px rgba(22,137,255,.35);
  transition: transform .15s;
}
.manage-actions .btn:active { transform: scale(.97); }
.manage-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 24px rgba(239,68,68,.3);
}
.status-badge {
  display: inline-flex; padding: 6px 11px; border-radius: 20px;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .05em;
}
.status-draft { background: rgba(255,255,255,.08); color: #a1a1aa; }
.status-scheduled { background: rgba(245,158,11,.2); color: #fbbf24; }
.status-active { background: rgba(16,185,129,.2); color: #34d399; }
.status-completed { background: rgba(22,137,255,.2); color: #5aaeff; }
.status-cancelled { background: rgba(239,68,68,.2); color: #f87171; }
