/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: 'JetBrains Mono', monospace;
  background: #050a14;
  color: #e8ecf1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg {
  position: fixed; inset: 0;
  background-color: #050a14;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -4;
}

.bg-overlay {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(56,189,248,0.18), transparent 60%),
    linear-gradient(180deg, rgba(5,10,20,0.78) 0%, rgba(5,10,20,0.9) 50%, rgba(5,10,20,0.97) 100%);
  z-index: -3;
  pointer-events: none;
}

.grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120,180,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,255,0.035) 1px, transparent 1px);
  background-size: 55px 55px;
  -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 80%);
  mask-image: radial-gradient(circle at center, black 25%, transparent 80%);
  z-index: -2;
  pointer-events: none;
}

.vignette {
  position: fixed; inset: 0;
  box-shadow: inset 0 0 180px 50px rgba(0,0,0,0.9);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   PARTIKEL
   ============================================================ */
.particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #38bdf8;
  will-change: transform, opacity;
  animation: floatUp linear infinite;
  box-shadow: 0 0 8px currentColor;
}

@keyframes floatUp {
  0% { transform: translate3d(0, 100vh, 0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translate3d(0, -10vh, 0); opacity: 0; }
}

/* ============================================================
   CONFETTI CANVAS
   ============================================================ */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  display: none;
}
.confetti-canvas.active { display: block; }

/* ============================================================
   WRAPPER
   ============================================================ */
.wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 70px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   BRAND BADGE
   ============================================================ */
.brand { margin-bottom: 18px; animation: fadeUp 0.7s ease 0.1s both; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #7dd3fc;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
}

.brand-badge::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.2), transparent);
  transform: translateX(-100%);
  animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.brand-badge .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================================
   COUNTDOWN WIDGET
   ============================================================ */
.countdown-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease 0.15s both;
}

.countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  padding: 8px 10px;
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.countdown-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.countdown-num.urgent {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.8);
  animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.countdown-unit {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  letter-spacing: 1px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.countdown-widget.ended .countdown-timer { display: none; }
.countdown-widget.ended .countdown-label { color: #f87171; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 32px 26px 28px;
  border-radius: 24px;
  background: rgba(10,18,32,0.78);
  border: 1px solid rgba(56,189,248,0.25);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 80px rgba(56,189,248,0.06);
  text-align: center;
  animation: cardEnter 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s both;
  overflow: hidden;
}

@keyframes cardEnter {
  0% { transform: translate3d(0, 50px, 0) scale(0.95); opacity: 0; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

.card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56,189,248,0.7), rgba(120,180,255,0.5), rgba(56,189,248,0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: borderPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* ============================================================
   STEP BAR
   ============================================================ */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 26px;
  margin-top: 12px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: 0.3s; }

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.3);
  color: #64748b;
  transition: 0.3s;
}

.step-label {
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  letter-spacing: 1px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.3s;
}

.step.active .step-num {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  color: #050a14;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56,189,248,0.8);
  transform: scale(1.1);
}

