/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
html { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #f8fafc;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* ===== VARIABLES ===== */
:root {
  --primary:    #a855f7;
  --p10:  rgba(168,85,247,0.10);
  --p20:  rgba(168,85,247,0.20);
  --p30:  rgba(168,85,247,0.30);
  --p50:  rgba(168,85,247,0.50);
  --green:      #22c55e;
  --g10:  rgba(34,197,94,0.10);
  --g20:  rgba(34,197,94,0.20);
  --g30:  rgba(34,197,94,0.30);
  --red:        #ef4444;
  --r10:  rgba(239,68,68,0.10);
  --r30:  rgba(239,68,68,0.30);
  --amber:      #f59e0b;
  --a20:  rgba(245,158,11,0.20);
  --cyan:       #06b6d4;
  --blue:       #3b82f6;
  --text:       #f8fafc;
  --muted:      #94a3b8;
  --border:     rgba(255,255,255,0.10);
  --card:       rgba(255,255,255,0.05);
  --card2:      rgba(255,255,255,0.08);
}

/* ===== ANIMATED BACKGROUND ===== */
#bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  animation: bgFloat1 8s ease-in-out infinite;
}
#bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  animation: bgFloat2 10s ease-in-out infinite;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.bg-blob-1 { width: 300px; height: 300px; background: rgba(168,85,247,0.2); top: 20%; left: 10%; animation: bgFloat1 12s ease-in-out infinite; }
.bg-blob-2 { width: 200px; height: 200px; background: rgba(6,182,212,0.15); top: 60%; right: 15%; animation: bgFloat2 9s ease-in-out infinite; }
.bg-blob-3 { width: 150px; height: 150px; background: rgba(236,72,153,0.1); bottom: 20%; left: 30%; animation: bgFloat1 7s ease-in-out infinite 3s; }

/* ===== SCREENS ===== */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}
.screen.active { display: flex; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--p30); border-radius: 2px; }

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  flex-shrink: 0;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fbbf24, #a855f7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-back {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s;
}
.header-back:hover { color: var(--text); }
.header-close {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header-close:hover { background: rgba(255,255,255,0.1); }

/* ===== LANG DROPDOWN ===== */
.lang-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.12); }
.lang-dropdown-wrap { position: relative; }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-dropdown-menu.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.lang-option:hover { background: var(--p10); }
.lang-option.active { color: var(--primary); }

/* ===== LANGUAGE SELECTOR SCREEN ===== */
#screen-lang {
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lang-select-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 32px;
  text-align: center;
}
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}
.lang-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lang-card:hover {
  border-color: var(--p50);
  background: var(--p10);
  transform: translateY(-2px);
}
.lang-flag { font-size: 2rem; }
.lang-name { font-size: 0.85rem; font-weight: 600; }

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== MAIN SCREEN ===== (layout moved to "NEW DESIGN" section at the bottom) */

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  color: #fff;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(168,85,247,0.4); }
.btn-outline {
  padding: 10px;
  background: var(--p10);
  border: 1px solid var(--p50);
  color: var(--primary);
  font-size: 0.875rem;
}
.btn-outline:hover { background: var(--p20); }
.btn-green {
  padding: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
  animation: pulse-green 2s infinite;
}
.btn-green:hover { opacity: 0.9; }
.btn-red {
  padding: 14px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}
