:root {
  --tg-theme-bg-color: #0d0d0d;
  --tg-theme-text-color: #f0f0f0;
  --tg-theme-hint-color: #8e8e93;
  --tg-theme-link-color: #3390ec;
  --tg-theme-button-color: #3390ec;
  --tg-theme-button-text-color: #ffffff;
  --tg-theme-secondary-bg-color: #1c1c1e;

  --accent-color: var(--tg-theme-button-color);
  --accent-text: var(--tg-theme-button-text-color);
  --bg-color: var(--tg-theme-bg-color);
  --text-color: var(--tg-theme-text-color);
  --hint-color: var(--tg-theme-hint-color);
  --card-bg: var(--tg-theme-secondary-bg-color);

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-accent: 0 0 20px rgba(99, 102, 241, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0f;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  padding: 0 0 calc(108px + env(safe-area-inset-bottom)) 0;
  min-height: 100vh;
}

body.dark-app,
.giveaway-page {
  background: #0a0a0f;
  background: radial-gradient(ellipse at top, #12121a 0%, #0a0a0f 55%);
}

/* ──── Glassmorphism Card ──── */
.glass-panel {
  background: rgba(20, 18, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  contain: layout style;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-panel:active {
  transform: scale(0.985);
}

/* ──── Bottom Tab Bar ──── */
.tabs-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(16, 16, 20, 0.98);
  position: fixed;
  bottom: 10px;
  left: 12px;
  right: 12px;
  padding: 10px 4px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--hint-color);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn i { font-size: 22px; }

.tab-btn.active {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ──── Content ──── */
.tab-content {
  display: none;
  padding: 16px;
  animation: fadeSlideUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active { display: block; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──── Typography ──── */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: 20px; }
h3 { font-size: 16px; }

p {
  color: var(--hint-color);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ──── Inputs ──── */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: var(--glow-accent);
}

textarea { resize: vertical; min-height: 100px; }

/* ──── Buttons ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  width: auto;
}

/* ──── Wizard ──── */
.wizard-step { display: none; }

.wizard-step.active {
  display: block;
  animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.dot {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  flex: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dot.active {
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* ──── Giveaway Cards ──── */
.giveaway-card {
  position: relative;
  overflow: hidden;
}

.giveaway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.giveaway-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.giveaway-header h3 {
  margin: 0;
  font-size: 15px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.status-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-active { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.status-scheduled { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.status-completed { color: #60a5fa; background: rgba(96, 165, 250, 0.12); }
.status-draft { color: var(--hint-color); background: rgba(255, 255, 255, 0.06); }
.status-cancelled { color: #f87171; background: rgba(248, 113, 113, 0.12); }

.stats-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--hint-color);
}

/* ──── Countdown Timer ──── */
.countdown {
  color: #fbbf24;
  font-family: 'Inter', monospace;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  background: rgba(251, 191, 36, 0.08);
  border-radius: var(--border-radius-sm);
  letter-spacing: 0.03em;
}

/* ──── Quick Time Buttons ──── */
.quick-time-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-color);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.quick-time-btn:active {
  transform: scale(0.93);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* ──── Channel List ──── */
.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  animation: fadeSlideUp 0.2s ease;
}

.channel-item button {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  transition: transform 0.15s ease;
}

.channel-item button:active {
  transform: scale(0.85);
}

/* ──── Utility ──── */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { display: flex; gap: 8px; }

/* ──── Loader ──── */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99,102,241,0.15);
  border-radius: 50%;
  border-top-color: #818cf8;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
  will-change: transform;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: #09090f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ──── Empty State ──── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--hint-color);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ──── Scrollbar ──── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ──── Giveaway participant page ──── */
.giveaway-page .page-content {
  padding: 16px;
  padding-bottom: 40px;
}

.ga-header .ga-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.ga-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#ga-title {
  font-size: 22px;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ga-desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.ga-stats {
  justify-content: center;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.hint-text {
  color: var(--hint-color);
  font-size: 14px;
  line-height: 1.5;
}

.huge-icon {
  font-size: 72px;
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(52, 211, 153, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.6)); }
}

.channel-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.channel-check-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-info i {
  font-size: 22px;
  color: var(--accent-color);
}

.status-icon { font-size: 20px; }
.status-ok { color: #34d399; }
.status-wait { color: var(--hint-color); }
.status-fail { color: #f87171; }

.boost-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  margin-left: 4px;
}

.btn-join {
  font-size: 16px;
  padding: 14px;
  background: var(--gradient-primary);
}

.winners-title {
  color: gold;
  font-size: 20px;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border-left: 4px solid gold;
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 600;
}

.winner-item i { color: gold; }

.btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon.danger { color: #f87171; }

/* ──── Creator list cards ──── */
.giveaway-card.clickable {
  cursor: pointer;
}

.giveaway-card.clickable:active {
  transform: scale(0.98);
}

.card-caption {
  font-size: 14px;
  color: var(--hint-color);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 12px;
  color: var(--hint-color);
  margin-top: 8px;
}

.card-hint {
  font-size: 12px;
  color: var(--accent-color);
  margin-top: 10px;
  text-align: right;
  opacity: 0.8;
}

/* ──── Detail modal ──── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 12px 20px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  position: relative;
  animation: slideUpModal 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUpModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-header h3 {
  margin: 0;
  flex: 1;
  font-size: 18px;
}

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

.detail-stats div {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.detail-stats strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.modal-actions .btn {
  margin-bottom: 8px;
}

/* ──── Channel library (creation) ──── */
.channel-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.channel-chip:active {
  transform: scale(0.98);
}

.channel-chip-active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
}

.channel-chip .chip-check {
  margin-left: auto;
  color: #34d399;
}

.btn-add-channel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.new-channel-form {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.check-ok { color: #34d399; font-size: 13px; }
.check-err { color: #f87171; font-size: 13px; }

/* ──── Participant page ──── */
.ga-caption-main {
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  text-align: center;
  margin-bottom: 12px;
}

.ga-header.card-joined {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02));
}

.ga-header.card-checking .status-banner {
  background: rgba(99, 102, 241, 0.15);
}

.loading-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--hint-color);
}

.channel-need {
  border-color: rgba(248, 113, 113, 0.35);
}

.channel-need:active {
  background: rgba(248, 113, 113, 0.08);
}

.channel-ok {
  border-color: rgba(52, 211, 153, 0.25);
  opacity: 0.85;
}

.sub-label {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.sub-ok { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.sub-fail { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.sub-pending { color: var(--hint-color); }

/* ──── Giveaway participant page (v2) ──── */
.ga-page {
  padding: 20px 16px 32px;
  min-height: 100vh;
}

.ga-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 14px;
}

.ga-card.card-joined {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.12);
}

.ga-card.card-winner {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

.ga-card.card-finished {
  border-color: rgba(96, 165, 250, 0.25);
}

.ga-card.card-checking {
  border-color: rgba(99, 102, 241, 0.3);
}

.ga-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ga-icon {
  font-size: 36px;
  line-height: 1;
}

.ga-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ga-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: var(--hint-color);
  margin: 0;
}

.ga-countdown {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 14px;
  font-weight: 600;
}

.ga-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.ga-btn {
  width: 100%;
}

.ga-channels-card {
  text-align: left;
}

.ga-channels-card .section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hint-color);
  margin-bottom: 8px;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}

.channel-row:active {
  transform: scale(0.98);
}

.channel-row-need {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

.channel-row-need .channel-row-status {
  color: #a5b4fc;
}

.channel-row-ok {
  opacity: 0.7;
}

.channel-row-ok .channel-row-status {
  color: #34d399;
}

.channel-row-icon {
  font-size: 22px;
  color: #60a5fa;
}

.channel-row-name {
  flex: 1;
}

.channel-row-status {
  font-size: 16px;
}

/* ──── Create wizard ──── */
.create-panel {
  padding-top: 16px;
}

.create-header {
  margin-bottom: 16px;
}

.create-header h2 {
  margin-bottom: 4px;
}

.wizard-step-label {
  font-size: 13px;
  color: var(--hint-color);
  margin: 0;
  font-weight: 500;
}

.prizes-list .prize-row {
  margin-bottom: 10px;
}

.prizes-list .prize-row label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-card {
  height: 100px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Telegram post preview ─── */
.tg-preview-wrap {
  background: #0e1621;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tg-preview-channel {
  font-size: 13px;
  color: #60a5fa;
  margin-bottom: 8px;
  font-weight: 600;
}

.tg-preview-bubble {
  background: #182533;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px 8px;
  max-width: 100%;
}

.tg-preview-media img,
.tg-preview-media video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  max-height: 200px;
  object-fit: cover;
}

.tg-preview-text {
  font-size: 15px;
  line-height: 1.45;
  color: #e8edf2;
  word-break: break-word;
}

.tg-preview-btn {
  margin-top: 10px;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 14px;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hint-color);
  font-size: 13px;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

.lang-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.lang-chip {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.channel-dash {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 13px;
}

/* ─── Home / brand ─── */
.hero-brand {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.15), rgba(15, 15, 20, 0.9));
}

.brand-tag {
  font-size: 12px;
  color: var(--hint-color);
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tag strong {
  color: #c4b5fd;
  font-weight: 700;
}

.hero-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.hero-sub {
  margin: 0;
  color: var(--hint-color);
  font-size: 14px;
  line-height: 1.4;
}

.features-panel {
  padding: 14px 16px;
}

.features-title {
  margin: 0 0 10px;
  font-size: 15px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 8px;
  line-height: 1.35;
}

.features-list i {
  color: #34d399;
  margin-top: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-cell {
  text-align: center;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.stat-cell span {
  display: block;
  font-size: 11px;
  color: var(--hint-color);
}

.stat-cell strong {
  font-size: 20px;
}

.stat-cell.accent strong {
  color: #34d399;
}

.btn-channel-add {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.help-details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}

.help-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--hint-color);
  line-height: 1.5;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.list-header h2 {
  margin: 0;
}

.btn-icon-refresh {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

/* ─── Giveaway cards v2 ─── */
.giveaway-card-v2 {
  margin-bottom: 12px;
}

.card-badge-boost {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  margin-bottom: 8px;
}

.card-winners {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.winner-chip {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  line-height: 1.3;
}

.card-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-card-primary {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-card-secondary {
  width: 48px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

/* ─── Wizard: stepper, toggle, duration ─── */
.winners-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}

.stepper-value {
  font-size: 24px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.prize-input-ios {
  font-size: 16px !important;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.prize-label {
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
}

.input-ios {
  font-size: 16px;
  min-height: 44px;
}

.duration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.duration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.duration-card:active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.duration-emoji {
  font-size: 22px;
  margin-bottom: 6px;
}

.duration-label {
  font-weight: 600;
  font-size: 14px;
}

.duration-sub {
  font-size: 11px;
  color: var(--hint-color);
  margin-top: 4px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.toggle-card-text strong {
  display: block;
  margin-bottom: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  transition: 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #34d399;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.block-mt {
  display: block;
  margin-top: 6px;
}

/* ──── Skeleton loading ──── */
.skel-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  will-change: background-position;
}

@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