.step.active .step-label { color: #38bdf8; }

.step.done .step-num {
  background: rgba(34,197,94,0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.step.done .step-label { color: #22c55e; }

.step-line {
  width: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(56,189,248,0.2), rgba(56,189,248,0.2));
}

/* ============================================================
   STAGE
   ============================================================ */
.stage { display: none; animation: stageIn 0.5s cubic-bezier(0.22,1,0.36,1); }
.stage.active { display: block; }

@keyframes stageIn {
  0% { opacity: 0; transform: translate3d(0, 20px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ============================================================
   TITLE & SUBTITLE
   ============================================================ */
.title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #38bdf8, #93c5fd, #7dd3fc, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 4s linear infinite;
  filter: drop-shadow(0 0 15px rgba(56,189,248,0.4));
}

@keyframes titleShine { to { background-position: 200% center; } }

.subtitle {
  font-size: 12.5px;
  color: #93c5fd;
  letter-spacing: 1px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================================
   INPUT GROUP
   ============================================================ */
.input-group {
  display: flex;
  align-items: center;
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 16px;
  transition: 0.3s;
}

.input-group:focus-within {
  border-color: rgba(56,189,248,0.8);
  box-shadow: 0 0 25px rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.08);
}

.input-prefix {
  font-size: 16px;
  color: #38bdf8;
  font-weight: 600;
  margin-right: 6px;
  opacity: 0.7;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8ecf1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 15px 0;
  letter-spacing: 0.5px;
}

.input-group input::placeholder { color: #475569; font-size: 13px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  position: relative;
  width: 100%;
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #050a14;
  background: linear-gradient(135deg, #38bdf8, #7dd3fc, #38bdf8);
  background-size: 200% auto;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(56,189,248,0.6), inset 0 2px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1), background-position 0.5s;
  -webkit-appearance: none;
}

.btn-primary:active {
  transform: translate3d(0, -2px, 0) scale(1.02);
  background-position: right center;
}

.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate3d(-100%, 0, 0); }
  60%, 100% { transform: translate3d(350%, 0, 0); }
}

.btn-primary svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  width: 100%;
  padding: 12px 24px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 14px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ghost:active {
  background: rgba(56,189,248,0.08);
  color: #7dd3fc;
  border-color: rgba(56,189,248,0.5);
}

/* ============================================================
   BUTTON ROW (tombol utama + tombol help)
   ============================================================ */
.btn-row-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeUp 0.7s ease 0.75s both;
}

.btn-row-main .btn-primary { flex: 1; width: auto; }

.btn-icon-main {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.25);
  color: #38bdf8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), background 0.3s, border-color 0.3s;
  -webkit-appearance: none;
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-main svg { width: 22px; height: 22px; }

.btn-icon-main:active {
  background: rgba(56,189,248,0.2);
  border-color: rgba(56,189,248,0.7);
  transform: translateZ(0) scale(1.05) rotate(180deg);
  box-shadow: 0 0 25px rgba(56,189,248,0.6);
}

/* ============================================================
   TOMBOL AKSI (JOIN + KIRIM BUKTI)
   ============================================================ */
.btn-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  animation: fadeUp 0.7s ease 0.75s both;
}

.btn-join-group, .btn-upload-bukti {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
}

.btn-join-group svg, .btn-upload-bukti svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-join-group {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  color: #fff;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}
.btn-join-group:active {
  transform: scale(0.97);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.9);
}

.btn-upload-bukti {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc, #38bdf8);
  background-size: 200% auto;
  border: none;
  color: #050a14;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}
.btn-upload-bukti:active {
  transform: scale(0.97);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.9);
}

/* ============================================================
   STATUS BOX
   ============================================================ */
.status-box {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.status-box.error {
  color: #f87171;
  padding: 12px;
  border-radius: 10px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  animation: shake 0.4s ease;
}

.status-box.success {
  color: #4ade80;
  padding: 12px;
  border-radius: 10px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.3);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   SUCCESS & FAIL ICON
   ============================================================ */
.success-icon, .fail-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  animation: iconPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

.success-icon {
  background: rgba(74,222,128,0.1);
  border: 2px solid #4ade80;
  box-shadow: 0 0 40px rgba(74,222,128,0.5);
  color: #4ade80;
}

.fail-icon {
  background: rgba(248,113,113,0.1);
  border: 2px solid #f87171;
  box-shadow: 0 0 40px rgba(248,113,113,0.5);
  color: #f87171;
}

.success-icon svg, .fail-icon svg { width: 38px; height: 38px; }

@keyframes iconPop {
  0% { transform: scale(0.3) rotate(-90deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ============================================================
   STATUS ICON (buat halaman status)
   ============================================================ */
.status-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-icon svg {
  width: 38px;
  height: 38px;
}

.status-icon-wrap.pending .status-icon {
  background: rgba(251, 191, 36, 0.1);
  border: 2px solid #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
}

.status-icon-wrap.acc .status-icon {
  background: rgba(74, 222, 128, 0.1);
  border: 2px solid #4ade80;
  color: #4ade80;
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
}

.status-icon-wrap.tolak .status-icon {
  background: rgba(248, 113, 113, 0.1);
  border: 2px solid #f87171;
  color: #f87171;
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.5);
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-upload-wrap {
  margin-bottom: 16px;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  background: rgba(56, 189, 248, 0.05);
  border: 2px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  color: #7dd3fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.file-upload-label svg {
  width: 32px;
  height: 32px;
}

.file-upload-label:active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.8);
}

.file-preview {
  display: none;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.file-preview.active {
  display: block;
}

.file-preview img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: rgba(56, 189, 248, 0.03);
}

/* ============================================================
   RESULT INFO
   ============================================================ */
.result-info {
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.2);
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.9;
  text-align: left;
}

.result-info strong { color: #38bdf8; }

/* ============================================================
   COUNTER WIDGET
   ============================================================ */
.counter-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-top: 20px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
  letter-spacing: 0.3px;
  font-weight: 500;
  animation: fadeUp 0.7s ease 1.3s both;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.15);
}

.counter-widget strong {
  color: #e8ecf1;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.3s;
}

.counter-widget strong.bump {
  color: #4ade80;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.8);
}

.counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: counterPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
}