.btn-red:hover { opacity: 0.9; transform: scale(1.02); }
.btn-copy {
  width: 100%;
  background: var(--p10);
  border: 1px solid var(--p30);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-copy:hover { background: var(--p20); }
.btn-copy span { truncate: ellipsis; overflow: hidden; white-space: nowrap; }
.btn-copy .copy-icon { flex-shrink: 0; color: var(--primary); }

/* ===== PAYMENT METHODS ===== */
.payment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}
.payment-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; padding: 0 14px; }
.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pay-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f0f23, #1e1040);
  border: 1px solid rgba(168,85,247,0.3);
  box-shadow: 0 0 16px rgba(168,85,247,0.2);
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}
.pay-icon:hover { transform: scale(1.1); }
.pay-icon img { width: 24px; height: 24px; object-fit: contain; }
.pay-symbol {
  background: linear-gradient(90deg, #00d9ff, #a78bfa, #ec4899, #00d9ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographic 3s linear infinite;
  font-weight: 900;
  font-size: 1rem;
}
.pay-name { font-size: 0.65rem; color: rgba(168,85,247,0.8); font-weight: 500; }

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 4px 0;
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.online-text { color: var(--green); font-weight: 600; }

/* ===== BOTTOM FIXED BUTTON ===== */
.bottom-btn { padding: 0 14px 16px; flex-shrink: 0; }

/* ===== FOLDER/APP SELECT ===== */
.select-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.select-hint { font-size: 0.8rem; color: var(--muted); text-align: center; margin-bottom: 4px; }
.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.item-card:hover {
  border-color: var(--p50);
  background: var(--p10);
}
.item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-thumb img { width: 48px; height: 48px; object-fit: cover; }
.item-info { flex: 1; text-align: left; }
.item-name { font-weight: 700; font-size: 0.9375rem; }
.item-sub { font-size: 0.8rem; color: var(--muted); }
.item-sub2 { font-size: 0.7rem; color: var(--primary); margin-top: 2px; }
.item-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.3);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.item-card:hover .item-radio { border-color: var(--primary); }
.best-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ===== TASKS ===== */
.tasks-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
}
.task-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p20);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.task-content { flex: 1; font-size: 0.85rem; line-height: 1.5; }
.task-warn { color: var(--red); font-size: 0.75rem; font-weight: 600; margin-top: 4px; }

/* ===== UPLOAD ===== */
.upload-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.counter-card { padding: 16px; text-align: center; }
.counter-nums { font-size: 2.5rem; font-weight: 700; margin-bottom: 4px; }
.counter-current { color: var(--primary); }
.counter-max { color: rgba(148,163,184,0.6); }
.counter-label { font-size: 0.8rem; color: var(--muted); }
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.captures-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.capture-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--card2);
  cursor: pointer;
}
.capture-thumb img { width: 100%; height: 100%; object-fit: cover; }
.capture-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.capture-thumb:hover .capture-overlay { opacity: 1; }
.capture-num {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0,0,0,0.7);
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 4px;
}