.counter-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #22c55e;
  animation: counterRing 2s ease-out infinite;
}

@keyframes counterPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes counterRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* ============================================================
   OFFICIAL LINKS SECTION
   ============================================================ */
.official-section {
  width: 100%;
  max-width: 480px;
  margin-top: 18px;
  animation: fadeUp 0.7s ease 1.4s both;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.3), transparent);
}

.divider span {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  letter-spacing: 2.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

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

.link-btn {
  position: relative;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), background 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-transform: uppercase;
}

.link-btn:active { transform: translate3d(0, -2px, 0) scale(1.04); }
.link-btn svg { width: 18px; height: 18px; }
.link-btn .label { display: block; }

.link-btn.owner {
  color: #7dd3fc;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.4);
}
.link-btn.owner:active {
  background: rgba(56,189,248,0.22);
  box-shadow: 0 0 22px rgba(56,189,248,0.8);
  border-color: rgba(56,189,248,0.8);
}
.link-btn.owner svg { filter: drop-shadow(0 0 5px rgba(56,189,248,0.9)); }

.link-btn.ofc {
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.4);
}
.link-btn.ofc:active {
  background: rgba(96,165,250,0.22);
  box-shadow: 0 0 22px rgba(96,165,250,0.8);
  border-color: rgba(96,165,250,0.8);
}
.link-btn.ofc svg { filter: drop-shadow(0 0 5px rgba(96,165,250,0.9)); }

.link-btn.anomali {
  color: #a5b4fc;
  background: rgba(165,180,252,0.08);
  border: 1px solid rgba(165,180,252,0.4);
}
.link-btn.anomali:active {
  background: rgba(165,180,252,0.22);
  box-shadow: 0 0 22px rgba(165,180,252,0.8);
  border-color: rgba(165,180,252,0.8);
}
.link-btn.anomali svg { filter: drop-shadow(0 0 5px rgba(165,180,252,0.9)); }

/* ============================================================
   LINKS LIST
   ============================================================ */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(56,189,248,0.04);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 12px;
  text-decoration: none;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34,1.4,0.64,1);
  overflow: hidden;
  position: relative;
}

.link-item:active {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 0 25px rgba(56,189,248,0.4);
  transform: translate3d(0, -2px, 0) scale(1.01);
}

.link-item .link-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.25);
  flex-shrink: 0;
  color: #38bdf8;
}

.link-item .link-icon svg { width: 16px; height: 16px; }

.link-item .link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.link-item .link-title {
  color: #e8ecf1;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.link-item .link-desc {
  color: #64748b;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item .link-arrow {
  color: #38bdf8;
  font-size: 14px;
  opacity: 0.6;
  flex-shrink: 0;
}

.link-item.wa { border-color: rgba(37,211,102,0.25); }
.link-item.wa:active {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.6);
  box-shadow: 0 0 25px rgba(37,211,102,0.4);
}
.link-item.wa .link-icon {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.3);
  color: #25d366;
}

.link-item.tiktok { border-color: rgba(255,255,255,0.15); }
.link-item.tiktok:active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.link-item.tiktok .link-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
}

.link-item.discord { border-color: rgba(88,101,242,0.3); }
.link-item.discord:active {
  background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.7);
  box-shadow: 0 0 25px rgba(88,101,242,0.5);
}
.link-item.discord .link-icon {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.3);
  color: #5865f2;
}

.link-item.instagram { border-color: rgba(225,48,108,0.3); }
.link-item.instagram:active {
  background: rgba(225,48,108,0.15);
  border-color: rgba(225,48,108,0.7);
  box-shadow: 0 0 25px rgba(225,48,108,0.5);
}
.link-item.instagram .link-icon {
  background: rgba(225,48,108,0.1);
  border-color: rgba(225,48,108,0.3);
  color: #e1306c;
}