/* ===== WARNING BOX ===== */
.warning-box {
  background: var(--r10);
  border: 1px solid var(--r30);
  border-radius: 12px;
  padding: 12px;
}
.warning-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.warning-text { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ===== VERIFICATION ===== */
.verify-screen {
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.verify-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--p30);
  margin-bottom: 16px;
}
.verify-logo img { width: 100%; height: 100%; object-fit: cover; }
.verify-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}
.verify-status { color: var(--primary); font-size: 0.875rem; text-align: center; margin-bottom: 20px; font-family: 'Cinzel', serif; }
.verify-steps { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.verify-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s;
}
.verify-step.completed { background: var(--g10); border-color: var(--g30); }
.verify-step.active { background: var(--p10); border-color: var(--p50); }
.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.verify-step.completed .step-icon { background: var(--green); }
.verify-step.active .step-icon { background: var(--primary); }
.step-text {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s;
}
.verify-step.completed .step-text { color: var(--green); }
.verify-step.active .step-text { color: var(--text); }
.spin { animation: spin 1s linear infinite; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(0,0,0,0.99));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(168,85,247,0.2);
}
.modal-glow-top {
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent 70%);
  pointer-events: none;
}
.modal-glow-bot {
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(239,68,68,0.1), transparent 70%);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--muted);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }
.modal-warn-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(245,158,11,0.1));
  border: 1px solid rgba(245,158,11,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  box-shadow: 0 0 24px rgba(245,158,11,0.2);
  position: relative; z-index: 2;
  animation: pulse-amber 2s infinite;
}
.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  position: relative; z-index: 2;
}
.modal-subtitle { color: var(--muted); font-size: 0.8rem; text-align: center; margin-bottom: 20px; position: relative; z-index: 2; }
.modal-info-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative; z-index: 2;
}
.modal-info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.modal-info-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--a20);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.modal-info-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.modal-info-desc { font-size: 0.75rem; color: var(--muted); }
.modal-red-box {
  background: linear-gradient(90deg, rgba(239,68,68,0.15), rgba(220,38,38,0.1));
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 12px;
}
.modal-green-box {
  background: linear-gradient(90deg, rgba(34,197,94,0.1), rgba(16,185,129,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
}
.modal-green-box .green-check { color: var(--green); font-weight: 700; font-size: 1rem; }
.refund-text { color: var(--green); font-weight: 600; }
.modal-footer { color: var(--muted); font-size: 0.7rem; text-align: center; margin-top: 12px; position: relative; z-index: 2; }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 20px 14px 40px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.admin-title svg { color: var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media(min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.stat-label { font-size: 0.7rem; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.stat-value { font-size: 1.75rem; font-weight: 700; }
.funnel-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.funnel-title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.funnel-row { margin-bottom: 4px; }
.funnel-dropoff { text-align: center; font-size: 0.7rem; color: #f87171; padding: 2px 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.funnel-line { display: flex; align-items: center; gap: 10px; }
.funnel-label { width: 130px; font-size: 0.75rem; color: var(--muted); text-align: right; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; height: 32px; background: rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; transition: width 0.7s ease; }
.funnel-bar span { font-size: 0.75rem; font-weight: 700; color: #fff; }
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.table-card th { padding: 8px 6px; color: var(--muted); font-weight: 500; font-size: 0.7rem; border-bottom: 1px solid var(--border); }
.table-card td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.table-card tr:hover td { background: rgba(255,255,255,0.02); }
.refresh-btn {
  background: var(--p10);
  border: 1px solid var(--p30);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
  font-family: inherit;
}
.refresh-btn:hover { background: var(--p20); }
.refresh-btn:disabled { opacity: 0.5; }
.loading-msg { text-align: center; color: var(--muted); padding: 40px; }

/* ===== ANIMATIONS ===== */
@keyframes bgFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes bgFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-25px, 15px) scale(0.95); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
  50%       { box-shadow: 0 4px 28px rgba(34,197,94,0.6); }
}
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 24px rgba(245,158,11,0.2); }
  50%       { box-shadow: 0 0 36px rgba(245,158,11,0.4); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes holographic {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== SVG ICONS (inline) ===== */
svg { display: inline-block; vertical-align: middle; }

/* ================================================================
   MAIN SCREEN — NEW DESIGN (screenshot style)
   ================================================================ */

/* Fundo atmosférico */
#screen-main { position: relative; overflow: hidden; justify-content: center; }
.main-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,10,60,0.95) 0%, #000 70%);
}
.main-bg-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
}
.main-bg-glow-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(99,40,200,0.6), transparent 70%);
  top: -80px; left: 50%; transform: translateX(-50%);
  animation: bgFloat1 10s ease-in-out infinite;
}
.main-bg-glow-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(6,182,212,0.25), transparent 70%);
  bottom: 100px; right: -40px;
  animation: bgFloat2 8s ease-in-out infinite;
}
.main-bg-glow-3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(236,72,153,0.18), transparent 70%);
  bottom: 60px; left: -30px;
  animation: bgFloat1 12s ease-in-out infinite 2s;
}

/* Card central */
.main-center {
  position: relative; z-index: 2;
  width: 100%; max-width: 400px;
  margin: 0 auto;
  padding: 28px 22px 120px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  flex: 1; overflow-y: auto;
}

/* Ícone */
.main-icon-wrap {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.main-icon-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.7);
  box-shadow: 0 0 24px rgba(99,102,241,0.5), inset 0 0 24px rgba(99,102,241,0.15);
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.main-icon {
  width: 64px !important; height: 64px !important;
  min-width: 64px; min-height: 64px;
  max-width: 64px; max-height: 64px;
  border-radius: 50%; overflow: hidden !important;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.main-icon img {
  display: block;
  width: 64px !important; height: 64px !important;
  max-width: 64px !important; max-height: 64px !important;
  object-fit: cover;
}

/* Título */
.main-hero-title {
  font-size: 1.6rem; font-weight: 800; line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(168,85,247,0.4);
}

/* Subtítulo */
.main-hero-sub {
  font-size: 0.875rem; color: rgba(200,210,230,0.75);
  line-height: 1.6; margin-bottom: 18px;
}

/* Features */
.main-features {
  list-style: none; width: 100%;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px; text-align: left;
}
.main-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: rgba(220,230,255,0.85);
}
.mf-dot { color: #818cf8; font-size: 0.7rem; margin-top: 2px; flex-shrink: 0; }

/* Stats */
.main-stats {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; color: var(--muted);
  margin-bottom: 24px;
}
.main-stat-item { display: flex; align-items: center; gap: 5px; }
.main-stat-item.online .online-text,
.main-stat-item.online span:last-child { color: var(--green); font-weight: 600; }
.main-stat-sep { opacity: 0.4; }

/* ── Botão principal UNLOCK FREE ── */
.btn-hero-free {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  box-shadow: 0 4px 32px rgba(79,70,229,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
  margin-bottom: 20px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.btn-hero-free::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-hero-free:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(79,70,229,0.7); }
.btn-hero-free:active { transform: scale(0.98); }

/* Métodos de pagamento */
.main-pay-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}
.mp-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.6rem; color: var(--muted);
}
.mp-sym {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
}
.mp-item img {
  width: 28px !important; height: 28px !important;
  max-width: 28px !important; max-height: 28px !important;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px;
  flex-shrink: 0;
}