.link-item.youtube { border-color: rgba(255,0,0,0.3); }
.link-item.youtube:active {
  background: rgba(255,0,0,0.15);
  border-color: rgba(255,0,0,0.7);
  box-shadow: 0 0 25px rgba(255,0,0,0.5);
}
.link-item.youtube .link-icon {
  background: rgba(255,0,0,0.1);
  border-color: rgba(255,0,0,0.3);
  color: #ff0000;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: absolute;
  bottom: 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #64748b;
  text-align: center;
  animation: fadeUp 0.9s ease 1.5s both;
  width: 100%;
  left: 0;
}

.footer span { color: #38bdf8; }

/* ============================================================
   POPUP (HELP)
   ============================================================ */
.popup {
  position: fixed; inset: 0;
  background: rgba(5,10,20,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.popup.active { opacity: 1; visibility: visible; }

.popup-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(10,18,32,0.98);
  border: 1px solid rgba(56,189,248,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 60px rgba(56,189,248,0.15);
  transform: translate3d(0, 40px, 0) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease;
  overflow: hidden;
}

.popup.active .popup-box {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.popup-header {
  padding: 20px 20px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(56,189,248,0.15);
  position: relative;
  flex-shrink: 0;
}

.popup-header h3 {
  font-family: 'Cinzel', serif;
  color: #38bdf8;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 15px rgba(56,189,248,0.5);
}

.close-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: 0.3s;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

.close-x svg { width: 14px; height: 14px; }

.close-x:active {
  color: #38bdf8;
  background: rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.5);
  transform: scale(1.1);
}

.popup-body {
  padding: 20px 22px;
  overflow-y: auto;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.85;
  color: #cbd5e1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.popup-body::-webkit-scrollbar { width: 4px; }
.popup-body::-webkit-scrollbar-thumb {
  background: rgba(56,189,248,0.5);
  border-radius: 10px;
}

.popup-body h4 {
  color: #38bdf8;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 4px;
  margin-bottom: 8px;
  font-family: 'Cinzel', serif;
}

.popup-body h4:not(:first-child) { margin-top: 16px; }

.divider-line {
  border: none;
  border-top: 1px dashed rgba(56,189,248,0.25);
  margin: 16px 0;
}

.popup-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(56,189,248,0.15);
  text-align: center;
  flex-shrink: 0;
}

.popup-footer button {
  padding: 11px 36px;
  border-radius: 50px;
  border: 1px solid rgba(56,189,248,0.5);
  background: transparent;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: 0.3s;
  -webkit-appearance: none;
}

.popup-footer button:active {
  background: rgba(56,189,248,0.2);
  box-shadow: 0 0 20px rgba(56,189,248,0.6);
  transform: scale(1.05);
}

/* ============================================================
   COPY ITEM (popup help)
   ============================================================ */
.help-desc {
  color: #94a3b8;
  font-size: 11.5px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.copy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(56,189,248,0.05);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 10px;
  transition: 0.3s;
}

.copy-item code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #7dd3fc;
  font-weight: 600;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 8px;
  color: #38bdf8;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: 0.3s;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.copy-btn svg { width: 12px; height: 12px; }

.copy-btn:active {
  background: rgba(56,189,248,0.3);
  border-color: rgba(56,189,248,0.8);
  box-shadow: 0 0 15px rgba(56,189,248,0.5);
  transform: scale(1.05);
}

.copy-btn.copied {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.5);
  color: #4ade80;
}

.help-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.7;
  padding: 10px 12px;
  background: rgba(56,189,248,0.04);
  border-left: 2px solid rgba(56,189,248,0.5);
  border-radius: 6px;
  margin-top: 14px;
}

.help-note strong { color: #7dd3fc; }

/* ============================================================
   LOADING
   ============================================================ */
.loading {
  position: fixed; inset: 0;
  background: rgba(5,10,20,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.loading.active { opacity: 1; visibility: visible; }

.spinner {
  width: 55px; height: 55px;
  border: 3px solid rgba(56,189,248,0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 25px rgba(56,189,248,0.5);
}

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

.loading p {
  font-size: 13px;
  letter-spacing: 2px;
  color: #38bdf8;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; text-shadow: 0 0 15px rgba(56,189,248,0.8); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