/* ── Barra VIP fixo no bottom ── */
.main-vip-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 60%, transparent);
}
.btn-vip {
  width: 100%; max-width: 400px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto;
  padding: 15px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899, #a855f7);
  background-size: 200% 200%;
  animation: vip-shimmer 3s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(168,85,247,0.5);
  transition: transform 0.15s;
}
.btn-vip:hover { transform: scale(1.02); }
.btn-vip:active { transform: scale(0.98); }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 24px rgba(99,102,241,0.5), inset 0 0 24px rgba(99,102,241,0.15); }
  50%       { box-shadow: 0 0 40px rgba(99,102,241,0.8), inset 0 0 32px rgba(99,102,241,0.25); }
}
@keyframes vip-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ================================================================
   INVITE / SHARE SCREEN
   ================================================================ */
#screen-invite { background: #000; }

/* ── Blurred preview top — flex layout, no absolute overlay ── */
.invite-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 200px;
  min-height: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #12002a 0%, #2a0055 50%, #06001a 100%);
}
.invite-lock-icon {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(99,102,241,0.35);
}
.invite-folder-label {
  position: relative; z-index: 2;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 5px 16px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; color: #fff;
}
.invite-back {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
  transition: background 0.2s;
}
.invite-back:hover { background: rgba(0,0,0,0.7); }

/* ── Content area ── */
.invite-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 140px;
}
.invite-title {
  font-size: 1.35rem; font-weight: 800; color: #fff;
  text-align: center; margin-bottom: 4px;
}
.invite-sub {
  font-size: 0.82rem; color: var(--muted);
  text-align: center; margin-bottom: 16px;
}

/* Progress row */
.invite-progress-row {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted); margin-bottom: 6px;
}
.invite-progress-pct { color: var(--primary); font-weight: 700; }

/* Link box */
.invite-link-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 18px;
}
.invite-link-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 600; color: var(--muted);
  margin-bottom: 5px;
}
.invite-link-url {
  font-size: 0.75rem; color: rgba(180,210,255,0.85);
  word-break: break-all; line-height: 1.4;
}

/* Counter */
.invite-counter {
  text-align: center;
  margin-bottom: 20px;
}
.invite-counter-nums {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  margin-bottom: 3px;
}
.invite-counter-cur { color: var(--primary); }
.invite-counter-sep { color: rgba(255,255,255,0.2); font-weight: 300; }
.invite-counter-max { color: rgba(100,120,150,0.7); }
.invite-counter-label {
  display: block;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}

/* Buttons */
.btn-invite-share {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px; border-radius: 14px; border: none;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
  box-shadow: 0 4px 24px rgba(79,70,229,0.5);
  margin-bottom: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-invite-share:hover { transform: translateY(-2px); }
.btn-invite-share:active { transform: scale(0.98); }

.btn-invite-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #d4e0ff; background: rgba(255,255,255,0.06);
  margin-bottom: 10px; transition: background 0.2s;
}
.btn-invite-copy:hover { background: rgba(255,255,255,0.1); }

.btn-invite-captures {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 20px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); background: transparent;
  margin-bottom: 16px; transition: background 0.2s, color 0.2s;
}
.btn-invite-captures:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Instruction note */
.invite-instruction {
  font-size: 0.76rem; color: rgba(167,139,250,0.75);
  text-align: center; line-height: 1.55; margin: 0 0 18px;
}

/* Expire warning */
.invite-expire-warn {
  font-size: 0.74rem; color: #f87171;
  text-align: center; font-weight: 600; line-height: 1.5;
}
